In my earlier posts I have written about how to set up a Apache server manually on Linux Amazon, in this post I will show you a very interesting and easy alternative.
I recently discovered EasyEngine, which is a Linux shell-script used to manage sites that run WordPress or PHP on a NGINX web server. With EasyEngine you can set up a WordPress site in less than 2 minutes, what’s even more incredible about this script is that you can choose to use advanced cache options as W3Total Cache, WP Super Cache & Nginx’s FastCGI Cache. You can also boost the speed by enabling HHVM or PageSpeed using a single command!
EasyEngine is clearly made for web developers wanting an easy and fast way to set up a website. If you want to set up a similar site manually with NGINX, FastCGI Cache, HHVM and a SSL certificate it would take hours to configure everything, with EasyEngine you can do it with a simple command in a matter of seconds. EasyEngine will also tweak server configuration automatically so it will use all available capacity from memory and cpu.
So what are you waiting for? Let’s try this out! First off you have to start with a clean installation of Ubuntu 12.04, 14.04 or 16.04, you can also use Debian 7 and 8.
I will be using Ubuntu 16.04 and am going to start by installing EasyEngine with this command.
wget -qO ee rt.cx/ee && sudo bash ee
It will ask for your name and email during the installation. We can now create our first wordpress site, in this installation I want to use FastCGI Cache, HHVM and a free SSL certificate from Let’s Encrypt. We also want to set a username and password for wordpress. Remember that you won’t be able to create a SSL certificate, if you haven’t pointed the A record for your domain to the ip of your server.
ee site create example.com --wp --user=user --pass=password --wpfc --hhvm --letsencrypt
You will be asked some question when creating the ssl certificate and enabling hhvm, also remember that your SSL certificate must be renewed every third month, but this should be done by an automatic cron job that EasyEngine creates under the installation of the certificate.
Your site should now be created and everything should be working perfectly!