Installing and configuring XAMPP

XAMPP is a really versatile web development kit for PHP and/or Perl. It includes Apache, MySQL, PHP, Perl and a lot of other nifty programs, it has a nice control panel, even has an FTP server. Best of all: it is cross-platform. In this how to we will install it and configure it.

First of all, download the windows installer from here and start it. It will detect if you have an anti virus that might interfere with the installer, best practice here would be to stop the anti virus until the installer finishes. Press Yes if you done that:

01-xampp-01

This notification tells you that you have UAC enabled and you shouldn’t install it into program files. Also note that you have to run the control panel in elevated mode (run as administrator) but we get to that later. Just press OK:

01-xampp-02

The installer will start, press Next:

01-xampp-03

You can select the folder where XAMPP should be installed. Usually it is best to put it on the root directory of a drive that has enough space. Select the folder and press Next:

01-xampp-04

Deselect the Learn more about BitName for XAMPP if you don’t really care about it (you shouldn’t) and press Next:

01-xampp-05

Ready to install, press Next:

01-xampp-06

The installer takes quite a lot of time even with the anti virus disabled:

01-xampp-07

When it’s all done, deselect the Do you want to star the Control Panel now? option (cause it won’t work properly because of UAC mentioned above) and press Finish:

01-xampp-08

To start the XAMPP control panel simply go to the start menu, find it, right click it and select Run as administrator:

01-xampp-09

The XAMPP control panel will appear. You can start Apache and MySQL by pressing the Start button next to them. Those are the 2 modules we will be focusing on:

01-xampp-10

If they started successfully you should see something similar to this:

01-xampp-11

If Apache cannot start and you use Skype we need to change some settings in it cause it will interfere with XAMPP (or any kind of http server really). Go to Skype, select the Tools than Options menu to get to the Options panel. There expand Advanced and select Connections. Un-check Use port 80 and 443 as alternatives for incoming connections and press Save:

01-xampp-12

Pointing your browser to http://localhost/ should take you to the XAMPP splash screen. Click on English:

01-xampp-13

This is the XAMPP welcome screen. You can configure some more common settings here. Click on Security on the left hand menu under Welcome:

01-xampp-14

This will show you the security status of your XAMPP server, by default no passwords are set for anything. We want to change that so click the link underneath the table:

01-xampp-15

Here you can set the MySQL root password and limit the access to the XAMPP web config with a username and password. Enter a password for thy MySQL root user and press Password changing:

01-xampp-16

It should notify you if it was set up correctly:

01-xampp-17

Now enter a username and a password for XAMPP Directory Protection and click Make safe the XAMPP directory:

01-xampp-18

It should give you a success message:

01-xampp-19

Now if you click on Security again (or refresh the page) it will ask for the password you just set:

01-xampp-20

The Security panel should now show that everything is secure:

01-xampp-21

If you phpMyAdmin u can reach it with http://localhost/phpmyadmin. Visit it and check if your MySQL root password is set up properly:

01-xampp-22

If not, you can always reset it via the XAMPP web config.

Leave a Reply

Your email address will not be published. Required fields are marked *