downgrade from php 7.4 to 5.6 ubuntu code example
Example: rollback to previous php version in linux
sudo rm /etc/alternatives/php; sudo ln -s /usr/bin/php5.6 /etc/alternatives/php;
sudo rm /etc/alternatives/php; sudo ln -s /usr/bin/php5.6 /etc/alternatives/php;