perso je le fait avec php-fpm, nettement plus pratique si on veut différentes versions de php sur différentes instances concretecms
sudo apt-get install apache2 apache2-bin apache2-data apache2-utils mysql-client mysql-client-8.4 mysql-client-core-8.4 mysql-common mysql-server mysql-server-8.4 mysql-server-core-8.4 php8.4-cli php8.4-common php8.4-fpm php8.4-mysql php8.4-opcache php8.4-readline php8.4-xml php-common php-fpm
root@radeff:/etc/apache2# ls mods-enabled/ access_compat.load authn_file.load autoindex.load env.load mpm_event.load proxy.load setenvif.load alias.conf authz_core.load deflate.conf filter.load negotiation.conf reqtimeout.conf status.conf alias.load authz_host.load deflate.load mime.conf negotiation.load reqtimeout.load status.load auth_basic.load authz_user.load dir.conf mime.load proxy.conf rewrite.load authn_core.load autoindex.conf dir.load mpm_event.conf proxy_fcgi.load setenvif.conf
<Directory /var/www/c5site> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all RewriteEngine On </Directory>
apache2ctl -t systemctl restart apache2.service
chown -R www-data:www-data packages application/config application/files languages
chmod -R 777 packages application/config application/files languages