Editing the configuration by hand

There are two main configuration files for SCHLIX.

A. Global site configuration (multisite-config.inc.php)

multisite-config.inc.php is located on the main root folder of your SCHLIX CMS installation.

/* 
 * Define multisites here. You **MUST EXPLICITLY** define all domains (including with or without www).
 * If you want to enable all sites pointing to a certain subsite, use the wildcard. 
 * Only one wildcard site is allowed. */

global $SchlixWebsites;

$SchlixWebsites =array (
  'www.mainwebsite.com' => 'schlixtest',
  'www.test1.com' => 'schlixtest',
  'www.test2.com' => 'schlixtest',
  'www.otherwebsite.com' => 'website2'
);

In this example, SCHLIX CMS hosts 2 subsites (schlixtest and website2).

The subsite schlixtest has 3 addresses: www.mainwebsite.com, www.test1.com, and www.test2.com

The subsite website2 has 1 address: www.otherwebsite.com

If you want schlxitest subsite to handle all requests, simply replace it with just an asterisk (*). e.g.

'*' => 'schlixtest'

B. Subsite configuration file (config.inc.php)

The config.inc.php on each subsite in /web folder can be edited by hand in addition to the GUI-based editing through SCHLIX CMS Site Manager. For example:

/* Auto generated by installer on yyyy-mm-dd hh:ii:ss */
define('SCHLIX_SITE_NAME','SCHLIX Test');

// It is recommended to keep the line as it is
define('SCHLIX_SITE_HTTP_URL','http://'.$_SERVER['HTTP_HOST'] . (($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) ? ':' . $_SERVER['SERVER_PORT'] : '')); /* Automatic URL */ 
define('SCHLIX_SITE_HTTPS_URL','https://www.the-ssl-site.com');

// the base path of SCHLIX CMS installation
define('SCHLIX_SITE_HTTPBASE','/site');

// leave it as it is
define('SCHLIX_SITE_PATH',dirname(__FILE__));

// you can change the default users class here
define('SCHLIX_DEFAULT_USER_CLASS','users'); /* Default user class - e.g: LDAP, smf forum, opencart, etc */
define('SCHLIX_DEFAULT_LANGUAGE','en_us'); /* Default Language */ 
define('SCHLIX_DEFAULT_ADMIN_GROUP','Administrators');
define('SCHLIX_ADMIN_LANGUAGE','en_us');
define('SCHLIX_SITE_OFFLINE',false); /* Set this to yes if you want to make your site offline for visitors */ 
define('SCHLIX_SEF_ENABLED', true); /* Must always be set to true as of v2.x */

// enable SSL
define('SCHLIX_SITE_SSL_ENABLED',false);
// force admin login to be SSL only
define('SCHLIX_FORCE_SSL_ADMIN_LOGIN',false);

// database
define('SCHLIX_DB_HOST','localhost');
define('SCHLIX_DB_DATABASE','dbtest');
define('SCHLIX_DB_USERNAME','dbusername');
define('SCHLIX_DB_PASSWORD','---------');

// caching
define('SCHLIX_PAGE_CACHE_ENABLED', false);
define('SCHLIX_SQL_CACHE_ENABLED', false);
define('SCHLIX_SQL_CACHE_TIME', 0);

// define max limit - leave it as it is
define('SCHLIX_SQL_ENFORCE_ROW_LIMIT', true);

define('SCHLIX_SESSION_LOGIN_TIME',1209600); /* in seconds */ 
define('SCHLIX_ADMIN_THEME','admindefault');
define('SCHLIX_USER_IMAGE_DIRECTORY',SCHLIX_SITE_PATH.'/media/images');

// mail server settings
define('SCHLIX_MAIL_DEFAULT_SENDER','Webmaster');
define('SCHLIX_MAIL_DEFAULT_EMAIL','info@schlixtest');
define('SCHLIX_SMTP_HOST', '');
define('SCHLIX_SMTP_PORT', 25);
define('SCHLIX_SMTP_USE_AUTH', false);
define('SCHLIX_SMTP_USERNAME', '');
define('SCHLIX_SMTP_PASSWORD', '');
define('SCHLIX_SMTP_SECURITY', '');

// Timezone
define('SCHLIX_SYSTEM_TIMEZONE', 'America/Denver');

// default meta description
define('SCHLIX_SITE_META_KEYWORDS',''); /* Default meta keywords if there is none defined in the app/item/category */
define('SCHLIX_SITE_META_DESCRIPTION','SCHLIX Test'); /* Default meta keywords if there is none defined in the app/item/category */ 
define('SCHLIX_JS_MODE',3); /* Javascript mode. 1 = Debug, 2 = Minified, 3 = Minified and Gzipped */ 
define('SCHLIX_RECORD_404_ERRORS',''); /* Record 404 errors in the database */ 
/**********************************************************************/
/* Do not modify below this line - this is for auto http/https switch */
define('SCHLIX_SITE_URL', (defined('SCHLIX_SITE_HTTPS_URL') && SCHLIX_SITE_SSL_ENABLED && SCHLIX_SITE_HTTPS_URL !='' && ($_SERVER['HTTPS']==='on' || $_SERVER['HTTPS']===1 || $_SERVER['SERVER_PORT']===443)) ? SCHLIX_SITE_HTTPS_URL : SCHLIX_SITE_HTTP_URL);
/**********************************************************************/

C. Additional custom configuration override

You can add or override additional configuration by specifying the options in custom-config.inc.php. A sample file has been provided by default as custom-config-dist.inc.php.