Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #33480, comment 9


Ignore:
Timestamp:
08/21/2015 10:50:23 AM (10 years ago)
Author:
jobst
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33480, comment 9

    v1 v2  
    1 deleted, wrong
     1I first edited this and then deleted it in a hurry, I was correct.
     2
     3 It still is a permission problem:
     4
     5 I have a file /SOMEPATH/wp-content/plugins/index.php
     6  - If I chmod that to 0640 I cannot write (below false)
     7  - If I chmod that to 0660 I CAN write (below true)
     8
     9 {{{
     10  WP_Filesystem( array( 'hostname' => '127.0.0.1', 'username' =>
     11 'SOMEUSER', 'public_key' => '/PATH_TO_SOME_KEY.pub',
     12 'private_key'=>'/PATH_TO_SOME_KEY.priv') );
     13  global $wp_filesystem;
     14  error_log(WP_PLUGIN_DIR . '/index.php');
     15  $rc = var_export($wp_filesystem);
     16  error_log($rc);
     17  $rc = $wp_filesystem->is_writable( WP_PLUGIN_DIR . '/index.php');
     18  error_log(">".$rc."<");
     19 }}}
     20
     21 Gotta play some hockey, back in a couple of hours.