Only display source code on install.php

Hi all,

I try to make a new install on CentOS 8 with this guidance, but I can only see below source code on install.php instead of web install page.

I 've checked Apache and Maria DB status, and I also restarted these two processes, but it still not working…

Did i missing something during install process?

image

[root@localhost:/opt/librenms]$ ./validate.php
PHP Fatal error: Uncaught Error: Call to undefined function LibreNMS\Util\app() in /opt/librenms/LibreNMS/Util/Laravel.php:71
Stack trace:
#0 /opt/librenms/LibreNMS/DB/Eloquent.php(111): LibreNMS\Util\Laravel::isBooted()
#1 /opt/librenms/LibreNMS/DB/Eloquent.php(92): LibreNMS\DB\Eloquent::DB()
#2 /opt/librenms/LibreNMS/Util/Version.php(58): LibreNMS\DB\Eloquent::isConnected()
#3 /opt/librenms/includes/common.php(1053): LibreNMS\Util\Version->database()
#4 /opt/librenms/validate.php(72): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Util/Laravel.php on line 71
[FAIL] config.php does not exist, please copy config.php.default to config.php

Fatal error: Uncaught Error: Call to undefined function LibreNMS\Util\app() in /opt/librenms/LibreNMS/Util/Laravel.php:71
Stack trace:
#0 /opt/librenms/LibreNMS/DB/Eloquent.php(111): LibreNMS\Util\Laravel::isBooted()
#1 /opt/librenms/LibreNMS/DB/Eloquent.php(92): LibreNMS\DB\Eloquent::DB()
#2 /opt/librenms/LibreNMS/Util/Version.php(58): LibreNMS\DB\Eloquent::isConnected()
#3 /opt/librenms/includes/common.php(1053): LibreNMS\Util\Version->database()
#4 /opt/librenms/validate.php(72): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Util/Laravel.php on line 71

I just solve the issue after I install the mod_php module, but I didn’t install it before and it still working in previous install…