aboutsummaryrefslogtreecommitdiff
path: root/engine/settings.example.php
blob: b022a52af2e9817a95eea2666cda6b94140a2fb3 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php

	/**
	 * Elgg settings
	 * 
	 * Elgg manages most of its configuration from the admin panel. However, we need you to
	 * include your database settings below.
	 * 
	 * @todo Turn this into something we handle more automatically. 
	 */

		global $CONFIG;
		if (!isset($CONFIG))
			$CONFIG = new stdClass;

	/*
	 * Standard configuration
	 * 
	 * You will use the same database connection for reads and writes.
	 * This is the easiest configuration, and will suit 99.99% of setups. However, if you're
	 * running a really popular site, you'll probably want to spread out your database connections
	 * and implement database replication.  That's beyond the scope of this configuration file
	 * to explain, but if you know you need it, skip past this section. 
	 */
		
		// Database username
			$CONFIG->dbuser = '{{CONFIG_DBUSER}}';
			
		// Database password
			$CONFIG->dbpass = '{{CONFIG_DBPASS}}';

		// Database name
			$CONFIG->dbname = '{{CONFIG_DBNAME}}';
			
		// Database server
		// (For most configurations, you can leave this as 'localhost')
			$CONFIG->dbhost = '{{CONFIG_DBHOST}}';
			
		// Database table prefix
		// If you're sharing a database with other applications, you will want to use this
		// to differentiate Elgg's tables.
			$CONFIG->dbprefix = '{{CONFIG_DBPREFIX}}';

	/*
	 * Multiple database connections
	 * 
	 * Here you can set up multiple connections for reads and writes. To do this, uncomment out
	 * the lines below. 
	 */
			
	/*

		// Yes! We want to split reads and writes
			$CONFIG->db->split = true;
	 
		// READS
		// Database username
			$CONFIG->db['read']->dbuser = "";
			
		// Database password
			$CONFIG->db['read']->dbpass = "";

		// Database name
			$CONFIG->db['read']->dbname = "";
			
		// Database server
		// (For most configurations, you can leave this as 'localhost')
			$CONFIG->db['read']->dbhost = "localhost";

		// WRITES
		// Database username
			$CONFIG->db['write']->dbuser = "";
			
		// Database password
			$CONFIG->db['write']->dbpass = "";

		// Database name
			$CONFIG->db['write']->dbname = "";
			
		// Database server
		// (For most configurations, you can leave this as 'localhost')
			$CONFIG->db['write']->dbhost = "localhost";


	 */
			
	/*
	 * For extra connections for both reads and writes, you can turn both
	 * $CONFIG->db['read'] and $CONFIG->db['write'] into an array, eg:
	 * 
	 * 	$CONFIG->db['read'][0]->dbhost = "localhost";
	 * 
	 * Note that the array keys must be numeric and consecutive, i.e., they start
	 * at 0, the next one must be at 1, etc.
	 */
	 
			
	/**
	 * Memcache setup (optional)
	 * This is where you may optionally set up memcache.
	 * 
	 * Requirements: 
	 * 	1) One or more memcache servers (http://www.danga.com/memcached/)
	 *  2) PHP memcache wrapper (http://uk.php.net/manual/en/memcache.setup.php)
	 */
	//$CONFIG->memcache_servers = array (
	//	array('server1', 11211),
	//	array('server2', 11211)
	//);		
	
	/**
	  * Url - I am not sure if this will be here ?
	 **/
	 
	 // URL
	    $CONFIG->url = "";
			
?>