XAMPP is free, open source software that can be used to run a website from a local computer for testing purposes before uploading the website to a web server. It comes with Apache, MySQL, Filezilla, Mercury and Tomcat. Learn more about XAMPP on the website here.
Downloading and installing XAMPP
Click here to download the latest version of XAMPP. Open the file to start the installer. If an antivirus is installed on the computer, a warning message will be displayed. Click the Yes button to continue with installation. In the rare case that installation fails, temporarily disable the antivirus and try running the installer again.
If XAMPP is being installed on Windows Vista or later, then a message will display warning that XAMPP cannot be installed to the Program Files directory if UAC is enabled. Click the OK button to continue.
The Welcome page of the installer will then be displayed. Click the “Next >” button to continue.
The Select Components page will then be displayed. Leave everything ticked and then click the “Next >” button.
The Installation Folder page will then be displayed. By default, XAMPP will install to the
C:\xampp folder to prevent any issues with UAC. It can be installed to the
Program Files directory only if UAC has been disabled. Click the “Next >” button to continue.
The BitNami for XAMPP page will then display with a link to BitNami for XAMPP, which will be launched in the default browser after clicking the “Next >” button. From that page, it is possible to download modules for WordPress, Joomla!, Drupal, MediaWiki, Moodle, ownCloud, SugarCRM, Magento and DokuWiki. If none of these are going to be installed using XAMPP, untick the checkbox and then click the “Next >” button.
The “Ready to Install” page will then be displayed. Click the Next button to begin installation of XAMPP files. The installer will then unpack its files and create an uninstaller.
When installation completes, the “Completing the XAMPP Setup Wizard” page will be displayed. By default, the XAMPP Setup Wizard will launch the Control Panel after clicking the Finish button, but it can instead be manually launched using the XAMPP Control Panel icon on the desktop.
Starting XAMPP services
The XAMP Control Panel can be used to start and configure XAMPP services. Use the Start buttons to start Apache and MySQL. There are also buttons to start FileZilla, Mercury and Tomcat if they are required.
After enabling MySQL, click the Admin button to open phpMyAdmin, which can be used to view the default databases and add new ones. Learn more about phpMyAdmin here.
Adding website files
By default, the website files are stored in the
C:\xampp\htdocs folder. Create a subfolder for the website and then copy the website’s files into the subfolder. The website can then be accessed by opening
http://localhost/subfolder in a web browser.
If running an installer that requires database details, enter the database server address as localhost, the database name as test, the database username as root and leave the password blank. Alternatively, use phpMyAdmin to create a separate database and user and enter those details instead.
Editing the php.ini file
To edit the
php.ini file, open the XAMPP Control Panel, click the Config button for Apache and then click the “PHP (php.ini)” menu item. The
php.ini file will then open in a text editor. Edit the PHP configuration, click File > Save or press Ctrl+S to save changes and then close the window.