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:

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.

  • 161 Users Found This Useful

Was this answer helpful?

Related Articles

Unable to create directory uploads/ Is its parent directory writable by the server?

Unable to create directory... Is its parent directory writable by the server? This error can be...

Not Receiving Form Email Through WordPress - SMTP

For anti-spam reasons be sure that the email address you are using to send from, exists in your...

Do you have a WordPress plugin slowing you down?

Some WordPress plugins can really bog down your site's performance. Query Monitor can help in...

WordPress Security

Even with many layers of server security, if a WordPress install is not constantly updated and...

The WordPress app doesn't work with my website

The WordPress app utilizes the xmlrpc.php file on your account put there by WordPress. However, a...