Tenho dificuldade em atribuir a versão correta do php no moodle,
Então decidi limpar todas as versões e instalar a v8.0
Mas agora, quando eu bloqueio, vejo apenas a fonte do código e nem minha página inicial.
Had to use Google Translator ... but from the gist of that ...
See the chart @
http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases
for version of PHP compatibility with Moodle version ... the min/max columns for PHP and the version of moodle code you have ... seen in code directory, version.php file.
'SoS', Ken
One other ... your web service (apache/nginx/lightspeed/?) doesn't know how to serve out .php scripts thus defaults to text - which is why you see the contents of a .php script.
Please review and pick links that relate to your server setup:
https://www.php.net/manual/en/install.php
https://docs.moodle.org/404/en/Installing_Moodle
'SoS', Ken
<?php phpinfo(); ?>
in a file named phpinfo.php in the same place and visit yoursite/phpinfo.php. It should display a very long page!