You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't turn on web sharing

When I click the checkbox to turn it on it displays a dash in the checkbox, changes from 'Off' to 'starting...', and the gray indicator turns orange.

This lasts for about a second the turns off again.

Ideas? I need my localhost back!

Mac Pro, Mac OS X (10.7)

Posted on Jul 20, 2011 1:17 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 20, 2011 2:01 PM

Fixed.

Reverted to original httpd.conf file.

Web sharing can be turned on now.

38 replies

Aug 19, 2011 8:15 PM in response to scirocco823

scirocco823 wrote:


I am having the same problem.

I have tried replacing the file /opt/local/apache2/conf/httpd.conf with /opt/local/apache2/conf/original/httpd.conf but web server still won't start. Is this the correct file? I also check the permissions of httpd.conf and set ownership to system.



Any suggestions?

I thought that the apache2 folder was in /private/etc/apache2, not in opt/local/apache2?

Aug 19, 2011 8:45 PM in response to Steen Rabol

Steen Rabol wrote:


Hi


None of the suggestions worked for me 😟


However I managed to start Apache like this:


In a terminal: sudo /usr/sbin/apachectl start


I then went back to the System setting - Still not able to turn on web sharing


When I try to do this in Terminal, it tells me that Apache is already loaded and won't start.

So, I killed it and restarted the service in terminal

if you try to do sudo /usr.sbin/apachectl status it will give you a URL you can paste in Safari to test it - mine can't find the page.


I'm strongly considering going with LIGHTTPD and ditching Apache. Well done Apple! Another screw up well done!

Aug 25, 2011 11:59 AM in response to andrewgtibbetts

I believe the root cause of the problem is because the configuration for the launch daemon is disabled out of the box.


Edit

/System/Library/LaunchDaemons/org.apache.httpd.plist
and remove the lines:


  <key>Disabled</key>   <true/>


It's not enough to just change it to "false", apparently. I struggled with this for a while before I figured out that you need to remove this key completely to enable the daemon.

Feb 22, 2012 12:12 AM in response to andrewgtibbetts

I have been dealing with this issue FOREVER!!!!


if you pull up the "Console Utility" (you can do this by using spotlight search) it will display a time, a source, and a comment about the error.


You want to locate the sources beginning in org.apache.SOMETHING


where SOMETHING is normally httpd. These lines should give you some feedback as to what the real problem is.


My fix:

I noticed there was a conflict with the phpMyAdmin.conf file. I moved that to the trash after making a back up copy, just in case. WHAM! Works.


try and post more about your computer is saying is wrong. I'll try and help.

Apr 14, 2012 8:51 AM in response to GrantJacket

Thank you, GrantJacket!

I went to the Console and reviewed the errors. In my case it was looking for a file called +entropy-php.conf which was from the php package I had originally used on my machine for php mysql development.


I went back to the Marc Liyanage PHP Apache Module download page only to discover that the Marc Liyanage package is out-dated, but they provided a link to this page: http://blog.liip.ch/archive/2011/04/13/php-5-3-for-os-x-10-6-one-line-installer. html


After reading through it, I was directed to the package installer here: http://php-osx.liip.ch/


I followed the instructions to install the package using terminal (i chose to install php 5.4 - you do need a 64bit capable system).


It took a few minutes to install and it will ask for your password. When it was complete, I went back to preferences and turned on my web sharing with no issues! hope this will help someone else.

Can't turn on web sharing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.