Last active
December 1, 2023 22:58
-
-
Save SebSept/c874f94ba22c3ef3f15ccd2b2febe931 to your computer and use it in GitHub Desktop.
Install various php versions from remi's repo
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/env bash | |
# installation des versions de php | |
PHPS=('php56' 'php72' 'php73' 'php80') | |
EXTENSIONS=('fpm' 'gd' 'xml' 'zip' 'mysqlnd' 'mysqli' 'yaml' 'soap' 'mbstring' 'intl' 'pecl-zip') | |
dnf install "https://rpms.remirepo.net/fedora/remi-release-33.rpm" -y | |
for PHP in "${PHPS[@]}" | |
do | |
#echo php ${PHP} | |
COMMAND="dnf --enablerepo=remi install $PHP" | |
for EXTENSION in "${EXTENSIONS[@]}" | |
do | |
#echo -n "${PHP}-php-${EXTENSION}" >> ${COMMAND} | |
COMMAND="${COMMAND} ${PHP}-php-${EXTENSION}" | |
#echo ${COMMAND}; | |
done | |
eval "${COMMAND} -y" | |
done |
pour les extensions supplémentaire ajouter --enablerepo=remi
sudo dnf --enablerepo=remi install php72-php-pecl-imagick
php81-php-pecl-xdebug3
pour xdebug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For fedora 33