Sorry, its suppous to by moodle.domain.com wich I changed.
My config file is default:
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'c1studovna';
$CFG->dbuser = 'c1studovna';
$CFG->dbpass = 'password';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
);
$CFG->wwwroot = 'http://mydomain.com';
$CFG->dataroot = '/var/www/clients/client1/web2/private/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(dirname(__FILE__) . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
Structure is default, its after clean install.
And this problém with 500 error I have on two diffrent server with ISPconfig3 management.