admin/ July 24, 2016/ Linux/ 0 comments


WordPress is web software you can use to create a beautiful website, blog, or app. We like to say that WordPress is both free and priceless at the same time.


A complete set of web serving, proxying, acceleration, and load-balancing capabilities for both HTTP-based and TCP-based services.


Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 – 1000x, depending on your architecture.

Please follow the below steps to install wordpress on Ubuntu 16.04.

Step-1-: Install Nginx, required packages and configure Nginx webserver.

It will ask for the mysql root password prompt like below-:

Make backup or nginx virtual host.

Create a new default virtualhost file

Copy the below contents and paste it.

Restart the nginx server.

Check the nginx is working on port 8080.

if netstat command not found.


Step-2: Configure the Varnish Caching Server.

Open the varnish configuration file.

Change the port like below configuration.

Note-: changed -a :80 from -a:6081
Change the port on below file too.

Note-: changed -a :80 from -a :6081

Restart nginx and varnish server.

Confirm all the running ports using below command.


Nginx must listen port and varnish must port

Step-3: Download and Install WordPress.

Change the permission.

Change the group for www-data.
chown -R www-data:www-data /var/www/html/wordpress

Step-4: Create a Database and User for WordPress application.

The below required commands for database creation and access.

Step-5: Open your web browser and follow the screens.


Open the wordpress dashbord.
http://localhost/admin or or http://ip/admin

Gotechnies WordPress Blog

Rating: 4.8
Votes: 37
Reviews: 14

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.