change default php ispconfig 3

Discussion in 'Installation/Configuration' started by Efim25, Feb 2, 2020.

  1. Efim25

    Efim25 New Member

    ispconfig 3 debian 8 default php 5.6

    upgrade debian 8 next debian 9
    then
    upgrade debian 9 next debian 10 default php 7,3, but ispconfig 3 default php 5.6 :(

    how to fix the problem
     
  2. Th0m

    Th0m Member HowtoForge Supporter

    Last edited: Feb 2, 2020
  3. Steini86

    Steini86 Active Member

    Just upgrade your debian, make sure all the needed packages for the new debian versions are installed and then reconfigure services by:
    Code:
    cd /tmp
    wget https://ispconfig.org/downloads/ISPConfig-3.1.15p2.tar.gz
    tar xvfz ISPConfig-3.1.15p2.tar.gz
    cd ispconfig3_install/install
    php -q update.php
    Choose yes for reconfiguring services. Then open ispconfig again. This will then have php7.3 if you need additional versions, use the first guide posted by @Th0m
     
    ahrasis and Th0m like this.
  4. Jesse Norell

    Jesse Norell Well-Known Member

    Also after this (upgrading debian, then reconfiguring services with update.php) you will need to edit your server config and change the PHP Settings from the old 5.6 paths to current 7.3 paths (I think simply changing '5.6' to '7.3' everywhere will do the job, but you should verify the new paths exist), and check/update PHP open_basedir for existing websites (eg. the default open_basedir now includes paths for phpmyadmin and /dev/{u,}random, which it did not previously), then run resync of all websites.

    Then go over to https://git.ispconfig.org/ispconfig/ispconfig3/issues/5310 and thumbs-up that rfe. :)
     
    ahrasis and Steini86 like this.
  5. Efim25

    Efim25 New Member

    this is a bad option
    change hph site error
    this method is a regular update, the result is bad , + problem cURL
     
  6. Efim25

    Efim25 New Member

    the problem is open , ispconfig 3 does not see php7.x
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    How have you determined that?
    Have you done what was suggesged in this thread?
    That is, which of the below have you not done:
    • updated debian following the debian update instructions in https://www.debian.org/releases/stable/releasenotes
    • followed ISPConfig perfect server guide for Debian 10 to check all needed packages are installed and configurations done according to the guide
    • forced ISPConfig reconfigure services using the ispconfig update script from ispconfig installatiion package
    • changed the ISPConfig PHP version like Jesse Norell adviced in#4
     
    Last edited: Feb 4, 2020
  8. Jesse Norell

    Jesse Norell Well-Known Member

    No, this is the correct procedure, with the caveat that the instructions above include a link to the specific version 3.1.15p2 sources, and in the future newer versions should be used; but it is correct right now.

    Yes, it will perform an update of ISPConfig if you are running an older version. However, if you are running an older version, you should update to the latest anyways, as there are security fixes you should not leave unpatched, and bug fixes that will cause your system to behave incorrectly in some (common) configurations (eg. recent letsencrypt updates).

    You have some local issues in your setup that need some further correction/updating. Follow the steps to get things updated as best you can, and post specific errors/details when you're stuck. I've done this same update numerous times, the procedure works.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    My guess is that he did not change those paths that @Jesse Norell suggested in post #4.

    ISPConfig does not have to see it. You have to set the correct path in ISPConfig as admin, that's all.
     
    Th0m likes this.

Share This Page