Forked from DominicWatts/Installing-multiple-versions-of-php-on-debian.md
Created
November 22, 2021 21:16
-
-
Save DomPixie/ba8ba58943410895c7daaa1204689ca4 to your computer and use it in GitHub Desktop.
Installing multiple versions of php on debian
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
# default version in APT repo | |
sudo apt show php -a | |
# currently 7.3 2021 | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt install php | |
sudo apt install software-properties-common | |
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - | |
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
sudo apt update | |
sudo apt install php5.6 | |
sudo apt install php7.0 | |
sudo apt install php7.1 | |
sudo apt install php7.2 | |
sudo apt install php7.3 | |
sudo apt install php7.4 | |
# Magento 2 requirements | |
sudo apt install php7.1 php7.1-bcmath php7.1-bz2 php7.1-gd php7.1-gmp php7.1-imap php7.1-intl php7.1-ldap php7.1-opcache php7.1-mysql php7.1-pspell php7.1-recode php7.1-soap php7.1-tidy php7.1-xml php7.1-xsl php7.1-zip php7.1-common |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment