aboutsummaryrefslogtreecommitdiff
path: root/engine/settings.example.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-14 16:32:36 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-14 16:32:36 +0000
commit269c58d56242a9c4bf4cac067efdbc6774424a32 (patch)
tree971369045067f5a7180b70939368eafee21e9a31 /engine/settings.example.php
parent5b373ca622653dcdea04f7f2ce73b6ee22495f43 (diff)
downloadelgg-269c58d56242a9c4bf4cac067efdbc6774424a32.tar.gz
elgg-269c58d56242a9c4bf4cac067efdbc6774424a32.tar.bz2
Actions, .htaccess, and the database schema
git-svn-id: https://code.elgg.org/elgg/trunk@31 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/settings.example.php')
-rw-r--r--engine/settings.example.php87
1 files changed, 87 insertions, 0 deletions
diff --git a/engine/settings.example.php b/engine/settings.example.php
index 0165eb215..7c8b5019f 100644
--- a/engine/settings.example.php
+++ b/engine/settings.example.php
@@ -1,3 +1,90 @@
<?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;
+
+ /*
+ * 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 = "";
+
+ // Database password
+ $CONFIG->dbpass = "";
+
+ // Database name
+ $CONFIG->dbname = "";
+
+ // Database server
+ // (For most configurations, you can leave this as 'localhost')
+ $CONFIG->dbhost = "localhost";
+
+ /*
+ * 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.
+ */
+
?> \ No newline at end of file