Re: Bug on upgrade to bookworm with Apache/PHP?

2023-12-30 Thread Charles Curley
On Sat, 30 Dec 2023 17:50:03 +
Andrew Wood  wrote:

> Found the following issue when running an upgrade.
> 
> Apache refuses to restart with error:
> 
> apache2_reload: Your configuration is broken. Not restarting Apache 2
> apache2_reload: apache2: Syntax error on line 146 of 
> /etc/apache2/apache2.conf: Syntax error on line 3 of 
> /etc/apache2/mods-enabled/php7.4.load: Cannot load 
> /usr/lib/apache2/modules/libphp7.4.so into server: 
> /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object
> file: No such file or directory
> 
> 
> This is because the php7.4 files have now been replaced with php8.2
> 
> Specifically sym linsk in  /etc/apache2/mods-enabled/ which link to  
> /etc/apache2/mods-available/
> php7.4.conf -> ../mods-available/php7.4.conf
> php7.4.load -> ../mods-available/php7.4.load
> 
> Should be removed and replaced with a link to
> 
> php8.2.conf -> ../mods-available/php8.2.conf
> php8.2.load -> ../mods-available/php8.2.load
> 
> 
> Is this known about?
> 
> Andrew
> 

You might want to disable any php 7.4 modules and enable php8.2.conf
and php8.2.load.

root@hawk:/etc/apache2# ls mods-enabled/
access_compat.load  autoindex.load  mpm_prefork.conf  setenvif.load
alias.conf  deflate.confmpm_prefork.load  socache_shmcb.load
alias.load  deflate.loadnegotiation.conf  ssl.conf
auth_basic.load dir.confnegotiation.load  ssl.load
authn_core.load dir.loadphp8.2.conf   status.conf
authn_file.load env.loadphp8.2.load   status.load
authz_core.load filter.load reqtimeout.conf   userdir.conf
authz_host.load headers.loadreqtimeout.load   userdir.load
authz_user.load mime.conf   rewrite.load
autoindex.conf  mime.load   setenvif.conf
root@hawk:/etc/apache2# 


-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Bug on upgrade to bookworm with Apache/PHP?

2023-12-30 Thread Dan Ritter
Andrew Wood wrote: 
> This is because the php7.4 files have now been replaced with php8.2
> 
> Specifically sym linsk in  /etc/apache2/mods-enabled/ which link to 
> /etc/apache2/mods-available/
> php7.4.conf -> ../mods-available/php7.4.conf
> php7.4.load -> ../mods-available/php7.4.load
> 
> Should be removed and replaced with a link to
> 
> php8.2.conf -> ../mods-available/php8.2.conf
> php8.2.load -> ../mods-available/php8.2.load
> 
> 
> Is this known about?


Yes. It is not an error, per se, because it is possible that a
person would want to keep the php7 system around a bit longer,
and not yet install the php8 system.

It is just part of the decisions that a sysadmin has to make for
their systems.

-dsr-