Support

Akeeba Backup for Joomla!

#26081 New CRON issue

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 dlb on Monday, 03 October 2016 21:56 CDT

bob.clinton
Getting this error message on all sites on this Media Temple Grid Server. Joomla & all extensions are up to date. Not sure where to find Akeeba Error Log:

================================================================================
WARNING! Incompatible PHP version 5.3.29 (required: 5.4.0 or later) ================================================================================

This script must be run using PHP version 5.4.0 or later. Your server is currently using a much older version which would cause this script to crash. As a result we have aborted execution of the script. Please contact your host and ask them for the correct path to the PHP CLI binary for PHP 5.4.0 or later, then edit your CRON job and replace your current path to PHP with the one your host gave you.

For your information, the current PHP version information is as follows.

PATH: /usr/local/php-5.3.29/bin
VERSION: 5.3.29

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IMPORTANT!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PHP version numbers are NOT decimals! Trailing zeros do matter. For example, PHP 5.3.28 is twenty four versions newer (greater than) than PHP 5.3.4.
Please consult https://www.akeebabackup.com/how-do-version-numbers-work.html


Further clarifications:

1. There is no possible way that you are receiving this message in error. We
are using the PHP_VERSION constant to detect the PHP version you are
currently using. This is what PHP itself reports as its own version. It
simply cannot lie.

2. Even though your *site* may be running in a higher PHP version that the one
reported above, your CRON scripts will most likely not be running under it.
This has to do with the fact that your site DOES NOT run under the command
line and there are different executable files (binaries) for the web and
command line versions of PHP.

3. Please note that we cannot provide support about this error as the solution
depends only on your server setup. The only people who know how your server
is set up are your host's technicians. Therefore we can only advise you to
contact your host and request them the correct path to the PHP CLI binary.
Let us stress out that only your host knows and can give this information
to you.

4. The latest published versions of PHP can be found at http://www.php.net/
Any older version is considered insecure and must not be used on a
production site. If your server uses a much older version of PHP than those
published in the URL above please notify your host that their servers are
insecure and in need of an update.

This script will now terminate. Goodbye.

dlb
If you look at the command that you are calling with your CRON job, the first part of it calls a specific version of PHP-CLI. It looks something like "/usr/local/php-5.3.29/bin" but it normally ends in php. That's the part that is wrong. You need to contact your host and ask them the proper path to call a modern version of PHP-CLI. You have to be VERY specific because first level support can be dumb as a box of rocks (so says the Akeeba first level support guy). You need PHP-CLI and a version higher than 5.4.


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)

bob.clinton
Thanks Dale -

I'll let you know how I make out!

dlb
You're welcome! :-)


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)

bob.clinton
The path is

/usr/local/php-5.5.35/


What do I do with this?

Here is my CRON command -

php /nfs/c05/h03/mnt/69818/domains/robertclinton.com/html/cli/akeeba-backup.php

dlb
Your new command should be:
/usr/local/php-5.5.35/php /nfs/c05/h03/mnt/69818/domains/robertclinton.com/html/cli/akeeba-backup.php


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)

bob.clinton
Thanks, Dale -

Re-configuring to that path and running script this evening. I'll report back and let you know how I do.

bob.clinton
Got this message - No such file or directory

dlb
I think that message is coming from the PHP part, '/usr/local/php-5.5.35/php". I added the php on the end thinking php-5.5.35 was a folder name. Maybe I got that wrong. Let's try:
/usr/local/php-5.5.35 /nfs/c05/h03/mnt/69818/domains/robertclinton.com/html/cli/akeeba-backup.php
If that doesn't work we'll have to go back to your host for clarification on the PHP-CLI path.


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)

bob.clinton
I'll try it tonight. Fingers crossed!

bob.clinton
Got this

"Permission denied"

I'll try them today but they are notoriously unhelpful.

dlb
Some hosts put the PHP information in their FAQ pages, you may be able to find the answer there. Unfortunately, it is specific to your host and I can't answer that question.


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)

bob.clinton
I was working for several months on php 5.5.35 using

php /nfs/c05/h03/mnt/69818/domains/robertclinton.com/html/cli/akeeba-backup.php

I don't understand what changed

dlb
The php command alone is not giving you PHP 5.5.35, it is giving you 5.3.29. The current version of Akeeba Backup requires at least PHP 5.4. What you see in the Info screens in your website is not necessarily what is used in the command line backup. With the command line, we are calling a specific version of PHP and the default is too old.

If we can't get the right command line PHP version, we can switch the CRON job to a front end backup. That will use the same version of PHP that your website does. It is a little slower, but for a CRON job that usually doesn't matter.


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)

bob.clinton
Found this in the Media Temple KB...

Example of running PHP5 via the command-line

php5 /home/00000/data/script-name.php

Trying it tonight.

dlb
That looks promising. Please let me know how you make out.


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)

bob.clinton
This is what works for Media Temple - /usr/local/php-5.5.35/bin/php /nfs/c05/h03/mnt/69818/domains/robertclinton.com/html/cli/akeeba-backup.php

dlb
They are all a little different. I'm glad you got it working.


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)

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!