I'm struggling with Moodle as I'm not able to finish the installation and the page is staking in moodle/admin/index.php and is giving me the below error
and I dont know why I'm having this error I have apache server with php 7.1.8 and the version installed is 3.5.2 of moodle .
plus I tried to upgrade moodle to the latest version and with the fresh installation I got the same error .
please help .
I have redirect page from http to https and I'm using virtualhost in my apache .
This is my config file
<?php // Moodle configuration file
$CFG = new stdClass();
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = '127.0.01';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodleusr';
$CFG->dbpass = 'moodlepassword!';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_general_ci',
$CFG->dataroot = '/u01/moodle_data/moodle';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!