本文介绍了htaccess的pcfg_openfile:无法检查htaccess文件,确保它是可读的,那/files/domain.com/public_html/images/'是可执行的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我迁移我的图片从一台服务器到另一个面临一个奇怪的权限问题。

  [周一08年3月25日:42:23.676315 2013] [核心:暴击] [PID 15182](13)权限被拒绝:客户24.14.2.22:48113] AH00529:/文件/domain.com/public_html/images/.htaccess pcfg_openfile:无法检查htaccess文件,确保它是可读的,那/files/domain.com/public_html/images/'是可执行的,引用者:http://domain.com .COM / file.php

我已经试过:

 搭配chmod -R 777 ROOT_DIR
    -r的restorecon
    禁用SELinux
    乔恩-R根:根ROOT_DIR


解决方案

今天,我遇到了这个问题。我转移的public_html从旧驱动器为新的和chown这样的:

  CHOWN -R老板:老板的public_html

这是子目录和文件里面的public_html正确的,但为public_html的用户必须是没有人这样Apache可以检查它的内容,所以这解决了我的问题:

  CHOWN老板:没人的public_html

所有者是用户例如web1的

Today i migrated my images from one server to another and faced a strange permission issue

[Mon Mar 25 08:42:23.676315 2013] [core:crit] [pid 15182] (13)Permission denied: [client 24.14.2.22:48113] AH00529: /files/domain.com/public_html/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/files/domain.com/public_html/images/' is executable, referer: http://domain.com.com/file.php

what i've tried:

    chmod -R 777 root_dir
    restorecon -r
    disable selinux
    Chown -R root:root root_dir
解决方案

Today I faced this problem. I transferred public_html from the old drive to new one and chown like this:

chown -R owner:owner public_html

This is correct for sub directories and files inside public_html, but the user of public_html must be nobody so apache can check it's content, so this solved my problem:

chown owner:nobody public_html

owner is the user for example web1

这篇关于htaccess的pcfg_openfile:无法检查htaccess文件,确保它是可读的,那/files/domain.com/public_html/images/'是可执行的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 17:28