Question

Is my process right?

  • Posted January 18, 2014

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 https://www.digitalocean.com/community/articles/initial-server-setup-with-ubuntu-12-04

  2. Deploy a Firewall https://www.digitalocean.com/community/articles/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server

  3. Install Fail2Ban https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-ubuntu-12-04

  4. SSH keys then? https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps

  5. Install a Swap https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04

  6. Install NGINX, MySQL and PHP https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04

  7. Then Memcache https://www.digitalocean.com/community/articles/how-to-install-and-use-memcache-on-ubuntu-12-04 (they said Wordpress need to “support” memcache and that there is a plugin for that, is that right? http://wordpress.org/plugins/wp-ffpc/

  8. FastCGI https://www.digitalocean.com/community/articles/how-to-setup-fastcgi-caching-with-nginx-on-your-vps

  9. APC (Alternative PHP Cache) https://www.digitalocean.com/community/articles/how-to-install-alternative-php-cache-apc-on-a-cloud-server-running-ubuntu-12-04

  10. Migrate Wordpress (this link shows it using Apache, but i think it will do for me too as i will use Nginx) https://www.digitalocean.com/community/articles/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime

  11. Then install Varnish https://www.digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04

  12. Last, SFTP https://www.digitalocean.com/community/articles/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps

So guys, is this proccess cool?? Will you change anything? Is that steps order alright?

Thank you so much!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

I wouldn’t install PHPMyAdmin. You should use a local mysql client (e.g. HeidiSQL) instead and forward port 3306 on your droplet locally: <a href=“https://library.linode.com/databases/mysql/mysql-ssh-tunnel”>https://library.linode.com/databases/mysql/mysql-ssh-tunnel</a>.

I see!!! nice, will do that! <br> <br>I’m think about PHPMyAdmin, it doesn’t matter if i install it right after nginx and fastcgi or only after wordpress, does it??

You will still need to install a FastCGI process manager for php, aka the php5-fpm package.

Thank you Kamal!! <br> <br>I’ve a silly doubt however xDDD <br> <br>I isntalled Nginx following this tutorial: https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 <br> <br>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: https://www.digitalocean.com/community/articles/how-to-setup-fastcgi-caching-with-nginx-on-your-vps <br> <br>thanks!!

<blockquote>(this link shows it using Apache, but i think it will do for me too as i will use Nginx)</blockquote> <br>Make sure you do not install any packages such as Apache. You only need to migrate the files and the database. <br><blockquote>11. Then install Varnish https://www.digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04</blockquote> <br>I would go with <a href=“https://www.digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04</a> instead as it contains Varnish config that works with Wordpress. <br> <br>Other than that, everything else looks good. Good luck! :]