This tutorial will show you how to deal with "To perform the requested action, WordPress needs to access your web server…" error.
Also, this error message may look like the following: “Direct write access not allowed on your server”.
In case you are using any secure server where you use private keys instead of passwords, chances of getting "To perform the requested action, WordPress needs to access your web server…" message are pretty high because you don’t have permission to upload anything on your server:
To fix this quickly, you just need to edit your wp-config.php file and add this code to the very end of the file:
This is the end of the tutorial. Now you know how to allow the “direct” filesystem method on your server.
Feel free to check the detailed video tutorial below: