[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Sat, 30 Dec 2023 17:50:03 +0000
Andrew Wood <andrewjameswood@ymail.com> 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.conf    mpm_prefork.load  socache_shmcb.load
alias.load          deflate.load    negotiation.conf  ssl.conf
auth_basic.load     dir.conf        negotiation.load  ssl.load
authn_core.load     dir.load        php8.2.conf       status.conf
authn_file.load     env.load        php8.2.load       status.load
authz_core.load     filter.load     reqtimeout.conf   userdir.conf
authz_host.load     headers.load    reqtimeout.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/


Reply to: