Fix plugins and themes installation when WordPress asks for FTP credentials

When WordPress doesn’t have the right premissions on the wp-content folder it will ask for your FTP credentials every time you try to install/uninstall/update a plugin or a theme.

ftp-credentials

This is easily fixed by just adding this to your wp-content.php file:

define('FS_METHOD','direct');

Ref: http://www.hongkiat.com/blog/update-wordpress-without-ftp/

You might also like

Remove a WordPress action in child theme
If you want to remove a WordPress action that was added in the parent theme like this:function...

Exit maintenance mode in WordPress when an update fails
To exit maintenance mode in WordPress when an update fails is as easy as deleting the .maintenance file...

Change WordPress table prefix to avoid SQL injection attacks
WordPress uses a table prefix for each installation in case you want/need to have more than one WordPress...

Manual install and configuration of blackfire.io for Mac Ports in Mac OS X
blackfire.io is an awesome profiler for PHP done by SensioLabs, the company behind Symfony2. It automatically...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.