Ubuntu/Apache2/ Forbidden/Permission error

前端 未结 3 1128
独厮守ぢ
独厮守ぢ 2021-01-20 15:07

I have Ubuntu 11.10 with Lamp installed

There is some files that i can\'t access to from my web directory \"/var/www\"

http://localhost/banner/banner.html I

3条回答
  •  悲哀的现实
    2021-01-20 15:40

    I always forget that while the sub-directories and files need the read permission, the sub-directories also need execute permission.

    chmod a+x banner
    

    This tends to come up when I've saved a web page in the 'Webpage, Complete' format with Chrome or Firefox and am then trying to serve it under localhost, which I often do when building mockups for clients.

提交回复
热议问题