Fix WordPress asking for FTP credentials

If you're asked to enter your FTP credentials when you try to install or update a plugin or theme in the WordPress dashboard, it's because of a specific setting in the wp-config.php file.

Follow the steps below to prevent WordPress from displaying this FTP prompt.

  1. Connect to your hosting account with FTP or File Manager.
  2. Find the folder with your WordPress files and open the wp-config.php file.
  3. At the bottom of the wp-config.php file, above the line that says /* That's all, stop editing! Happy publishing. */, add the following lines of code: define('FS_METHOD', 'direct'); define('FS_CHMOD_DIR',0755); define('FS_CHMOD_FILE',0644);
  4. Save the updated file. In a browser, reload your WordPress dashboard page. You can now update or install plugins and themes without being asked for FTP credentials.
  • wordpress, wordpress ftp, ftp credential wp
  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

How to fix failed to retrieve directory listing error in FileZilla FTP?

When using FileZilla to connect to your FTP if you encounter an error like this: Status:...

Fixing Exim error "the account or domain may not exist, they may be blacklisted"

If you have ever ran into the errorThe mail server could not deliver mail to XXX Theaccount or...

How to reset wordpress login password via phpmyadmin?

Log in to cPanel using your username and your cPanel password at http://yourdomain.com/cpanel,...

How to add website in webmaster tool?

After login into your google account.Just click on following link www.google.com/webmasters/ and...

cPanel >> MySQL Databases page shows "The MySQL server is currently offline. adminbin Cpanel/cpmysql/DBCACHE: exit 255"

Symptoms When accessing cPanel >> MySQL Databases you receive an error with the following:...