How to install Brage CM (Change Management) on Windows with XAMPP
Disclaimer
I am not going to go into how to secure your web server. This tutorial is going to be used for demonstrating how to get a Brage CM up and running. When ever there is a password I am going to use “password” as the password. I do this to make things easy. If you want to change things after the fact I highly recommend it!
Things to download
You are going to need to download these items:
- Download XAMPP
- Download Brage v0.1.0-RC1
- Download Brage v0.1.0-RC1-Fixes
- Download Adodb
- *Optional* Download 7-Zip
*Note * You are going to need to make sure you have a program like 7-zip in order to expand the Brage files.
Let’s install Brage CM
Step 1 – Install XAMPP
This process is a simple Next, Next, Next installer. Anyone familiar to Windows should have no issues with this. If you are running Vista or Windows 7 you will most likely want to install XAMPP to “C:\Users\User\xampp” directory instead of the default “C:\xampp” location. If you have the UAC on it will not let you install to the root of “C:” The rest of the tutorial I will assume you installed XAMPP to “C:\xampp”
Step 2 – Copy the Brage files
Copy the brage files to: “C:\xampp\htdocs\brage”. Once that is done you will also need to copy the contents of the “Fixes” to the same directory. When Windows asks to overwrite any file just say “Yes to all”.
Step 3 – Copy the Adodb files
You must copy the contents of Adodb file to: “C:\XAMPP\Adodb”. You will need to create the “Adodb” directory.
Step 4 – Install Pear extensions
XAMPP is pretty good at installing the most common PEAR extensions so I’ve never had to install them before. To install the needed extensions you must open a command prompt and make your way to the “C:\xampp\php” folder. You will need to type these commands in order to get everything all up and running:
- pear upgrade HTML_QuickForm – this will upgrade “HTML_QuickForm” & “HTML_Common”
- pear install HTML_QuickForm_Advmultiselect
Here’s the output from my command prompt

Step 6 – Edit “config.php”
You are going to need to create and edit Brage’s “config.php”. Go to “C:\xampp\htdocs\brage\include” and make a copy of “config.php.sample” and call it “config.php”. This file is the main config file for Brage.
** NOTE ** I have create a seperate post called “What the brage config file should look like”. If you copy it’s contents put it into “C:\xampp\htdocs\brage\include\config.php” you will not have to change anything!
For the rest of you that like to follow along and understand what to do here’s what I did:
Line 28 – Changed it to:
$conf['adodb'] = 'C:/xampp/Adodb/adodb.inc.php';
Line 45 – Changed it to:
$conf['smarty_path'] = 'C:/xampp/htdocs/brage/include/classes/Smarty/libs/';
Line 50 – Change it to:
$conf['smarty_templates_dir'] = 'C:/xampp/htdocs/brage/templates/';
Line 56 – Change it to:
$conf['smarty_compile_dir'] = 'C:/xampp/htdocs/brage/templates_c';
Line 61 – Change it to:
$conf['smarty_cache'] = 'C:/xampp/htdocs/brage/include/classes/Smarty/tmp/';
Line 65 – Change it to:
$conf['phpmailer_path'] = 'C:/xampp/htdocs/brage/include/classes/phpmailer/';
Line 71 – Change it to:
$conf['baseurl'] = 'http://localhost/brage/';
Lines 112-117 – Change it to:
$conf['dbtype'] = 'mysql'; # mysql, postgres, oracle etc.. $conf['dbhost'] = 'localhost'; # Hostname/IP of database server $conf['dbname'] = 'brage'; # Database name $conf['dbuser'] = 'brage'; # Database user $conf['dbpass'] = 'password'; # Database password $conf['dbport'] = '3306'; # Database port
Lines 151 – Change it to:
$conf['attachment_path'] = 'C:/xampp/htdocs/brage/attachments';
Step 7 – Create Folders
The last step we made the config file link to folder that didn’t exist yet. You must make sure that these folders exist.
- “C:\xampp\htdocs\brage\include\classes\Smarty\tmp”
Step 8 – Make a MySQL User and Database
There are several steps that you are going to need to do:
- Open a browser and go to: http://localhost/phpmyadmin/.
- Click on the “privileges” tab.
- Click “Add a new User” link.
-
Fill Out the form like so and hit go:
-
You should see something like this saying you are successful.
- You are going to need to import some items into the database to get Brage to work. Click on the “brage” database on the left hand side.
- Click on the “Import” tab at the top of the screen.
- Click Browse and select the file “C:\xampp\htdocs\brage\docs\brage.mysql”.
- Click “Go” button.
-
You will see a confirmation that everything went well. Also on the left hand side there should be quite a few items now listed.
Step 9 – Login to the Brage Program
Go to http://localhost/brage/ and you will see something like this:

Following the documenation it says that the default user info is:
- User = “admin”
- password = “dolphin”
You should now be able to login to your software!
** UPDATE **
You will need to download admin_user.php so that you can create new users. You must save this file to: “C:\xampp\htdocs\brage”. The original file had a bug in it.

What a wonderful guide!!! Thanks for sharing a tutorial I was looking for exactly same stuff… But facing problem in creating users , I am not able to select the group and move it to the right left side. and getting substr() expects parameter 2 to be long, string given in C:\xampp\htdocs\brage\include\functions.php on line 2447 error on only Home page. Pls suggest
Did you follow the last step?
** UPDATE **
You will need to download admin_user.php so that you can create new users. You must save this file to: “C:\xampp\htdocs\brage”. The original file had a bug in it.
*NOTE* See original section for link to the file.
Hi Jared
I did everything you have mention and in setup.php it say all green .
But when I am trying to log in with admin and dolphin , nothing happens. It just stays there
Mohammad
Hello
I was following your commands above but i could not install Pear extensions and continued with the other things finally when i type in http://localhost/brage it gives me the following error
Warning: require_once(include/config.php) [function.require-once]: failed to open stream: No such file or directory in C:\New folder\xampp\htdocs\brage\include\functions.php on line 37
Fatal error: require_once() [function.require]: Failed opening required ‘include/config.php’ (include_path=’.;C:\New folder\xampp\php\PEAR’) in C:\New folder\xampp\htdocs\brage\include\functions.php on line 37
we have our proxy set as 10.x.x.x:x with authentication required as our internet usage is monitored, do you think the proxy was the problem ? as i’m new to change control system any help would be greatly appreciated
Thank you in advance
Required changes for MySQL 5.5.x:
Must change all instances of ‘TYPE=’ to ‘ENGINE=’in the *.mysql scripts in ‘C:\xampp\htdocs\brage\docs\’ prior to the import in step #8
Jared-
Fantastic work; the guide is very concise and well written. Aside from the changes I suggested regarding MySQL 5.5.x; I found that changing the error reporting level in CONFIGURE.PHP & PHP.INI to ‘E_ERROR’. This will supress the notice/deprecated/warning messages when using PHP 5.3.4 and will only report fatal errors.
Thanks for pointing us in the right direction!