Last active
October 27, 2024 20:39
-
-
Save jniltinho/5a17565b615bd439950e245adc80e305 to your computer and use it in GitHub Desktop.
Install Multi PHP Debian 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install Debian/Ubuntu | |
## https://think.unblog.ch/en/multiple-php-fpm-versions-with-apache-on-debian-12/ | |
## https://tecadmin.net/how-to-install-php-on-debian-11/ | |
## https://shape.host/resources/how-to-install-multiple-versions-of-php-on-debian-with-ispconfig | |
apt install -y lsb-release apt-transport-https ca-certificates wget gnupg | |
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list | |
apt update | |
## PHP 5.6 | |
apt install php5.6 php5.6-cli php5.6-cgi php5.6-gd php5.6-mysql php5.6-imap | |
apt install php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy | |
apt install php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap | |
apt install php5.6-opcache libicu72 php5.6-common php5.6-json php5.6-readline php5.6-xml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment