Skip to content

Installing and Configuring XAMPP

Bucky Roberts edited this page Jul 16, 2015 · 5 revisions

First, we need to install and configure XAMPP so that we have a local environment for development.


Step 1

Download and install XAMPP from the official XAMPP website.

  • XAMPP is installed using a simple wizard
  • Keep all of the default settings during installation


Step 2

After XAMPP is installed, open the file C:\xampp\apache\conf\extra\httpd-vhosts.conf


Step 3

Add the following code snippet to the bottom.

  • This tells XAMPP that when we go to developers.thenewboston.com in our browser, take us to this folder
## Custom configuration

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/thenewboston-Social-Network"
    ServerName tnb-dev.com
</VirtualHost>


XAMPP is now installed and setup properly. You are now ready to edit your Windows host file.