Search code examples
macosapachelocalhostosx-mavericksfile-permissions

I am unable to access my Webserver directory


I am trying to setup my Apache local server. I noticed that my access was denied after I typed localhost into both Safari and Chrome. In Chrome it works but in Safari I given error 403 and told "Forbidden" and "you do not have permission to access / on this server"

So I have tried to modify the permissions of my Webserver directory using chmod in terminal. But even there I am told that the operation is not permitted. Even when attempting ls to view its contents, I am met with "Permission Denied"


Solution

  • I have solved my problem with a simple fix:

    1. Open "Disk Utilities" from the "Utilities" folder in "Applications"

    2. Click on the root drive

    3. Click "repair permissions"

    4. Done