Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to install multiple php versions ubuntu

$ sudo apt install php
$ sudo apt install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt install php7.4 
$ sudo apt install php7.4-cli php7.4-xml php7.4-mysql 
$ php -v
$ sudo update-alternatives --set php /usr/bin/php7.4
 
PREVIOUS NEXT
Tagged: #install #multiple #php #versions #ubuntu
ADD COMMENT
Topic
Name
3+9 =