Basic XAMPP Web Server Configuration


This XAMPP tutorial assumes you've followed the steps above to install XAMPP on drive C in Windows. The following is a list of essential directories that you should be familiar with.

  • htdocs; this is the root directory for the website. This directory will house all of our PHP code.
  • Mysql: This directory contains all the MySQL database engine information, which operates on port 3306 by default.
  • PHP - the PHP installation files are located in this directory. It includes a crucial file called php.ini. This directory is where you set the parameters for how PHP works on your server.

The Apache webserver runs on port 80 by default. You can use a different port number if port 80 is already used by another web server. For this tutorial, we'll assume we're utilising port 80. It's worth noting that SKYPE utilises the same port. Turn off Skype if you wish to utilise XAMPP for PHP on port 80.