0

After changing all the WordPress permissions to 777 and assigning them to group of apache:apache still Wp Super Cache plugin can't change the wp-config.php

I don't know why!

My server is :

CentOS 7

PHP 71

Apache

MariaDB

Apache Error Log:

[Thu Nov 02 02:01:45.637165 2017] [php7:warn] [pid 17633] [client 5.202.27.148:25292] PHP Warning:  include(): Failed opening '/var/www/html/wp-content/plugins/wp-super-cachewp-cache-base.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/wp-content/plugins/wp-super-cache/wp-cache.php on line 72, referer: http://website.com/wp-admin/post.php?post=10821&action=edit

Wordpress Error:

Warning! You must set WP_CACHE and WPCACHEHOME in your wp-config.php for this plugin to work correctly: define( 'WP_CACHE', true ); 
define( 'WPCACHEHOME', '/var/www/html/wp-content/plugins/wp-super-cache' );
Red fx
  • 1,071
  • 2
  • 12
  • 26
Adnan
  • 814
  • 12
  • 38

2 Answers2

0

This is right. wp-config should be writeble only by user manually. This file should not be writable using code. Please put these configuration manually in your wp-config.php.

Rajkumar Gour
  • 1,131
  • 12
  • 26
0

My problem solved by disabling SELinux that prevents apache user from editing files and folder.

Adnan
  • 814
  • 12
  • 38