b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: conf ] [ index: conf ] [ all elements ]

Procedural File: _config.php

Source Location: /blogs/conf/_config.php

Page Details

This is b2evolution's main config file

You need to edit this file to your settings before attempting to install the database! Last significant changes to this file: version 0.9.0.2

Reminder: every line starting with # or // is a comment, multiline comments are surrounded by '/*' and '* /' (without space).

IMPORTANT: Take special care not to erase quotes (') around text parameters and semicolums (;) at the end of the lines. Otherwise you'll get some "unexpected T_STRING" parse errors!

Contributors: you should override this file by creating a file named _config_TEST.php (see end of this file)

b2evolution - http://b2evolution.net/ Released under GNU GPL License - http://b2evolution.net/about/license.html

Copyright:  (c)2003-2005 by Francois PLANQUE - http://fplanque.net/
Filesource:  Source Code for this file
Includes
include_once (dirname(__FILE__).'/_config_TEST.php') [line 92]

Once you have edited this file to your settings, set the following to 1 (one):

[ Top ]

include_once (dirname(__FILE__).'/_overrides_TEST.php') [line 98]
[ Top ]

require_once (dirname(__FILE__).'/_admin.php') [line 96]
[ Top ]

require_once (dirname(__FILE__).'/_formatting.php') [line 95]
[ Top ]

require_once (dirname(__FILE__).'/_locales.php') [line 94]
[ Top ]

require_once (dirname(__FILE__).'/_advanced.php') [line 93]
[ Top ]

require_once (dirname(__FILE__).'/_stats.php') [line 97]
[ Top ]


Constants
DB_HOST  [line 38]

DB_HOST = 'localhost'

MySQL settings. Fill in your database details (check carefully or nothing will work!)


[ Top ]

DB_NAME  [line 37]

DB_NAME = 'b2evolution'

MySQL settings. Fill in your database details (check carefully or nothing will work!)


[ Top ]

DB_PASSWORD  [line 36]

DB_PASSWORD = 'demopass'

MySQL settings. Fill in your database details (check carefully or nothing will work!)


[ Top ]

DB_USER  [line 35]

DB_USER = 'demouser'

MySQL settings. Fill in your database details (check carefully or nothing will work!)


[ Top ]


Globals
string   $baseurl [line 68]

$baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.

It should be set to the URL where you can find the blog templates and/or the blog stub files, that means index.php, blog_b.php, etc. Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside of there, or some tricky things may fail (e-g: pingback)

IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's name in the $baseurl! For example, if you machine is called HOMER, do not use http://homer/b2evolution/blogs ! Use http://localhost/b2evolution/blogs instead. And log in on localhost too, not homer! If you don't, login cookies will not hold.

Default value:  'http://localhost/b2evolution/blogs'

[ Top ]



Documentation generated on Tue, 20 May 2008 01:53:41 +0200 by phpDocumentor 1.4.2