Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. 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.

What else could I try?

share|improve this question
    
The apache logs are in /var/log/apache2. If the problem is not solved by @Satreix answer below please have a look at error_log and post any error message you get. –  patrix Oct 30 '11 at 8:01
1  
The logs should also be easily viewable in Console.app. /Applications/Utilities/Console.app –  Jason Salaz Nov 29 '11 at 7:20
add comment

4 Answers 4

First, take the time to check your httpd.conf with:

sudo apachectl configtest

If it's all ok, then try to restart Apach once or twice (look at the log):

sudo apachectl start (or restart)

It worked for me. If it still doesn't start try finding another default httpd.conf

share|improve this answer
add comment

In /usr/lib there is a file libpq.5.3.dylib while apache looks for libpq.5.dylib.

After I copied the file and named it libpq.5.dylib it worked.

share|improve this answer
add comment

There are a couple of solutions in the Apple Support Forums. I remember having the same problems and I think the module was the problem.

share|improve this answer
add comment

Run this Terminal command to symlink the different versions of libpq:

sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

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.