Part 1 – Install a Testing Server

It’s easy to install a testing server if you install one of the free ready made open source AMP, or LAMP packages (Linux, Apache, MySQL, PHP/Perl/Python).

The Testing Server
The Testing Server

This article is split into four parts:


Topics:


Download a Testing Server package:

Download your chosen local web server package. There are various free, open source packages available:

  • XAMPP (windows, Linux & OSX).
  • MAMP (windows & OSX).
  • A list of other AMP (Apache, MySQL, PHP) packages can be found on Wikipedia.

You can download all the AMP components individually (Apache, MySQL, PHP), but it is far easier with one of these configured ‘ready to install’ packages.

Download a Testing Server (or AMP Stack). In this case i'm using XAMPP...
Download a Testing Server (or AMP Stack). In this case i’m using XAMPP…
Video of a Testing Server Being Downloaded:
Download a Testing Server Package (an AMP stack) – XAMPP

Notes:

  • If the web server package asks which version of PHP, pick one of the more recent version numbers, or check which version your hosting provider uses, (if you have one?).
  • You can download a testing server ‘package’ configured to install WordPress at the same time. This is great for single websites, but if you plan to install more than one website, you may want to install individual copies of WordPress, for each site.

Installing the Testing Server Package:

I am going to use XAMPP (an AMP stack) for Windows in this example. XAMPP is one of the most common, open source ‘testing’ server packages available. There is also a video at the bottom of this section, showing the installation process

  1. Open the testing server package (AMP stack) file you downloaded earlier, to start the setup (installation) process.
Opening the Testing Server (or AMP Stack) Download - I'm using XAMPP
Opening the Testing Server (or AMP Stack) Download – I’m using XAMPP
  1. If your antivirus is running, you may get a warning message. I’ve not had a problem with this, so I click ‘Yes’ to continue. (If you have any problems, read the text in the warning message).
Testing Server Install Warning - Is Your AntiVirus Running - XAMPP
Testing Server Install Warning – Is Your AntiVirus Running – XAMPP
  1. You may get another warning message about ‘User Account Control (UAC). Again, I have not had a problem with this, so I click ‘Yes’ to continue. (If you have any problems, read the text in the warning message).
Testing Server Install Warning - User Account Control (UAC) - XAMPP
Testing Server Install Warning – User Account Control (UAC) – XAMPP
  1. The ‘Setup’ window will now open. Just follow the installation instructions…
Setting up (Installing) the Testing Server - XAMPP
Setting up (Installing) the Testing Server – XAMPP
  1. Create a folder for the ‘localhost’ testing server on your computer hard drive. It is useful to call the folder the same name as the type of server package (AMP stack) installed. i.e. XAMPP, MAMP, or WAMP, etc.
Testing Server Install Location (Default) - XAMPP
Testing Server Install Location (Default) – XAMPP
  1. You can install the testing server in a different location if needed (this is my preference, should I ever need to reinstall Windows).
Testing Server Install Location (New) - XAMPP
Testing Server Install Location (New) – XAMPP
  1. Once you have selected your install location, click next.
  2. The testing server package will start unpacking and installing the files.
Installing the Testing Server - Unpacking and Installing - XAMPP
Installing the Testing Server – Unpacking and Installing – XAMPP
  1. Near the end of the installation, XAMPP will ask if you want to ‘start’ the Control Panel? Select the checkbox, as there is still a couple of steps to go, before installation is fully complete (though you can complete it later).
Installing the Testing Server - Start the Control Panel - XAMPP
Installing the Testing Server – Start the Control Panel – XAMPP
  1. When the install is complete, a dialogue box will appear for you to select your language preference.
  2. If you placed a tick in the checkbox for the control panel to open during the install process, the Control Panel will open… This is actually useful, as we need to let the Control Panel applications through the firewall.
  3. Start Apache by clicking the ‘Start’ button.
The Testing Server Control Panel - Start Apache - XAMPP
The Testing Server Control Panel – Start Apache – XAMPP
  1. A ‘Windows Security Alert’ window will open. Let Apache through the firewall by clicking ‘Allow access’.
The Testing Server Control Panel - Let Apache Through the Firewall - XAMPP
The Testing Server Control Panel – Let Apache Through the Firewall – XAMPP
  1. As with Apache, Start MySQL, by clicking the ‘Start’ button.
  2. Another ‘Windows Security Alert’ window will open. Let MySQL through the firewall by clicking ‘Allow access’.
  3. Your testing server (XAMPP) is now running.
The Control Panel -The Testing Server is Running - XAMPP
The Control Panel -The Testing Server is Running – XAMPP

When you Start Apache and MySQL, it means that the server is running. WordPress is a Content Management System (CMS) and needs the server running to work correctly (on a ‘live’ website, the server runs all the time and is pre-installed on the server).

You will need to build your website within this XAMPP server structure (in the htdocs folder), that you have just installed.

Video of the Testing Server (XAMPP) installation Process:
Install a Testing Server Package (an AMP stack) – XAMPP

Part 2 – Getting Ready to Install WordPress

Download WordPress (Get WordPress)
The other parts in this article are: Part 1 – Install a Testing Server.Part 3 – Install WordPress on a Testing Server.Part 4 – A WordPress Installation Error? Topics: Download […]

Part 3 – Install WordPress on a Testing Server

Installing WordPress - 'Success' - Log In
The other parts in this article are: Part 1 – Install a Testing Server.Part 2 – Getting Ready to Install WordPress.Part 4 – A WordPress Installation Error? Topics on This […]

Part 4 – A WordPress Installation Error?

WordPress - Error Establishing a Database Connection (Featured Image)
The other parts in this article are: Part 1 – Install a Testing Server.Part 2 – Getting Ready to Install WordPress.Part 3 – Install WordPress on a Testing Server. Topics […]