If you are learning to be a developer or building a site, clearly you would need some way of testing what you’re building so that you can get rid of whatever bugs your site may have. This is where XAMPP comes in, XAMPP is a packaged development software, that comes with everything you need to set up your test server, and get your work done.
Enough backstory and explanations lets get started
1. Download Xampp
Head over to the Apachefriends site
There are many different distributions, for different OS’s choose the one for your Operating System (note a few of the steps later on may differ as I am using a windows computer)
Download and save the Installer
2. Install Xampp
Run the installer (preferable as Administrator), and select your language.
Next, decide on where you would like to install the Xampp folder (it’s better to leave it where it is by default as it’s easier to find)
Click install (don’t install any of the services as they make uninstalling the program difficult)
Chill out and relax while it installs
3. Run Xampp
Xampp install like any other program, so all you have to do is find the shortcut and Run As Administrator (the run as administrator isn’t really necessary but when you’re working with the program it will make doing certain tasks easier as the program is already elevated)
##Note Xampp clashes with Skype, so you have to go into the Skype settings>advanced>connection and uncheck “where it says use port 80 and 443” as those are Apache’s default ports. For the changes to take effect you will need to close Skype.
Start Apache and MySQL
Once those are up and running you can reopen Skype (after you do the fix above the first time you won’t have any problems with the two programs again)
Windows would usually bring up a firewall exception screen, just allow access
Open up your browser and type in http://localhost you should see the Xampp default screen (once you see it, you have just installed a local test server successfully and you can now brag a bit)
4. Set Up MySQL Database
Open back up the Xampp control panel and click the admin button next to MySQL.
That would open up PhpMyAdmin web app.
Click on the Databases tab; that would display a “Create Database form”
Enter the name you would like (use something sensible, that reflects what you’re going to be using the database to do)
The defaults would do, and click the create button
#Note If you are using a live site you would HAVE TO create a specific user and give the user a password, because we are testing locally you don’t have to you can use the default user Root; which doesn’t have a set password
5. Download and Configure WordPress
head over to wordpress.org and download and save a copy of wordpress on your computer.
Next you need to extract it to the xampp>htdocs folder (you can choose to have the WordPress installation in the root of the htdocs folder or in a subfolder … I usually use subfolders for neatness)
Once you have extracted WordPress to the folder, open up wp-config-sample.php and find the MySQL settings.
/** The name of the database for WordPress */ define('DB_NAME', 'database'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', ''); /** MySQL hostname */ define('DB_HOST', 'localhost');
Enter the database name you had created earlier as well as the user and or password if you had gone ahead and created it, if you didn’t you can use ‘root’ and for the password just leave it blank.
Save the file as wp-config.php in the same folder as wp-config-sample.php
6. Install WordPress
Open back up your browser and go to
http://localhost/+folder name+/ (
+folder name+ represents the folder you installed WordPress in)
Once you did everything correct, the WordPress installation wizard will guide you through the rest.
When the install is done simply log in at
http://localhost/+folder name+/wp-admin and you’re good to go.
If you followed this tutorial and saw the screen you have just installed WordPress locally on your computer, you can use xampp to install similar services (Drupal, Joomla … etc)