Pau*_*lin 5 ssh apache2 wordpress
我的 Ubuntu 15.10 系统运行良好,Wordpress 更新通过 ssh 进行。但是当我将 Ubuntu 升级到 16.04 时,切换到 php7.0 破坏了 Wordpress 的更新。起初,它提示输入 FTP 登录凭据,直到我安装了 php-ssh2(警告它基于 git 快照)。现在当我尝试升级插件时,它说
An error occurred while updating WP to Twitter: Unable to locate WordPress Content directory (wp-content).
Run Code Online (Sandbox Code Playgroud)
在 /var/log/apache2/error.log 中:
[Sun Jun 12 11:01:10.969931 2016] [:error] [pid 5545] [client 192.168.1.11:65278] PHP Warning: file_put_contents(): Unable to open ssh2.sftp://Resource id #81/.maintenance on remote host in /home/blog/wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php on line 252, referer: http://xxxx.com/wp-admin/update-core.php?action=do-plugin-upgrade
[Sun Jun 12 11:01:10.970772 2016] [:error] [pid 5545] [client 192.168.1.11:65278] PHP Warning: file_put_contents(ssh2.sftp://Resource id #81/.maintenance): failed to open stream: operation failed in /home/blog/wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php on line 252, referer: http://xxxx.com/wp-admin/update-core.php?action=do-plugin-upgrade
Run Code Online (Sandbox Code Playgroud)
我是不是缺少一个包,或者一个配置项,或者什么?
小智 8
我有同样的问题。这似乎是 php-ssh2(来自 Ubuntu 存储库)中的一个错误。
去掉php-ssh2后,用pecl安装新版本(pecl install ssh2-1.0),问题解决。
我提交了一个错误报告:https : //bugs.launchpad.net/ubuntu/+source/php-ssh2/+bug/1617294
| 归档时间: |
|
| 查看次数: |
2318 次 |
| 最近记录: |