Question

How to setup FastCGI cache for WordPress sites?

Posted December 27, 2021 228 views
NginxWordPressCaching

After years of cPanel hosting I have considered to setup my own server in DigitalOcean for my high-traffic WordPress (WooCommerce). I am getting tired of dealing with shared hosting companies.

Also I don’t want to pay $300/mo for WP Engine or whatever. Other dropshipping guys have said a cloud server is enough to handle my traffic is maybe $5 or $10 each month.

I used Cloudflare for my CDN but I know caching is going to be critical for my site.

I know that Nginx FastCGI cache is the most popular option. However I’m used to only WordPress caching plugins.

Just for my information (not sure I will be able to do it alone) I would like to understand what is required if I will do:

  • setup new DO cloud server
  • install Nginx, PHP, MySQL etc
  • activate FastCGI cache
  • how to manage the settings in the future
1 comment

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
1 answer

Hi there,

Indeed WordPress + Nginx + FastCGI + Cloudflare sounds like a very solid setup.

I could suggest the following approach:

  • To install WordPress with Nginx you can follow the steps here:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-20-04

  • After that to enable FastCGI, you can follow the steps here:

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

On another note, make sure to also tweak your MySQL service for optimal performance by following the steps here:

https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability

Let me know how it goes!
Regards,
Bobby

by Jesin A
Here's how to setup FastCGI caching with Nginx on your VPS.