[solved] multiple php and phpmyadmin

Discussion in 'Installation/Configuration' started by Francesco Venturini, Apr 20, 2021.

  1. Francesco Venturini

    Francesco Venturini New Member

    Hi
    I am running a ispconfig 3.2.4 on ubuntu 18.04 with installed php version 7.0, 7.2, 7.4 and 8.0 installed from the repo by ondrej.
    I noticed that phpmyadmin is in 500 error and after many test I can see that it is running on php8.0.
    Not what I wanted. I have set update-alternatives --set php /usr/bin/php7.2, and infact isconfig interface is running correctly php 7.2
    Any suggestion?
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Try this:
    Code:
    a2dismod php8.0 mpm_prefork
    a2enmod http2 mpm_event
     
  3. Francesco Venturini

    Francesco Venturini New Member

    Thanks Thom, after other struggling I found a solution forcing to use a specific php fpm in /etc/phpmyadmin/apache2.conf.
    I have put outside of <IfModule mod_php5.c> and <IfModule mod_php.c> a file php SetHandler using the php7.2-fpm sock.
    SOLVED
     

Share This Page