Scalar 2 User's Guide

Managing a custom Scalar install with local_settings.php

If you're running your own installation of Scalar, you should have access to the core Scalar system files on your server either via FTP or another file management system.  For example, you might be running Scalar on your own server or utilizing Reclaim Hosting (which includes Scalar as a single-click install).  Either way, you'll want to take notice of the configuration file that is meant to be customized per-install, called local_settings.php.  It contains fields for things like a Google Maps API key and a Scalar registration key which you will need to add if you wish to "turn on" these features.  The config file is kept at:

<scalar root folder>/system/application/config/local_settings.php

You can open this file in your FTP client, or download to your computer, edit, and overwrite back to the server.  Comments in the file will describe what each config item controls.  If, for example, you wish to have a Scalar registration key for your Scalar install so that folks need the key in order to register new accounts, you would change this:

// Register key (leave blank if no register key required, e.g., array())
// One of the strings placed in this array will be required in order for new users to register
$config['register_key'] = array();


... to this:

// Register key (leave blank if no register key required, e.g., array())
// One of the strings placed in this array will be required in order for new users to register
$config['register_key'] = array('my key');


Another practical example is the Google Maps API key.  This key will need to be present for Scalar's Google Maps Layout and Widget to work, otherwise you'll get an error message from Google when loading a page in that layout or widget.  You can acquire your own API key about halfway down on Google's Google Maps APIs page.

This page has paths: