Since updating to 4.0 I’m getting a PHP error in the root level error log on my server that my PHP version needs to be updated. But It’s at 7.3, which is confirmed in System Check:
PHP version >= 7.2.5: 7.3.23
[26-Nov-2020 18:24:01 UTC] Error in Matomo: To run Matomo you need at least PHP version 7.2.5 Unfortunately it seems your webserver is using PHP version 7.1.33. Please try to update your PHP version, Matomo is really worth it! Nowadays most web hosts support PHP 7.2.5.
Any insight into the situation would be most appreciated.
You are running php-fpm (or php-apache) 7.3 which is serving the website (as the system check reports correctly).
But you still have 7.1 installed and when running the archving job (from cron), you still use the old php-cli which shows the error.
So I’d recommend you to check your crontab and see if you are calling the right php binary.
Hi there
I’m my own hoster and I run Vestacp on the Debian 9 VPS.
Still at updating to Matomo 4.04 I get this: To run Matomo you need at least PHP version 7.2.5
System runs on php 7.4 and I purged 7.2 still no change.
I don’t know your webserver setup, so it is hard to give specific tips. The person that set up PHP on your server can probably help more.
Matomo doesn’t choose the PHP version, but the other way round: You set up your webserver (e.g. Apache) to a PHP daemon of your choice (e.g. php-fpm or php-apache). So to make sure Matomo runs with the right PHP version, you need to make sure your webserver forwards php requests to the right php daemon.
Hi Lukas, thx
I know that but where do I find the file which determines apache cli config if
Loaded Configuration File => /etc/php/7.4/cli/php.ini ist not the cli config file.
I’m not a sys admin, I have about 4 years in different set ups on linux server plus desktop.
When you call php from the command line it executes php-ini which as you can see is set up correctly to use php 7.4.
I unfortunately have never used Apache before, so I can’t help you at all there, but I’d recommend you too look through all files in /etc/apache2/ to maybe find a line that specifies the php executable.