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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6
Visual web development tools
