Solved

httpd won't start because libpq.so.4 is missing

Posted on 2009-07-08
4
1,866 Views
Last Modified: 2013-12-16
I had to power cycle my Redhat system and now I can't get httpd to start. Here is what happens when I try "service httpd start":

    Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory


First off, libpq.so.4 sounds like a postgres library. I do have PostsreSQL installed, but I dont' know what it has to do with apache.

How can I fix this? I only use apache to forward traffic to other ports depending on what domain the user is coming to the site with. I don't recall ever adding any special modules, so I'm totally confused as to why apache is complaining about a postgres library.

I tried "yum remove httpd" then "yum install httpd" then I copied back my httpd.conf and tried to start it again, but that didn't fix anything.

FWIW, postgres itself doesn't seem to be having any problems.
0
Comment
Question by:HappyEngineer
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
dinokhan earned 500 total points
ID: 24811664
0
 

Author Comment

by:HappyEngineer
ID: 24820799
I eventually worked around it by getting an rpm for httpd and using rpm --nodeps to make it ignore dependencies when installing. When I ran it, it complained about a missing *.so file, but I just created a soft link to a newer version of that file and it ran like a charm.

If yum just had a --nodeps argument then I would have been up and running a long time ago.

Stupid dependency systems.
0
 
LVL 2

Expert Comment

by:dinokhan
ID: 24829152
some time its helpfull
0
 

Expert Comment

by:richelieuhq
ID: 25583376
yum update apr-util
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 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

21 Experts available now in Live!

Get 1:1 Help Now