Page 1 of 1

/etc/httpd/modules/mod_auth_basic.so: invalid ELF header

Posted: Wed Apr 27, 2016 12:33 pm
by Muthulinux
Hi All,

I used nagios XI to monitor my production servers. today we did online vm migration after that my nagios xi machine is not starting up properly.

When i checked service httpd status it shows like below

httpd is stopped

then we tried to start it by using this command "service httpd start" but getting below error

Starting httpd: httpd: Syntax error on line 150 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_basic.so into server: /etc/httpd/modules/mod_auth_basic.so: invalid ELF header
[FAILED]


then we checked using this command " ldd /etc/httpd/modules/mod_auth_basic.so " but getting below error.
not a dynamic executable

then i tried to check using "readelf -d mod_auth_basic.so" this command but getting below error.

readelf: Error: 'mod_auth_basic.so': No such file

Could any one please help me out on this? It is very major server which is used to monitor the all my production servers.

Re: /etc/httpd/modules/mod_auth_basic.so: invalid ELF header

Posted: Wed Apr 27, 2016 12:39 pm
by rkennedy
Please post your /etc/httpd/conf/httpf.conf file for us to look at.

Additionally, what version of XI are you running? What version of apache? apachectl -v

Re: /etc/httpd/modules/mod_auth_basic.so: invalid ELF header

Posted: Thu Apr 28, 2016 7:23 am
by Muthulinux
Dear Kenedy,

Now i am unable to start the VM itself. i will update you once i fix the VM storage issue.
Thank you so much for your intervention

Re: /etc/httpd/modules/mod_auth_basic.so: invalid ELF header

Posted: Thu Apr 28, 2016 9:41 am
by tmcdonald
We will keep this topic open for you