[SOLVED] Debian Stretch -> Buster, two versions of PHP?

Discussion in 'Server Operation' started by Taleman, Dec 13, 2020.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I upgraded just a Debian server from Stretch to Buster. Now I notice there are both PHP 7.0 and PHP 7.3 installed. Is it supposed to be this way? I have not found documentation about PHP upgrades.
    I have mediawiki websites on that hosts, nono of them work now. Static websites and ikiwiki work OK.
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes, PHP 7.0 is not deleted when upgrading. Have you changed the paths set for PHP? (or have they been changed without you knowing)
    Any errors in the logs of those webs?
  3. LIJE

    LIJE Member

    What about:
    update-alternatives --config php
    update-alternatives --config php-cgi

    Does it help?
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    For closure:
    I removed all PHP 7.0 packages (with apt purge php7.0-common), did a2enmod php7.3, restarted apache and PHP started working.
    ahrasis likes this.

Share This Page