Hi
I am having issues with my apache/php setup following upgrading from bullseye to bookworm. The php is just being displayed as opposed to being parsed by php 8.2
The php 8.2 module is enabled in apache
phpmyadmin is working correctly - which is installed as per the standard debian install as a separate site.
I have confirmed that the php version is 8.2, and have removed the 7.x packages using apt
The php files are using the <?php tag as opposed to just <?
I am at a loss as to what has gone wrong as it is clearly working for the phpmyadmin site, but not the php held in /var/www/html
Is there an extra step during the upgrade that I have missed? This system has been upgraded from V9 -> 10 -> 11 -> 12 over the years, but was working fully prior to the Bookworm upgrade, however there was usually some config changes I had to make with each update for php e.g. re-enabling <? instead of <?php etc - the scripts have now been updated to change to <?php as above anyway.
Thanks
James
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] PHP Failure Post bullseye -> Bookworm Upgrade
[Solved] PHP Failure Post bullseye -> Bookworm Upgrade
Last edited by ha0124 on 2024-03-16 09:34, edited 1 time in total.
- fabien
- Forum Helper
- Posts: 688
- Joined: 2019-12-03 12:51
- Location: Anarres (Toulouse, France actually)
- Has thanked: 62 times
- Been thanked: 161 times
Re: PHP Failure Post bullseye -> Bookworm Upgrade
Hello,
does it look like this?
The proposed solution was to purge libapache2-mod-php and install it again, but maybe just check its files (libapache2-mod-php8.2 I guess), particularly those in /etc/.
does it look like this?
The proposed solution was to purge libapache2-mod-php and install it again, but maybe just check its files (libapache2-mod-php8.2 I guess), particularly those in /etc/.
Code: Select all
$> apt-file show libapache2-mod-php8.2
libapache2-mod-php8.2: /etc/apache2/mods-available/php8.2.conf
libapache2-mod-php8.2: /etc/apache2/mods-available/php8.2.load
libapache2-mod-php8.2: /usr/lib/apache2/modules/libphp8.2.so
libapache2-mod-php8.2: /usr/lib/php/8.2/sapi/apache2
libapache2-mod-php8.2: /usr/share/bug/libapache2-mod-php8.2/control
libapache2-mod-php8.2: /usr/share/bug/libapache2-mod-php8.2/script
libapache2-mod-php8.2: /usr/share/doc/libapache2-mod-php8.2
libapache2-mod-php8.2: /usr/share/lintian/overrides/libapache2-mod-php8.2
Re: PHP Failure Post bullseye -> Bookworm Upgrade
Thanks the purging of libapache2-mod-php fixed it
Many Thanks
Many Thanks