Multiple PHP Versions not working correctly

I want;ed to install Nextcloud on my installation, but the installer failed becasue I was using the PHP building into the current VirtualMin version. I installed PHP 5.6 using your instructions on https://www.virtualmin.com/documentation/web/multiplephp I was then able to install Nextcloud. Working through settings for securing and getting nextcloud to run requires me to run a CRON job to provide frequent updates to Nextcloud. I set up the CRON job, but when I run it the job fails with this error - This version of Nextcloud requires at least PHP 5.6.0
You are currently running 5.4.16. So I went into Virtualmin > Server Configuration > PHP Versions and set the Website Subdirectory for both Default HTML directory as well as the folder Nextcloud to use PHP Version 5.6.5. I reset Apache and got the same error message, I rebooted the server instance and got the same error message. Where can I set the system to forget about PHP 5.4.16, or make sure that the Server for the Nextcloud install is using PHP 5.6.5?

Status: 
Active

Comments

Howdy -- can you paste in here what the cron job looks like? That is, what is the exact command line that is being run?

php -f /home/putitonmy/public_html/nextcloud/cron.php

Ah, yeah that particular PHP binary would indeed be the 5.4.x one that comes with CentOS.

What you'd want to do, is use the path to the PHP version that you are interested in using.

You can see the paths if you go into System Settings -> Re-Check Config, where it shows what PHP versions it finds.

That'll work, thanks for pointing me there.