Hi folks, I've been having a problem getting my Web Sharing to work. I click the button, and then it hangs at "Web Sharing starting up..." indefinitely.
<strong>Hi folks, I've been having a problem getting my Web Sharing to work. I click the button, and then it hangs at "Web Sharing starting up..." indefinitely.
Any ideas? Thanks in advance..</strong><hr></blockquote>
Try installing the new July Security Update from the Software Update System Prefs (if you haven't already).
This installs an update to the Apache web server which serves as Mac OS X's Web Sharing.
If this doesn't do anything, try the usual stuff:
--Reboot the machine (duh!)
--Reboot the machine and zap the PRAM (Command-Option-P-R)
If this doesn't work, try the following (no it shouldn't work, but in my experience it's fixed some random stuff that wasn't working):
In terminal, type "sudo update_prebinding" and enter your admin password and let it do its work. (I can't remember if sudo is needed or not, but it won't hurt)
Then try Web Sharing again. If its still not working, try running Apache from the Terminal, so you can see if it gives some errors.
type "sudo httpd" at the Terminal prompt and enter your admin password. If it gives some errors, post back here.
This should recreate the httpd.conf file from the default (assuming the default is there). After doing this, try going to System Prefs and turning Web SHaring on via the button. If it still hangs, try "sudo httpd" again, and come back and report the errors again, and I'll try to find something new
This should recreate the httpd.conf file from the default (assuming the default is there). After doing this, try going to System Prefs and turning Web SHaring on via the button. If it still hangs, try "sudo httpd" again, and come back and report the errors again, and I'll try to find something new </strong><hr></blockquote>
Comments
<strong>Hi folks, I've been having a problem getting my Web Sharing to work. I click the button, and then it hangs at "Web Sharing starting up..." indefinitely.
Any ideas? Thanks in advance..</strong><hr></blockquote>
Try installing the new July Security Update from the Software Update System Prefs (if you haven't already).
This installs an update to the Apache web server which serves as Mac OS X's Web Sharing.
If this doesn't do anything, try the usual stuff:
--Reboot the machine (duh!)
--Reboot the machine and zap the PRAM (Command-Option-P-R)
If this doesn't work, try the following (no it shouldn't work, but in my experience it's fixed some random stuff that wasn't working):
In terminal, type "sudo update_prebinding" and enter your admin password and let it do its work. (I can't remember if sudo is needed or not, but it won't hurt)
Then try Web Sharing again. If its still not working, try running Apache from the Terminal, so you can see if it gives some errors.
type "sudo httpd" at the Terminal prompt and enter your admin password. If it gives some errors, post back here.
This is what I got upon "sudo httpd":
[quote]fopen: No such file or directory
httpd: could not open document config file /etc/httpd/httpd.conf<hr></blockquote>
<strong>Well the "sudo update_prebinding" didn't work, it seems like the command is missing some parameters.
This is what I got upon "sudo httpd":
</strong><hr></blockquote>
Whoops!
Sorry. Should be "sudo update_prebinding -root /"
It looks like your web server config file has gone missing. This is the reason the web sharing won't work. Try this line of code:
"sudo cp /etc/httpd/httpd.conf.default /etc/httpd/httpd.conf"
Enter your admin password when prompted.
This should recreate the httpd.conf file from the default (assuming the default is there). After doing this, try going to System Prefs and turning Web SHaring on via the button. If it still hangs, try "sudo httpd" again, and come back and report the errors again, and I'll try to find something new
<strong>It looks like your web server config file has gone missing. This is the reason the web sharing won't work. Try this line of code:
"sudo cp /etc/httpd/httpd.conf.default /etc/httpd/httpd.conf"
Enter your admin password when prompted.
This should recreate the httpd.conf file from the default (assuming the default is there). After doing this, try going to System Prefs and turning Web SHaring on via the button. If it still hangs, try "sudo httpd" again, and come back and report the errors again, and I'll try to find something new
This worked perfectly. Thanks!