在我的VirtualHost apache2配置文件中,我有:
<Directory /var/www/antiques/media>
Require all granted
</Directory>
然而,当我尝试加载图片时,我收到以下错误: [Errno 13]许可被拒绝:&#39; / var / www / antiques / media / categories&#39;
我错过了什么?
答案 0 :(得分:0)
如果您不确定如何授予文件或文件夹权限,请安装FileZilla并连接到您的服务器。然后右键单击文件/文件夹并找到文件权限选项。在那里,您可以更轻松地更改文件/文件夹权限。
定义要求
Developers need read/write access to files so they can update the website
Developers need read/write/execute on directories so they can browse around
Apache needs read access to files and interpreted scripts
Apache needs read/execute access to serveable directories
Apache needs read/write/execute access to directories for uploaded content
有关werbserver权限的详细信息,请查看此link。