Please Visit Forum for help and support atÂ
Incoming search terms:
- nginx invalid server name or wildcard
- o response from subprocess (php) with exit signal: 0
- 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx cgi) with exit signal: 2
- nginx
- Restarting nginx daemon:

hello sir
after i installed nginxcp plugin it said i must restart apache
when i entered /etc/init.d/httpd restart
it said some errors
”
/etc/init.d/httpd restart
Restarting nginx daemon: nginx[warn]: conflicting server name “*.xxxxxxx.com” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.yyyyyy.com” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.vvvvvv.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.ssssss.net” on 188.111.111.111:80, ignored
[warn]: conflicting server name “blog.aaaaa.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “www.blog.aaaaaa.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.wwwwwww.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.eeeeeeee.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.rrrrrrrr.com” on 188.111.111.111:80, ignored
[warn]: conflicting server name “about.tttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “www.about.tttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “contact.tttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “www.contact.tttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “www.forum.yyyyyyyy.tk” on 188.111.111.111:80, ignored
[warn]: conflicting server name “forum.yyyyyyy.tk” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.uuuuuuu.com” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.iiiiiii.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “blog.ttttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “www.blog.ttttttt.ir” on 188.111.111.111:80, ignored
[warn]: conflicting server name “*.oooooooo.com” on 188.111.111.111:80, ignored
[emerg]: invalid server name or wildcard “www.*.ppppppppp.com” on 188.111.111.111:80
already running.
”
and apache and nginx was down !
what do i must do ?
thank you very much
Ignore all ‘conflicting server name’ logs, but must remove invalid server name or wildcard www.*.ppppppppp.com to start Nginx.
The wildcard should be in format *.domain.com not www.*.domain.com so remove this invalid wildcard entry and restart nginx again.
still received
[warn]: conflicting server name “11.30.37.111″ on 11.30.37.111:80, ignored
[warn]: conflicting server name “11.30.37.122″ on 11.30.37.122:80, ignored
how to fix it
Thank You for your replay
any one said i must enter these in ngnix.config
server_name _ *;
listen 8080 default;
can you install and config this for me on my server please?
you nothing need to chnage in default config.
Hi,
First I must congratulate and thank you for creating this great tool.
Second, I would like to know how to exclude a n account or domain for using nginx.
Also as one of my client was using below code in .htaccess to parse .html and .htm through PHP and it stopped working after installing nginx
SetHandler application/x-httpd-php5
So how to make it work in nginx.
Thanks in advance.
To exclude use the following method,
Edit etc/nginx/vhosts/Yourdomainhere.com
and in the location line remove |html|htm and any file type which you want to serv via apache
restart nginx
/etc/init.d/httpd restart
There’s a big security problem with password protected directories: if you know the file URL you can still download it even if is in a password protected directory. For example an archive or any other static file.
The solution is to forward requests for static files from password protected directories to apache instead of serving them through nginx.
Quick fix: edit vhost file and remove important file types from list of static files (for example pdf)
Can you please give us live example of this issue so we can investigate?
Personally I have not found this issue.
Yes, I made a test below:
http://***.ro/test/ – this ask for password, is password protected dir from cpanel
http://***.ro/test/sample.txt – this desn’t ask for pass
http://***.ro/test/test.zip – neither this
(please remove my links after test them)
We will look into this.
I have a question , is it possible to run server with only nginx instead of setting nginx as proxy . I want nginx to handle all requests not only proxy requests
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6125 mysql 15 0 537m 100m 4960 S 25.6 1.3 10535:57 mysqld
4378 fordusco 17 0 141m 36m 7180 R 10.3 0.5 0:00.31 php
4379 fordusco 17 0 127m 20m 5560 R 6.3 0.3 0:00.19 php
4380 fordusco 17 0 126m 20m 5528 R 6.0 0.3 0:00.18 php
31663 nobody 15 0 242m 157m 848 S 3.3 2.0 0:16.65 nginx
4381 fordusco 17 0 115m 8692 5200 R 2.3 0.1 0:00.07 php
4382 fordusco 17 0 115m 8268 5200 R 1.3 0.1 0:00.04 php
21 root 34 19 0 0 0 S 0.3 0.0 2:58.05 ksoftirqd/6
3422 nobody 15 0 73960 3272 1624 S 0.3 0.0 0:00.06 httpd
3452 nobody 15 0 74092 3296 1616 S 0.3 0.0 0:00.06 httpd
3952 nobody 15 0 74092 3280 1612 S 0.3 0.0 0:00.03 httpd
5869 named 20 0 286m 9164 2072 S 0.3 0.1 1:40.40 named
1 root 15 0 10348 632 540 S 0.0 0.0 0:23.47 init
In cPanel server its difficult cause Nginx without proxy may break lot of cPanel options.
Don’t WHM also uses perl to display WHM options ? I have it running perfect with Plesk.
Hello ,
nginx is constantly failing and i have to restart nginx via WHM all the time. Is there any way to fix this ?
You need to check why nginx failing? Mostly this happen due to apache issue.
Enable piped Apache logs via Main >> Service Configuration >> Apache Configuration >> Piped Log Configuration
Increase
from
worker_processes 1;
to a higher number.
That fixed my problem
Is that password protected directories problem which was pointed out by “dt” above has been solved or it is still exist?
please create forum and wiki and we ready to support this great software
I see tons of files (127k) in my /tmp/nginx_client location. They all start with numbers. Are they important?
Is there any way to remove .html files from default config for ALL domains + future domains? I mean that I want to use Apache to serve all HTML files on ALL domains.
Yes you can remove .html, Very simple,
Before install, edit createvhosts.py and remove .html|htm from location ~*
Then install.
Hi Admin,
Thanks for this great script!
I am having little issue with it, my nginx is not starting up. In WHM it says nginx: Down
WHen I try to restart it from ssh using: /etc/init.d/httpd restart
It gives this output:
Restarting nginx daemon: nginx
[emerg]: bind() to 204.45.81.186:80 failed (98: Address already in use)
[emerg]: bind() to 204.45.81.186:80 failed (98: Address already in use)
[emerg]: bind() to 204.45.81.186:80 failed (98: Address already in use)
[emerg]: bind() to 204.45.81.186:80 failed (98: Address already in use)
[emerg]: bind() to 204.45.81.186:80 failed (98: Address already in use)
[emerg]: still could not bind()
already running.
Please suggest a fix for this.
Thanks!
Just restart again.
I also have this same problem. When I hit Restart nginx, I get this:
Restarting Nginx…
Restarting nginx daemon: nginx already running.
Done…
Nginx Admin: v1.8 Stable
But, it’ll say it’s down. When i go to WHM Service Status, Nginx is down. What must I do?
Please use http://nginxcp.com/forums/ for support on this issue.
Is there a way to compile this with other options and modules?
Thanks.
Dear,
Who to check nginx status?
for apache : Main >> Server Status >> Apache Status
for nginx admin ?
regards,
One of my domain requires fully to run Apache is this possible? If so how?
edit /etc/nginx/vhosts/domain.com and remove file extensions which you want to served by apache.
So it I remove all extensions then it should automatically use Apache for everything?
Hi
please note, i am running fastcgi on my server. It is centos with latest cpanel. Now when i installed nginx pluign, it is not working for php sites using mod_rewrite. it gives unable to connect error for these websites.
Can you please check and let me know how to fix this issue.
Regards
First check is sites are woking without nginx?
Its maybe FastCGI issue or your script issue. We are successfully using Nginx Admin with FastCGI.
Hello,
I got this email notification from cpanel every 5 minutes
“nginx failed @ Mon Jan 10 16:29:35 2011. A restart was attempted automagically.
Service Check Method: [check command] ”
Please give me an advice to solve this problem
Regards
Nginx is not working in your server, Check httpd.conf setting.
There must be some wrong vhost.
Also check /tmp maybe full.
Hello,
I have some problem when I change IP Address in WHM. that account was not change. Coz I see in /etc/nginx/vhosts/ they are still point to old IP and must replace manually. Is there can help me to fix this?
Thanks.
After update IP, rebuild vhost from Nginx admin interface.
I do that like you said, but it’s doesn’t working, sir.
Hi,
Looks good, but a couple of questions:
1) We have been using LiteSpeed and suPHP. Does your plugin allow suPHP or a comparable security scheme? If so, how can I enable it?
2) I saw that your plugin is not compatible with SSL, is this true? We need SSL on some domains. How can we work around this issue?
3) Are there any other issues we need to know about, for example features which might break with nginx and your plugin compared to our current configuration?
Thank you!
Nginx admin is compatible with all php e.g. DSO, suPHP, FastCGI.
Plugin is fully compatible with SSL but SSL will be servd by apache not Nginx.
Currently no known bug is reported but httpd.conf should be all virtual host is right format, wildcard record should be servd by DNS not but adding sub domain or parked domain.
Thank you for the answer!
Another question: I am worried about the security of nginx since it does not support mod_security. How can I use nginx as the front end and still have a secure website as with Apache and mod_security?
mod_security only use to secure php files not static contents even in apache, as Nginx only served static files so mod_security is not needed.
>> wildcard record should be servd by DNS not but adding sub domain or parked domain.
Can you clarify this? We will be running WordPress multisite where users sign up for new subdomains and we have wildcard domain support. For example, a new user’s site might be:
subdomain.maindomain.com
Will nginx work like this?
Thanks!
Also, does anyone know of any issues running this solution with WordPress and WP Super Cache?
Thanks.
To clarify, I mean WordPress in multisite mode with WP Super Cache…
Please post your issue in forum at http://nginxcp.com/forums/
One other question: In WHM, is there any way to turn off nginx? If there is an issue, it would be great to have an ability to simply turn off nginx and return to the normal Apache configuration.
you can feature request at http://nginxcp.com/forums/
I understand that this would be a feature request for the control panel. However, is there a way to do this now via command line?
Hello Guys
First of all im very happy about this script, nginx is great. I was installing nginx on one of my servers but the installation ended like this:
Generating vhosts…
Traceback (most recent call last):
File “/scripts/createvhosts.py”, line 177, in ?
writeconfshared(i, domain, docroot, yip, alias)
File “/scripts/createvhosts.py”, line 90, in writeconfshared
domainvhost.writelines( sharedipvhost )
TypeError: writelines() argument must be a sequence of strings
This happened when it was generating the vhosts, but the installation process finished well. I ignored the error message and found that sites were loading, but a few domains (like 1%) of the server don’t load up.
I think this is related to the error, then i had to change back to apache.
Any clues?
I already tried to run checkperlmodules, upcp –force and easyapache.
Thanks
Can’t wait for 0.9.5 development update
The Nginx Admin v2.1 released with Nginx 0.9.5 development version.
Hello
How to enable force download file for nginx?
i’m using nginxadmin.
where is config?
i want enable it:
Code:
ForceType application/octet-stream
ForceType application/octet-stream
ForceType application/octet-stream
ForceType application/octet-stream
ForceType application/octet-stream
hello,
in installation:
root@server12 [~]# cd /usr/local/src
root@server12 [/usr/local/src]# tar xf xyz.tar
tar: xyz.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
i get the error Please upgrade cPanel to version 11.28 or above
i’m running 11.29
i dont have moneybooker’s account. do you have paypal?
we will welcome your donation. Please add me in MSN: 9xlinux@live.com for paypal.
Hello,
I have installed plugin and is this it? It’s now on by default? Can I disable apache? If no, what ios the purpose of apache?
Hi,
I have two website and two IP. I can not browse php page after I installed Nginx Admin (Stable version) v2.3 released, and when I browse the php page of site A, nginx says host B can not be accessed. I had to uninstall the package, but the error still existed.
please help me.
thanks.
Hi, I Have this message error
502 Bad Gateway
nginx
it’s a php error i don’t know why
root@server [/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-x86_64.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-x86_64.egg/yaml/__init__.py”, line 26
SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause
How solve this problem?
I have the same issue. Thread http://nginxcp.com/forums/Thread-installation-error DOES NOT solve it.
Seems that the installer requires Python 2.5.6 and cPanel is still using 2.4.3
All who have Python issue read this thread http://nginxcp.com/forums/Thread-python-upgrade
heloo sir i have error
500 Internal Server Error
on my some scripts plz help meeeee
Hi,
I want Nginx to run CLEANUP after every 30minutes rather then 1hour. What i need to change in this Cron Line:-
0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
I get nothing after install
My apache is set to :81
I use "home" as the base web sites directory not "vhosts"
if I goto http://www.academicshowcase.com:81 web site displays
any ideas what I may have to change to get nginx to work
This is what I get when I install
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
./pythonfix and run the installer again.
Does this works in FreeBSD + Cpanel ?
Hello, How do I setup directadmin?
hi
i setuped nginx admin but i see this eror in ssh:
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
and in whm in admin written:
Nginx Service Status: Down
To automated /tmp cleanup add bellow cron
0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
via crontab -e command
plz help me
Regards
Hi, Reza
You have to upgrade the Python follow command:
cd /usr/local/src
wget http://python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -zxvf Python-2.5.6.tgz
cd Python-2.5.6
./configure
make
make install
After that, the installer should be run well.
thanks for your response
but i do your command but nginx admin still is : Down
plz help me
thanks
help me plz
At default configuration, NginxCP using TCP Socket to listening for preverse proxy. This method less than Unix Socket. So, how can I re-config auto for running under Unix Socket for replace TCP Socket?
Hello,
For all getting error related with """ File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26 """""
Just do the following,
For who using i686 architecture
easy_install Pyyaml==3.09
rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg
For who using x86_64 architecture
easy_install Pyyaml==3.09
rm -f /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg
===
Leading System administrator
Skype ID krish-ayyapa
===
Hello,
How to Recreate Nginx virtual conf for a domain with out affecting other accounts?
Hi, Thank you for the wonderful plugin, everything is working fine but i'm having problems… when users access domain.com/cpanel they go to hostname:2683, is there a way to resolve this???
After installing nginx, we have noticed that the visitor's IP addresses are recorded as server's own IP.
To explain it, suppose you log in to the forum located on the same server, the forum admins will be able to see your IP. However, the IP would be shown as the server's OWN IP instead of the actual visitor's IP.
We have had all the clients complaining the same which shows that this aint the problem with the forum script.
Any clue how to fix it?
Hello,
I would like to implement Microcaching and some flood protection with sconnlimit and limit_conn :
http://fennb.com/microcaching-speed-your-app-up-250x-with-no-n
Where I can find the plugin's vhost templates ?
please help me
"/tmp/nginx_client/0020317353" failed (28: No space left on device)
nginx tmp cleanup
create an nginx.sh
#!/bin/bash
cd ..
cd tmp
rm -rf nginx_client
service nginx restart
Save this file on root folder.
and
crontab -e
please paste files and.
30 4 * * * /root/nginx.sh
30 10 * * * /root/nginx.sh
30 16 * * * /root/nginx.sh
30 0 * * * /root/nginx.sh
save file and
service crond restart
Thankss..
Hello.
I use CentOS, WHM, this component and eacclerator.
Some time when i visit subpages on the server i get blank reponse. What that mean? Server is busy? Conflict with eacclerator?
Helly,
I receive several Cpanel notice with the following content:
At [22/Dec/2012:05:14:29 +0000], web server with pid=20297 received unexpected signal=9, no core file is created. A new instance of web server will be started automatically!
I do not modify any configuration except the below: the default setting of worker_processes on Configuration is two, but my vps has four core CPU, so I modify the setting to four.
What does the error mean? does my modify cause the error? and how should I fix it? thanks.
Best Regards,
LQ
I’m using v3.5……./usr disk space exhausted due to open files…..will v4.1 fix this? thx
Greetings!
I’ve downloaded latest nginx admin version.But in your pythonfix script there are lines:
cd /usr/lib/python2.4/site-packages.
Our installed python version is
ython 2.6.6
Does everyone of your clients uses this old version of python?
And if there would be a version for different python installations?
Thank You.
I want to try this plugin, but am concerned about all the .htaccess redirects on my domains. I posted something in your forums, but Akismit objected, even though we have a perfect online record.
So is there general guidance, or can someone just take my .htaccess directives and modify if I send them?
Peace,
Gene
root@villest1 [~/publicnginx]# ./nginxinstaller install
/root/publicnginx
Welcome to the Nginx Admin installer……Starting Install
Please Wait …….
Generating vhosts…
Installing WHM interface…
Installing mod_rpaf…
Updating cPanel Configuration
Reading Apache Configuration
updating Apache configuration
****************************************************
* Installation Complete *
*run /etc/init.d/httpd restart to start Nginx Admin*
****************************************************
root@villest1 [~/publicnginx]# /etc/init.d/httpd restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8081
no listening sockets available, shutting down
Unable to open logs
Restarting nginx daemon: nginxRemaining processes: 8288
nginx: [warn] conflicting server name “67.228.244.97″ on 67.228.244.97:80, ignored
.
Please let me know what to do about these errors. Website do not open after installing this. gives wiered texts when website opened
hello whm nginx admin panel error
Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi) with exit signal: 2
cpsrvd/11.36.0.11 Server at 185.15.196.199
Hi,
After installing nginxcp I get an error when opening the plugin page in WHM. This is the error:
Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi) with exit signal: 2
Someone knows how to solve this?
Thanks!
Updating cPanel Configuration
Traceback (most recent call last):
File “/usr/local/src/publicnginx/nginxinstaller2″, line 14, in ?
import createvhosts
File “/usr/local/src/publicnginx/createvhosts.py”, line 7, in ?
import yaml
File “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py”, line 26
SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause
Hello
i remove nginxcp, but also see following Process
How i can kill following Proc?
root@dl [~]# pstree -apu | grep nginx
| |-grep,7103 nginx
regards