Forums

wp-cache file permissions (2 posts)

  1. carl_in_florida
    Member
    Posted 4 years ago #

    Do you have to have your wp-content file chmoded to 777 for wp-cache to work? I am not really excited about making any folder 777.

    Thanks

    http://wordpress.org/extend/plugins/wp-cache/

  2. ipavkovic
    Member
    Posted 4 years ago #

    Hi,

    I patched wp-cache.php to be able to drop write privileges on wp-content:

    ipavkovic@acrux:~/wordpress/wp-content/plugins/wp-cache$ diff -u wp-cache.php.orig wp-cache.php
    --- wp-cache.php.orig   2008-02-19 21:07:48.000000000 +0100
    +++ wp-cache.php        2008-04-02 12:05:06.000000000 +0200
    @@ -468,11 +468,11 @@
            $new = false;
            $dir = dirname($wp_cache_config_file);
    
    -       if ( !is_writable($dir)) {
    -                       echo "<b>Error:</b> wp-content directory (<b>$dir</b>) is not writable by the Web server.Check its permissions.";
    -                       return false;
    -       }
            if ( !file_exists($wp_cache_config_file) ) {
    +               if ( !is_writable($dir)) {
    +                               echo "<b>Error:</b> wp-content directory (<b>$dir</b>) is not writable by the Web server.Check its permissions.";
    +                               return false;
    +               }
                    if ( !file_exists($wp_cache_config_file_sample) ) {
                            echo "<b>Error:</b> Sample WP-Cache config file (<b>$wp_cache_config_file_sample</b>) does not exist.Verify you installation.";
                            return false;

    Best Regards

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags