Home>Article>Backend Development> How to solve the problem of unwritable php files
The solution to the unwritable php file: first find and open the "config" file; then set the "SELINUX=""" content in the file to "disabled"; finally execute the command "setenforce 0".
Recommended: "PHP Video Tutorial"
php access file, not writable
In the php code:
The permission of file_name here has been set to 777. But it is still not writable. According to the information, the problem is SELinux configuration problem. After turning off SELinux, the problem is solved.
The method to shut down SELinux is:
Modify SELINUX="" in the /etc/selinux/config file to disabled
Execute the command: setenforce 0
The above is the detailed content of How to solve the problem of unwritable php files. For more information, please follow other related articles on the PHP Chinese website!