Вопрос

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!

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top