What should I do if the phpcms installation cannot be written?
The permissions of the phpcms file installed under Linux are not writable.
When I put phpcms into the specified project directory and waited for installation, I found that in the fourth step of the installation, the current status of the file permission setting file was "unwritable". After seeing it, I consciously changed the file permissions. Changed to 777
Of course, the file permissions are recursively modified (chmod 777 -R phpcms/). It is not recommended to change everything to 777 here.
Under normal circumstances, the problem of file permissions will be solved, but today I have a problem here, that is, it is still unwritable without any change. I was suddenly confused and thought that there was no need to restart the service.
After the change, the file permissions all show -rwxrwxrwx. But it still prompts that there is no permission.
Permissions are related to security, so I thought of Linux firewall.
After searching on Baidu, setenforce is the selinux firewall configuration command of Linux. Executing setenforce 0 means turning off the selinux firewall.
Execute command: getenforce
Enforcing
The prompt is the forced mode
So continue to execute
setenforce 0
Execute the command: getenforce
Result: Permissive
At this time, if you look at the installation of phpcms, you have seen that the file permissions have become writable
Note: SELinux permissive mode (permissive) mandatory mode ( enforcing);
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of What should I do if the phpcms installation cannot be written?. For more information, please follow other related articles on the PHP Chinese website!