Elgg
Version master
elgg-config
settings.example.php
Go to the documentation of this file.
1
<?php
13
date_default_timezone_set(
'{{timezone}}'
);
14
15
global
$CONFIG
;
16
if
(!isset(
$CONFIG
)) {
17
$CONFIG
= new \stdClass;
18
}
19
20
/*
21
* Standard configuration
22
*
23
* You will use the same database connection for reads and writes.
24
* This is the easiest configuration, and will suit 99.99% of setups. However, if you're
25
* running a really popular site, you'll probably want to spread out your database connections
26
* and implement database replication. That's beyond the scope of this configuration file
27
* to explain, but if you know you need it, skip past this section.
28
*/
29
35
$CONFIG
->dataroot =
"{{dataroot}}"
;
36
44
$CONFIG
->wwwroot =
"{{wwwroot}}"
;
45
51
$CONFIG
->dbuser =
'{{dbuser}}'
;
52
58
$CONFIG
->dbpass =
'{{dbpassword}}'
;
59
65
$CONFIG
->dbname =
'{{dbname}}'
;
66
74
$CONFIG
->dbhost =
'{{dbhost}}'
;
75
83
$CONFIG
->dbport =
'{{dbport}}'
;
84
94
$CONFIG
->dbprefix =
'{{dbprefix}}'
;
95
105
$CONFIG
->dbencoding =
'utf8mb4'
;
106
115
//$CONFIG->db['split'] = true;
116
117
//$CONFIG->db['write']['dbuser'] = "";
118
//$CONFIG->db['write']['dbpass'] = "";
119
//$CONFIG->db['write']['dbname'] = "";
120
//$CONFIG->db['write']['dbhost'] = "";
121
//$CONFIG->db['write']['dbport'] = "";
122
123
//$CONFIG->db['read'][0]['dbuser'] = "";
124
//$CONFIG->db['read'][0]['dbpass'] = "";
125
//$CONFIG->db['read'][0]['dbname'] = "";
126
//$CONFIG->db['read'][0]['dbhost'] = "";
127
//$CONFIG->db['read'][0]['dbport'] = "";
128
//$CONFIG->db['read'][1]['dbuser'] = "";
129
//$CONFIG->db['read'][1]['dbpass'] = "";
130
//$CONFIG->db['read'][1]['dbname'] = "";
131
//$CONFIG->db['read'][1]['dbhost'] = "";
132
//$CONFIG->db['read'][1]['dbport'] = "";
133
142
//$CONFIG->simplecache_enabled = true;
143
151
//$CONFIG->boot_cache_ttl = 3600;
152
161
//$CONFIG->cacheroot = "";
162
170
//$CONFIG->localcacheroot = "";
171
180
//$CONFIG->assetroot = "";
181
190
//$CONFIG->{'X-Sendfile-Type'} = '';
191
199
//$CONFIG->{'X-Accel-Mapping'} = '';
200
219
// get the default parameters from php.ini
220
//$CONFIG->cookies['session'] = session_get_cookie_params();
221
//$CONFIG->cookies['session']['name'] = "Elgg";
222
// optionally overwrite the defaults from php.ini below
223
//$CONFIG->cookies['session']['path'] = "/";
224
//$CONFIG->cookies['session']['domain'] = "";
225
//$CONFIG->cookies['session']['secure'] = false;
226
//$CONFIG->cookies['session']['httponly'] = false;
227
//$CONFIG->cookies['session']['samesite'] = ''; // 'Strict' or 'Lax'
228
229
// extended session cookie
230
//$CONFIG->cookies['remember_me'] = session_get_cookie_params();
231
//$CONFIG->cookies['remember_me']['name'] = "elggperm";
232
//$CONFIG->cookies['remember_me']['expire'] = strtotime("+30 days");
233
// optionally overwrite the defaults from php.ini below
234
//$CONFIG->cookies['remember_me']['path'] = "/";
235
//$CONFIG->cookies['remember_me']['domain'] = "";
236
//$CONFIG->cookies['remember_me']['secure'] = false;
237
//$CONFIG->cookies['remember_me']['httponly'] = false;
238
//$CONFIG->cookies['remember_me']['samesite'] = ''; // 'Strict' or 'Lax'
239
249
$CONFIG
->db_disable_query_cache =
false
;
250
262
$CONFIG
->auto_disable_plugins =
true
;
263
270
//$CONFIG->class_loader_verify_file_existence = false;
271
287
$CONFIG
->exception_include =
''
;
288
293
//if (isset($_REQUEST['__some_secret__'])) {
294
//
295
// // send profiling data to the JS console?
296
// $CONFIG->enable_profiling = true;
297
//
298
// // profile all queries? A page with a ton of queries could eat up memory.
299
// $CONFIG->profiling_sql = false;
300
//
301
// // in the list, don't include times that don't contribute at least this much to the
302
// // total time captured. .1% by default
303
// $CONFIG->profiling_minimum_percentage = .1;
304
//}
305
314
$CONFIG
->action_time_limit = 120;
315
324
$CONFIG
->allow_phpinfo =
false
;
325
335
//$CONFIG->image_processor = 'imagick';
336
343
//$CONFIG->webp_enabled = false;
344
352
//$CONFIG->email_subject_limit = 998;
353
363
//$CONFIG->emailer_transport = 'sendmail';
364
368
//$CONFIG->emailer_sendmail_settings = '';
369
377
//$CONFIG->emailer_smtp_settings = array(
378
// 'name' => 'localhost.localdomain',
379
// 'host' => '127.0.0.1',
380
// 'port' => 25,
381
// 'connection_class' => 'login',
382
// 'connection_config' => [
383
// 'username' => 'user',
384
// 'password' => 'pass',
385
// 'ssl' => '', // OPTIONAL (tls or ssl)
386
// 'port' => '', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)
387
// 'use_complete_quit' => '', // OPTIONAL
388
// ],
389
//);
390
400
//$CONFIG->notifications_queue_delay = 180;
401
407
$CONFIG
->proxy = [
408
// 'host' => '127.0.0.1',
409
// 'port' => 25,
410
// 'verify_ssl' => false,
411
// 'username' => 'user',
412
// 'password' => 'pass',
413
];
414
425
//$CONFIG->debug = 'info';
426
450
//$CONFIG->language_to_locale_mapping = [];
451
455
//$CONFIG->language_detect_from_browser = true;
456
464
//$CONFIG->http_request_trusted_proxy_ips = [
465
// 'ip-address-1',
466
// 'ip-address-2',
467
//];
468
476
//$CONFIG->http_request_trusted_proxy_headers = '';
$CONFIG
global $CONFIG
Definition:
settings.example.php:15
Generated on Wed Dec 24 2025 00:01:57 for Elgg by
1.9.1