Configuring a VPS with EasyEngine

I gave a workshop about WordPress at Campus Party Brasil and my website was offline. How did I fix that?

A few days ago I attended Campus Party Brazil (#CPBR9) and I gave the workshop Working with custom posts and fields. My presentation was great but, in the days before, I was having issues with my DigitalOcean server and my website was offline!

In this post I’ll talk about the tool I used to fix that issue.

EasyEngine.io is a python tool to easily manage your WordPress websites with NGINX webserver, supported on Ubuntu and Debian Linux Distributions.

EasyEngine is maintained by rtCamp, company that created rtMedia (former BuddyPress Media), and I got surprised to know that it was launched officialy in 2013!

It’s easy to be installed on your server, you need to have SSH access though. So forget about your shared hosting server.

The best option is to install it on a fresh server, you can also find some guides about how to create new servers in AWS, Linode, and DigitalOcean in EasyEngine website.

After creating your new server, access it via SSH and type the following command in order to install the latest EasyEngine (ee) version:

$ wget -qO ee rt.cx/ee && sudo bash ee

Now we can create your website using an EasyEngine command (don’t forget to change example.com for your own domain):

$ sudo ee site create example.com --wpfc

Done! You’ve installed WordPress using Nginx, Nginx cache, php5-fpm and MariaDB on your server.

With these two commands, I was able to create a new WordPress installation and migrate all my content (database and files) in less than five minutes.

The default settings are so great that you can even disable PHP on your server after generating your cache and your website will stay online. Do you want to test it?

Access some page of your website and run the following command:

$ sudo service php5-fpm stop

Now come back to your website and refresh that page. It’s still working!

Don’t forget to enable your PHP again 😉

$ sudo service php5-fpm start

Even though EasyEngine has a list of useful commands, ee site create is my favorite one. With that command, you can create 15 types of WordPress installations.

Thanks, Claudio Sanches, for introducing me to this project.

One comment

Leave a Reply

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

%d bloggers like this: