Apache. htaccess pcfg_openfile Error

Source: Internet
Author: User
Tags parent directory readable file permissions root directory

Apache error is a lot, but this error is really ignored, today, a Web server access 403 exception to view the configuration file is not a problem, and in the Error.log file, gave a similar number of lines in the note:

[Tue Oct 26 12:42:58 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

[Tue Oct 26 12:42:59 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

[Tue Oct 26 12:42:59 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

[Tue Oct 26 12:42:59 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

[Tue Oct 26 12:42:59 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

[Tue Oct 26 12:43:28 2010] [Crit] [Client 8.8.8.8] (13) Permission denied:/cicro/.htaccess pcfg_openfile:unable to check htaccess file, ensure it is readable

Initially considered to be the result of/cicro/.htaccess file permissions, the result found no such file, then created a/cicro/.htaccess file, the error continues, after analysis, is not missing this file caused by the error, because there is no this file, is not affected by Web access.

After careful analysis, found the root cause of the problem, if the log hint is a different directory. Htaccess is not readable, typically because of the permissions of the parent directory or the primary user group error. The correct permissions for the directory should be 755, but the permissions are not Apache root directory, but the main directory of the program files, the problem to locate the/cicro directory, view the Cicro directory permissions, found the essence of the problem!

DRW-RW-RW 9 root root 4096 10-26 13:03 Cicro

This permission is really interesting, do not know is the wrong operation or others in the practice of command, change back to 755 should be good.

Chmod-r 755/cicro

In fact, Linux root created by the directory, the default permissions are 755, may have overlooked this, and thinking about other aspects and deviated from the subject. Under this record, for reference use!

This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/526045

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.