Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What to do when phpcms is installed but cannot be written?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the installation of phpcms but can not be written in how to do, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

What if the phpcms installation is not writable?

The permissions of installing phpcms files under linux are not writable.

When I put phpcms into the specified project directory to wait for installation, but found that in the fourth step of installation, the current status of the file permissions settings files is "unwritable". When I saw it, I consciously changed the file permissions to 777.

Of course, recursively modified file permissions (chmod 777-R phpcms/) are used. It is not recommended to change them all to 777.

In general, the problem of file permissions will be solved, but today I have a problem here, that is, no change is still unwritable. I was suddenly forced to do so, thinking that there was no need to restart the service.

After the change, the file permissions are displayed-rwxrwxrwx. But still hinted that there is no authority.

Permissions are about security, so I thought of linux's firewall.

Baidu for a while, setenforce is Linux's selinux firewall configuration command to execute setenforce 0 means to turn off the selinux firewall.

Execute command: getenforce

Enforcing

Prompt is mandatory mode

So keep doing it.

Setenforce 0

Execute command: getenforce

Results: Permissive

At this time, if you look at the installation of phpcms, you have already seen that the file permissions have become writable.

Note: SELinux tolerance mode (permissive) mandatory mode (enforcing)

Thank you for reading this article carefully. I hope the editor can share the phpcms installation but not write what to do to help everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report