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 domain.com --wp --basic
WP Install with W3 Total Cache plugin:
ee site create domain.com --wp --w3tc
WP Install with WP Super Cache plugin:
ee site create domain.com --wp --wpsc
Obviously you have to replace “domain.com” 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 domain.com --wp --basic
pic:
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 domain.com/wp-admin 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
Hello, is it possible to host mysql database and content on two different servers?
Yes it is very possible. That’s what many say “offloaded sql” or simply “remote sql server”
seems easy but
1. how do i migrate site
2. how do apache settings for w3tc affect nginx once mograted?
You can use ftp, rsync or zip all your web content and wget it from new server. EasyEngine provides premade nginx conf for w3tc
Hi Sawiyati,
Thanks for this great tutorial, I was trying to deploy a WordPress site following the steps in this tutorial.
but I most of the parameters ee.conf which I have got are different from the one, what you have mentioned.
Below is the copy of my ee.conf file
# EasyEngine (ee) configuration file
[stack]
apt-get-assume-yes = true
gpg-key-fix = true
ip-address =
[mysql]
grant-host = localhost
db-name = false
db-user = false
[wordpress]
prefix = false
user = admin
password =
email = someone@gmail.com
Please do let me know whether do I need to put these wpadminuser, wpadminpass and wpadminemail parameters, as you have mentioned in the article that they are very important.
Also let me know what process do I need to follow, If I would like add more WordPress site on this same server.
Also let me know when do I need to add Domains and link it to my server?
Thanks In Advance !
That’s optional. The [wordpress] section allows you to automatically use those entries by default on every WordPress installation.
Hi! I’m newbie with easyengine ..
It’s possible to use not the latest WP version with EasyEngine?
ej. I’ve a multisite subdomain based wordpress install but the themes are only compatible with 3.8+ WP. and have problems with 4.0. May I search new themes for this sites or could I install other version with ee commands?
Thanks!
Yes you can install older version of WP but you have to do that manually 🙂
Hi Sawiyati, did you ever try mail with EasyEngine? Any experience with that?
Thanks, David
how to setting name server and ip name server ?
I did my own post regarding EasyEngine on my blog if you would like to check it out, here’s the link https://odinsql.com/2014/12/the-quick-and-easyengine-wordpress-on-ubuntu-14-04/