I am trying to get a second PHP version running under Virtualmin.
I do the following: - add-apt-repository -y ppa:ondrej/php - apt-get install -y php7.1 php7.1-cgi php7.1-bcmath php7.1-json php7.1-imap
And then I go to Virtualmin and choose Server Configuration->PHP versions and change the setting
However, when I then check the old PHP version is still running.
So I tried it in the console: - a2dismod php7.2 - a2enmod php7.1
The first command workd. However, second causes the error: ERROR: Module php7.1 does not exist!
When studied the a2enmod command it appeared that creates virtual links in the conf.d directory. It is there that things may go wrong as under /etc/php/7.1 I don't have an Apache2 directory and as a consequence neither a conf.d directory below that.
So my questions are: what did I do wrong? How should I fix this? Can I just make a copy of the directories below my /etc/php/7.2?