how to use php 5.6 in ubuntu 18.04 code example Example: install php 5.6 on ubuntu 18.04 $ sudo add-apt-repository ppa:ondrej/php