Nginx Admin is a cPanel Nginx integration plugin. This plugin will increase your server performance and decrease server loads caused by apache.
Nginx is the fastest webserver in the world. Nginx is known for its high performance and low resource. Many enterprises, such as WordPress and Comodo, already switched to Nginx as it proves to be the most powerful web-server on the planet. Nginx will work as a front end reverse proxy of your cPanel server along with apache. Which will increase the performance.
Please follow the steps…..

#cd /usr/local/src

Download the latest nginxadmin package & Install

#wget http://nginxcp.com/latest/nginxadmin.tar
#tar xf nginxadmin.tar
#cd publicnginx
#./nginxinstaller install

You may get the following errors.

./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer……Starting Install
Generating vhosts…
Traceback (most recent call last):
File “/scripts/createvhosts.py”, line 2, in ?
import yaml
File “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py”, line 26
SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause
Installing WHM interface…
deploying booster rockets
Traceback (most recent call last):
File “/usr/local/src/publicnginx/nginxinstaller2”, line 9, in ?
import createvhosts
File “/usr/local/src/publicnginx/createvhosts.py”, line 2, in ?
import yaml
File “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py”, line 26
SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause

Please follow the steps…

#cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix

After installing make sure Nginx process is running by

# ps aux | grep nginx

If it is not showing any process, then kill httpd and restart httpd

#killall -9 httpd
#/etc/init.d/httpd restart

Nginx Admin Uninstall instruction:

#cd /usr/local/src
#wget http://nginxcp.com/latest/nginxadmin.tar
#tar xf nginxadmin.tar
#cd publicnginx
#./nginxinstaller uninstall

Hope it helps 🙂

5 thoughts on “Nginx Reverse Proxy in cPanel

  1. I’m glad I found this post. Emailed it to myself to see down the road from my desktop. Will try to get in touch with you on Facebook then too.

Leave a Reply

Your email address will not be published. Required fields are marked *