I am upgrading a server from Debian 9 (stretch) to Debian 10 (buster), and am aware (and intend) that this results in PHP being upgraded from PHP 7.0 to PHP 7.3.
php -v
does indeed show that PHP 7.3 is installed, but when trying to login to the web application running on the server, I get a (vague) error message, and, when I create a test page to run phpinfo
, it shows that Apache still seems to be running PHP 7.0.
I had expected that Apache would switch to using PHP 7.3 as part of the OS upgrade. What do I need to do to make Apache now use PHP 7.3?
libapache2-mod-php7.3
? Did you enable the apache module?libapache2-mod-php7.3
is installed, and what do I need to do to enable the module?dpkg -l | grep ^i | grep libapache2-mod-php7.3
will show you. If it doesn't return anything, its not installed.a2enmod
enables apache modules.a2enmod php7.3
but alsoa2dismod php7.0
(and thensystemctl restart apache2
). Feel free to write up as an answer so that I can credit you.