LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Error trying to start httpd on RHEL 6 (https://www.linuxquestions.org/questions/red-hat-31/error-trying-to-start-httpd-on-rhel-6-a-946813/)

CobusA 05-25-2012 07:15 AM

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

acid_kewpie 05-25-2012 07:23 AM

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.

Ser Olmy 05-25-2012 07:29 AM

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?

custangro 05-27-2012 02:58 PM

Quote:

Originally Posted by acid_kewpie (Post 4687341)
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.

^ what he said.

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

CobusA 05-28-2012 02:17 AM

Quote:

Originally Posted by Ser Olmy (Post 4687345)
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?



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.