Support

Akeeba Backup for Joomla!

#8488 Backup Failed (log attached)

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Friday, 18 June 2010 04:46 CDT

Tariaki
Hi,

I set up a CRON to backup a site.
It's an FTP backup (the archive is saved to an FTP address). The FTP test was successful but I'm getting a "failed".
This is my command line :
/usr/bin/php5 -f /home/sites/swimskills.co.uk/public_html/administrator/components/com_akeeba/backup.php

The log file is attached.

Any ideas?
Log File

dlb
The log says it is a timeout problem, but I don't understand why. I'll ask Nicholas to look at this.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
You are accidentally using the wrong PHP binary in your CRON command. Taking a look at your log I can see this proof:
INFO |100616 19:16:01|PHP Interface :cgi

You are supposed to use the PHP CLI (Command Line Interface) executable file to run the CRON scripts. You are accidentally using the PHP CGI (Common Gateway Interface) executable file, which is normally used by the web server to deliver your pages to the browser. Their difference is that the CGI binary has a maximum execution time limit, whereas the CLI script doesn't have an execution time limit. As a result, using the CGI script will lead to timeouts, whereas using the CLI script won't.

Please ask your host for the full path to the PHP CLI executable on their server. Then you'll have to modify your CRON command. Let's say that you current CRON command looks like this:
php /path/to/backup.php

If your host tells you that the path to the CLI PHP executable is /usr/local/bin/php5-cli, you should modify the CRON command to look like this:
/usr/local/bin/php5-cli /path/to/backup.php


This will do the trick :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!