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
646 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with .htaccess file 4 73
PHP in Apache server 20 105
Problem to get function 52 116
htaccess restrict subdomain 4 141
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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