Solved

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

Posted on 2009-07-08
4
1,869 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

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

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ā€¦
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.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

774 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