dougui2254 2013-11-04 05:44
浏览 38

无法使用FTP更新插件/升级wordpress

I've been struggling with this wordpress FTP issue for the past 3 hour. When trying to update a plugin or wordpress it self it always gives me an error:

ERROR: There was an error connecting to the server, Please verify the settings are correct.

Things that I've done so far: 1. I've sudo chmod -R 777 /var/www/blog 2. I've changed the permission of /var/www/blog to www-data 3. I've configured the following in my wp-config.php:

define( 'FTP_USER', 'username' );
define( 'FTP_PASS', 'password' );
define( 'FTP_HOST', '54.251.103.225' );

I can try to ftp using the username and password above using FileZilla just fine with no issues.I've also tried changing the permission of the blog folder to the 'username' above, no luck. I've also changed the following:

local_enable=YES
write_enable=YES

pasv_enable=YES
pasv_min_port=14000
pasv_max_port=14050
port_enable=YES

pasv_address='my ip address'
pasv_addr_resolve=NO

to my vsftpd.conf, restarted it but no luck. Any ideas on what to do next? Also tried the plugin SSH SFTP Updater Support with no luck

  • 写回答

2条回答 默认 最新

  • doutan6286 2013-11-06 08:49
    关注

    Ok, did you tried define('FS_METHOD', 'DIRECT'); ?

    评论

报告相同问题?

悬赏问题

  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件