Site Configuration Files

Contributers: Mick Mifsud

Modified: 3 years ago

Page Permission: Public - Revision: 786

.htaccess


<IfModule mod_rewrite.c>

# (1)
RewriteEngine On

# (2)
Options +FollowSymlinks

# (3)
# Options +SymLinksIfOwnerMatch

# (4)
#RewriteBase /~user/ems/ <--- If not installing to the web root, use something like this instead
RewriteBase /

# (5)
# RewriteOptions <options>

# (6)
RewriteCond %{HTTPS} =on
RewriteRule ^ - [env=proto:https]
RewriteCond %{HTTPS} !=on
RewriteRule ^ - [env=proto:http]

</IfModule>

config.php

The main config file for changing the Database access details resides in the src/config/config.php. Here you can update the sites common framework settings.

Example of a config file:

<?php

$config = \Tk\Config::getInstance();

// Database access
$config['db.type'] = 'mysql';
$config['db.host'] = 'localhost';
$config['db.name'] = 'dbname';
$config['db.user'] = 'user';
$config['db.pass'] = 'password';

/**
* Google maps api key
*/
$config['google.map.apikey'] = '{default google map key if not supplied in site settings}';

/*
* The email address of the system developer
*/
$config['system.email.developer'] = 'user@example.com';

/*
* The email address of the department maintaining this system
*/
$config['system.email.department'] = 'user@example.com';

/*
* Enable exception emails
*/
$config['system.email.exception'] = array('user@example.com');

/*
* Send copies of all system emails to these recipients (not error emails)
*/
//$config['mail.bcc'] = array('user1@example.edu.au');

/*
* Enable logging of triggered events
* Default: false
*/
//$config['event.dispatcher.log'] = true;

/*
* Debug settings
*/
$config['debug'] = true;
$config['log.path'] = '/home/user/log/error.log';
$config['log.level'] = \Psr\Log\LogLevel::DEBUG;
$config['system.debug.email'] = array('user@example.com');