Lamp-modul: cron problems?

I’m running WordPress wthin a lamp-modul (Version 1.0.13 )
My Mataomo Plugin reports Matomo Cron Error with

84 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:473; CronArchive.php:468; CronArchive.php:226; Access.php:567; CronArchive.php:221; ScheduledTasks.php:383; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191;

  • Warning archive_errors: 2025-01-22 13:28:08 ('Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-22&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file.

Last Successful Archiving Completion error Archiving last ran successfully on Monday, January 13, 2025 12:29:37 which is 9 days 01:10:46 ago

I honestly have no explanation for it, since everything worked for months before that.
Was there an update with changes about 9 days ago that could have caused this malfunction?

log

Matomo

  • Matomo Plugin Version: 5.2.0
  • Config exists and is writable.: Yes (“$abs_path/wp-content/uploads/matomo/config/config.ini.php” )
  • JS Tracker exists and is writable.: Yes (“$abs_path/wp-content/uploads/matomo/matomo.js” )
  • Plugin directories: Yes ([{“pluginsPathAbsolute”:“$abs_path/wp-content/plugins/matomo/plugins”,“webrootDirRelativeToMatomo”:“…/plugins”}])
  • Tmp directory writable: Yes ($abs_path/wp-content/cache/matomo)
  • Matomo Version: 5.2.1
  • Matomo Blog idSite: 1
  • Matomo Install Version: 5.2.0 (Install date: 2025-01-14 07:27:07)
  • Upgrades outstanding: No
  • Upgrade in progress: No

Endpoints

  • Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js)
  • Matomo JavaScript Tracker - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)
  • Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo$abs_path/matomo.php)
  • Matomo HTTP Tracking API - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)

Crons

  • Server time: 2025-01-22 13:40:24
  • Blog time: 2025-01-22 14:40:24 (Below dates are shown in blog timezone)
  • Sync users & sites: Next run: 2025-01-23 13:25:56 (22 hours 45 min) ( Last started: 2025-01-22 13:28:08 (-1 hours 12 min). Last ended: 2025-01-22 13:28:08 (-1 hours 12 min). Interval: daily)
  • Archive: Next run: 2025-01-22 15:25:09 (44 min 45s) ( Last started: 2025-01-22 14:25:10 (-15 min 14s). Last ended: 2025-01-22 14:25:58 (-14 min 26s). Interval: hourly)
  • Update GeoIP DB: Next run: 2025-02-20 13:25:54 (28 days 22 hours) ( Last started: 2025-01-21 13:27:31 (-1 days 1 hours). Last ended: 2025-01-21 13:27:33 (-1 days 1 hours). Interval: matomo_monthly)

Mandatory checks

  • PHP version >= 7.2.5: ok
  • PDO extension: ok
  • PDO\MYSQL extension: ok
  • MYSQLI extension: ok
  • Other required extensions: ok
  • Required functions: ok
  • Required PHP configuration (php.ini): ok
  • Directories with write access: ok
  • Directories with write access for Tag Manager: ok

Optional checks

  • 64-bit PHP Binary: ok
  • Tracker status: ok
  • Memory limit: ok
  • Time zone: ok
  • Open URL: ok
  • GD > 2.x + FreeType (graphics): ok
  • Other extensions: ok
  • Other functions: ok
  • Filesystem: ok
  • Error Last Successful Archiving Completion: error (Archiving last ran successfully on Monday, January 13, 2025 12:29:37 which is 9 days 01:10:46 ago )
  • Database abilities: ok
  • Warning Max Packet Size: warning (It is recommended to configure a ‘max_allowed_packet’ size in your MySQL database of at least 64MB. Configured is currently 16MB. )
  • Geolocation: ok
  • Update over HTTPS: ok
  • Mobile Messaging SMS Provider: ok
  • Supports Async Archiving: Yes
  • Async Archiving Disabled in Setting: No
  • Location provider ID: geoip2php
  • Location provider available: Yes
  • Location provider working: Yes
  • Had visit in last 5 days: Yes
  • Matomo URL: Yes ($site_url/wp-content/plugins/matomo$abs_path/)

Matomo Settings

  • Track mode: default
  • Track ecommerce: No
  • Track codeposition: footer
  • Track api endpoint: default
  • Track js endpoint: default
  • Version history: 5.2.0, 5.1.7, 5.1.6, 5.1.5, 5.1.4
  • Core version: 5.2.1
  • Last tracking settings update: 1737552684
  • Last settings update: 1737552684
  • Track content: all
  • Track ecommerce: No
  • Track search: Yes
  • Track 404: Yes
  • Track across: Yes
  • Track across alias: Yes
  • Track user id: username
  • Mail history: 2025-01-01 00:30:12, 2025-01-01 00:30:07, 2024-12-01 00:25:34

Logs

  • Warning archive_main: 2025-01-22 13:28:08 (84 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:473; CronArchive.php:468; CronArchive.php:226; Access.php:567; CronArchive.php:221; ScheduledTasks.php:383; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191;)
  • Warning archive_errors: 2025-01-22 13:28:08 (‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-22&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log’ ‘Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-22&format=json&trigger=archivephp: ''’ ‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-21&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log’ ‘Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-21&format=json&trigger=archivephp: ''’ 'Got invalid response from API request: ?
    … and so on
    <…snip…>
    Server Info: Apache/2.4.58 (Ubuntu)
  • Apache AddHandler support: Supported
  • PHP OS: Linux
  • PHP Version: 8.3.15
  • PHP SAPI: apache2handler
  • PHP Maxmind DB extension: Not loaded
  • PHP Error Reporting: 4437 After bootstrap: 4437
  • PHP Found Binary: /usr/bin/php -q
  • Timezone: UTC
  • WP timezone: Europe/Berlin
  • Locale: de_DE
  • User Locale: en_US
  • Memory Limit: 512M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
  • WP Memory Limit: 40M
  • WP Max Memory Limit: 512M
  • Timezone version: 0.system
  • Time: 1737553958
  • Max Execution Time: 600
  • Max Post Size: 100M
  • Max Upload Size: 104857600
  • Max Input Vars: 1000
  • Disabled PHP functions: No
  • zlib.output_compression is off: Yes
  • Curl Version: 8.5.0, OpenSSL/3.0.13
  • Suhosin installed: No

PHP cli

  • PHP CLI Version: 8.3.15
  • MySQLi support: ok
  • PHP CLI configuration: Configured correctly

Database

  • MySQL Version: 10.11.8
  • Mysqli Connect: Yes
  • Force MySQL over Mysqli: No
  • DB Prefix: wphh_
  • DB CHARSET: utf8mb4
  • DB COLLATE:
  • SHOW ERRORS: No
  • SUPPRESS ERRORS: No
  • Uses Socket: No
  • Uses IPv6: No
  • Matomo tables found: 151
  • DB tables exist: Yes
  • Matomo users found: 4
  • Matomo sites found: 1
  • Required permissions: OK

Browser

  • Browser: (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0)
  • Language: de,en-us,en

Do you use the app? NS8-Matomo Module

There was a change recently, maybe related:

No the WordPress-Plugin.

Ok, but I can’t interpret that.

But I have another suspect…

I found alot of entires within my Ninja Firewall log.

22/Jan/25 13:05:50  #7287880  MEDIUM       -  193.26.159.118   POST /wp-admin/admin-ajax.php - Blocked access to admin-ajax.php - [bot detection is enabled] - www.hegering-hattingen.de

That means, the FW recognize attacks from my own server.
I don’t understand this, because I use the same configuration on other Werdpress servers, without problems.

When I disable the option, the log entries disappear. But I don’t want that permanently.

Another suspect log entry

22/Jan/25 15:10:40  #4078287  INFO         -  93.244.xxx.xxx   POST /wp-content/plugins/matomo/app/matomo.php - Sanitising user input - [GET: {"formFactors":["Desktop"],"fullVersionList":[{"brand":"Not A(Brand","version":"8.0.0.0"},{"brand":"Chromium","version":"132.0.6834.83"},{"brand":"Google Chrome","version":"132.0.6834.83"}],"mobi...] - www.hegering-hattingen.de
1 Like

As regards the cron error, maybe you should try this:

Go inside the container:

runagent -m lamp1 podman exec -ti apache2-app bash

Let’s check where the value is stored:

root@lamp:/# grep -r memory_limit /etc
/etc/php/8.3/apache2/php.ini:memory_limit = 512M

Edit /etc/php/8.3/apache2/php.ini and increase the memory_limit.

Restart apache:

apache2ctl graceful
1 Like
root@lamp:/#grep -r memory_limit /etc
/etc/php/8.3/apache2/php.ini:memory_limit = 512M
/etc/php/8.3/cli/php.ini:memory_limit = 512M

I think that should be more than enough?

It depends on the app, 512M seem to be default, maybe it helps to increase it.

now I have:

root@lamp:/# grep -r memory_limit /etc
/etc/php/8.3/apache2/php.ini:memory_limit = 640M
/etc/php/8.3/cli/php.ini:memory_limit = 512M

But the error persists.

Which error please, can you cp and paste

log

84 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:473; CronArchive.php:468; CronArchive.php:226; Access.php:567; CronArchive.php:221; ScheduledTasks.php:383; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191;

‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-22&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log’ ‘Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-22&format=json&trigger=archivephp: ''’ ‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-21&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log’ ‘Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-21&format=json&trigger=archivephp: ''’ 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-20&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. For more information and the error message please check in your PHP CLI error log file.

and so on

Ok i added a cron and this is the error it output but from where

Where do you find it ?

logged by wordpress matomo plugin:

2 Likes

Probably a side effect to have enabled the cron, so you have the error back but the issue is not the cron you have to fix your memory issue I guess

I changed it:

root@lamp:/# grep -r memory_limit /etc
/etc/php/8.3/apache2/php.ini:memory_limit = 640M
/etc/php/8.3/cli/php.ini:memory_limit = 640M

The issue persists.

But I changed the archiving method within the Matomo Plugin.

Now, archiving reports works again when cron is not used.

If I disable the option again, the error occurs again.

Matomo Cron Error: An error occurred during Matomo archiving. See error details in the Diagnostics page. 

in detail:

Matomo Archive Warnings: 'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-23&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of \'memory_limit\' in your php.ini file.

'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2025-01-23&format=json&trigger=archivephp: \'\''
'Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=week&date=2025-01-20&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of \'memory_limit\' in your php.ini file.

can you go inside container

runagent -m lamp1 podman exec -ti apache2-app bash

and check inside cron* /etc/cron* if you have some php cron related /etc/cron.d /etc/cron.daily /etc/cron.monthly …

1 Like

I think that if we start the container with PHP_MEMORY_LIMIT it should be good

--env PHP_MEMORY_LIMIT="1024M" \

I think I missed to make a slider …lazzy boy

2 Likes

I tried to apply

but it just changes the memory_limit for apache2, not for cli.

root@lamp:/# grep -r memory_limit /etc
/etc/php/8.3/apache2/php.ini:memory_limit = 1024M
/etc/php/8.3/cli/php.ini:memory_limit = 512M
1 Like

do we need more for CLI, in general we are interested by the webapp

before disabling Enable archiving via HTTP requests:

root@lamp:/# ls -lsa /etc/cron.d /etc/cron.*
/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.daily:
total 24
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rwxr-xr-x  1 root root  539 Mar 18  2024 apache2
4 -rwxr-xr-x  1 root root 1478 Mar 22  2024 apt-compat
4 -rwxr-xr-x  1 root root  123 Feb  5  2024 dpkg

/etc/cron.hourly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.monthly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.weekly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.yearly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

after disabling Enable archiving via HTTP requests:

oot@lamp:/# ls -lsa /etc/cron.d /etc/cron.daily
/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.daily:
total 24
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rwxr-xr-x  1 root root  539 Mar 18  2024 apache2
4 -rwxr-xr-x  1 root root 1478 Mar 22  2024 apt-compat
4 -rwxr-xr-x  1 root root  123 Feb  5  2024 dpkg
root@lamp:/# ls -lsa /etc/cron.d /etc/cron.*
/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.daily:
total 24
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rwxr-xr-x  1 root root  539 Mar 18  2024 apache2
4 -rwxr-xr-x  1 root root 1478 Mar 22  2024 apt-compat
4 -rwxr-xr-x  1 root root  123 Feb  5  2024 dpkg

/etc/cron.hourly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.monthly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.weekly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.yearly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
root@lamp:/# ls -lsa /etc/cron.d /etc/cron.*
/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.d:
total 20
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rw-r--r--  1 root root  201 Apr  8  2024 e2scrub_all
4 -rw-r--r--  1 root root  712 Sep 27 09:13 php

/etc/cron.daily:
total 24
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder
4 -rwxr-xr-x  1 root root  539 Mar 18  2024 apache2
4 -rwxr-xr-x  1 root root 1478 Mar 22  2024 apt-compat
4 -rwxr-xr-x  1 root root  123 Feb  5  2024 dpkg

/etc/cron.hourly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.monthly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.weekly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

/etc/cron.yearly:
total 12
4 drwxr-xr-x  2 root root 4096 Jan 15 18:03 .
4 drwxr-xr-x 75 root root 4096 Jan 15 18:03 ..
4 -rw-r--r--  1 root root  102 Mar 31  2024 .placeholder

The error occurs again.

I a did a tour myself


root@lamp:/# tree /etc/cron*
/etc/cron.d
|-- e2scrub_all
`-- php
/etc/cron.daily
|-- apache2
|-- apt-compat
`-- dpkg
/etc/cron.hourly
/etc/cron.monthly
/etc/cron.weekly
/etc/cron.yearly
/etc/crontab  [error opening dir]

2 directories, 6 files
root@lamp:/# cat /etc/cron.d
cron.d/     cron.daily/ 
root@lamp:/# cat /etc/cron.d/php 
# /etc/cron.d/php@PHP_VERSION@: crontab fragment for PHP
#  This purges session files in session.save_path older than X,
#  where X is defined in seconds as the largest value of
#  session.gc_maxlifetime from all your SAPI php.ini files
#  or 24 minutes if not defined.  The script triggers only
#  when session.save_handler=files.
#
#  WARNING: The scripts tries hard to honour all relevant
#  session PHP options, but if you do something unusual
#  you have to disable this script and take care of your
#  sessions yourself.

# Look for and purge old sessions every 30 minutes
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi
root@lamp:/# cat /etc/cron.daily/ap
apache2     apt-compat  
root@lamp:/# cat /etc/cron.daily/apache2 
#!/bin/sh

# run htcacheclean if set to 'cron' mode

set -e
set -u

type htcacheclean > /dev/null 2>&1 || exit 0
[ -e /etc/default/apache-htcacheclean ] || exit 0


# edit /etc/default/apache-htcacheclean to change this
HTCACHECLEAN_MODE=daemon
HTCACHECLEAN_RUN=auto
HTCACHECLEAN_SIZE=300M
HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk
HTCACHECLEAN_OPTIONS=""

. /etc/default/apache-htcacheclean

[ "$HTCACHECLEAN_MODE" = "cron" ] || exit 0

htcacheclean ${HTCACHECLEAN_OPTIONS}	\
		-p${HTCACHECLEAN_PATH}	\
		-l${HTCACHECLEAN_SIZE}
root@lamp:/# crontab -l
no crontab for root

nothing related I think

1 Like

From the error message it’s about CLI but we already tried to raise it and it didn’t work.

Is there a good way to output PHP CLI errors? I tried configuring a logfile in /var/log but it kept empty.