Due to some site stability issues, I'm looking to rebuild our Moodle site on a VPS
I obtained my code via git, and have been attempting to run the install command - which returns the following:
"sudo -u trainingfsgv /usr/bin/php install.php
PHP Fatal error: Uncaught Error: Undefined constant "STDOUT" in /home/trainingfsgv/public_html/moodle/lib/clilib.php:35
Stack trace:
#0 /home/trainingfsgv/public_html/moodle/lib/clilib.php(249): cli_write(' ...')
#1 /home/trainingfsgv/public_html/moodle/admin/cli/install.php(300): cli_logo()
#2 {main}
thrown in /home/trainingfsgv/public_html/moodle/lib/clilib.php on line 35
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Undefined constant "STDOUT" in /home/trainingfsgv/public_html/moodle/lib/clilib.php:35
Stack trace:
#0 /home/trainingfsgv/public_html/moodle/lib/clilib.php(249): cli_write(' ...')
#1 /home/trainingfsgv/public_html/moodle/admin/cli/install.php(300): cli_logo()
#2 {main}
thrown in <b>/home/trainingfsgv/public_html/moodle/lib/clilib.php</b> on line <b>35</b><br />
[trainingfsgv@57 cli]$"
Looking through the related files, this looks to be around the ASCII logo for Moodle - but don't know enough to say if that is what is correlated with the error or not.
Server info as below:
"cPanel Version 110.0 (build 6)
Apache Version 2.4.57
MySQL Version 8.0.33
Architecture x86_64
Operating System linux
Shared IP Address [Redacted]
Path to Sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl Version 5.26.3
Kernel Version 4.18.0-425.19.2.el8_7.x86_64"
I've been working through server requirements, and making sure that related PHP packages are all installed via the WHM panel
Have selected PHP 8.0 for this site, and installed the packages for that version of PHP (At least, pretty sure I got them all....)
Very much appreciate any assistance in getting past this error to run the installer