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

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:

  1. Open wp-config.php
  2. Add
    define( 'FS_METHOD', 'direct' );

    at the end

  3. Save and close, install plugins!

Thanks to https://wordpress.stackexchange.com/questions/228591/to-perform-the-requested-action-wordpress-needs-to-access-your-web-server-pleas

Published