Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

PHP version in phpinfo() does not match version active on ubuntu server

$
0
0

I updated my php version to 8.1, and inside /etc/php I have two directories: 8.0 and 8.1 - I'm not sure if and how I should get rid of 8.0?

Yet mi biggest concern is, that sudo php -v does return as expected:

PHP 8.1.2 (cli) (built: Jan 24 2022 10:42:33) (NTS)

However if I use phpinfo() in my script, it returns PHP Version 8.0.15. What am I missing? What should I do in order to use current PHP version in my scripts?

EDIT:

sudo a2dismod php8.0 gives Module php8.0 already disabled, while sudo a2enmod php8.1 returns:

Considering dependency mpm_prefork for php8.1:Considering conflict mpm_event for mpm_prefork:Considering conflict mpm_worker for mpm_prefork:Module mpm_prefork already enabledConsidering conflict php5 for php8.1:Module php8.1 already enabled

Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>