Giving PHP write permission in Apache

前端 未结 5 796
Happy的楠姐
Happy的楠姐 2020-12-17 04:07

I\'m relatively new to configuring Apache.

I have a PHP script that writes a JSON file based on values retrieved from $_GET.



        
5条回答
  •  无人及你
    2020-12-17 04:34

    Check the file/directory permissions that it is trying to write to. Make sure that it is writable by the user and/or group that the Apache process is running as.

    Also check to see if SELinux is enabled by checking the contents of /selinux/enforce. If it is, either disable it or make sure the proper labels are set on the path that you are writing to.

提交回复
热议问题