Viewing 1 replies (of 1 total)
  • ipavkovic

    (@ipavkovic)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘wp-cache file permissions’ is closed to new replies.