Skip to content

Instantly share code, notes, and snippets.

@MehulBawadia
Last active June 10, 2025 16:30
Show Gist options
  • Save MehulBawadia/e11876fd6458046fff582ac368e3bd0d to your computer and use it in GitHub Desktop.
Save MehulBawadia/e11876fd6458046fff582ac368e3bd0d to your computer and use it in GitHub Desktop.
Multiple PHP versions in Fedora 42
# To install, run the following commands one-by-one
dnf module list php
sudo dnf module enable php:remi-8.2 # or any other version of your choice
sudo dnf install php php-cli php-common php-intl php-sqlite3 php-mysqlnd php-opcache php-gd php-mbstring php-xml php-pdo
php -v
# To switch, run the following commands one-by-one
dnf module list php
sudo dnf module reset php
sudo dnf module enable php:remi-8.3 # or any other version of your choice
sudo dnf upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment