Support

Akeeba Backup for Joomla!

#13849 Cron Backup generating syntax errors

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 Monday, 15 October 2012 03:28 CDT

user50182
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?)? No
Joomla! version: (1.5.26)
PHP version: (5.2.17 )
MySQL version: (5.0.96)
Host: (optional, but it helps us help you)
Akeeba Backup version: (Akeeba Backup Professional 3.4.3)

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:
hi

I have setup a cron command using Cpanel:
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php

when it is time for the backup to run i get the following errors:
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php: line 1: ?php: No such file or directory
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php: line 2: /GSLog.inc: Permission denied
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php: line 3: access-logs: command not found
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php: line 4: syntax error near unexpected token `('
/home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php: line 4: ` * @copyright Copyright (c)2009-2012 Nicholas K. Dionysopoulos'


When I run the backup from the backend it works perfectly fine.

Please assist.

dont know where to find the log files.....

With Thanks

nicholas
Akeeba Staff
Manager
You have forgotten something very important at the beginning of your CRON command line: the PHP command! Your command line should be something like:
/usr/bin/php5-cli /home/mydomain/public_html/administrator/components/com_akeeba/altbackup.php
Please ask your host to tell you if it should be /usr/bin/php5-cli or something else. What you need, in case the host asks you, is the path to 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!

user50182
Thanks for the speediest reply i ever got on a forum.

I shall contact the provider.

With Thanks

nicholas
Akeeba Staff
Manager
You're welcome :)

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!