0

In reference to this question:

Wordpress plugin install: Could not create directory

Would simply comment but can't comment with less than 50.

I followed the instructions of updating permissions with chown using the following command:

sudo chown -R _www:_www wp-content/plugins/

However I get operation not permitted on a long list of all the contents of the folder.

Benjamin
  • 85
  • 5

2 Answers2

1

The FS_METHOD can be defined in wp_config.php like so:

define('FS_METHOD', 'direct');
Damocles
  • 1,287
  • 1
  • 7
  • 9
0

Try with this code. Put in functions.php

if(is_admin()) {
  add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));
  define( ‘FS_CHMOD_DIR’, 0751 );
}
Full Stop
  • 904
  • 11
  • 24