Hello,
First, try updating to DA 1.33.4.
Prior to that, the commands like echo, touch, chmod etc, were all just called without the full path. The full paths to programs are used in the ftp_upload.php script now. If any of those $PATHs were missing in the env as called by DA, that would explain why they didn't work.
Beyond that, ensure /home/tmp is chmod 1777.. which it likely is, since you mentioned the tar.gz are showing up.
Else it's possibly an issue with the program or call itself..
Edit:
/usr/local/directadmin/scripts/ftp_upload.php
Find the line:
Code:
$FTPPUT -f $CFG -V -t 25 -m "$ftp_path" "$ftp_local_file" 2>&1
and add one more line, so that it looks like:
Code:
$FTPPUT -f $CFG -V -t 25 -m "$ftp_path" "$ftp_local_file" 2>&1
echo '$FTPPUT -f $CFG -V -t 25 -m "$ftp_path" "$ftp_local_file"' >> /tmp/test.txt
Which would basically dump the exact command as called by DA into the /tmp/test.txt, so you can see what it's doing. There should also be a cfg file sitting next to the tar.gz for the upload, so check that as well, as it's needed for the above call.
Another way to test is to call the ftp_upload.php script by hand. eg:
Code:
cd /usr/local/directadmin/scripts
ftp_local_file=/home/tmp/your/file.tar.gz ftp_ip=1.2.3.4 ftp_username=bob ftp_password=secret ftp_path=/ ./ftp_upload.php
you have to edit the ftp_upload.php to change "/bin/sh" to show "#!/bin/sh" for this test, then change it back again when done, or you'll get an interpreter error.
Lastly, you can try 2 other ftp upload programs other than ncftpput. Curl or php:
http://help.directadmin.com/item.php?id=111
John