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