Skip to content

Instantly share code, notes, and snippets.

@MehulBawadia
Last active November 26, 2025 10:19
Show Gist options
  • Select an option

  • Save MehulBawadia/e11876fd6458046fff582ac368e3bd0d to your computer and use it in GitHub Desktop.

Select an option

Save MehulBawadia/e11876fd6458046fff582ac368e3bd0d to your computer and use it in GitHub Desktop.
Multiple PHP versions in Fedora 42
# Make sure the remi-repository has been added. If not, run:
sudo dnf install http://rpms.remirepo.net/fedora/remi-release-43.rpm # Replace 43 with OS your version
# 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