Question

So right now I am trying to open a folder on my local host and cannot because every time I try to access localhost/myfolder I get a you don't have permissions error. I tried copying and pasting this said folder to Library/WebServer/Documents and the even weirder thing is that other folder I copy do show up in localhost but this one does not. All this folder has is some html in it. Does anybody have any idea why this could be happening? Thanks!

Was it helpful?

Solution

You might not have permissions to read the document.

Try:

chmod -R 755 Library/WebServer/Documents

This will give read/write/execute permissions to the user. read/write to the group and read/write to other. See https://en.wikipedia.org/wiki/Chmod for more info on chmod.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top