Support

Akeeba Backup for Joomla!

#15945 Cron Job with 1and1 Parse Error: error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

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 on Thursday, 08 August 2013 18:00 CDT

Netperformers
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? YES
Joomla! version: 3.0.4
PHP version: 5.4.14
MySQL version: (unknown)
Host: 1and1 germany
Akeeba Backup version: Akeeba Backup Professional 3.7.6

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 tryed to activate a cronjob with 1and1 Germany

I think i did typed in all correctly but after the cronjob tryed to his job i got an error:
In the error-mail it says:

<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/.../......htdocs/.../cli/akeeba-backup.php</b> on line <b>74</b><br />

1and1 uses crontab so i wrote the following lines for the cronjob.

[email protected]
00 12 * * * /usr/local/bin/php /homepages/.../........./htdocs/..../cli/akeeba-backup.php

may u can help me ?

nicholas
Akeeba Staff
Manager
It seems that /usr/local/bin/php points to a PHP 4 binary. Please ask your host for the correct path to the PHP 5.3 or 5.4 binary and replace /usr/local/bin/php with the new path.

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!

Netperformers
Dear Akeeba Support Team,

after a long Phonecall with my Provider he change something in the path to the PHP 5.3 / 5.4 file, but know i got this Message.

/bin/sh: /usr/lib/php6: is a directory

may i got any experiance with this message ?

besides i will do another call with my provider.

regards netperformers

nicholas
Akeeba Staff
Manager
Please contact your host. They have not given you the correct path to the PHP command ine executable. Also note that there is no such thing as PHP6. It was a pre-alpha release that was made available three years ago, it was buggy and immediately removed from PHP's site. Please let your host know that having you use the unstable, known broken PHP 6 version is criminal on their part.

Actually, I would recommend that you ditched your host and promptly move your business somewhere where they actually know how to set up server and host sites such SiteGround, CloudAccess.net, Rochen or iRedHost.

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!

Netperformers
Thx Nicholas for your fast response.

My Provider is 1and1 Germany. They said that the php6 path would end in an php5.4 version.
So lets see what awnser they have for my problem.

regards netperformers

Netperformers
Hi Nicolas,

after a Phonecall with my Provider they changed the Path again and still the same Problem.

/usr/local/bin/php6: No such file or directory

if i take a look at my phpinfo.php the at the top it says PHP Version 5.4.16

and the " Configuration File (php.ini) Path " is /usr/lib/php6

what file do the cronjob need ?

regards

nicholas
Akeeba Staff
Manager
As you can see in the output of the CRON job, your host has given you the wrong path. That's why it tells you that there is no such file or directory.

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!

Netperformers
Hi nicholas,

I had a phonecall with the support and they tryed it manuel with this path and the cronjob worked. The backup was done.

nicholas
Akeeba Staff
Manager
You asked me to help you with this error message:

/usr/local/bin/php6: No such file or directory


This comes from the operating system of your server. Since I am not your host, one of its technicians and I definitely do not have root access to the server I cannot help. I make the tyres, you have a problem with the car's engine. I sympathise with you, but what you ask me to help is well outside the realm of what I can possibly help with.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!