Hello,
i’m know that PHP 5.6 is ending support, but i need only one website with this settings, i have found a lot tutorials from downgrade, but all this methods does’nt work with Virtualmin. example: “a2dismod php7.2”
How can i succesfull install Virtualmin and downgrade from php 7.2 to 5.6, i need only 5.6 on Ubuntu 18.04
You can configure which one is the default PHP version used on new Virtual Servers. The default is to use the newest available. You can change that default in System Settings -> Server Templates -> Default -> PHP Options, and on that screen you can set the default PHP version to use in the field Default PHP version.
Configuring Individual Virtual Servers
You can configure the PHP version being used for a specific Virtual Server by selecting
Server Configuration -> PHP Versions.
The first line there specifies what PHP version will be used by default.
If you wish, you can specify a different PHP version to be used for a specific directory.
Ioncube loader:
PHP 5.6
Transfer the Loaders to your web server and install in /opt/rh/rh-php56/root/usr/lib64/php/modules
Save this 00-ioncube.ini file and put it in your ini files directory, /etc/opt/rh/rh-php56/php.d
Restart the Apache server software.
But !!! sadly this is in CentOS, not sure how you would it in Ubuntu, but I assume not much different.
Hi,
this should help for Ubuntu.
I have not tested it, but it should work. You will be able to run php7.2 and php5.6 on one System. (PHP 7.0/7.1/7.3 are also available.