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
define( 'FS_METHOD', 'direct' );
at the end
- 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