Dedecms install prompts on Linux do not have permission to resolve

Source: Internet
Author: User

The Web server must be running a different user than the directory owner user, for example, if Apache is running as root, then the owner of the site directory settings should not be set to root, but instead be set to a user other than root, such as Apache.

We assume that the Web server is running as root, and that the user assigned to the site is the APACHE,DEDECMS Web site root directory/var/www/html.

It is not recommended that users set the column directory in the root directory, because it can be very troublesome to make security settings.

By default, when the installation is complete, the directory is set up as follows:

1, first set up the site directory owner for CentOS, the user group is WWW, the directory is set to 750, the file is 640.
Cd/var/www
Chown-r apache.root HTML
Find Html-type d-exec chmod 750 {} \;
Find Html-not-type d-exec chmod 640 {} \;

2, data, templets, uploads, a images directory, set can read and write, non-executable rights;

To set read and Write permissions:
Cd/var/www/html
Chmod-r 770 Data templets uploads a images

Dedecms install prompts on Linux do not have permission to resolve

Related Article

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.