PDA

View Full Version : Can't Get Web Sharing to Work


dsk
01-26-2002, 03:14 PM
Hi. Clicking on the start button for web sharing is apparently not good enough for me. When I try to connect to my own site, all I see is "Connecting to <my ipaddress>". Yes, I include the ~ in front of my username. The problem persists even when simply typing in the ip address itself, with no user name attached. Any ideas?

Novajo
01-26-2002, 07:43 PM
Is it actually running ? type top in the terminal or use the process viewer . You should see httpd somewhere. If it is running, then I would need more information to solve your problem. You will find that in the file /var/log/httpd/error.log

If it is not running, start it by hand with:

sudo httpd

You will highly likely get an error related to apple_hfs. If you do, it is solved here:

http://forums.osxhints.com/showthread.php?s=&threadid=176&highlight=applehfsmodule

If you get something else, post the error in this forum.

griffman
01-26-2002, 10:24 PM
Are you on an internal network behind a firewall? If so, you may need to tell your firewall to pass port 80 requests to your Mac. And your ISP may block port 80 requests, which means running Apache on a higher port number.

Another way to tell if it's running is just do a "ps ax | grep httpd" in the Terminal. You should see at least one or two entries if it's alive.

Tell us a bit more about your network and let us know if Apache is actually running, and we can probably debug this one.

-rob.

dsk
01-26-2002, 11:17 PM
Yes, httpd is running (actually, two consectutive processes). I'm not behind a firewall (at least I don't think--would I know if I was?), and I have a PPPoE DSL connection.

Thanks for the help.

dsk
01-26-2002, 11:39 PM
griffman, good thinking! Apparently it was a port 80 issue. I edited the httpd.conf file, changing the port from 80 to 2001. Now it works. Of course, having to type a port number into a web address is less than ideal, for cosmetic reasons. Any solutions to this?

That section of httpd.conf now reads:

#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 2001

Does that thing about running httpd as root affect me? Or does the web sharing control panel deal with that automatically? Perhaps my service provider simply blocks port 80. This is interesting, thanks for your help so far, guys.