I am trying to get to grips with PHP and MySQL and need to use apache obviously, I have MAMP installed which all works fine, but when I want to use the plain old boring sites folder to see a very boring static site i get this error
The requested URL /~yorkiechadwick/ was not found on this server.
Apache/1.3.33 Server at yorkie-chadwicks-computer.local Port 80
It did once work but I don't know what I have done, I think something is up with the permissions but I am not sure.
I am new to using the terminal.
Please help
hello! Good to hear you got your MAMP install to work and get the impression you're learning how to move your assets from your development environment to your staging or test area.
to answer your question:
by default, the permissions of your home directory ~yorkiechadwick is only readable and writeable by you.
In order for the Mac OS X apache server instance to access your ~/Sites folder, you need to open up permissions on your ~ directory.
I was able to see the index page in my Sites folder by issuing a "chmod og+rx ~" in my Terminal.
WARNING: this poses a security issue. You are allowing other users on your system to read the contents of the top level of your home directory. This may or may not be desirable depending on your needs. If you are not comfortable with this, issue a "chmod og-rx ~" in your Terminal to revoke permissions to your home directory.
hope this helps!
Thanks for getting back to me, I think that I altered once my security settings for apache and I am guessing that is why I can't see the sites folder.
Ientered the command that you gave me, but I couldn't see my index folder.
any other tips about how to alter the security settings?