Welcome to the WHMSecurity - Securing one system at a time...
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Head Sanitation Engineer
    Join Date
    Jun 2011
    Location
    Jacksonville, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post How To: Install Nginx on cPanel - The Easy Way

    The bright people over at http://www.nginxcp.com have come up with a wonderful little tool for working with Nginx. It integrates a admin panel into WHM so you can stop and restart Nginx, recreate the vhost config, view the Nginx Logs and check apache.

    Also it autoconfigures WHM and Apache for use with Nginx by changing apache from listening on port 80 to port 8081.

    For those who don't know what Nginx is its a caching proxy that will cache static content such as images and html files and serves them up without having to access Apache for the content thus improving speed, memory usage and processor overhead. All dynamic content such as php, java and video are proxied to Apache for processing.

    So if you have a site that is slow you might benefit from Nginx serving up all the static content and only using Apache to process the php files..

    Nginx Admin (Stable version) v2.6

    Changelog:
    Below is a detailed list of all the changes in this release:

    1- Feature: Based on nginx 1.0.4 Stable See this link for more details( http://nginx.org/en/CHANGES )
    2- New script added /scripts/rebuildvhosts
    3- Installer updated for cPanel 11.30

    Install Instructions:

    Code:
    cd /usr/local/src
    wget http://nginxcp.com/nginxadmin2.6-stable.tar
    tar xf nginxadmin2.6-stable.tar
    cd publicnginx
    ./nginxinstaller install
    Note:
    As Its a major release so if you have previously installed the any version of the nginx, please uninstall and then perform the installation.

    Uninstall Instruction:

    Code:
    cd /usr/local/src
    wget http://nginxcp.com/nginxadmin2.6-stable.tar
    tar xf nginxadmin2.6-stable.tar
    cd publicnginx
    ./nginxinstaller uninstall
    All Done.. Login to WHM and check out the admin interface.

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nginx Service Status: Down

    hello,


    after I followed the instructions this is what I got:

    root@ns1 [/usr/local/src/publicnginx]# ./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

    First I tried with Nginx Admin (Stable version) v2.6 and I get the same errors. I uninstaled it and I tried with Nginx Admin (Stable version) v2.8

    In my whm at Plugins I am able to see Nginx Admin (v2.8 Stable version) interface. BUT Nginx Service Status: Down.

    I press Restart . It sais :
    Restarting Nginx...

    Nginx Restarted Successfully.

    Done...

    If I came from Plugins to Nginx Admin i see again Nginx Service Status: Down.

    Please tell me what should I do ?

    Thanks!

  3. #3
    ibk
    ibk is offline
    Junior Member
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I already have accelerator will it be OK to install this one?

  4. #4
    Head Sanitation Engineer
    Join Date
    Jun 2011
    Location
    Jacksonville, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No you only need one.

  5. #5
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If someone looking for alternative methods of Nginx installation on cPanel server, please feel free to check my review at Install Nginx on cPanel – Stop cPanel server load

  6. #6
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Guys,

    First upon I would like to thank you for your great work!

    I was keep using the same script for installing Nginx on our servers. But last week I go ahead and updated the cpanel version to 11.32. Here come the problems, the script stopped working. While I checked the script I could notice that you guys are given the parameter as cpanel version ==11.30.. How can I overcome this situation,, can I update the script to > 11.30 Or you guys are specifically designed the script for this version. Please advise.

    Yours faithfully,

    Unni.

  7. #7
    Head Sanitation Engineer
    Join Date
    Jun 2011
    Location
    Jacksonville, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would try the newer version

    Nginx Admin (Stable version) v3.3 released | NginxCP.com

    The one linked to in the main post is pretty old now.

  8. #8
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    Special Thanks to FLDataTeK.

    Great! support team. I really love you guys. Now I have successfully installed Nginx on Cpanel version 11.32.

    Now the issue is my manager need to hide NGINX label on browsers as he doesn't like to show up the clients and world its handling by nginx

    How can I fix this? can you help me on this too.

    Regards,

    Unni
    Last edited by Unni; 03-20-2012 at 12:54 AM.


 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Logout