CentOS Install WordPress permissions Issue

Source: Internet
Author: User
Tags install wordpress

recently installed on the CentOS6.5 WordPress, encountered a problem, after the installation of the network will never be able to configure the Web page, think of a half-day should be the source code file permissions issues, specific problems and solve the following:

If your wordpress installation directory is wordpress, the default wizard configuration will cause insufficient permissions:

Sorry, but I can ' t write the wp-config.php file.

You can create the wp-config.php manually and paste the following text into it.

or Sorry, but the wizard does not have sufficient permissions in your file system to write to the wp-config.php file.

At this time, first consider the user and group of WordPress folder, according to the configuration of user and group in httpd.conf, update the WordPress directory and its subdirectories all attribution:

Chown-r Apache:apache wordpress/

If the method does not resolve the issue, try the following command:

Ls-z
Drwxr-xr-x. Apache Apache unconfined_u:object_r:httpd_sys_content_t:s0 WordPress

Chcon-r-T httpd_sys_rw_content_t #为httpd添加读写权限
Ls-z
Drwxr-xr-x. Apache Apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 WordPress

Attention

This problem is usually caused by manually creating a wordpress directory and then copying all the files in the original. It can also be solved by copying the entire WordPress directory directly.

CentOS Install WordPress permissions Issue

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.