Install PHP 5.6 On Ubuntu 20.04

REF: https://tecadmin.net/install-php-ubuntu-20-04/

I already added Ondřej Surý PPA repository. So Just install php5.6

Check it on CLI Terminal

A few extensions are already installed automatically

So installed some others extensions

Install XDebug

Check it out

PHP5.6 On Apache2
Disable the old PHP

Enable PHP5.6

Also need to run — NO NEED

Restart Apache server

Check on the browser

Should show like PHP Version 5.6.40-65+ubuntu20.04.1+deb.sury.org+1

CHANGE THE PHP5.6 SETTING
MODIFY SOME INI FILES IN:
/etc/php/5.6/fpm/php.ini  –> PHP-FPM  AS MAIN
/etc/php/5.6/apache2/php.ini  –>APACHE
/etc/php/5.6/cli/php.ini –> CLI

RESTART

DONE

Leave a Reply

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