Elgg  Version 3.0
settings.example.php
Go to the documentation of this file.
1 <?php
17 date_default_timezone_set('{{timezone}}');
18 
20 if (!isset($CONFIG)) {
21  $CONFIG = new \stdClass;
22 }
23 
24 /*
25  * Standard configuration
26  *
27  * You will use the same database connection for reads and writes.
28  * This is the easiest configuration, and will suit 99.99% of setups. However, if you're
29  * running a really popular site, you'll probably want to spread out your database connections
30  * and implement database replication. That's beyond the scope of this configuration file
31  * to explain, but if you know you need it, skip past this section.
32  */
33 
39 $CONFIG->dataroot = "{{dataroot}}";
40 
48 $CONFIG->wwwroot = "{{wwwroot}}";
49 
55 $CONFIG->dbuser = '{{dbuser}}';
56 
62 $CONFIG->dbpass = '{{dbpassword}}';
63 
69 $CONFIG->dbname = '{{dbname}}';
70 
78 $CONFIG->dbhost = '{{dbhost}}';
79 
89 $CONFIG->dbprefix = '{{dbprefix}}';
90 
100 $CONFIG->dbencoding = 'utf8mb4';
101 
110 //$CONFIG->db['split'] = true;
111 
112 //$CONFIG->db['write']['dbuser'] = "";
113 //$CONFIG->db['write']['dbpass'] = "";
114 //$CONFIG->db['write']['dbname'] = "";
115 //$CONFIG->db['write']['dbhost'] = "";
116 
117 //$CONFIG->db['read'][0]['dbuser'] = "";
118 //$CONFIG->db['read'][0]['dbpass'] = "";
119 //$CONFIG->db['read'][0]['dbname'] = "";
120 //$CONFIG->db['read'][0]['dbhost'] = "";
121 //$CONFIG->db['read'][1]['dbuser'] = "";
122 //$CONFIG->db['read'][1]['dbpass'] = "";
123 //$CONFIG->db['read'][1]['dbname'] = "";
124 //$CONFIG->db['read'][1]['dbhost'] = "";
125 
140 //$CONFIG->memcache = true;
141 //
142 //$CONFIG->memcache_servers = array (
143 // array('server1', 11211),
144 // array('server2', 11211)
145 //);
146 
147 // namespace prefix
148 // $CONFIG->memcache_namespace_prefix = '';
149 
154 //$CONFIG->redis = true;
155 //
156 //$CONFIG->redis_servers = array (
157 // array('server1', 6379),
158 // array('server2', 6379)
159 //);
160 
169 //$CONFIG->simplecache_enabled = true;
170 
178 //$CONFIG->boot_cache_ttl = 3600;
179 
188 //$CONFIG->cacheroot = "";
189 
198 //$CONFIG->assetroot = "";
199 
208 //$CONFIG->{'X-Sendfile-Type'} = '';
209 
217 //$CONFIG->{'X-Accel-Mapping'} = '';
218 
235 // get the default parameters from php.ini
236 //$CONFIG->cookies['session'] = session_get_cookie_params();
237 //$CONFIG->cookies['session']['name'] = "Elgg";
238 // optionally overwrite the defaults from php.ini below
239 //$CONFIG->cookies['session']['path'] = "/";
240 //$CONFIG->cookies['session']['domain'] = "";
241 //$CONFIG->cookies['session']['secure'] = false;
242 //$CONFIG->cookies['session']['httponly'] = false;
243 
244 // extended session cookie
245 //$CONFIG->cookies['remember_me'] = session_get_cookie_params();
246 //$CONFIG->cookies['remember_me']['name'] = "elggperm";
247 //$CONFIG->cookies['remember_me']['expire'] = strtotime("+30 days");
248 // optionally overwrite the defaults from php.ini below
249 //$CONFIG->cookies['remember_me']['path'] = "/";
250 //$CONFIG->cookies['remember_me']['domain'] = "";
251 //$CONFIG->cookies['remember_me']['secure'] = false;
252 //$CONFIG->cookies['remember_me']['httponly'] = false;
253 
254 
264 $CONFIG->broken_mta = false;
265 
275 $CONFIG->db_disable_query_cache = false;
276 
288 $CONFIG->auto_disable_plugins = true;
289 
297 $CONFIG->min_password_length = 6;
298 
314 $CONFIG->exception_include = '';
315 
320 //if (isset($_REQUEST['__some_secret__'])) {
321 //
322 // // send profiling data to the JS console?
323 // $CONFIG->enable_profiling = true;
324 //
325 // // profile all queries? A page with a ton of queries could eat up memory.
326 // $CONFIG->profiling_sql = false;
327 //
328 // // in the list, don't include times that don't contribute at least this much to the
329 // // total time captured. .1% by default
330 // $CONFIG->profiling_minimum_percentage = .1;
331 //}
332 
341 $CONFIG->action_time_limit = 120;
342 
351 $CONFIG->allow_phpinfo = false;
352 
362 //$CONFIG->image_processor = 'imagick';
363 
374 //$CONFIG->debug = 'INFO';
375 
399 //$CONFIG->language_to_locale_mapping = [];
global $CONFIG
elgg global
Pointer to the global context.
Definition: elgglib.js:12