b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Installation / Upgrade
  3. Configuration files
  4. _basic_config.php

_basic_config.php

/conf/_basic_config.php is b2evolution’s main config file.

This file is created during the installation process, using the file /conf/_basic_config.template.php as a model.

If you wish, you can also duplicate/rename this file manually and enter correct settings before running the installation script.

Base URL

$baseurl = 'http://www.yourdomain.com/optional_directory/';

$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, blog1.php, blog2.php, etc. as well as admin.php.

Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside of there, or some tricky things may fail (including intempestive logouts)

IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine’s name in the $baseurl!

For example, if your machine is called HOMER, do not use http://homer/b2evolution/ !

Use http://localhost/b2evolution/ instead. And log in on localhost too, not homer!

If you don’t, login cookies will not hold.

DB Config

$db_config = array(
	'user'     => 'username',      // your MySQL username
	'password' => 'pass',          // ...and password
	'name'     => 'database_name',  // the name of the database
	'host'     => 'localhost',     // MySQL Server (typically 'localhost')
);

MySQL DB settings.

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

Table Prefix

The tables prefix (gets placed before each b2evo table name)

$tableprefix = 'evo_';

Use this to have multiple installations in one single database.

Allow DB Reset

If you want to be able to reset your existing b2evolution tables and start anew you must set $allow_evodb_reset to 1.

$allow_evodb_reset = 0;

This will enable a new option in the installer menu and will allow you to reset your database.

NEVER LEAVE THIS SETTING ON ANYTHING ELSE THAN 0 (ZERO) ON A PRODUCTION SERVER. IF THIS IS ON (1) AND YOU FORGET TO DELETE THE INSTALL FOLDER, ANYONE WOULD BE ABLE TO ERASE YOUR B2EVOLUTION TABLES AND DATA WITH A SINGLE CLICK!

Maintenance Mode

$maintenance_mode = 0;

Set this to 1 Set this to 1 in order to temporarily disable access to the application.

Note: it is still possible to access the install script during maintenance mode.

Note: there is a better and easier way to do this by renaming the _maintenance.html file.

Created by fplanque • Last edit by fplanque on 2020-07-31 16:40 • •

No feedback yet

On this page

  • Base URL
  • DB Config
  • Table Prefix
  • Allow DB Reset
  • Maintenance Mode

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
    • New Installation
    • Upgrade
    • Configuration files
      • _basic_config.php
      • _advanced.php
      • Other /conf files
      • Files related to upgrade
      • System config files
    • Advanced Setup
    • Migrating from Another System
    • Moving your b2evolution Site
    • FAQ & Troubleshooting (Installation / Upgrade)
    • Assumed User Skills
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Multi-blog engine

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque