Webinoly is just the perfect tool for NGINX experts. Give it a try!
+4 votes
by Rookie
edited by

WP Rocket is a cache plugin for wordpress, many people like this solution and prefer to use it instead of the fastcgi cache.

If you have a license of the plugin and want to use it in conjunction with Nginx to avoid loading in PHP follow this simple tutorial.

1. Install and active the plugin

2. In FTP acess /var/www/YOURDOMAIN.COM and edit your wp-config.php file

  • Add this code: define('DISABLE_WP_CRON', true);
  • Note: if the plugin is already active you will see that your file has already been edited by it:

3.  Acess you ssh and add an new cronjob (to avoid php consults by wordpress)

4. Now lets begin to add nginx configs, in your ssh add this commands, one per one

5. Now, include this in your nginx  

  • In FTP acess /etc/nginx/sites-available and edit the file with your site domain
  • Add this: include rocket-nginx/default.conf;

6. Reload the nginx

  •  service nginx reload

you can check if it is caching directly through nginx (without consulting wordpress) by the site header:

source: https://github.com/maximejobin/rocket-nginx

by Expert

Thanks for your contribution! smiley

by Rookie

Where to find /etc/nginx/sites-available, Unable to find on my ftp.

by Talented

Nice guide.

I was wondering how much do you benefit from the above setup?

According to a wp-rocket article, if the server supports nginx caching it should work out-of-the-box, without any further setup (and since I've been using it for the past 2 years, I can confirm that it indeed works fine).

Also, by disabling wp-cron isn't there a risk of breaking some plugin that might need it?

2 Answers

0 votes
by Rookie
Note: your webinoly installation must have been done without the fastcgi cache option!
0 votes
by Rookie
Thank you, It worked.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.