How To Install XAMPP On Windows [Step By Step Guide]

Advertisement

If you want to test your new WordPress theme before you go live, then one way to do it is to install WordPress locally on your PC. WordPress requires a web server such as Apache or IIS with support for PHP and MySQL running locally on your Computer. This is where XAMPP (Cross Platform web server package containing Apache, MySQL and PHP) comes to rescue.

In this tutorial we will go through the steps to install XAMPP on a Windows PC.

Installing XAMPP

XAMPP is available for multiple platforms, including Windows, Linux, Solaris and Mac OSX. First you will have to download the one for your needs, and install it.

1. Download XAMPP

Download XAMPP for Windows

Download XAMPP for Linux

Download XAMPP for Mac OSX

Download XAMPP for Solaris

In this guide, we are installing XAMPP 1.7.3 (latest version) on Windows. This version consists of the following components:

Apache 2.2.14 (IPv6 enabled) + OpenSSL 0.9.8l
MySQL 5.1.41 + PBXT engine
PHP 5.3.1
phpMyAdmin 3.2.4
Perl 5.10.1
FileZilla FTP Server 0.9.33
Mercury Mail Transport System 4.72

2. Download the EXE file and then simple double click on it to start the installation. By default XAMPP is installed to C:\. Leave the destination folder as it is, and click ‘Install’. This will install XAMPP to a folder named ‘xampp’ in your root drive (C:).

install-xampp-wordpress-local-pc

3. It may take quite a while (~ 10 minutes) for XAMPP to extract the package.

4. After the contents are extracted, the set up script will run automatically. A series of questions are asked, the first one being ‘Should I add shortcuts to the startmenu/desktop?’.

Enter y and hit Enter.

install-xampp-add-desktop-shortcut

5. In the next step, you are asked to locate XAMPP paths correctly. Press y for ‘Should I proceed?’.

install-xampp-locate-paths-correctly

6. In the next step, you can choose to install portable version of XAMPP on a USB drive. However, you will not be able to use services with a portable installation.

Enter n and and press Enter if you like to go ahead with the normal installation.

install-xampp-portable-usb-drive

7. The setup will now relocate XAMPP to the correct path if required. Once you see the ‘XAMPP is ready to use’ message, hit Enter to continue.

8. Next you will see a message informing the time zone that was set in php.ini file. Again hit Enter to continue.

9. In the last step of the installation, you are given various choices, amongst which the first one is to start the XAMPP control panel. Note that even if you exit the set up at this point by entering x, you can always start the XAMPP control panel either from Start Menu or desktop shortcut.

For now, enter 1 and hit Enter to start XAMPP control panel.

install-xampp-start-conotrol-panel

Starting Apache and MySQL

In XAMPP control panel, click on the Start button for both Apache and MySQL. In case Windows Firewall shows up a security alert, click ‘Allow Access’.

install-xampp-windows-firewall-alert

Now you should the status as ‘Running’ for both. In order to confirm that a web server is currently running on your PC, open http://localhost in your browser. This should bring up the XAMPP splash screen.

xampp-splash-screen

Click on a language of your choice to open XAMPP admin panel.

xampp-admin-panel

If you want to check the status of the XAMPP installation, simply click on ‘Status’ in the left navigation. All the services that are currently activated on your local web server are shown.

install-xampp-status

That’s it. You can now go ahead and install WordPress on XAMPP for your local WordPress theme testing and development activities.