| đ SYSTEM INFORMATION | |
|---|---|
| OS type and version | DEBIAN 10 |
| Webmin version | 1.984 |
| Virtualmin version | 6.17-3 |
Apache/2.4.38, PHP : 7.3.31-1~deb10u1
Hello,
I would like a confirmation from the Virtualmin team, is the procedure at this address (Multiple PHP Versions â Virtualmin) safe. I would like to put the multi PHP on a production server but before that I would like to be sure that this procedure will work without bad surprises.
The server has been installed with virtualmin, no other third party software installed.
For Debian, it is recommended to do this:
Enable the deb.sury.org repository
apt-get -y install apt-transport-https lsb-release ca-certificates curl
curl -sSL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
Update all repositories
apt update
Install PHP packages version 5.6 and/or 7.4 and/or 8.0
apt-get install php5.6-{cli,pdo,fpm,zip,gd,xml,mysql,cgi}
apt-get install php7.4-{cli,pdo,fpm,zip,gd,xml,mysql,cgi}
apt-get install php8.0-{cli,pdo,fpm,zip,gd,xml,mysql,cgi}
Thanks for your precious help.
