• Resolved fijisunshine

    (@fijisunshine)


    Great plugin!

    For security reasons, I store wp-config.php outside of the default location of /public_html/ on my server. For this reason, WP Super Cache is giving me the following error:

    Warning!?Could not update /home/redacted/public_html/wp-config.php!?WPCACHEHOME must be set in config file.

    wp-config.php in /public_html/ correctly gives the location of the real wp-config.php on the server. And at the top of the real wp-config.php, WPCACHEHOME is properly set to the directory of the WP Super Cache plugin. WP_CACHE is also set to true.

    Is there something that I should do to ensure WP Super Cache understands that the real wp-config.php isn’t in /public_html/ ?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The plugin looks in public_html/../ for wp-config.php as well, but that’s not where you’re storing it, I presume? If you have a public_html/wp-config.php can you set WPCACHEHOME and WP_CACHE in there? They’re not sensitive data that needs to be protected.

    Otherwise, I guess the simplest way to fix it is by adding code to skip writing the WPCACHEHOME in wp_cache_create_advanced_cache() in wp-cache.php

    BTW – do you worry that all the sensitive data defined in wp-config.php is available to all the plugins you’re using? It defeats the purpose of moving wp-config.php out of public_html.

    Thread Starter fijisunshine

    (@fijisunshine)

    Thank you for your excellent reply. I followed your instructions and moved the two lines regarding WP_CACHE and WPCACHEHOME to /public_html/wp-config.php and that fixed the issue.

    WP Super Cache works perfectly now! Thank you

    I’m very happy to hear it’s working well! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with wp-config.php’ is closed to new replies.