User:BarryCarlyon/MutliForum OneFileSet

Run More than One Forum, from one set of files
Edit config.php as follows.

<?php // phpBB 3.0.x auto-generated configuration file // Do not change anything in this file!

if ($_SERVER['HTTP_HOST'] == 'forum1.example.com') { $dbms = 'mysqli'; $dbhost = ''; $dbport = ''; $dbname = ''; $dbuser = ''; $dbpasswd = ''; $table_prefix = ''; $acm_type = 'file'; $load_extensions = '';

@define('PHPBB_INSTALLED', true); // @define('DEBUG', true); // @define('DEBUG_EXTRA', true); } else { $dbms = 'mysqli'; $dbhost = ''; $dbport = ''; $dbname = ''; $dbuser = ''; $dbpasswd = ''; $table_prefix = ''; $acm_type = 'file'; $load_extensions = '';

@define('PHPBB_INSTALLED', true); // @define('DEBUG', true); // @define('DEBUG_EXTRA', true); }

?>

You will need one database per sub-domain/http_host or other $_SERVER element

This has not been tested, and things regarding file/avatar uploads need checking out for compatability