Let Wordpress users install plugins and themes without FTP credentials

Written by
Date: 2012-12-27 18:05:32 00:00

Sometimes with a new Wordpress installation, when you want to install a new theme or a plugin, you will find Wordpress asking for FTP credentials.

In order to install directly the themes or plugins without the need to provide FTP user and password to Wordpress, edit the wp-config.php file and add this line:

 define('FS_METHOD', 'direct');

If you still can't install directly and Wordpress is still asking for FTP credential, check that the wp-content folder is writable for the www-data user, or the user that manage your Apache or Nginx server.