Recommended VPS Complete list of best VPS hosting providers.

How to Install WordPress on Nginx Ubuntu with EasyEngine

This tutorial with pics explain how to install WordPress under 5 minutes on Nginx Ubuntu VPS using easyengine tool. This article also part of my previous article about EasyEngine, a nice easy tool to quick install Nginx (complete stack) on Ubuntu-based VPS. So please read that first if you are wondering what is it and how to install it.

Step 1 – Install EasyEngine (ee) following my previous guide here.

Step 2 – Edit default ee configuration using your favorite text editor (I use Nano):

nano /etc/easyengine/ee.conf

Step 3 – Look for these lines of configuration:


Step 4 – Edit necessary lines (or the parts you think it needs to change). A hint, the most important part is wpadminuser, wpadminpass and wpadminemail.


Once done, save changes and exit (Control+O then Control+X).

Step 5 – Now issue one of these commands to install wordpress:

Basic WP install (without any caching):

ee site create --wp --basic

WP Install with W3 Total Cache plugin:

ee site create --wp --w3tc

WP Install with WP Super Cache plugin:

ee site create --wp --wpsc

Obviously you have to replace “” with your own domain name. Complete list of available commands can be found here.

Why should I use different command when I need to install WordPress with W3TC or WPSC plugin? Good question. That’s because both plugins need to add specific rewrite rules / entries in .htaccess file (Apache) while Nginx does not support .htaccess so you’ll have to specify either W3TC or WPSC’s custom .htaccess rules to Nginx’s configuration (obviously you’ll need to convert from htaccess to nginx conf at first). Normally you can do that manually following my articles here for W3TC and here for WPSC. Luckily, using EasyEngine you don’t have to do that manually as ee will automate the task and do the hard part for you.

In this example I’ll install basic WP site:

ee site create --wp --basic



That’s it. Now you can test your newly installed WordPress by opening it on your browser:


Do not forget to login to WP Dashboard page via and sign in using defined username and password in step 3 above.

Another example:


That’s it.

Can I use WP SEO-friendly / pretty permalink with Nginx? Can I change default WP permalink? Yes you can. Pretty permalink is enabled by default and yes you can change it to something else without having to edit Nginx conf file (or .htaccess in Apache).

If you did everything above correctly I believe the task can be done in 5 minutes. Enjoy


Add a Comment

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

Get more stuff like this
in your inbox

Subscribe and get interesting stuff plus faster updates to your email.