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

You have to add the following Line before /* That's all, stop editing! Happy publishing. */ in wp-config.php file.

define( 'FS_METHOD', 'direct' );