Dedecms directory permission configuration in linux

Source: Internet
Author: User

Many webmasters complain that the Dedecms article system is incompatible with the Linux system. In fact, this is mainly because you do not understand Linux, especially DedeCmsV5. The module is optional, if the directory permission is not suitable, many errors may occur in Linux.

In the Linux system, you need to pay attention to the space in the security mode. In Dedecms V4, you tried to create a directory in the FTP mode to solve the problem in the Linux security mode, but later found that, it is not feasible in many places, and the handling is too complicated. Therefore, this issue is not considered in many places in the new version, simply put, DedeCms does not support the use of safe mode space in Linux.
Maybe the official development environment of Dedecms is Windows, or the installation package is neglected. Several directories that should be set to 777 permissions are neglected, the file package set to 666 permission is not completely deleted.

Dedecms V5 official version installation permission problems:

If the default module is installed, you cannot modify the directory permission as prompted in Linux. You need to add some permission modifications. You may need to add the following permissions:

Member Directory 777

Dede directory 777

/Dede/templets directory 777

/Dede/module/modulescache. Php file 666

/Dede/answeradmin. Php file 666

/Dede/askadmin. Php file 666

/Member/myjoin. Php file 666

/Member/mygroup_member.php file 666

/Member/templets/mygroup_member.htm file 666

/Data/cache/inc_catalog_base.php file 666

/Data/cache/user/1 directory deletion

/Uploads/userup/1 directory deletion

Theoretically, all files set to 666 can be deleted without affecting installation.

Permissions for FTP operations on some files and folders in the official version of Dedecms V5:

Note: After the installation is complete, the system may not have the permission to create several new folders in the root directory, such as ask, book, and freelist, you cannot modify these directories or files. What should we do? Log on to ssh with the root user name, enter your dede installation directory/home/xxx/, and enter the following command

# Chown-R darenguan: ftp ask

# Chown-R darenguan: ftp book

# Chown-R darenguan: ftp freelist

Darenguan is the directory owner and ftp is the group owner. You can modify the settings to conform to the FTP user name.

The above problems were solved in Cenos4.4 + Nginx0.5.34 + php5.2.5 + mysql5.0.27.

 

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.