【发布时间】:2016-09-18 18:45:40
【问题描述】:
我正在尝试通过 Deployer 和 SSH 连接进行自动网站源部署,但在内置部署脚本中使用 fsockopen() 函数和 unix 套接字进行连接,我总是收到以下错误:Warning: fsockopen(): unable to connect to unix:///tmp/ssh-......5204:0 (Unable to find the socket tra
nsport "unix" - did you forget to enable it when you configured PHP?)
我搜索了大约几个小时的类似问题,但找不到关于 PHP fsockopen() 和 unix 套接字的相同问题的任何信息。
我还查找了我的 php.ini 配置,并且启用了 openssl 并提供了扩展目录,所以我不明白是什么意思:
...你是不是在配置PHP的时候忘记启用了?
来自错误说明。
如果谁知道往哪个方向看,请告诉我。
P.S 我使用的是 Windows 操作系统,因此对于 apache/php,我使用服务器平台 OpenServer。 (就像 WAMP 等)
谢谢!
【问题讨论】:
标签: php sockets unix ssh php-deployer