你好我使用的是服务器版:运行Ubuntu 12.04.5的Apache / 2.2.22。我的网站在另一台服务器上运行正常,对整个文件夹有750个权限。当我搬到新服务器时:
我创建了虚拟主机并将其打开(a2ensite,重新加载并重新启动apache)
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /path/to/project/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
我将项目文件夹的权限设置为750,我收到错误:
(13)Permission denied: /path/to/project/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
我清除了.htaccess文件,但是我得到了同样的错误。未安装SELinux且我的httpd.conf文件为空。有什么想法吗?