Support

Akeeba Backup for Joomla!

#28281 Cronjob failed

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 user93151 on Wednesday, 23 August 2017 09:24 CDT

user93151
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

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:

When i set a cronjob in Cpanel, i get this e-mail. Backup does not start.
Can you tell me what goed wrong?

Message:

/home/alphamep/public_html/cli/akeeba-backup.php: line 1: ?php: No such file or directory
/home/alphamep/public_html/cli/akeeba-backup.php: line 2: /**: No such file or directory
/home/alphamep/public_html/cli/akeeba-backup.php: line 3: access-logs: command not found
/home/alphamep/public_html/cli/akeeba-backup.php: line 4: syntax error near unexpected token `('
/home/alphamep/public_html/cli/akeeba-backup.php: line 4: ` * @copyright Copyright (c)2006-2017 Nicholas K. Dionysopoulos / Akeeba Ltd'

tampe125
Akeeba Staff
Hello,

it seems that the cronjob tries to execute directly the backup script, instead of passing it to the PHP executable.
Usually the cronjob command should be something like this:

path/to/php /home/alphamep/public_html/cli/akeeba-backup.php
Where path/to/php is the actual path to your PHP executable.
You should contact your hosting and ask him what's the correct path to your PHP executable and to review your cronjob command.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user93151
My host gives me this path: /usr/bin/php/ home/alphamep/public_html/cli/akeeba-backup.php

But this fails also and gives this message: "Not a directory"

Is the path to php wrong?

tampe125
Akeeba Staff
Please use the following command:
/usr/bin/php home/alphamep/public_html/cli/akeeba-backup.php
Please note the missing trailing slash for the PHP path. Then you should be good to go.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user93151
I changed the command, but now i get a diverent respons:

Status: 404 Not Found
X-Powered-By: PHP/5.6.31
Content-type: text/html; charset=UTF-8

No input file specified.

tampe125
Akeeba Staff
Sorry, the correct command is the following:
/usr/bin/php /home/alphamep/public_html/cli/akeeba-backup.php

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user93151
Yes! That works :-)

Thanks for the quick support!

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!