Skip to content

Instantly share code, notes, and snippets.

@SebSept
Last active December 1, 2023 22:58
Show Gist options
  • Save SebSept/c874f94ba22c3ef3f15ccd2b2febe931 to your computer and use it in GitHub Desktop.
Save SebSept/c874f94ba22c3ef3f15ccd2b2febe931 to your computer and use it in GitHub Desktop.
Install various php versions from remi's repo
#!/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
@SebSept
Copy link
Author

SebSept commented Dec 6, 2020

For fedora 33

@SebSept
Copy link
Author

SebSept commented Sep 20, 2021

pour les extensions supplémentaire ajouter --enablerepo=remi
sudo dnf --enablerepo=remi install php72-php-pecl-imagick

@SebSept
Copy link
Author

SebSept commented Dec 1, 2023

php81-php-pecl-xdebug3 pour xdebug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment