I am trying to install the Moodle 4.3.3. Earlier tried v4.2.6 but the same error message below:
Current enveironment:
- Slackware 14.2;
- PHP 8.1.27
- mysql v8.0.36
- Moodle 4.3.3
config.php:
**********************************************
$CFG->dbtype = 'mysqli'; // 'pgsql', 'mariadb', 'mysqli', 'auroramysql', 'sqlsrv' or 'oci'
$CFG->dblibrary = 'native'; // 'native' only at the moment
$CFG->dbhost = 'localhost'; // eg 'localhost' or 'db.isp.com' or IP
$CFG->dbname = 'moodle'; // database name, eg moodle
$CFG->dbuser = 'moodledbuser'; // your database username
$CFG->dbpass = 'moodleDBPass'; // your database password
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'https://moodle.mydomain.de';
$CFG->dataroot = '/home/moodle/moodledata';
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
$CFG->debuglog = true;
*******************************************************************************
I checked the versions and it should be compatible. Tried to run from cli but it failed with the following message:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/apcu.so' - /usr/lib64/php/extensions/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/moodle/moodle/lib/classes/component.php on line 1169