# local.config.php

**URL:** <https://forum.phpvms.net/t/local-config-php/2512>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [April 25, 2010, 8:03pm UTC](https://forum.phpvms.net/t/local-config-php/2512 "2010-04-25T20:03:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aloha\_Virtual](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/a88e4f/32.png) [@Aloha\_Virtual](https://forum.phpvms.net/u/Aloha_Virtual)\
**Post date:** [April 25, 2010, 8:03pm UTC](https://forum.phpvms.net/t/local-config-php/2512/1 "2010-04-25T20:03:28Z")

</div>

Can i get a copy of a local.config.php minus the addresses and passwords please?

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [April 25, 2010, 8:08pm UTC](https://forum.phpvms.net/t/local-config-php/2512/2 "2010-04-25T20:08:53Z")

</div>

Just create a file called local.config.php with 776 permissions and put it in your core folder.

The main lines you need are

```
<?php

/**
* This is the phpVMS Main Configuration File
*
* This file won't be modified/touched by future versions
* of phpVMS, you can change your settings here
*
* There may also be additional settings in app.config.php
* To change it, copy the line into this file here, for the
* settings to take effect
*
*/
define('DBASE_USER', '');
define('DBASE_PASS', '');
define('DBASE_NAME', '');
define('DBASE_SERVER', 'localhost');
define('DBASE_TYPE', 'mysql');

define('TABLE_PREFIX', 'phpvms_');

define('SITE_URL', '');

# Page encoding options
Config::Set('PAGE_ENCODING', 'ISO-8859-1');

# Maintenance mode - this disables the site to non-admins
Config::Set('MAINTENANCE_MODE', false);
Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for routine maintenance, please check back soon.');

# See more details about these in the docs
Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP
Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from
Config::Set('PILOTID_LENGTH', 4); # Length of the Pilot ID
Config::Set('UNITS', 'nm'); # Your units: nm, mi or km
Config::Set('LOAD_FACTOR', '96'); # %age load factor
Config::Set('CARGO_UNITS', 'Kg');

?>

```

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 26, 2010, 1:42pm UTC](https://forum.phpvms.net/t/local-config-php/2512/3 "2010-04-26T13:42:25Z")

</div>

The skeleton is in install/templates/config.tpl
