权限被拒绝:/var/www/abc/.htaccess pcfg_openfile:无法检查htaccess文件,确保其可读性? [英] Permission denied: /var/www/abc/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable?
问题描述
大家好,我使用PHP为我的网站和Ubuntu Linux操作系统在我的系统。我的Apache error.log中文件得到了上面的错误,即使正常构式后的一切。我做了很多的研究,这一点,但能不能够解决问题。任何人都可以请帮我在这reagard?以下是我在 .htaccess文件ABC目录
。任何人都可以请帮我在这方面?
#-FrontPage-
IndexIgnore的.htaccess * /。?? *〜*#* / HEADER * * / README * * / _ VTI *
<限制GET POST>
为了否认,允许
所有否认
允许所有
< /限制>
<限制PUT DELETE>
为了否认,允许
所有否认
< /限制>
AuthName指令abc.org
的AuthUserFile /home/abc/public_html/_vti_pvt/service.pwd
目录AuthGroupFile /home/abc/public_html/_vti_pvt/service.grp
选项-Indexes
RewriteEngine叙述上
重写规则^校友$ alumni.php
重写规则^学生$ student.php
重写规则^ view_alumni_article /视图/([0-9] +)$ view_alumni_article.php OP =视图和放大器; article_id的= $ 1
请确保htaccess文件是可读的阿帕奇:
搭配chmod 644 /var/www/abc/.htaccess
和确保目录很可读的和的可执行文件:
行chmod 755 /无功/网络/ ABC /
Hi all I'm using PHP for my website and ubuntu linux on my system. I got the above error in error.log file of apache, even after configurating everything properly. I did a lot of research on this but couldn't be able to resolve the issue. Can anyone please help me in this reagard? Following is my .htaccess file in abc directory
. Can anyone please help me in this regard?
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName abc.org
AuthUserFile /home/abc/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/abc/public_html/_vti_pvt/service.grp
Options -Indexes
RewriteEngine On
RewriteRule ^alumni$ alumni.php
RewriteRule ^student$ student.php
RewriteRule ^view_alumni_article/view/([0-9]+)$ view_alumni_article.php?op=view&article_id=$1
Make sure that the htaccess file is readable by apache:
chmod 644 /var/www/abc/.htaccess
And make sure the directory it's in is readable and executable:
chmod 755 /var/www/abc/
这篇关于权限被拒绝:/var/www/abc/.htaccess pcfg_openfile:无法检查htaccess文件,确保其可读性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!