Friday, January 14, 2011

CPanelNginx install & uninstall

Install cPanel Nginx

Downlaod the latest cpanelnginx from http://portal.sysvm.com/downloads.php . The file will be in a gtar format with a name like cpanelnginx.X.Y.tar.gz , where X.Y is the version . Now upload this to your server and install it as follows

 # tar -xzf cpanelnginx.X.Y
# cd cpanelnginx/
# sh install.sh


Configure cPanelNginx

You can configure your Nginx sever from WHM -> Plugins -> cPanel Nginx .

Add custom file extensions to Nginx server

From the version 2.0 it is possible to add custom file extensions to add directly to nginx server. So that those files will be directly served from nginx. To do this please go to WHM -> Plugins -> cPanel Nginx -> Edit File Extensions.

How to disable/enable nginx temperately

To disable nginx run the script /scripts/disablenginx .This will disable nginx server and switch apache to port 80 To enable a disabled nginx server run the script /scripts/enablenginx , this will enable nginx on port 80



No comments:

Post a Comment