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
641 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to redirect https://www to non-www? 6 75
tomcat LDAP authentication issue 3 170
How can I install php on a ngxin server on droplet 5 135
XAMPP 14 44
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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