Nginx Admin-How to Install nginx on cPanel WHM Server
How to install Nginxadmin on WHM/cPanel- Step by Step tutorial for Nginx admin (nginxcp) installation on cPanel/WHM enabled server.
Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Which powers many popular websites including wordpress, github & others. You can also install it easily on your linux server.
To install Nginxadmin on your WHM, simply login via putty and use this command.
cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar tar xf nginxadmin.tar cd publicnginx ./nginxinstaller install
& then after restart the apache using the following command to see it into action
if you receive any pyaml related error then execute following code and then reinstall using above code
for i686 architecture
easy_install Pyyaml==3.09 rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg
for x86_64 architecture
easy_install Pyyaml==3.09 rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg
How to verify the installation of Nginx Admin
There are many ways to verify the installation of Nginx.
1. You will be able to see the plugin configuration in your WHM after the successful installation
2. You can also hit this code to check Nginx Status on your server
service nginx status
It will return the status of Nginx on your server
3. By observing http header you can also detect the server type, just use the command below:
curl -I www.domainname.com
It will return a header
curl -i www.cpanelwhm.org HTTP/1.1 301 Moved Permanently Server: nginx admin Date: Sun, 19 Jan 2014 19:40:25 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 0 Connection: keep-alive X-Pingback: http://cpanelwhm.org/xmlrpc.php X-Powered-By: W3 Total Cache/0.9.3 X-W3TC-Minify: On Location: http://cpanelwhm.org/ Cache-Control: max-age=3600 Expires: Sun, 19 Jan 2014 20:40:24 GMT X-Cache: HIT from Backend
Problems-Access key doesn’t exist create it in WHM
It is a command message you get while installing nginxcp on cPanel, you need to create a remote access key to proceed. This can be done easily using WHM panel. Just navigate to
Home »Cluster/Remote Access »Setup Remote Access Key
Create the Access key for once & then proceed with the installation.
How to Uninstall Nginx Admin from cPanel/WHM
Just use this simple code to completely uninstall Nginx admin from your WHM.
cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar tar xf nginxadmin.tar cd publicnginx ./nginxinstaller uninstall
You can also do it by simple running the uninstaller after going to the publicnginx directory.
To do this, simple goto publicnginx directory & use this command
Donot forget to reboot the apache after installing or uninstalling the Nginx admin module.
Let me know if you have any kind of issues or errors while installing/configuring nginxadmin on your WHM.