Support

Akeeba Backup for Joomla!

#37129 JOOMLA4 CRON Script Not Working

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
4.1.3
Akeeba Backup version
9.2.2

Latest post by nicholas on Friday, 13 May 2022 02:36 CDT

enktesisllc

JOOMLA4 CRON Script Not Working

Since the back won't run there is no log.

Here are the processes we tried with no success.

STEP 1

This is the string I have in the CRON
/usr/bin/php5-cli /home/quorumday1/public_html/cli/joomla.php akeeba:backup:take --profile=1 --description="CRON Backup For quorumtoday.com"

As per these instructions from the JOOMLA4 interface and Akeeba's documentation.
----------------------------------------------------------
Command-Line CRON jobs (recommended)
This is the recommended method for all servers supporting command-line CRON jobs. This method uses Joomla's console (CLI) application — instead of Joomla!'s web application — achieving maximum backup speed.

Use the following command in your host's CRON interface:
/path/to/php /home/quorumday1/public_html/cli/joomla.php akeeba:backup:take

Important Remember to substitute /path/to/php with the real path to your host's PHP CLI (Command Line Interface) executable. Do remember that you must use the PHP CLI executable; the PHP CGI (Common Gateway Interface) executable will not work with Joomla's CLI application. If unsure what this means, please consult your host. They are the only people who can provide this information.
----------------------------------------------------------

STEP 2 FROM ROCHEN

Thank you for your ticket, Your PHP path is incorrect, please try the cron as /opt/alt/php80/usr/bin/php /home/quorumday1/public_html/cli/joomla.php akeeba:backup:take --profile=1 --description="CRON Backup For quorumtoday.com"

STEP 3 REMOVE COMMENT DATA

Still won't work.

STEP 4 ROCHEN RESPONSE

I've logged into your account and tried to run the command, but I get the following results:

[quorumday1@enktesis4 ~]$ /usr/local/bin/php /home/quorumday1/public_html/cli/joomla.php akeeba:backup:take --profile=1 --description="CRON Backup For bib
learchaeology.org"
RuntimeException {#499
#message: "Could not parse the requested URI http:///home/quorumday1/public_html/cli/joomla.php"
#code: 0
#file: "./public_html/libraries/vendor/joomla/uri/src/AbstractUri.php"
#line: 373
trace: {
./public_html/libraries/vendor/joomla/uri/src/AbstractUri.php:373 { …}
./public_html/libraries/src/Uri/Uri.php:309 {
Joomla\CMS\Uri\Uri->parse($uri)^
› {
› \treturn parent::parse($uri);
› }
}
./public_html/libraries/vendor/joomla/uri/src/AbstractUri.php:111 { …}
./public_html/libraries/src/Uri/Uri.php:121 { …}
./public_html/administrator/components/com_rsfirewall/helpers/log.php:29 { …}
./public_html/administrator/components/com_rsfirewall/helpers/log.php:57 { …}
./public_html/plugins/system/rsfirewall/rsfirewall.php:47 { …}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:242 { …}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:94 { …}
./public_html/libraries/src/Plugin/PluginHelper.php:236 { …}
./public_html/libraries/src/Plugin/PluginHelper.php:194 { …}
./public_html/libraries/src/Application/ConsoleApplication.php:231 { …}
./public_html/cli/joomla.php:78 { …}
}
}
[quorumday1@enktesis4 ~]$

This indicates that your site is unable to process the request, possibly due to a conflict with the "RSFirewall" plugin based on the trace contents.

Enktesis LLC Marco Ciavolino [email protected]

nicholas
Akeeba Staff
Manager

The problem comes from the third party software RS!Firewall, namely their system plugin as you can see in the strack trace Rochen sent to you.

Unfortunately, it would seem that RS!Firewall is not fully Joomla 4 compatible. You should contact its developers and let them know that their software breaks Joomla's CLI application.

At this point I would like to point out that our Admin Tools Professional security software is not only a more complete solution, it's been fully Joomla 4 compatible since November 2017 when Joomla 4 was still in alpha 2. Since you already have a subscription to it I strongly recommend uninstalling RS!Firewall and installing Admin Tools Professional 7 on your site.

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

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!