How to Install Nginx Admin in a VPS
How to Install Nginx Admin in a VPS:
Nginx Admin is plugin for cPanel server to manage Nginx from WHM. Nginx will work as a front end reverse proxy of your cPanel server along with Apache.
Nginx is known for its high performance, speed & low resource usage. Many enterprises, such as WordPress & Comodo, already switched to Nginx as it proves to be the most powerful web-server.
In this tutorial we will install step by step the Nginx Admin cPanel plugin.
If you installing Nginx Admin for the first time, You must need to follow these steps.
Installation:
Step 1:
You need to generate a WHM access hash (Remote Access Key)
Login to WHM as root
Go to Cluster/Remote Access » Setup Remote Access Key
Click Generate new key
Step 2:
Download the latest Nginx Admin Package.
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
If you are installing first time you have to run Python fix.
./pythonfix
Run install script
./nginxinstaller install
Step 3:
Wait couple of minutes & reinstall Apache.
/etc/init.d/httpd restart
Step 4:
Add automated /tmp cleanup cron.
crontab -e
Add the line at the end of the file.
0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
Congratulation! you have installed Nginx Admin successfully
Uninstall:
Login to SSH as a root & run the bellow commands.
cd /usr/local/src/publicnginx
./nginxinstaller uninstall
Uninstall Complete.
For more info approximately Nginx Admin please visit http://www.nginxcp.com/
Common Tips:
- Although its not necessary yet its better you should re save Tweak Settings to prevent some error, for this login to root whm, go to Server Configuration » Tweak Settings & just click Save
- At root WHM go to Service Configuration » Apache Configuration » Piped Log Configuration, check Enable Piped Apache Logs & click save