Learn how to install Nginx on a cPanel Server. Follow step by step tutorial to learn & apply.
To install NGinx on cPanel servers we recommend you use the product EnginTron available at https://engintron.com/
This is a free plugin for cPanel.
- Login to WHM on your VPS
- Go to WHM -> Clusters -> Remote Access Key. Click 'Generate a new access key'
- See: https://github.com/engintron/engintron for the latest installation instructions. It is very simple however, and at time of writing you need to login to your server via SSH and type:
rm -f engintron.sh
wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh
bash engintron.sh install
- For stats to work you need to adjust a setting in WHM to pass thru Nginx logs. To do that go to WHM -> Service Configuration -> Apache Configuration. Then click on 'Piped Log Configuration'. Check the 'Enable Piped Apache Logs' box and click 'Save'.
- Now login to WHM again and go to Plugins. You will now see the EnginTron Control Panel plugin. Click on it and ensure it is active. Test your sites to ensure they are working.
- Now go to WHM -> Plugins -> ConfigServer Security&Firewall
Go to the ldf - Login Failure Daemon section and there is a drop down box which has csf.ignore selected. Change this to: csf.pignore then click 'Edit'
Add the lines:
Click 'Restart LFD'
This ensures you are not notified about nginx running constantly by the system.