I'm changing php versions, successfully, but only for a while, then it rolls back.
I have several php versions installed:
leonid@DevSSD:~$ sudo a2enmod php
php5.6 php7.0 php7.1 php7.2
So, I do
sudo a2dismod php7.2
sudo a2enmod php5.6
sudo systemctl restart apache2
Php page with php_info()
changed, versions changed correctly. I don't care about cli, don't need it yet.
After a while php changed back to 7.2; I don't known why or who changed it. I don't know what log file to check.
I really multiple php versions, at least 5 and 7 latest release.
Holding the package does not help, because I have them all the different php versions and modules I need installed. Nothing is being changed or updated by APT between the version changes.
No, this is not a duplicate of the suggested question, because I have followed a guide, and can make any php version default, but for a little while, I have had a problem somewhere in configs.