I use the following command to view installed PHP versions in Ubuntu: ======================================================================== sudo update-alternatives --list php