Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It worked before, and I'm not sure when it stopped working, but I'm unable to start Web Sharing at the moment. Attempting to start it from the Sharing screen results in "Web Sharing Starting..." immediately followed by "Web Sharing: Off". I've tried reverting to the httpd.conf in /etc/apache2/original, but the result is the same.

I checked the config file with:

sudo apachectl configtest

It reports the following:

dyld: Library not loaded: /usr/lib/libpq.5.dylib
  Referenced from: /usr/sbin/httpd
  Reason: image not found
/usr/sbin/apachectl: line 90:  5740 Trace/BPT trap: 5       $HTTPD -t

How can I resolve this?

share|improve this question
    
Have you referenced Postgres in httpd.conf, installed or uninstalled it recently? –  Daniel Beck Oct 30 '11 at 0:34
    
I did install (and subsequently uninstall after it didn't install successfully) Postgres a few weeks ago; I don't recall making a change to the httpd.conf at that time, though. –  Bullines Oct 30 '11 at 0:36
    
It appears that this is the problem and resolution: discussions.apple.com/thread/3243357?start=0&tstart=0. It now works. –  Bullines Oct 30 '11 at 1:09
    
Please post this as an answer below, using the "Answer Your Question" button. That makes it easier for others to see. –  slhck Oct 30 '11 at 8:49
add comment

1 Answer

up vote 1 down vote accepted

It appears that this is the problem and resolution:

It appears /usr/lib/libpq.5.dylib does not exist but /usr/lib/libpq.5.3.dylib does.

Fix by creating a symbolic link from /usr/lib/libpq.5.3.dylib to /usr/lib/libpq.5.dylib:

sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib

Going back to System Preferences -> Internet and Wireless -> Sharing clicking Web

Sharing a couple of times turns Web Sharing on successfully!

Going to http://localhost/ displays the "It Works!" page.

Azattis - OS X Lion PostgreSQL 8.4 Installation Problem

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Tom Wijsman Nov 2 '11 at 12:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.