Home / Control Panel / Install NGINX on WHM / Cpanel

Install NGINX on WHM / Cpanel

The NIGIX Admin is integrated with Cpanel, there are lot of advantages of using NGINX as plugin increases your server speed and managing load balance. It can be managed from your WHM panel, it protects server from DDOS attacks too.

To install the NGINX Admin, you can follow the below steps.
You may first download the package using wget command, do the following.

  1. Login to the server as root user and run the following commands.
    root# cd /usr/local/src root# wget http://nginxcp.com/latest/nginxadmin.tar root# tar xf nginxadmin.tar root# cd publicnginx root# ./nginxinstaller install
    You may receive a warning message while installing
    root# ./nginxinstaller install access key doesn't exist
    Go to WHM > Cluster/Remote Access > Setup Remote Access Key
    and click on the Generate New Key button
    root# ./nginxinstaller install /usr/local/src/publicnginx Welcome to the Nginx Admin installer......Starting Install Please Wait ....... ^[[BGenerating vhosts... Installing WHM interface... Installing mod_remoteip... Updating cPanel Configuration Reading Apache Configuration updating Apache configuration **************************************************** * Installation Complete * *run /etc/init.d/httpd restart to start Nginx Admin*
    Note : After installing it the HTTPD port will be switched to 8081 and NGINX port
    pointing to 80
    root# /etc/init.d/nginx start Starting nginx daemon: nginxnginx: [emerg] unknown "no_cache" variable already running.
    solution :
    The NGINX does not starting which means may have server without a single account in WHM. So login into
    your WHM Panel to create a new account and restart NGINX.
    Nginx Admin Uninstall instruction:
    root# cd /usr/local/src # wget http://nginxcp.com/latest/nginxadmin.tar # tar xf nginxadmin.tar # cd publicnginx # ./nginxinstaller uninstall
    That’s all!
    Thanks!
Jishnu KS
Latest posts by Jishnu KS (see all)

Leave a Reply

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

Social Media Auto Publish Powered By : XYZScripts.com