Solved

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

Posted on 2004-08-09
3
632 Views
Last Modified: 2011-10-03
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
0
Comment
Question by:micro_learner
3 Comments
 

Author Comment

by:micro_learner
ID: 11756492
I forgot to mention that the I am using Linux machine (red Hat 9)
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 200 total points
ID: 11763361
before starting httpd you need to set your LD_LIBRARY_PATH environment variable to the directory where libdb-4.1.so is located
0
 
LVL 4

Accepted Solution

by:
TomDavidson earned 300 total points
ID: 11764681
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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now