Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I added a server stanza to my virtual.conf, and now nginx seems to have a problem reloading the config.

At this point I don't know what exactly is going wrong or how to debug better. Any help would be most appreciated.

The config test succeeds:

root@server:~# service nginx configtest
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I'm tailing the logfile. Upon reload, the following error is logged. As far as I can see, the new config is not used.

root@server:~# service nginx reload
Reloading nginx:                                           [  OK  ]
==> /var/log/nginx/error.log <==
nginx object version 0.8.54 does not match bootstrap parameter 1.0.15 at /usr/lib64/perl5/ line 94.
Compilation failed in require.
BEGIN failed--compilation aborted.
2012/10/18 12:31:07 [alert] 9620#0: perl_parse() failed: 2

This is the version of nginx I'm running:

root@server:~# yum info nginx
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Installed Packages
Name        : nginx
Arch        : x86_64
Version     : 1.0.15
Release     : 2.el6

Server OS: CentOS release 6.3 (Final)

share|improve this question

It turns out that the nginx package was upgraded without the service being restarted.

Simply restarting the service unwedged it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.