Why is WordPress Asking For Your FTP Credentials to Install Plugins?

You want to install any plugin, but *blink* – WordPress need your FTP credentials. What the hell? The problem is simple – whenever you use WordPress to install, upgrade, or delete plugins, WordPress must make changes to files on the filesystem.

If WordPress does not have the necessary permissions to modify the filesystem directly, you will be asked for FTP credentials so that WordPress can try to do what it needs to via FTP.”

How to fix this problem? Open the wp-config.php file of your WordPress installation folder. Copy the below code and paste it at the wp-config.php file.


FS_METHOD works in some cases. WordPress tries to create a file ‘wp-content/temp-write-test-‘.time(). If this fails it assumes that you can only use FTP. But this might not be true if the wp-content folder itself is not writable, but for example, the folder wp-content/plugins is.

So the FS_METHOD method will probably work but the problem can be after unpacking the package. If the error says: “Could not create directory.”, you must set chmod 755 to the wp-content folder.

Total Commander: Files > Change attributes > Set 755
Ubuntu: sudo chown -R www-data:www-data PATH_TO_WORDPRESS_FOLDER

Does it work for you? Write in the comments!

UNLIMITED DOWNLOADS: 50+ Million Website Templates & Design Assets

All the Website Templates you need and many other design elements, are available for a monthly subscription by subscribing to Envato Elements. The subscription costs $16.50 per month and gives you unlimited access to a massive and growing library of over 50 million items that can be downloaded as often as you need (stock photos too)!

Recent Articles

Brentwood – Golf Course Theme [Free theme download]

Demo Download Key Features Page Builder Included ($34 Value) – Easily build your pages with...

Meetup – Conference Event WordPress Theme [Free theme download]

Demo Download Meetup – Conference Event WordPress Theme Meetup is a simple and easy-to-use theme...

Deeds – Best Responsive Nonprofit Church WordPress Theme [Free theme download]

Demo Download The lightweight and finely coded Deeds premium Church WordPress Theme 2021 is...

Kraft – Minimal Portfolio WordPress Theme [Free theme download]

Demo Download Kraft 2.4 is live! Change Log Description Kraft is minimal, modern and beautiful portfolio WordPress...

PeakShops – Modern & Multi-Concept WooCommerce Theme [Free theme download]

Demo Download Changelog Update 1.4.2 – 03.01.2021 - Added images for Text button styles -...

Get in touch

Be our first-class reader, build a community and follow us on social media!

Leave A Reply

Please enter your comment!
Please enter your name here