I got myself into some soup here…
we took our Hinduismtoday.com site, which is running on a linode server and under VirtualMin Control/setup
I created another Linode instance it has IP 45.56.91.98… we cloned the old site onto this new instance. All i had to do was change the IP in
/etc/apach2/sites-enabled/hinduismtoday.com.conf
and bingo, site (running on XOOPS) was up and available and working perfectly on this new “box”
OK next step was to upgrade PHP to 7.2 I went through all the steps, installed the PPA, ran apt-get, even sudo a2dismod php5 sudo a2enmod php7.2
in the /home/htoday/etc/php/php5.ini (default)
I try to hack the upgrade to php7.2 with this change to point to the new includes in that ini file
; extension_dir = /usr/lib/php5/20121212
extension_dir = /usr/lib/php/20170718
But… no go. restarted apache throughout this process (several times) but still Apache thinks we are running php5.5.9 and phpinfo() also says we are running php5.5.9
I am able to get in to VirtualMin on this new IP, but and if we look at PHP Versions. it only shows 5.5.9 and then 7.1.8 but we have 7.2 also installed.
php -v shows PHP 7.2.0beta2 (cli) but of course we know that’s not way Apache2 is using…
I selected 7.1.8 in the VM control panel
but now it would only offer to download
application/x-httpd-php (3.7 KB)
Going back to Virtual min in the Manage PHP configuration we see (of course)
/home/htoday/etc/php5/php.ini
So we are missing something simple here… how do we get VM to see and Apache2 to use 7.2?
I rebooted the box, restarted apache (many times throughout the process) but we are missing something