by Šefčíková Jana.
Hi, I installed moodle on my hosting but during installation I got 'error/An error occurred whilst communicating with the server'. I don't know in what state installation is but it seems that tables are created. Could you please help me figure out the problem? It is my first experience with moodle. Thank you
I see also on the page 'Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /data/4/4/44993118-2992-47d6-abd0-a8c976379568/praktis.io/sub/moodle/lib/classes/component.php on line 1160' but it doesn't seem to be related.
System
My operating system is Ubuntu, my db is Mysql, same error occurred with Maria DB, moodle 3.9
Installation
These are steps that I followed :
- git clone -b MOODLE_39_STABLE git://git.moodle.org/moodle.git
- chown -R myid moodle
- chmod -R 0755 moodle
- mkdir moodledata
- add .htaccess to moodledata
- Then I went to the browser and started installation
During installation I got 'error/An error occurred whilst communicating with the server'. I checked the table logstore_standard_log - empty. I turned on debugging as follows, and refreshed browser, still empty.
I added following code for debugging to config.php
$CFG->dboptions = array (
'logall' => true,
'logslow' => 5,
'logerrors' => true,
);
//=========================================================================
//// 7. SETTINGS FOR DEVELOPMENT SERVERS - not intended for production use!!!
////=========================================================================
////
// Force a debugging mode regardless the settings in the site administration
@error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
////