after updating os, including php, 500 err on ispconfig

Discussion in 'Installation/Configuration' started by server38, Mar 8, 2021.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    But like @ahrasis wrote, when Sury repo is enabled doing
    Code:
    apt upgrade
    install PHP 8.
     
    ahrasis likes this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's one of the drawbacks of using Sury. But if you set the default PHP version using update-alternatives like as @Th0m suggested, then this should be fixed. While uninstalling PHP 8 won't help much as Sury will probably reinstall PHP 8 again. So setting the default version is a better option in my opinion and keep PHP 8 installed.
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Agreed that default php will be fixed when you run update-alternatives as this is the same command everybody use. However, my actual point is, on Ondrej Sury repo php update it will, most of the time, change back to latest php (which is currently php8.0) and the only way to avoid manual fix on every update is to monitor default php and automatically restore it whenever it changed again. I noted ISPConfig does not cover this though requires default php, so we are on our own i.e. either fix it manually or use monitoring software and fix it automatically.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I use the Ondrej repo on my Debian 10 servers as well and I do not have to rerun the update-alternatives command after each update.
     
    Th0m likes this.
  5. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    i believe it's only required to set it once. (at least for ondrej/php repo on ubuntu) as by default the update-alternatives --config php is set as auto, so it will change to the newer php version on update, when set to manual, for a specific php version it should no longer change the default version when there's an update.
    unfortunately i don't think it's possible to pre-empt this and set it to manual in advance, as it claims there is no alternative version available, so it seems the default version can only be after an additional php version has been installed.
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You are totally right ;)
     
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I don't know about other people experiences but I will play safe and keep monitoring default php on my servers since I already am monitoring other things as well.
     

Share This Page