97f04d3
--- include/config.php.orig	2006-01-13 14:44:09.000000000 -0600
97f04d3
+++ include/config.php	2006-01-13 14:44:23.000000000 -0600
97f04d3
@@ -23,15 +23,7 @@
97f04d3
  | - raXnet - http://www.raxnet.net/                                       |
97f04d3
  +-------------------------------------------------------------------------+
97f04d3
 */
97f04d3
-
97f04d3
-/* make sure these values refect your actual database/host/user/password */
97f04d3
-$database_type = "mysql";
97f04d3
-$database_default = "cacti";
97f04d3
-$database_hostname = "localhost";
97f04d3
-$database_username = "cactiuser";
97f04d3
-$database_password = "cactiuser";
97f04d3
-$database_port = "3306";
97f04d3
-
97f04d3
+require_once("db.php");
97f04d3
 /* ----- you probably do not need to change anything below this line ----- */
97f04d3
 
97f04d3
 /* Files that do not need http header information - Command line scripts */
97f04d3
--- include/db.php.orig	1969-12-31 18:00:00.000000000 -0600
97f04d3
+++ include/db.php	2006-01-13 15:14:07.000000000 -0600
97f04d3
@@ -0,0 +1,9 @@
5bec4df
+
97f04d3
+/* make sure these values refect your actual database/host/user/password */
97f04d3
+$database_type = "mysql";
97f04d3
+$database_default = "cacti";
97f04d3
+$database_hostname = "localhost";
97f04d3
+$database_username = "cactiuser";
97f04d3
+$database_password = "cactiuser";
97f04d3
+$database_port = "3306";
97f04d3
+?>
97f04d3
--- docs/text/manual.txt.orig	2006-01-13 15:21:40.000000000 -0600
97f04d3
+++ docs/text/manual.txt	2006-01-13 15:22:42.000000000 -0600
97f04d3
@@ -144,7 +144,7 @@
97f04d3
 mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somep
97f04d3
 assword';
97f04d3
 mysql> flush privileges;
97f04d3
-    5. Edit include/config.php and specify the MySQL user,
97f04d3
+    5. Edit /etc/cacti/db.php and specify the MySQL user,
97f04d3
        password and database for your Cacti configuration.
97f04d3
 $database_default = "cacti";
97f04d3
 $database_hostname = "localhost";
97f04d3
@@ -379,7 +379,7 @@
97f04d3
        all the DLL files and sh.exe from the c:\cacti directory.
97f04d3
 
97f04d3
    Configure Cacti
97f04d3
-    1. Edit cacti_web_root/cacti/include/config.php and specify
97f04d3
+    1. Edit cacti_web_root/cacti/include/db.php and specify
97f04d3
        the MySQL user, password, database, and database port for
97f04d3
        your Cacti configuration.
97f04d3
 $database_default = "cacti";
97f04d3
@@ -504,7 +504,7 @@
97f04d3
 shell> tar xzvf cacti-version.tar.gz
97f04d3
     4. Rename the new Cacti directory to match the old one.
97f04d3
 shell> mv cacti-version cacti
97f04d3
-    5. Edit include/config.php and specify the MySQL user,
97f04d3
+    5. Edit /etc/cacti/db.php and specify the MySQL user,
97f04d3
        password and database for your Cacti configuration.
97f04d3
 $database_default = "cacti";
97f04d3
 $database_hostname = "localhost";
97f04d3
--- ./docs/UPGRADE.orig	2006-01-13 15:32:34.000000000 -0600
97f04d3
+++ ./docs/UPGRADE	2006-01-13 15:35:37.000000000 -0600
97f04d3
@@ -21,7 +21,7 @@
97f04d3
 
97f04d3
  shell> mv cacti-version cacti
97f04d3
 
97f04d3
-    5. Edit include/config.php and specify the MySQL user, password and
97f04d3
+    5. Edit /etc/cacti/db.php and specify the MySQL user, password and
97f04d3
        database for your Cacti configuration.
97f04d3
 
97f04d3
  $database_default = "cacti";
97f04d3
--- ./docs/INSTALL.orig	2006-01-13 15:32:45.000000000 -0600
97f04d3
+++ ./docs/INSTALL	2006-01-13 15:35:46.000000000 -0600
97f04d3
@@ -19,7 +19,7 @@
97f04d3
  mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
97f04d3
  mysql> flush privileges;
97f04d3
 
97f04d3
-    5. Edit include/config.php and specify the MySQL user, password and
97f04d3
+    5. Edit /etc/cacti/db.php and specify the MySQL user, password and
97f04d3
        database for your Cacti configuration.
97f04d3
 
97f04d3
  $database_default = "cacti";
97f04d3
--- ./docs/html/upgrade.html.orig	2006-01-13 15:32:22.000000000 -0600
97f04d3
+++ ./docs/html/upgrade.html	2006-01-13 15:35:18.000000000 -0600
97f04d3
@@ -67,7 +67,7 @@
97f04d3
       
97f04d3
 
97f04d3
       
  • 97f04d3
    -        

    Edit <tt class="FILENAME">include/config.php</tt> and specify the MySQL user, password and database for your Cacti configuration.

    97f04d3
    +        

    Edit <tt class="FILENAME">/etc/cacti/db.php</tt> and specify the MySQL user, password and database for your Cacti configuration.

    97f04d3
             
    97f04d3
     $database_default = "cacti";
    97f04d3
     $database_hostname = "localhost";
    97f04d3
    --- ./docs/html/install_unix.html.orig	2006-01-13 15:32:28.000000000 -0600
    97f04d3
    +++ ./docs/html/install_unix.html	2006-01-13 15:35:26.000000000 -0600
    97f04d3
    @@ -67,7 +67,7 @@
    97f04d3
           
    97f04d3
     
    97f04d3
           
  • 97f04d3
    -        

    Edit <tt class="FILENAME">include/config.php</tt> and specify the MySQL user, password and database for your Cacti configuration.

    97f04d3
    +        

    Edit <tt class="FILENAME">/etc/cacti/db.php</tt> and specify the MySQL user, password and database for your Cacti configuration.

    97f04d3
             
    97f04d3
     $database_default = "cacti";
    97f04d3
     $database_hostname = "localhost";