Ubuntu 18.04 Bionic: install PHP 5.6

You got the latest Ubuntu Version 18.04 Bionic, but have trouble using PHP 7 because your application lacks support for it?

This tutorial shows you how to install PHP 5.6 on Ubuntu 18.04 Bionic.

Let’s assume you have a fresh Ubuntu 18.04 server.

Install add-apt-repository:

Add repository for PHP 5.6:

Update package lists:

Install php5-fpm:

And the result is:

Leave a Reply

Your email address will not be published. Required fields are marked *