I have moodle3.5 running with php 7.0, now I want to upgrade to moodle3.9, but I need to upgrade my php, installed php7.4, but when I add to the config.php file the line phpinfo(); it indicates that it is using php7.0. How do have moodle and apache to use php7.4 as every time I start and run moodle3.9 I get the error "error/generalexceptionmessage". I am assuming the error is attributed to the use of php7.0 instead of a higher version.
So how to I have apache and moodle to use php7.4 when I have both 7.0 and 7.4 installed on the same machine
Thank you for any assistance