Just a quick tutorial with images on how to install a WordPress on Ubuntu VPS Nginx that is running and MySQL. Using HHVM PHP that is replacing is thought can server site faster which is extremely lightweight for server’s resources. Whilst not numerous scripts that are PHP made compatible, WordPress is claimed compatible with HHVM (since version 3.9). So with HHVM.

Building HHVM + Nginx Server

Step 1 – Follow all steps in my previous tutorial and make sure you have installed it correctly.( if you want to build fast-loading a WordPress blog using bleeding edge technology, try running it*******)

How to set up Nginx, HHVM and MySQL on Ubuntu 15.04

Step 2 – Create web that is new for you WordPress blog. In this example I use my a sub-domain (coz I have no spare domain( that is idle), take a moment to displace it with your own personal.

mkdir -p /var/www/
 chmod -R 755 /var/www/
 Chown www-data that are-R /var/www/

Replace with your own domain / subdomain name, in my case it looks like this:


Step 3 – Now let’s create new virtual hosts file for your upcoming WordPress site:

nano /etc/nginx/sites-available/

then copy paste this configuration:

server {
   listen 80;
     include hhvm.conf;
     access_log   /var/log/nginx/access.log;
     error_log    /var/log/nginx/error.log;
     root /var/www/;
     index index.php;
     location / {
         try_files $uri $/index.php that is uri/args; 

In my situation it appears like this:


Now conserve modifications and leave the editor (in Nano its Control+O to truly save then Control+X to leave).

Step 4 – Now we must produce symbolic url to the latest digital hosts file so that it are enabled:

ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

Next, restart Nginx:

service nginx restart
 solution hhvm restart



Install WordPress

Step 1 – demonstrably we need to firstly install WordPress to your vps:



Step 2 – Now copy latest.tar.gz file towards internet directory and draw out the primary WordPress files inside that package while additionally getting rid of the wordpress directory by using this demand:

cp latest.tar.gz /var/www/
 cd /var/www/
 tar -xzvf latest.tar.gz --strip-components=1

Step 3 – Login to MySQL as root then create brand new individual, password and database title:

mysql -u root -p

then problem these demand lines changing “wordpress”, “dbuser” and “pass123456” with your own personal:

 CREATE CONSUMER [email protected];
 GIVE each PRIVILEGES ON wordpress.* to [email protected] IDENTIFIED with 'pass123456';



Step 4 – Rename wp-config-sample.php file to wp-config.php then modify it making use of your favorite editor like Nano:

mv wp-config-sample.php wp-config.php
 nano wp-config.php

then offer brand new MySQL qualifications you’ve simply developed, right here’s the exemplory instance of my own:


Step 5 – start your web that is favorite browser navigate to your domain which in my case is and proceed with the installation procedure:


Hit the button that is continue fill out all necessary areas:


That’s it. It’s simple to login to WordPress Dashboard.


Enjoy your newly built WordPress website. Don’t neglect to follow me personally on Twitter or sign up to my publication (via FeedBurner) therefore you’ll rise above the crowd about brand new articles faster.

About The Author

How exactly to produce a higher Availability Setup with Heartbeat and IPs that are floating Ubuntu 16.04

Previous article

Just how to Install Zulip Chat Server on Debian 9

Next article

You may also like


Leave a Reply

More in hhvm