Getting error PHP 7.1.3+ is required. when trying to use phpmyadmin after upgrade

Discussion in 'ISPConfig 3 Priority Support' started by webguyz, Apr 21, 2024.

  1. webguyz

    webguyz Active Member HowtoForge Supporter

    Upgraded one of my slave servers that was running Buster to Bullseye using:
    Update the ISPConfig Perfect Server from Debian 10 to Debian 11
    Did all updates including the PHP7.4 paths change in Server -> Config
    When I run phpmyadmin I get the error PHP 7.1.3+ is required, Currently installed version is: 5.6.40-0+deb8u1
    made sure the following were changed to 7.4
    update-alternatives --config php
    update-alternatives --config php-cgi
    update-alternatives --config php-fpm.sock
    Rebooted no luck
    Tried that update script for phpmyadmin but get error:
    grep: /usr/share/phpmyadmin/package.json: No such file or directory
    phpMyAdmin is installed through apt. Run apt update && apt upgrade to update to the latest available package.
    Tried apt upgrade but it didn't find anything to upgrade.
    Everything else on the server is working fine including all websites. Can you point me in the right direction?

    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess these servers use Apache web server? In this case, you must switch mod_php to PHP 7.4; the update-alternatives commands you used are correct, but they change just the PHP version for CGI, CLI, and php-fpm.

    Run this as root user to change the mod_php version:

    Code:
    apt install libapache2-mod-php7.4
    a2dismod php5.6
    a2enmod php7.4
    systemctl restart apache2
     
  3. webguyz

    webguyz Active Member HowtoForge Supporter

    Till,
    Was able to install libapache2-mod-php7.4 ok but then

    root@xxx:~# a2dismod php5.6
    ERROR: Module php5.6 does not exist!
    root@xxx:~# a2enmod php7.4
    Considering dependency mpm_prefork for php7.4:
    Considering conflict mpm_event for mpm_prefork:
    Considering conflict mpm_worker for mpm_prefork:
    Module mpm_prefork already enabled
    Considering conflict php5 for php7.4:
    ERROR: Module php5 is enabled - cannot proceed due to conflicts. It needs to be disabled first!
     
    Last edited: Apr 21, 2024
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try:

    a2dismod php5
    a2enmod php7.4
     
  5. webguyz

    webguyz Active Member HowtoForge Supporter

    That fixed it. Thanks for the great support!
     

Share This Page