The XenFans.com Config.php file

Status
Not open for further replies.

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
I've received various messages on IM, Email and social networks about how we are running the XenForo sites. Well .. here's the answer :)

Curious to hear how you are running yours! Please do share (don't forget to remove your privacy details).

XenFans.com currently runs on a dedicated server, single CPU, four cores, 2gb memory, 4tb traffic limit, and 2x 250gb sata3 drives, on a 100mbit public up/down line, and 10/1gbit internal network at leaseweb.com - we have a LAMP setup, with ubuntu server lts (32bit), apache2, php5.2 and mysql5.0. On top of that we're not using a control panel, but we do use APC for caching.

Additionally on the same server I run my blog, the wetalk network, the vbirc website and a bunch of other sites.

As a result, I have turned on APC for improved performance of the many sites, and with a prefix + enabling caching in xenforo, we squeeze out a bit faster page loads.

Of course, don't just copy our config.php, it's specific to our site, but it has at least a few hints for you to consider. Curious to see how yours looks like!

PHP:
<?php // xenforo config.php version 1.0.0 beta 2, xenfans.com

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'dbuser';
$config['db']['password'] = 'dbpass';
$config['db']['dbname'] = 'dbname';
// $config['debug'] = true;
$config['superAdmins'] = '1'; // change to the super-admin

$config['cookiePrefix'] = 'fans_'; // change PER site

## Caching # ONLY USE WHEN YOU HAVE APC INSTALLED
#  http://xenforo.com/community/threads/speed-up-your-board-caching.5699/
#  http://xenforo.com/community/threads/tip-use-apc.6456/
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
                                        'caching'                      => true,
                                        'automatic_serialization'      => true,
                                        'lifetime'                      => 10800,
                                        'cache_id_prefix' => 'fans_'
); // change cache_id_prefix value PER xenforo site to something simple, short and unique.
$config['cache']['backend'] = 'Apc';
 

datheme

OMG Member
Jul 12, 2010
29
0
50
Europe
datheme.com
PHP:
'cache_id_prefix' => 'fans'
should become
PHP:
'cache_id_prefix' => 'fans_'
so the User Entry Label looks prettier.

fansdata_displayStyles => fans_data_displayStyles
or
myboarddata_displayStyles => myboard_data_displayStyles
 
Status
Not open for further replies.