odytil

Registered
Feb 23, 2014
4
0
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?
 

MR-GEORGIA

Active Member
Feb 3, 2013
42
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Will it affect my websites that I have already on my server?

Will it affect the databases that I have already on my server?
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.
 

GiviN.G

Member
Sep 30, 2014
9
0
1
cPanel Access Level
Root Administrator
Hello All,

I tried to install Nginxadmin, but getting errors.

Code:
[email protected] [/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:
[email protected] [/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
 

uname-r

Member
Nov 2, 2012
6
0
1
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.
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)...
 

uname-r

Member
Nov 2, 2012
6
0
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 :)