FTP_Get and FTP_List not working in the latest version of Cpanel
Using the commands FTP_Get and FTP_List from a PC for downloading files has stopped working.
The hosting company I am using, recently upgraded some of their servers to the newest Cpanel version.
My application using those command stopped working.
Proven that is the newer version is the reason, as some of the other servers not upgraded yet, still works.
Soon to stop too.
Does any one has experienced this situation.
Please advise.
-
old site that the FTP works cPanel Version 86.0 (build 24) Apache Version 2.4.43 PHP Version 7.3.20 MySQL Version 5.7.31 new FTP do not work cPanel Version 90.0 (build 5) Apache Version 2.4.43 PHP Version 7.3.19 MySQL Version 10.2.33-MariaDB 0 -
I'm not able to replicate this behavior. Can you show me what error you're receiving? Can you also tell me which ftp server you're using (pure or pro FTPd) 226-Options: -a -l 226 71 matches total ftp> get files_outside_homedir.txt 227 Entering Passive Mode (XXX,XXX,XXX,XX,216,30) 150-Accepted data connection 150 156.3 kbytes to download 226-File successfully transferred 226 0.063 seconds (measured here), 2.44 Mbytes per second 161131 bytes received in 0.116 seconds (1.33 Mbytes/s) ftp> put index.html 227 Entering Passive Mode (XXX,XXX,XXX,XX,216,30) 150 Accepted data connection 226-File successfully transferred 226 0.053 seconds (measured here), 58.53 Kbytes per second 3220 bytes sent in 0.0007 seconds (4.39 Mbytes/s) ftp>0 -
Thanks for looking into it. I have a few friends using this code and it has been working for the past 3 or 4 years. If your hosting company still is using Cpanel ver 86, this code works. Once the hosting company upgrades the Cpanel to Ver 90, the code stops working. Here what happens. This command is sent from an application using Alpha5. A developing app. ftp_get_file(" 0 -
HI @RonCarver The only change that has been made was to update pureftpd per the changelogs: [QUOTE=https://docs.cpanel.net/changelogs/90-change-log/#89-9999-76] - Fixed case CPANEL-32808: Update rpm.versions for pure-ftpd 1.0.49-1.cp1186.
Their changes in this version are noted here: Latest news :: Pure-FTPd Prior to this, we were running pure-ftpd 1.0.47No errors are logged in the server or the PC.
Where did you check for errors on the server?/var/log/messages
should contain error logs for FTP transactions I also see in the software provider's documentation here: FTP_GET_FILE Function that they do have a switch for a dialogue box to run the command in the foreground which I assume would give you the error you're getting. The default (without adding the switch) is F which runs it without the dialogue.0 -
Looks like a Delphi FTP component library is having problems in the list directory command too, since 1.0.49. Probably due to MLSD behavior change. 0
Please sign in to leave a comment.
Comments
5 comments