PHP Versioning


Gagan908

Uploaded on Feb 6, 2023

Category Education
Category Education

Comments

                     

PHP Versioning

File: /home/gagandeep/PHP Versioning Page 1 of 1 By Gagan Deep Kashyap How to Install Multiple PHP Version in Same Machine In Ubuntu 1 sudo apt-get update 2 sudo apt-get upgrade 3 sudo apt install software-properties-common 4 sudo add-apt-repository ppa:ondrej/php 5 sudo apt update Install PHP 8.1 1. sudo apt-get install php8.1 php8.1-fpm 2. sudo apt-get install php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl Check Version 1. php -v Switch Version 1.sudo update-alternatives --config php Command sudo update-alternatives --set php /usr/bin/php7.4