Setting up a testing environment

Before we can do any real benchmarking runs, we firstly need to set up our testing environment. For these purposes, we will be using a VPS with Ubuntu 14.04 pre-installed. To reproduce the steps, you can install that version of Ubuntu on your local machine or buy a cheap VPS plan from DigitalOcean.com or any other hosting provider. We will need two of these VPS servers, one for hosting the WordPress-powered web site and the other for simulating real visitors requesting pages on the first VPS. Let us name the first server the hosting server and the second one the visitors simulating server. After obtaining the VPS servers, ssh into the hosting server and execute the following commands.

Installing Apache HTTP and Nginx

apt-get install apache2
apt-get install nginx

You might test if the installation was successful by visiting your VPS server IP address. Apache2 welcome screen should greet you.

Installing PHP and HHVM

PHP v5.6+

In order to install PHP version 5.6+, we need to add a new PHP5.6 PPA.

add-apt-repository ppa:ondrej/php5-5.6

apt-get update # to update the sources list

If the command is not found, it means our VPS server needs additional helper tools. We can install them by issuing following commands:

apt-get install python-software-properties

apt-get install software-properties-common

Now, we can install PHP by running this command:

apt-get install php5

HHVM v3.5.0+

# adding HHVM repository
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
sudo add-apt-repository 'deb http://dl.hhvm.com/ubuntu trusty main'
sudo apt-get update

# installing HHVM
sudo apt-get install hhvm

Installing MariaDB

Downloading WordPress

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: