Issue: Improve performance of WordPress websites; the speed at which resources are loaded. Example is a CentOS (LAMP) using cPanel/WHM
Solution: Install the Nginx reverse proxy cache (with the Engintron plugin).
Engintron improves the performance and web serving capacity of a WHM server. It does this by installing and configuring the Nginx web server to act as a reverse caching proxy for static files such as: CSS, JS, images etc. It also adds a micro cache layer which improves the performance of dynamic content generated by WordPress.
Understandably this can provide a very significant improvement in the speed of websites on a server, over using Apache alone. Nginx will serve requests for access of static assets like CSS, JS, images etc.
Among several significant changes, Apache will be run through ports 8080 and 8443. Nginx will listen on ports 80 and 443. If using the CSF firewall, Engintron will make this change for you (TCP_IN and TCP_OUT). During the installation, websites will be unavailable for a brief period.
SSH into the server and run the following installation commands:
cd / rm -f engintron.sh wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh bash engintron.sh install
If you need to uninstall at some stage, the command to do so is:
bash /engintron.sh remove