Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Cooncat

macrumors newbie
Original poster
Dec 2, 2003
22
0
Hey guys, I'm trying to host some files using my computer as a web server...I turned on web sharing and put the files in the sites folder, and it seemed to work fine. However, I later noticed that only *some* of the files worked, and the others inexplicably gave me the "forbidden-you don't have permission to access ______ on this server"...I don't understand what's going on here...Help me I'm stupid!
 
goto the directory that contain the html/php or whatever files you have in there.

right click or ctrl click -> get properties
Ownership & Permissions -> Details
they all should be read/write

from terminal if you a familar with unix
cd to the directory the files are in
then do a chmod 666 filename
 
Ok, everything seems to work on my end, but when other people try to access the files they get this error--
Internet explorer cannot download ****** from ***********

A connection with the server could not be established

What do I need to do to get this to work?
 
Cooncat said:
Ok, everything seems to work on my end, but when other people try to access the files they get this error--
Internet explorer cannot download ****** from ***********

Could be any number of issues. Are the other people on your local network, or are you trying to share to the world?

- Are you behind a firewall or router?

- Perhaps your ISP is blocking port 80? Most ISPs explicitly state that you're not supposed to run a server using their service, and some do block various ports.

- What happens when you go to your own server via a browser; either to "localhost" or else to the actual address that outsiders will use?
 
this depends on your network setup as the previous poster eluded to.

there is a big difference ppl on your lan and your isp.

if you are using a broadband router and ppl are trying to connect through your dsl/cable there is some problems. a lot isp block port 80 (http) port. also you have to configure port forwarding on your router.

if you are just trying to connect from your lan or the outside for that matter, you could have your firewall enabled. the error you state means that something is stopping them establishing a connection to your mac.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.