PHP Warning: Unknown: failed to open stream

后端 未结 18 1020
有刺的猬
有刺的猬 2020-12-02 10:54

I edited the apache httpd.conf file recently for the mod_rewrite to work. I don\'t know if this problem originated from that or not, but i\'m getting this problem from that

18条回答
  •  天涯浪人
    2020-12-02 11:41

    It is a SELinux blocking issue, Linux prevented httpd access. Here is the solution:

    # restorecon '/var/www/html/wiki/index.php'
    # restorecon -R '/var/www/html/wiki/index.php'
    # /sbin/restorecon '/var/www/html/wiki/index.php'
    

提交回复
热议问题