plugins - 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');

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

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

Share Improve this question edited Jan 10, 2016 at 15:22 CommunityBot 1 asked Feb 14, 2015 at 11:11 codecowboycodecowboy 1,7786 gold badges23 silver badges43 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 35

Because I had cut and pasted define(’FS_METHOD’,’direct’); from the web, the incorrect quote characters were pasted into the file.

should be define('FS_METHOD', 'direct');

The incorrect quote character also changed the encoding of the file somehow. If anyone has deeper knowledge of this issue please let me know in the comments.

You need to write define('FS_METHOD', 'direct'); in wp-config.php. Make sure you can add this line just after define( 'DB_COLLATE', '' );

So it will look like the following.

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

See this Video https://youtu.be/Jrqta7eYfsg

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745264981a4619398.html

相关推荐

  • plugins - 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');

    7小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信