Prompted for FTP details even with FS_DIRECT set to true

I am running WordPress 4.1 Multisite on CentOS with NGINX. I have set define('FS_METHOD','direct'); in wp-config.php but am still getting prompted for FTP credentials when trying to install a plugin.

I have tried chmod’ing the wp-content directories recursively with both nginx and www-data users and neither works

Solutions Collecting From Web of "Prompted for FTP details even with FS_DIRECT set to true"