WooCommerce: To perform the requested action, WordPress needs to access your web server • Code Workshop

Code Workshop
4/5/2018
Share with

Seeing this error? "WooCommerce: To perform the requested action, WordPress needs to access your web server"

This permissions issue haunts me after every new WordPress install. There's a one-liner fix that doesn't involve 777'ing your whole server.

Here's the magic cure:

  • Open wp-config.php
  • Add the following at the end:
define( 'FS_METHOD', 'direct' );
  • Save and close, install plugins!

Thanks to WordPress Stack Exchange.