Is my process right?

Posted January 18, 2014 6.4k views
Hello guys! I want to bring my Wordpress blog to DO, but i want it to be the safest and fastest possible, so i will not have problems for a long time (i have high daily traffic, almost 50k per day) Here's what i intend to do: 1. Install Ubuntu 12.04 following this link 2. Deploy a Firewall 3. Install Fail2Ban 4. SSH keys then? 5. Install a Swap 6. Install NGINX, MySQL and PHP 7. Then Memcache (they said Wordpress need to "support" memcache and that there is a plugin for that, is that right? 8. FastCGI 9. APC (Alternative PHP Cache) 10. Migrate Wordpress (this link shows it using Apache, but i think it will do for me too as i will use Nginx) 11. Then install Varnish 12. Last, SFTP So guys, is this proccess cool?? Will you change anything? Is that steps order alright? Thank you so much!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
(this link shows it using Apache, but i think it will do for me too as i will use Nginx)

Make sure you do not install any packages such as Apache. You only need to migrate the files and the database.
11. Then install Varnish

I would go with instead as it contains Varnish config that works with Wordpress.

Other than that, everything else looks good. Good luck! :]
by Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. This tutorial covers installing wordpress on a LEMP stack (with nginx instead of apache), and then installing varnish.
Thank you Kamal!!

I've a silly doubt however xDDD

I isntalled Nginx following this tutorial:

While installing, i saw deveral files refering to fastcgi. Do Nginx comes with FastCGI by default? Or do i still need to follow the FastCGI tutorial:

by Etel Sverdlov
LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. This tutorial explains how to install the required repos to download nginx and php-fpm, how to install MySQL, how to install nginx, how to install php-fpm, how to configure php and nginx, and how to create a php info page. This tutorial is written for Ubuntu 12.04.
You will still need to install a FastCGI process manager for php, aka the php5-fpm package.
I see!!! nice, will do that!

I'm think about PHPMyAdmin, it doesn't matter if i install it right after nginx and fastcgi or only after wordpress, does it??
I wouldn't install PHPMyAdmin. You should use a local mysql client (e.g. HeidiSQL) instead and forward port 3306 on your droplet locally: