CentOS7 file permissions are not writable when installing phpcmsV9 under

Source: Internet
Author: User

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/79/59/wKiom1aPHAuB_aBMAAL6GgsnQ_s533.png "title=" Firefox _ 2016-01-06t09-58-08.395z.png "alt=" Wkiom1aphaub_abmaal6ggsnq_s533.png "/>


1. Modify the users and groups that belong to the/VAR/WWW/HTML/PHPCMS directory to Apache

[Email protected] html]# [[email protected] html]# pwd/var/www/html[[email protected] html]# ls index.php itop phpcms[[ Email protected] html]# [[email protected] html]# chown-r apache:apache phpcms/[[email protected] html]# [[Email protecte D] html]#


2. Set all file permissions in the/var/www/html/phpcms directory to 644 and directory permissions to 755

[[Email protected] html]# [[email protected] html]# find phpcms/*-type f-exec chmod 644 {} \; [[email protected] html]# find phpcms/*-type d-exec chmod 755 {} \; [Email protected] html]#


3. View/var/www/html/phpcms directory and file permission information

[[email protected] html]# [[email protected] html]# cd phpcms/[[email  Protected] phpcms]# ls -lhd drwxr-xr-x. 9 apache apache 4.0k 1 Month    7 17:23 . [[Email protected] phpcms]# [[email protected] phpcms]# ls -lh Total dosage   60k-rw-r--r--.   1 apache apache   48 1 Month    7 00:46  admin.phpdrwxr-xr-x.  3 apache apache 4.0k 1 Month    7  00:46 api-rw-r--r--.   1 apache apache  991 1 Month    7  00:46 api.phpdrwxr-xr-x. 17 apache apache 4.0k 1 Month    7 17:23  caches-rw-r--r--.   1 apache apache  104 1 Month    7  00:46 crossdomain.xml-rw-r--r--.   1 apache apache 3.1k 1 Month    7 00:46 favicon.icodrwxr-xr-x.  2 apache apache     6 1 Moon    7 17:20 html-rw-r--r--.   1 apache apache  8.1k 1 month    7 19:53 index.html-rw-r--r--.   1 apache apache   318 1 Moon    7 00:46 index.php-rw-r--r--.   1 apache  Apache  523 1 Month    7 00:46 js.htmldrwxr-xr-x. 10 apache  Apache 4.0k 1 Month    7 00:46 phpcmsdrwxr-xr-x.  7 apache  Apache 4.0k 1 month    7 00:46 phpsso_server-rw-r--r--.   1 apache  apache 3.6k 1 Moon    7 00:46 plugin.php-rw-r--r--.   1  Apache apache  170 1 Month    7 00:46 robots.txtdrwxr-xr-x.   6 apache apache   51 1 Month    7 00:46 staticsdrwxr-xr-x.  3 apache  apache   19 1 month    7 17:20 uploadfile[[email protected]  phpcms]# [[email protected] phpcms]#


4. Re-detect "file permission settings", passed

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/79/59/wKioL1aPKobCY8GiAAPIiWWoD6M641.png "title=" 4.png " alt= "Wkiol1apkobcy8giaapiiwwod6m641.png"/>

This article is from the "small white Big Storm Walk" blog, please make sure to keep this source http://kindit.blog.51cto.com/2286921/1732807

CentOS7 file permissions are not writable when installing phpcmsV9 under

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.