Ubuntu 16.04 came with PHP 7.0 packages. Sometimes we need to use older version of PHP. Bellow is the easiest way to get multiple versions of PHP on your Ubuntu PC's.
First, you need to add my PPA repository. Open terminal and execute the following commands:
sudo add-apt-repository ppa:agungwidodo/tphp
Update your apt cache
sudo apt update
Finally, install tphp packages
sudo apt install tphp
After installation you will get application called PHP Switcher. Use these apps to switch your PHP version.
This apps using PHP as CLI not as CGI, so you cant run multiple PHP version at same times.
Plese leave a comment if you have any issues.
First, you need to add my PPA repository. Open terminal and execute the following commands:
sudo add-apt-repository ppa:agungwidodo/tphp
Update your apt cache
sudo apt update
Finally, install tphp packages
sudo apt install tphp
After installation you will get application called PHP Switcher. Use these apps to switch your PHP version.
This apps using PHP as CLI not as CGI, so you cant run multiple PHP version at same times.
Plese leave a comment if you have any issues.

Comments
Post a Comment