要求FTP详细信息的Wordpress插件 [英] Wordpress plugins it asks for FTP Details

查看:82
本文介绍了要求FTP详细信息的Wordpress插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试升级要求FTP详细信息的wordpress插件时.

While I am trying to upgrade the wordpress plugins it Asks for FTP Details.

我已将以下内容添加到wp-config.php

I have added the following to wp-config.php

 define('FTP_USER', 'username');

 define('FTP_PASS', 'password');

 define('FTP_HOST', 'host address');

效果很好. 但是我的virtualmin服务器上有多个网站.所有的wordpress网站都存在相同的wordpress插件问题.那么还有其他解决方法可以解决此问题吗?

It has worked fine. But I have multiple websites working on my virtualmin server. All the wordpress site is having the same wordpress plugin issue. So is there any other fix that could resolve the Issue?

推荐答案

我刚刚找到了这些:链接1 链接2 ,我在这里挖出来:

I just found these: link 1 and link 2, where I dug out this:

WordPress无法直接访问文件时会询问您的FTP凭据.这通常是由PHP以apache用户(mod_php或CGI)而不是拥有WordPress文件的用户(suPHP或FastCGI)运行引起的.切换到使用suPHP或FastCGI可能会解决它.当然,如果您不希望这样,可以始终将FTP凭据直接放在wp-config.php中,或在shell中使用它:

WordPress asks for your FTP credentials when it can't access the files directly. This is usually caused by PHP running as the apache user (mod_php or CGI) rather than the user that owns your WordPress files (suPHP or FastCGI). Switching over to using suPHP or FastCGI would probably fix it. Of course, if you don't want to mess with that, you can always just put your FTP credentials directly in wp-config.php or use this in the shell:

 pae$ cd /var/ww
 pae$ sudo chown -R www-data:www-data wordpress

这篇关于要求FTP详细信息的Wordpress插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆