Problem : Starting up the server by httpd :httpd: error while loading shared libraries: libdb-4.1.so: cannot open shared object file: No such file or directory

Hello I have set up an Apache httpd server on my home directory to test my applications .Evrething seemd to work fine when I first installed it..

But due to some reason(I know I sound retarded) whenever I I run the binary I get the error
httpd: error while loading shared libraries: libdb-4.1.so: cannot open shared object file: No such file or directory

The same error pops up when I use the "apachect stop" command.

Please help me ...I am unable to procceed and clueless.

Thanks for u'r time
micro_learnerAsked:
Who is Participating?
 
TomDavidsonConnect With a Mentor Commented:
if a search for libdb-4.1.so ("find / -name libdb-4.1.so") comes up with nothing you may have to istall the berkley db rpm again
(found on rpmfind: ftp://rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/db4-4.0.14-20.i386.rpm)

are you using the httpd init script?
"/etc/rc.d/init.d/httpd start"?
(aka "service httpd start") if not try using that as that should set the environment as it starts
0
 
micro_learnerAuthor Commented:
I forgot to mention that the I am using Linux machine (red Hat 9)
0
 
ahoffmannConnect With a Mentor Commented:
before starting httpd you need to set your LD_LIBRARY_PATH environment variable to the directory where libdb-4.1.so is located
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.