The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installation of nginx...

Discussion in 'General Discussion' started by odytil, Jul 10, 2014.

  1. odytil

    odytil Registered

    Joined:
    Feb 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I want to install nginx in my VPS that I have.

    Should I install it by using Nginx Admin – cPanel Nginx automated installer Plugin?

    Will it affect my websites that I have already on my server?

    Will it affect the databases that I have already on my server?

    Can you please help?
     
  2. iserversupport

    iserversupport Well-Known Member

    Joined:
    Nov 4, 2013
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Root Administrator
    There are many free cPanel Nginx plugins. If there is any custom configurations on your VPS it can create problems

    I suggest you to take a backup of all configurations of VPS and install it
     
  3. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    The best module.

    Nginx Admin Install instruction:

    cd /usr/local/src

    wget http://nginxcp.com/latest/nginxadmin.tar

    tar xf nginxadmin.tar

    cd publicnginx

    ./nginxinstaller install



    Nginx Admin Uninstall instruction:



    cd /usr/local/src

    wget http://nginxcp.com/latest/nginxadmin.tar

    tar xf nginxadmin.tar

    cd publicnginx

    ./nginxinstaller uninstall
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please keep in mind that Nginx is not natively supported. Our support team will not be able to troubleshoot issues directly related to it's usage, and if you are an inexperienced user, it's likely better to stick with Apache.

    Thank you.
     
  5. GiviN.G

    GiviN.G Member

    Joined:
    Sep 30, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello All,

    I tried to install Nginxadmin, but getting errors.

    Code:
    root@server [/opt]# ./publicnginx/nginxinstaller install
    Traceback (most recent call last):
      File "./publicnginx/nginxinstaller", line 26, in <module>
        apache_version = findapacheversion()
      File "./publicnginx/nginxinstaller", line 18, in findapacheversion
        proc = subprocess.Popen(["/etct/init.d/httpd", "-V"], stdout=subprocess.PIPE)
      File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
        errread, errwrite)
      File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
    
    Code:
    root@server [/opt]# /usr/bin/python -V
    Python 2.6.6
    

    Also noted that httpd binary is not there. So I edited nginxinstaller file line 18 and changed httpd to "/etct/init.d/httpd". Hope somebody can help me out. Thank you
     
  6. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Change the binary to /usr/local/apache/bin/httpd and try to install nginx using the installer again. This should work fine.
     
  7. uname-r

    uname-r Member

    Joined:
    Nov 2, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Just would liike to add you can get into troubles by installing this addon. Here is why :

    -> even if you install mod_remoteip, you'll get to a point where you won't see the real ip in cPanel apache logs. The reason : nginxcp is a crappy software with bugs :P

    -> they still distribute a vulnerable version of mod_rpaf with their software

    -> you won't get a fresh nginx from the nginx website. You'll download your nginx from their website. What if their Wordpress is hacked???

    -> i warned them about a security issue and a bug, they never bothered about replying :P

    -> if you delete an addon domain, then it will also delete the main www record for your domain. why? because it's crap.

    -> if you uninstall, you'll end up with no logs, or logs all in the same file. Your clients will still be disappointed unless you remove the ###### before the customlogs entried in the cPanel EasyApache templates.


    Making Nginx works with cPanel should be VERY easy for cPanel peoples. I mean : if you can create Easyapache you can install nginx for sure :) I see no reason, in 2014, to do not support this one natively.

    Apache is no longer the best one IMHO it's nginx turn now :)

    On our side, we are looking to switch over to ISPConfig on CloudLinux (yup, it works!), because they support nginx. We are working n it. I'm just sick and tired of having to rebuild apache once a week (sometimes more!)

    Thank you for reading :)

    - - - Updated - - -

    Oh! and don't think you'll be able to use after_make_apache or something script to recover your logs after an easyapache build.

    ...seems like this software is not built to provide nginx, but to make life easier to hackers.

    Please : cPanel, help your customer to be more secure, by adding nginx suppiort to cPanel :) Our customers, and web hosts want it :)

    Stop pushing us to use stuff like nginxcp, cpnginx (those are both the same sh**t)...
     
  8. uname-r

    uname-r Member

    Joined:
    Nov 2, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Just double checked, and PCRE is outdated, not mod_rpaf.

    They provide PCRE 8.35 while PCRE 8.36 was release a long time ago.

    ...but still : that's a problem.

    When a new release of nginx is available, you'll depend on them to updated it or not.

    And i definitely don't like to download a software from a Wordpress installation each time i want to perform an easyapache update.

    cpnginx works a little better, but there has been security issues with that one also. https://blog.rack911.com/security-advisories/cpnginx-content-disclosure/

    So if you still want nginx, better to do it by hand or forget the idea, or switch to another provider who deliver nginx, or do the same i do : BE PERSISTENT ASKING CPANEL TO SUPPORT NGINX :)
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  10. ninostar78

    ninostar78 Registered

    Joined:
    Nov 16, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've installed nginxcp and it works great... now I would like to add PHP-FPM, so any info on how to do that in reality would be appreciated.
     
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why would you post to this thread then?
     
Loading...

Share This Page