ftp_upload if missing bc, use expr

Version 1.5


A few reports of: ftp_upload.php exit code: 0 ftp_upload.php output: Cannot find /usr/bin/bc for ftp upload timeout change on large file: 3 Gig. during backups, which wouldn't break the backup, but doesn't increase the timeout accordingly. Changed the ftp_upload.php to fallback and use /usr/bin/expr if /usr/bin/bc is missing. If /usr/bin/expr doesnt exist, but /bin/expr exists, that's used instead.

Interested to try DirectAdmin? Get a 30-day Free Trial!