Skip to main content

Posts

Showing posts from July, 2019

Working with multiple versions of PHP 7.3, 7.2, 7.1, 7.0 & 5.6 on Ubuntu

  Sometimes PHP developers need to work on multiple versions of PHP for different projects and one might think of using a docker installation, which is a better idea of what we are going to do below, but Docker can be complicated for many reasons and one might not be ready to get started with Docker. In the below article, I will be explaining how one can work with multiple PHP version on Ubuntu. I am using ubuntu 18.10 and the below article for me without any issues. Install PHP (5.6, 7.0, 7.1, 7.2 and 7.3) on Ubuntu Using PPA 1.   Adding  OndÅ™ej PPA  to install different versions of PHP –  PHP 5.6 ,  PHP 7.0,   PHP 7.1, PHP 7.2  and  PHP 7.3  on the system. sudo apt-get install software-properties-common ## sudo apt install python-software-properties sudo add-apt-repository ppa:ondrej/php 2.    Update the system Make sure you have the  sudo  privileges to do so. sudo apt-get update 3.  Add different versions of PHP as require d I will be adding fpm vers