CentOS 7 system installation wordpress No Permission problem solution

Source: Internet
Author: User
Tags centos


If your wordpress installation directory is wordpress, the default wizard configuration will show 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 to write wp-config.php files in your file system.

At this time, first consider the users and groups to which the wordpress folder belongs. Update the ownership of the wordpress directory and its subdirectories according to the User and Group configuration in httpd. conf:

Chown-R apache: apache wordpress/

If this method does not solve the problem, try the following command:

Ls-Z
Drwxr-xr-x. apache unconfined_u: object_r: httpd_sys_content_t: s0 wordpress

Chcon-R-t httpd_sys_rw_content_t # Add read/write permissions to httpd
Ls-Z
Drwxr-xr-x. apache unconfined_u: object_r: httpd_sys_rw_content_t: s0 wordpress

Note:

This problem is usually caused by manually creating the wordpress directory and then copying all the files in the original version. You can also directly copy the entire wordpress directory.

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.