install-wordpress-in-browser3

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*******)

Read:
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/example.org
 chmod -R 755 /var/www/example.org
 Chown www-data that are-R /var/www/example.org

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

create-new-hosts-file

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

nano /etc/nginx/sites-available/example.org.conf

then copy paste this configuration:

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

In my situation it appears like this:

test-servermom-nginx

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/example.org.conf /etc/nginx/sites-enabled/example.org.conf

Next, restart Nginx:

service nginx restart
 solution hhvm restart

pic:

symbolic-link-nginx

Install WordPress

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

wget http://wordpress.org/latest.tar.gz

download-wordpress

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/example.org
 cd /var/www/example.org
 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 DATABASE wordpress;
 CREATE CONSUMER [email protected];
 GIVE each PRIVILEGES ON wordpress.* to [email protected] IDENTIFIED with 'pass123456';
 FLUSH PRIVILEGES;
 stop

screenshot:

mysql-create-new-db

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:

wp-config-edit

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

install-wordpress-in-browser

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

install-wordpress-in-browser2

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

install-wordpress-in-browser3

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here