{{tag>ftp php troubleshooting}} ====== Ftp PASV Operation not permitted error ====== Error from php program when trying to upload a pdf file to remote server: PHP Warning: ftp_put(): Entering Extended Passive Mode (|||65500|) in /home/client/libraries/php-ftp-client/FtpClient/FtpWrapper.php on line 85 PHP Warning: ftp_put(): PASV: Operation not permitted in /home/client/libraries/php-ftp-client/FtpClient/FtpWrapper.php on line 85 This is caused by ProFtpd on the remote server. To solve, add option ''TLSOptions NoSessionReuseRequired'' in ///etc/proftpd/tls.conf// ====== Tested on ====== * Debian 10 * php 7.3 ====== See also ====== [[wiki:ftp_login_ssl_tls_handshake_failed|Ftp ftp_login(): SSL/TLS handshake failed]] ====== References ====== * https://stackoverflow.com/questions/36224773/ftp-not-working-via-php-proftpd-operation-not-permitted