PHP cli version is not compatible with the Matomo requirements
-
Hello,
I’m using the Matomo plugin 4.15.0 on WordPress 6.2.2 (both the newest). On the “Matomo Diagnostics System report” I see an error message about the “PHP cli Version”. The second column says:
Usage: php8.1 [-q] [-h] [-s] [-v] [-i] [-f <file>] php8.1 <file> [args...] -a Run interactively -b <address:port>|<port> Bind Path for external FASTCGI Server mode -C Do not chdir to the script's directory -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. Implies `-q' -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>. -T <count> Measure execution time of script repeated <count> times.The third column says:
Your PHP cli version is not compatible with the Matomo requirements. Please upgrade your PHP cli version, otherwise, you might have some archiving errorsScreenshot: https://imgur.com/a/su0Uepb
The link says “Matomo requires PHP version 7.2.5 or greater”, but according to the message, 8.1 is available and used?
I tried to change
php_binary_pathin./wp-content/uploads/matomo/config/config.ini.phpto/usr/bin/php8.1and/usr/bin/php8.1-cliaccording to https://matomo.org/faq/how-to-solve-the-error-message-your-php-cli-version-is-not-compatible-with-the-matomo-requirements/ (and cleared the cache afterwards) but the output in the diagnosis doesn’t change.There are a lot of PHP versions available on my hosting environment. Maybe Matomo is somehow confused about this…
php php-config8.1 php5.5 php8.0-cli phpize7.1
php-config4.4 php-config8.2 php5.5-cli php8.1 phpize7.3
php-config5.2 php4 php6 php8.1-cli phpize7.4
php-config5.4 php4.4 php7.1 php8.2 phpize8.0
php-config5.5 php4.4-cli php7.1-cli php8.2-cli phpize8.1
php-config6 php5 php7.3 phpize4.4 phpize8.2
php-config7.1 php5.2 php7.3-cli phpize5.2
php-config7.3 php5.2-cli php7.4 phpize5.4
php-config7.4 php5.4 php7.4-cli phpize5.5
php-config8.0 php5.4-cli php8.0 phpize6Apart from this Matomo seems to work fine, so there’s no real issue besides the warning message.
I changed
php_binary_pathto/usr/bin/php8.2-clibut the error message still says the same about 8.1. Either I have some other caching issues or thew config isn’t read properly.config.ini.phplooks like this:[General]
force_ssl = 1
login_allow_logme = 1
assume_secure_protocol = 1
trusted_hosts[] = "https://www.redacted.tld/"
php_binary_path="/usr/bin/php8.2-cli"
The topic ‘PHP cli version is not compatible with the Matomo requirements’ is closed to new replies.
