Created
June 4, 2025 10:56
-
-
Save dinhquochan/63d92f6406b354f98108008e98c874cb to your computer and use it in GitHub Desktop.
install php on fedora
This file contains hidden or 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
#!/usr/bin/env bash | |
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-42.rpm | |
sudo dnf install php84-php-cli \ | |
php84-php-pgsql php84-php-mysqlnd php84-php-gd \ | |
php84-php-imap php84-php-mbstring \ | |
php84-php-xml php84-php-bcmath php84-php-soap \ | |
php84-php-intl php84-php-ldap \ | |
php84-php-pecl-mongodb \ | |
php84-php-pecl-memcached php84-php-pecl-zip \ | |
php84-php-pecl-msgpack php84-php-pecl-igbinary \ | |
php84-php-pecl-imagick php84-php-pecl-xdebug | |
sudo dnf install php82-php-cli \ | |
php82-php-pgsql php82-php-mysqlnd php82-php-gd \ | |
php82-php-imap php82-php-mbstring \ | |
php82-php-xml php82-php-bcmath php82-php-soap \ | |
php82-php-intl php82-php-ldap \ | |
php82-php-pecl-mongodb \ | |
php82-php-pecl-memcached php82-php-pecl-zip \ | |
php82-php-pecl-msgpack php82-php-pecl-igbinary \ | |
php82-php-pecl-imagick php82-php-pecl-xdebug | |
sudo dnf install php83-php-cli \ | |
php83-php-pgsql php83-php-mysqlnd php83-php-gd \ | |
php83-php-imap php83-php-mbstring \ | |
php83-php-xml php83-php-bcmath php83-php-soap \ | |
php83-php-intl php83-php-ldap \ | |
php83-php-pecl-mongodb \ | |
php83-php-pecl-memcached php83-php-pecl-zip \ | |
php83-php-pecl-msgpack php83-php-pecl-igbinary \ | |
php83-php-pecl-imagick php83-php-pecl-xdebug | |
sudo ln -s /usr/bin/php84 /usr/bin/php | |
curl -sLS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/bin/ --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment