forked from oZONo32/EHCP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
executable file
·51 lines (34 loc) · 1.11 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// host where your mysql db is, generally localhost
$dbhost='localhost';
$skipupdatediskquota=true;
// default username to connecto to ehcp db ... 1234
$dbusername='ehcp';
// user password
$dbpass='test';
// ehcp database name
$dbname='ehcp';
$dbrootpass='test';
// mysql root password, used for db creation/deletion
$defaultlanguage='en';
/*
common daemon commands for mysql
These are used from command line, when ehcp webbased gui is not accessible, or for any other reason.
go to server console:
mysql -p
use ehcp;
-- then:
-- reset to non-ssl mod all apache settings.
update misc set value='apache2' where name='webservertype';
update misc set value='nonssl' where name='webservermode';
insert into operations (op) values ('fixapacheconfignonssl');
-- rebuilds apache config:
insert into operations (op) values ('syncdomains');
-- rebuild bind dns config:
insert into operations (op) values ('syncdns');
-- to reset template for your ehcp web-gui:
update misc set `value` = 'xp5-z7' WHERE `misc`.`name`='defaulttemplate' ;
-- or
update misc set `value` = 'ubuntu0.4.2' WHERE `misc`.`name`='defaulttemplate' ;
*/
?>