Error trying to start httpd on RHEL 6
I am trying to start httpd on RHEL 6 and getting this error. I've searched for solutions, but am stuck currently.
Print out of my problem: [user@server conf]$ sudo service httpd start [sudo] password for user: Starting httpd: httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_memcookie.so into server: libmemcache.so.0: cannot open shared object file: No such file or directory [FAILED] [user@server conf]$ ls -ld /etc/httpd/modules/mod_auth_memcookie.so -rwxr-xr-x. 1 root root 21579 May 25 10:44 /etc/httpd/modules/mod_auth_memcookie.so [user@server conf]$ ls -ld /etc/httpd/modules/ drwxr-xr-x. 2 root root 4096 Apr 25 03:01 /etc/httpd/modules/ [user@server conf]$ ls -ld /etc/httpd/ drwxr-xr-x. 4 root root 4096 Jul 5 2011 /etc/httpd/ [user@server conf]$ sudo find / -name libmemcache.so.0 [sudo] password for user: /usr/local/lib/libmemcache.so.0 [user@server conf]$ ls -l /usr/local/lib/libmemcache.so.0 -rwxr-xr-x. 1 root root 70204 May 24 15:15 /usr/local/lib/libmemcache.so.0 [user@server conf]$ Thanks |
your libmemcache.so.0 is in /usr/local/lib, not /usr/lib. This probably means you installed it from source instead of RPM? I presume that /usr/local/lib isn't on your LD_LIBRARY_PATH variable, but rather than make it so, I would suggest installing the libmemcache0 RPM from yum instead.
|
Could you post line 203 of /etc/httpd/conf/httpd.conf? It's probably a good idea to include lines 202 and 204 as well.
Is /usr/local/lib mentioned in /etc/ld.so.conf? Have you tried running ldconfig? |
Quote:
I also want to add...that if you're going to use RHEL; you should stick to thier repos as they probably won't support anyting compiled from source. --C |
Quote:
I have found file /etc/ld.so.conf.d/local-64.conf does not exist. I have created it as seen below and then ran ldconfig and now httpd starts. Thanks a lot. cat /etc/ld.so.conf.d/local-64.conf /usr/local/lib |
All times are GMT -5. The time now is 12:25 PM. |