Learn about Centmin Mod LEMP Stack today
Register Now

Install [SOLVED] Wordpress Cache Enabler permission issues after install + migration

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Benjamin74, Apr 7, 2017.

  1. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    11:40 AM
    Hello guys,

    I'm having a weird issue with my new wordpress install + migration : it seems like there is some permission issues...

    For example, modifying Cache Enabler settings and saving generates the message:

    According to this it should be a file permission problem: Topic: define(‘WP_CACHE’, true); is not set in wp-config.php. « WordPress.org Forums

    Here is my install info :

    - CentOS 6 64 bit
    - 123.09beta01
    - nginx 1.11.10
    - php 5.6.30
    - Centmin installed yesterday April 6, 2017
    - Wordpress installed through Menu 22 + Cache Enabler settings. Then content imported through All In One Wp Migration.

    However, check checking file permissions, it all seems correct to me, did I miss something ?


    Code:
    -rw-r-----  1 nginx nginx  1618  6 avril 21:07 403.html
    -rw-r-----  1 nginx nginx  1610  6 avril 21:07 404.html
    -rw-r-----  1 nginx nginx  2145  6 avril 21:07 500.html
    -rw-r-----  1 nginx nginx  2125  6 avril 21:07 502.html
    -rw-r-----  1 nginx nginx  2165  6 avril 21:07 503.html
    -rw-r-----  1 nginx nginx  7687  6 avril 21:07 503.jpg
    -rw-r-----  1 nginx nginx  2135  6 avril 21:07 504.html
    -rw-r-----  1 nginx nginx  2185  6 avril 21:07 50x.html
    -rw-r--r--  1 nginx nginx   418  6 avril 21:07 index.php
    -rw-r--r--  1 nginx nginx 19935  6 avril 21:07 license.txt
    -rw-r-----  1 nginx nginx  1665  6 avril 21:07 maintenance.html
    -rw-r--r--  1 nginx nginx  5447  6 avril 21:07 wp-activate.php
    drwxr-sr-x  9 nginx nginx  4096  6 avril 21:07 wp-admin
    -rw-r--r--  1 nginx nginx   364  6 avril 21:07 wp-blog-header.php
    -rw-r--r--  1 nginx nginx  1627  6 avril 21:07 wp-comments-post.php
    -rw-r--r--  1 nginx nginx  2870  7 avril 08:12 wp-config.php
    -rw-r--r--  1 nginx nginx  2853  6 avril 21:07 wp-config-sample.php
    drwxr-sr-x 10 nginx nginx  4096  7 avril 08:17 wp-content
    -rw-r--r--  1 nginx nginx  3286  6 avril 21:07 wp-cron.php
    drwxr-sr-x 18 nginx nginx 12288  6 avril 21:07 wp-includes
    -rw-r--r--  1 nginx nginx  2422  6 avril 21:07 wp-links-opml.php
    -rw-r--r--  1 nginx nginx  3301  6 avril 21:07 wp-load.php
    -rw-r--r--  1 nginx nginx 33939  6 avril 21:07 wp-login.php
    -rw-r--r--  1 nginx nginx  8048  6 avril 21:07 wp-mail.php
    -rw-r--r--  1 nginx nginx 16250  6 avril 21:07 wp-settings.php
    -rw-r--r--  1 nginx nginx 29896  6 avril 21:07 wp-signup.php
    -rw-r--r--  1 nginx nginx  4513  6 avril 21:07 wp-trackback.php
    -rw-r--r--  1 nginx nginx  3065  6 avril 21:07 xmlrpc.php
    or human readable:


    640 403.html
    640 404.html
    640 500.html
    640 502.html
    640 503.html
    640 503.jpg
    640 504.html
    640 50x.html
    644 index.php
    644 license.txt
    640 maintenance.html
    644 wp-activate.php
    2755 wp-admin
    644 wp-blog-header.php
    644 wp-comments-post.php
    644 wp-config.php
    644 wp-config-sample.php
    2755 wp-content
    644 wp-cron.php
    2755 wp-includes
    644 wp-links-opml.php
    644 wp-load.php
    644 wp-login.php
    644 wp-mail.php
    644 wp-settings.php
    644 wp-signup.php
    644 wp-trackback.php
    644 xmlrpc.php

    So wp-config.php has permissions 644 and owner nginx:nginx, why isn't Cache Enabler happy with that ?

    Any idea ?

    Thanks a lot,

    Benjamin
     
  2. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    11:40 AM
    OK actually it's not a permission issue, it's a problem with Cache Enabler doing bad detection of wp-config.php content because of a previous wp-super-cache install on that WP.

    wp-config.php generating problems :


    PHP:
    define('WP_CACHE'true); // Added by Cache Enabler
    //define('WP_CACHE', true); //Added by WP-Cache Manager
    define'WPCACHEHOME''/home/nginx/domains/mydomain.com/public/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    //define('WP_CACHE', true); //Added by WP-Cache Manager
    after deleting the old wp-super-cache entries it worked again:

    PHP:
    define('WP_CACHE'true); // Added by Cache Enabler
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    7:40 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice troubleshooting :D
     
  4. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    11:40 AM
    looks like the CDN cache is the best for wordpress, at least better than REDIS in my testing, Will see if it is better than Varnish