PHP versions, something odd

Under Admin > System it says PHP 8.1.18

Screenshot 2023-07-15 at 19.37.00

If I run php-v i get PHP 8.2.7

Screenshot 2023-07-15 at 19.37.17

Seems strange to me, any ideas?
Thanks all

This is an issue that has been discussed many times here in the forum.

Nevertheless, important information about the web server, operating system, etc. is still missing in order to provide a solution with one answer.

So I’m assuming here that it’s a Debian-like system like Ubuntu and that Apache2 is used as the web server.

What are the echoes of

apachectl -tD DUMP_INCLUDES | sed -n '/php.*conf/ s#.*/\([^/]*\)\.conf#\1#p'
dpkg -l | awk '/^ii.*php/ {print $2}'


update-alternatives --get-selections | grep -E "ph(ar|p)"

Normaly you should remove either php8.1 or php8.2 completely from your server depending on which version should remain.

If you can’t solve it yourself with the information from these three commands and another forum search, don’t hesitate to ask for further help here.

Much luck

You must differ between the apache2 php version and php-cli for command line. Normally you get from your operating system the same version. What operating system have you installed? Do you use foreign sources?