![]() |
problems setting up web hosting on mac
I'm using the help file "Hosting a website on your computer" so that I can use my wife's PC to look at web coding I do on my G4 Mini. Both machines are connected to the same ethernet router/hub and I want to proof my work locally; without loading it up to my site, etc.
after following what the above help file says to do, I get a box saying: You don't have permission to access /~username/ on this server ^^ I get this from my wife's PC and from the very same Mac which is hosting the web pages! Any clues what I've done wrong in setting this up? thanks! a |
Make sure the folders in question are readable by others, and that directories are executable by others.
In the terminal, it's: chmod -R o+r /Users/username/Sites chmod +x /Users/username/Sites |
thank you, acme..I typed those commands in a terminal window (inserting my actual user name in place of "username") and I get the same "not enough permissions" dialog box.
is there something more I need to do to that folder to make it more cooperative? thanks! a |
Post the results of:
ls -lO /Users/username --and-- ls -lO /Users/username/Sites When you paste the results use the [code]paste here[/code] tags so it's readable. |
here you go, acme.mail.order:
Code:
dash-mini:~ dash$ ls -10 /Users/dash |
That's a capital letter O, not a zero.
|
sorry. I can't type it more as an "O" than this...looks like same results:
Code:
|
Leave off the O then - it's not hugely necessary. Which OS are you using?
|
OS X Tiger.
the help file doesn't give any hint that these gyrations are needed; it's pretty much a 1-2-3, A-B-C set up process according to what I read in that...is my whole system hosed or what? thanks for hangin in there with me, acme.mail.order Code:
dash-mini:~ dash$ ls -l /Users/dash |
The gyrations are usually not needed, but if you have done things slighly unusual it's fairly easy to lock it up. The alternatives eventually turn into Windows.
|
OK..I went back in to the post right before yours and added the code.
the results appear to me to be what we're after. a |
Permissions look fine. What happens when you try to load a file directly?:
http://addressofmac.local/~dash/index.html or from the same box: http://localhost/~dash/index.html |
Quote:
Forbidden You don't have permission to access /~dash/index.html on this server. Apache/1.3.41 Server at dash-mini.local Port 80 the address I use is my computer's website address as given by the Sharing>services tab a |
And you really should upgrade to Leapord
|
Lets check the parent folder then:
ls -l /Users |
Quote:
All I'm doing here is enabling a folder and a couple of files to be seen by other computers that are pointed to it, right? |
here's the result of that last command you suggested I type:
Code:
dash-mini:~ dash$ ls -l /Users |
chmod 755 /Users/dash
|
OK, That last bit of code straightened things out for the local Mac and for the PC on the same Ethernet router hub.
Many thanks! Would you mind explaining what was wrong and what your code did to fix it? that 755 looks like it's about read/write privileges, so somehow they got messed up. I have no idea how that could have happened, since I haven't used Sites on this install of OS X. maybe if I have a sense of what the problem was, I can be aware of it in future and avoid doing whatever I might have done, or at least know how to fix it. acme |
Have you ever moved / copied / imported that particular user from another machine?
|
yeah, you could say that...about a year and a half ago, I did a fresh installation, got everything just so, then carbon copy cloned it, so whenever I need that installation, I can easily have it, and simply have to re-add the most recent backup of my User ƒ.
I guess that explains that. a |
| All times are GMT -5. The time now is 08:19 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.