http://localhost -> 403 forbidden

I must have made some mistake somewhere. I encounter 403 error when accessing http://localhost but no issue with accessing via http://localhost/~jamesho/index.html or http://localhost/~jamesho/phpinfo2.php


Can I ask if I have enabled the user home directory, I can no longer access /Library/WebServer/Documents?


Kindly advise the necessary. Thank you.


Message was edited by: jameshoty I am working on my iMac (High Sierra) and learning about Apache/PHP and mySQL (but haven't installed yet).

iMac, OS X El Capitan (10.11.5), null

Posted on Sep 10, 2018 6:42 AM

Reply

Similar questions

4 replies

Sep 11, 2018 7:10 PM in response to leroydouglas

Thank you for the URL that is very detail and with clear instructions.


I am ok with getting PHP7, mySQL working and the URL is http://localhost/~jamesho/phpinfo2.php. I am also able to retrieve test data from a SQL table. All seems ok and I even uninstall mySQL. If I stop apache, then the above URL will not work. So I would consider the setup is working well for me. (I am learning the bit and pieces here and there and many thanks to all the forums)


What it is "not working" for me is http://localhost. I am getting error 403

User uploaded file




The permission for <Documents> is

User uploaded file



There must be something here I don't understand. What is forbidden?


Kindly advise the necessary. And if I did not write properly or you need additional information / clarification, please do let me know. Thank you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

http://localhost -> 403 forbidden

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.