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