Support

Akeeba Backup for Joomla!

#12788 CRON Job Not Working For Backup

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, 29 June 2012 02:56 CDT

habdaddy
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.6
PHP version: 5.3.13
MySQL version: 5.1
Host:
Akeeba Backup version: 3.5.2 (pro)

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:
I have a cron job that is executing the following:
/usr/bin/php /home/commonfo/public_html/cli/akeeba-backup.php --profile=1
The problem is that it does not run. I have Admin Tools installed and am using the .htaccess. I added an exception to allow direct access to cli/akeeba-backup.php. I know that the /user/bin/php is correct as I have other sites running the backup with no problem BUT not on this version (still executing the php file under the com_akeeba components directory). They also are not running Admin Tools. It seems that the php file will not run and am wondering if I have missed a step in the Admin Tools setup or in the Backup program.

nicholas
Akeeba Staff
Manager
I believe that something broke on my browser when I tried replying to you two days ago and the reply never got through :(

First things first, Admin Tools and .htaccess are irrelevant to your issue. The CRON job is running in command-line mode which is not affected by .htaccess. The .htaccess file only matters when you are accessing something over the web.

Regarding your issue, I suspect that the /usr/bin/php executable is actually the PHP CGI executable which is not compatible with the new CRON scripts in Akeeba Backup 3.5.x. You need the PHP CLI binary. Please ask your host for the fill path to the CLI executable.

If you are wondering why that happens, it is a restriction of the Joomla! Platform. Since Akeeba Backup 3.5 we are using Joomla!'s own JApplicationCli API to power our CRON scripts. The drawback is that JApplicationCli requires using the PHP CLI binary and will refuse to execute the script when you try running it through the PHP CGI binary. The only (and architecturally correct) workaround is using the PHP CLI binary.

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!