I am getting this error on the root page on macOS 10.12.6 after upgrading from 3.2 to 3.5.1+.
When I access my created phpinfo.php file I get the php page to load showing I am running PHP Version 7.2.8
My mysql db seems to be running fine.
Searching seems to indicate that this was a problem in earlier versions of moodle with php 7.2 but has since been fixed.
Suggestions to further troubleshoot this error?