How to Install PHP 5.6 on Ubuntu 16.04This time we will discuss about how to install php 5.6 in ubuntu 16.04. Currently ubuntu 16.04 defaults if we install php that we can is php 7, but sometimes the application that we created only running in php 5.6. here we will discuss how to overcome this is install php 5.6 in ubuntu 16.04.
Add RepositoryBefore starting the ubuntu installation, we need to add php 5.6 repository so we can install php 5.6 in ubuntu 16.04. The repository we use is from Ondej repository. follow the command below to install the repository.
Install PHP 5.6After finished adding repository in ubuntu 16.04 we are ready for php 5.6 installation in ubuntu 16.04.
Update your repository
Install PHP 5.6
To check your php version follow this command
If we have previously installed php 7, we do not have to delete php 7 us. We can move functional to php 5.6, follow the command below to move functional to php 5.6.
Now we move functional from php 7 to php 5.6.