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
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