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/XSLoader.pm 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: ftp.udc.es
 * epel: mirror.nl.leaseweb.net
 * extras: ftp.udc.es
 * updates: ftp.cica.es
Installed Packages
Name        : nginx
Arch        : x86_64
Version     : 1.0.15
Release     : 2.el6

Server OS: CentOS release 6.3 (Final)

1 Answer 1


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

Simply restarting the service unwedged it.

  • Thank you. My Let's Encrypt certificates stopped autorenewing. Turns out the reload hook wasn't working due to this. Jul 2, 2019 at 6:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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