Apache not detecting modules in CentOS 6.2
Hi,
I've installed the EPEL repos on CentOS6.2 64bit and completed a: Code:
yum update Everything worked fine until this morning when I did a restart of the httpd daemon. uname -a: Code:
Linux uk-vm-web-p2.rjis.co.uk 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux This is the initial error I got: Code:
# service httpd start Code:
# rpm -qa | grep httpd Code:
ln -s /usr/lib64/httpd/modules /etc/httpd/ Code:
# service httpd restart Error_log: Code:
[Wed May 09 15:17:59 2012] [notice] ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/) configured. Could anyone give me a hand fixing this and hopefully getting Apache started? Many thanks. |
Check whether the module is exist on the following location /etc/httpd/modules
|
The module is there... hence the error that was coming up after I symlinked the folder.
To start with Apache shouldn't be using the path /etc/httpd/modules for it's module .so files.... the reason is that no folder through yum is created at that level. There are however, modules within /usr/lib64/httpd/modules which were created automatically. Something's off and I'm not sure where the issue is. I can post my httpd.conf file if needed though no changes have been made to it?? |
Hi,
How did you install httpd? Because the symlink should have been created when you installed apache. Quote:
Code:
file /etc/httpd/modules/mod_auth_basic.so |
It's a problem between the EPEL repo which you upgraded your server and Apache version from CentOS base repo,
unfortunately you 'broke' it. In my opinion you can try to update Apache also from EPEL, otherwise I don't know how to match Apache and other libraries from EPEL. |
Thanks for the info.
I reinstalled the whole server and just used the CentOS repos for httpd... now it's working :) Unfortunately security enhancements like mod_security and fail2ban aren't available and if I put in another repo I'm guessing it would break the system. So what's the best way to go through with this? |
You need
yum priorities - centos package management - yum configuration - priorities and RPMForge Basically learn about yum priorities to NOT break the system. Good luck |
All times are GMT -5. The time now is 03:58 AM. |