To perform the requested action, WordPress needs to access your web server - Please enter your FTP credentials to proceed - If you do not remember your credentials, you should contact your web host

WordPress is asking for your FTP credentials?

 

If you're seeing the error message "WordPress needs to access your web server" when you try to update your WordPress site, you can fix this by adding a single line of code to your wp-config.php file.

The code you need to add is:

PHP
define('FS_METHOD', 'direct');

This will tell WordPress to use the direct filesystem method for updates, rather than FTP. Once you've added this code, save the file and try updating your site again.

Please note: This is a temporary fix. Once you've updated your site, you should remove or comment out this line of code. Leaving it in place could expose your site to security risks.

Here's how to add the code to your wp-config.php file:

  1. Open your wp-config.php file in a text editor.
  2. Find the line that starts with define('WP_HOME', '...');.
  3. Add the code above that line, on a new line by itself.
  4. Save the file.

That's it! You should now be able to update your WordPress site without being prompted for your FTP credentials.

Don't forget to remove or comment out the line of code you just added for security.

  • 316 Users Found This Useful

Was this answer helpful?

Related Articles

WordPress Error Establishing a Database Connection

WordPress Error Establishing a Database Connection In a nutshell, you are getting this error...

PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

When you try to update WordPress or install plugins, the downloader / installer page pops up, the...

Create Static Files with your WordPress Install

Reduce the processor and memory load of your site but publishing it into html files.Use the...

504 error - Are you sure you want to do this?

In wordpress if you receive either of the following errors when trying to upload a theme... 504...

WordPress Response Body too Large and Too many arguments in Request Errors

If you are receiving a response body too large error with WordPress it is a result of WordPress...