INSTALLATION
UN INSTALLATIONcd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install
Now login to WHM >> Main >> Nginx Admin to start / Stop nginxcd /usr/local/src
cd publicnginx
./nginxinstaller uninstall
Apache will be moved to port 8081 and Nginx will run on 80 port.
NOTE : PLEASE DONOT FORGET TO OPE PORT 8081
root@server # netstat -plan | grep httpd
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 22242/httpd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 22242/httpd
unix 2 [ ACC ] STREAM LISTENING 422759 22258/httpd /usr/local/apache/logs/fpcgisock
root@server [/]# netstat -plan | grep nginx
tcp 0 0 153.25.12.25:80 0.0.0.0:* LISTEN 22248/nginx
unix 3 [ ] STREAM CONNECTED 422698 22248/nginx
unix 3 [ ] STREAM CONNECTED 422697 22248/nginx
unix 3 [ ] STREAM CONNECTED 422695 22248/nginx
unix 3 [ ] STREAM CONNECTED 422694 22248/nginx
root@server [/]#