Install WordPress with Nginx on Ubuntu

This documents covers how to install WordPress with Nginx on Ubuntu.

WordPress is an open source web software used to create website based on PHP and MySQL. WordPress is used by more than 22.0% of the top 10 million websites as of August 2013, according to Usage of content management systems for websites.

nginx (engine x) is an open source reverse proxy server for HTTP mail, written by Igor Sysoev. It was used by 21.5% of the top 1 million websites, 29% of the top 100,000 websites, and by 38.5% of the top 1,000 websites according to Usage of web servers broken down by ranking.

LEMP: Linux Nginix MySQL PHP

I’m going to talk about it later

Download WordPress

Add A DNS record for you domain

In this step you need to add an “A” DNS record to point your domain to IP address of you server

Setup Server Block with Nginx

After build PHP site, the next step is to setup a name-based virtual server in Nginx.

edit file

root /var/; This is directory where you keep the WordPress source codes

Create a MySQL Database for WordPress

Go through the WordPress installation process

Open the new website: (change this to your new site). Follow the WordPress installation guide. Create wp-config.php file which stored database connection configuration. Than “run the install”. For more information check


Leave a Reply

Your email address will not be published. Required fields are marked *