Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to check if there are multiple versions of PHP installed on Ubuntu 12.04 LTS?



I use the following command to view installed PHP versions in Ubuntu:

sudo update-alternatives --list php

Second way go to php directory where all PHP version configuration file stored:

cd /etc/php 
dir 

Output:

 > 5.6  7.0  7.1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #check #multiple #versions #PHP #installed #Ubuntu
ADD COMMENT
Topic
Name
3+1 =