ftp_nlist(): data_accept: SSL/TLS handshake failed

前端 未结 2 474
梦如初夏
梦如初夏 2021-01-07 08:22

Once upon a time, there was a normalish error in PHP land:

Warning: ftp_nlist(): data_accept: SSL/TLS handshake failed in [path] on line 29

2条回答
  •  春和景丽
    2021-01-07 08:52

    Although this question is quite old, but in case someone else hits this problem:

    If your ftp_ssl_connect and ftp_login works fine but functions like ftp_nlist, ftp_put, ftp_fput don't works the problem might be that your FTP server is using port 21 for Connection but different port ranges for data transfer, that explains why you can connect and login but you can't upload or download data, and you need to allow the Out-going connections to those port range in your firewall

提交回复
热议问题