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

Setup Postfix on Ubuntu 20.04 Localhost and Use Sendinblue/Brevo SMTP

Ref: https://www.linuxbabe.com/mail-server/postfix-smtp-relay-ubuntu-sendinblue
https://oastic.com/posts/configure-postfix-to-send-email-using-sendinblue-as-smtp-server/

Setup Postfix on Ubuntu 16.04 Localhost and Use Gmail SMTP

Create the Brevo account (https://www.sendinblue.com/)
choose the free plan

FOLLOW THE SETUP IN THE ABOVE REFS
ONLY THE WORKING SETTING FOR ME (localhost) IN /etc/postfix/main.cf

AND THE SETTING SMTP FOR /etc/postfix/sasl_passwd you can find IN https://app.brevo.com/settings/keys/smtp LIKE

NOW:
[smtp-relay.brevo.com]:587 smtp_username:smtp_password

SORRY, ONLY ADMIN CAN SHOW THIS!

NOW:

SORRY, ONLY ADMIN CAN SHOW THIS!

TLS = Port 587

THEN TEST

CHECK IN sudo tail /var/log/mail.log
THE WORKING SMTP WOULD BE LIKE THIS