Wordpress Prompting for FTP Credentials

Wordpress is stupid. When uploading plugins, it’ll default to trying to upload via FTP… placing this in your wordpress config.php ile will shut it up and make it do the right thing.

1
define('FS_METHOD', 'direct');

Please don’t make your wordpress docroot writeable by the webserver user like some blogs suggest… only the wp-content and wp-uploads directories need that.

Comments