Support

Akeeba Backup for Joomla!

#21835 Error CLI 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 [email protected] on Friday, 09 January 2015 12:48 CST

[email protected]
After upgrading from v.3.6.5 to v.4.1.0, the CLI backup no longer works. On v.3.6.5, I had been getting a PHP warning about 'safe_mode', but the backup always went through. Now, the backup fails with the following error:
Failed loading /usr/lib64/php/modules/ioncube_loader_lin_5.3.so: /usr/lib64/php/modules/ioncube_loader_lin_5.3.so: undefined symbol: execute
PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0

There is no log file to attach, because none is generated. The task fails before Akeeba is able to write a log.

Manually running a backup from the Akeeba Control Panel works without issue. This only occurs during the CLI backup using:
/path/to/php /var/www/vhosts/siteroot/httpdocs/cli/akeeba-backup.php

[email protected]
UPDATE: The error about ioncube was my fault. PHP was loading an incorrect version. I corrected that in the ini file and the ioncube error went away.

The CLI backup still will not run, and the output is now:
PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0

tampe125
Akeeba Staff
Hello Paul,

the error you reported is not caused by our software but by your php.ini file.
If I remember correctly, that's caused by the directive safe_mode which is no longer available starting from PHP 5.4.
Please review you config file and try again.

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!

[email protected]
Errrrr. My bad.

My PHP environment on my site had safe mode turned off; however, the CLI is using the default PHP INI file for the server, which had safe mode turned on.

I made that correction and it is working correctly now. Thanks for your patience and advice!

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!