Install Multiple PHP 7.3 / 7.2 / 7.1 on Ubuntu 18.04 / Ubuntu 16.04

If you want to Install Multiple PHP version on ubuntu/Linux system then this tutorial is for you.

and on ubuntu shell using root user and follows steps below:

1) check and Update the repository cache of ubuntu.

sudo apt update

2) Install required Packages

sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https

3) Add repository for mutiple php

Tags

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes)

Sometimes we get this php error on long page load or load many files are at once

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes)

This is because of memory_limit parameter of php.

If you have sufficient RAM available on server your used you can change this parameter on php.ini

change this - 

memory_limit = 128M

TO

memory_limit = 1024M

Tags