PHP Warning: Unknown: failed to open stream

后端 未结 18 996
有刺的猬
有刺的猬 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:45

    In my case the group _www that apache uses was missing in the folder's access list, so first I had to add the missing group, like so:

    sudo chown -R _www ~/path-to-folder
    

    Change _www to whatever user or group that apache is running as.

    Find out apache's user/group using apachectl -S

    The output is huge, but look at the very end something like:

    User: name="_www"
    Group: name="_www"
    

提交回复
热议问题