multiple PHP versions

Discussion in 'ISPConfig 3 Priority Support' started by xanela, Feb 7, 2023.

  1. xanela

    xanela Member

    Hi, I'm trying to install multiple versions of php following this manual.

    https://www.howtoforge.com/ispconfig-php-debian/#-add-sury-repository

    but i get this error when performing apt-get update

    Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 185.x.x.243 443]
    bash: Certificate: command not found

    I have also tried with the script indicated in the repository but I receive the same error. how could i solve it?

    thanks
     
    Last edited: Feb 7, 2023
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Which OS are you on? Which version?
     
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    You need to update the ca-certificates package. Run these:

    Code:
    apt update
    apt install ca-certificates
    NVM, just saw your talking about the sury repo

    For Ubuntu, i would follow this way of doing it:
    Code:
    sudo apt update
    sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common
    sudo add-apt-repository ppa:ondrej/php
    This should work for Debian:

    Code:
    sudo apt install  curl wget gnupg2 ca-certificates lsb-release apt-transport-https
    wget https://packages.sury.org/php/apt.gpg
    sudo apt-key add apt.gpg
    echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
    sudo apt update
     
    Last edited: Feb 8, 2023
    till likes this.
  4. xanela

    xanela Member

    Thank you very much for the help, with your indications I was able to add the repository, although I needed to make a correction, since when downloading the certificate I received the following message
    Code:
    Connecting to packages.sury.org (packages.sury.org)|185.93.2.246|:443... connected.
    ERROR: The certificate of ‘packages.sury.org’ is not trusted.
    ERROR: The certificate of ‘packages.sury.org’ has expired.
    I solved it in the following way

    Code:
    sudo dpkg-reconfigure ca-certificates
    uncheck mozilla/DST_Root_CA_X3.crt

    greetings and thank you very much
     
    till and pyte like this.

Share This Page