In referring to this post:
https://moodle.org/mod/forum/discuss.php?d=407222
I have determined that the version of php that apache was using was the "old" version (7.0)
https://moodle.org/mod/forum/discuss.php?d=407222
I have determined that the version of php that apache was using was the "old" version (7.0)
Create /var/www/html/phpinfo.php with the following:
<?php
phpinfo();
?>
Browse to the server: www.myserver.com/phpinfo.php
<?php
phpinfo();
?>
Browse to the server: www.myserver.com/phpinfo.php
The browser showed php v7.0 being used.
Ran the following commands to disable the old version and enable the new version:
# a2dismod php7.0
# a2enmod php7.4
# systemctl restart apache2
Refreshing the browser, the correct (7.4) version of php was displayed.
Deleted /var/www/html/phpinfo.php
My Moodle site is up again.