CMSMS Config Reference
CMSMS Config Reference
________________________________________________________________________________
TITLE: CMSMS Config Variables
AUTHOR:
2011-12 by the CMS Made Simple Development Team. All Rights Are Reserved.
This document is free. You can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either version 2 of the License, or (at your option)
any later version.
However, as a special restriction to the GPL, when modifying and redistributing this document this notice in
its entirety, along with a list of further copyright entitlements must be provided.
This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite
330, Boston, MA 02111-1307 USA. Or read it online
Page 1 of 13
Table of Contents
CMSMS Config Variables......................................... 1
Copyright and License:............................................. 1
Introduction:.............................................................. 3
Scope:....................................................................... 3
Organization:............................................................ 3
Variable Reference:.................................................. 3
dbms.................................................................... 3
db_hostname....................................................... 3
db_name.............................................................. 3
db_username...................................................... 4
db_password....................................................... 4
db_prefix.............................................................. 4
db_port................................................................ 4
timezone.............................................................. 4
root_path............................................................. 5
root_url................................................................ 5
ssl_url.................................................................. 5
admin_url............................................................. 5
uploads_path....................................................... 5
uploads_url.......................................................... 6
ssl_uploads_url...................................................6
image_uploads_path........................................... 6
image_uploads_url.............................................. 6
ssl_image_uploads_url........................................ 6
css_path.............................................................. 7
css_url................................................................. 7
ssl_css_url........................................................... 7
debug................................................................... 7
admin_dir............................................................. 7
persist_db_conn.................................................. 8
previews_path (deprecated)................................ 8
auto_alias_content.............................................. 8
url_rewriting......................................................... 8
page_extension................................................... 8
query_var............................................................ 9
image_manipulation_prog (deprecated).............9
image_transform_lib_path................................... 9
locale................................................................... 9
admin_encoding (deprecated)........................... 10
default_encoding (deprecated).......................... 10
set_names......................................................... 10
set_db_timezone............................................... 10
wiki_url (removed in CMSMS 1.11.3 and later). .10
show_performance_info....................................11
debug_to_log..................................................... 11
php_memory_limit (deprecated)........................ 11
showbase........................................................... 11
Revision History:..................................................... 12
August 2011 Robert Campbell........................ 12
October 2011 Robert Campbell......................12
April 2012 Robert Campbell............................ 12
July 2012 Robert Campbell............................ 12
May 2013 Robert Campbell............................12
Page 2 of 13
Introduction:
This document is intended to provide a reference to the various config variables available in CMS Made
Simple, and how to use them. It is intended as a reference for those people familiar with such concepts as
database connectivity, file paths, permissions, and url rewriting. This document is not a tutorial or how-to
guide.
Scope:
This document describes the variables as available in CMS Made Simple version 1.11 it does not include
descriptions of variables used by third party addon modules, or for previous versions of CMSMS.
Additionally, this document cannot be considered a complete reference. Third party modules and plugins
may ignore some of these values or add their own.
Organization:
This document is organized roughly by the priority of the variables, from the top down. Most commonly used
configuration variables will be described first.
Variable Reference:
dbms
Description:
Status:
Type:
Accepted Values:
Note:
db_hostname
Description:
Status:
Type:
Accepted Values:
Specifies the hostname of the system that hosts the database.. This
should be provided by your host.
Required
String
Any hostname, or IP address. 'localhost' is the proper value on most
hosts.
db_name
Description:
Status:
Type:
Accepted Values:
Page 3 of 13
db_username
Description:
Status:
Type:
Accepted Values:
The username of the database user that has sufficient privilege to the
database name specified above. This is used to allow CMSMS to
connect to the database.
Required
String
The username of your account, or the database username created in
the admin console. Contact your host for the proper value for this field
if you are uncertain.
db_password
Description:
Status:
Type:
Accepted Values:
db_prefix
Description:
Status:
Type:
Default Value:
Specify a prefix to use infront of all table names. This variable can be
used to allow multiple applications to coexist inside the dame
database.
Required
String
cms_
db_port
Description:
Status:
Type:
Default Value:
Page 4 of 13
timezone
Description:
Note:
Status:
Type:
Example:
Accepted Values:
See Also:
The timezone for date calculations. All times entered into and
displayed by CMSMS will be in this timezone.
Note: Behaviour has changed regarding timezones between PHP
versions, when running PHP 5.2 this variable may not need to be set.
However in PHP 5.3 it needs to be set to a valid value for your server.
Note: The behavior of this variable has changed since previous
versions of CMSMS. In previous versions of CMSMS the timezone
value needed to be set to match the servers timezone. This is not
necessarily the case any more.
Required
String
$config['timezone'] = 'America/Denver';
See this link: http://www.php.net/manual/en/timezones.php
http://php.net/manual/en/function.date-default-timezone-set.php
See also the set_db_timezone config variable.
root_path
Description:
Status:
Type:
Accepted Values:
Default Value:
root_url
Description:
Status:
Type:
Accepted Values:
Default Value
ssl_url
Description:
Status:
Type:
Accepted Values:
Default Value:
admin_url
Description:
Status:
Type:
Default Value:
Page 5 of 13
uploads_path
Description:
Status:
Type:
Accepted Values:
Default Value:
Note:
uploads_url
Description:
Status:
Type:
Accepted Values:
Default Value:
Note:
ssl_uploads_url
Description:
Status:
Type:
Accepted Values:
Default Value:
image_uploads_path
Description:
Status:
Type:
Accepted Values:
Default Values:
The path used by the image manager and other functionality to upload
and manages images for your website.
Optional
String
A fully qualified filesystem path where images should be stored.
$config['uploads_path'].'/images';
Page 6 of 13
image_uploads_url
Description:
Status:
Type:
Accepted Values:
Default Values:
Specify the web accessible URL where images will be available. This
must correspond to the image_uploads_path above.
Optional.
String
A web accessible URL
$config['uploads_url'].'/images'
ssl_image_uploads_url
Description:
Status:
Type:
Accepted Values:
Default Values:
Specify the secure version of the web accessible URL where images
will be available. This must correspond to the image_uploads_path
above.
Optional.
String
A web accessible URL
$config['uploads_url'].'/images'
css_path
Description:
Status:
Type:
Accepted Values:
Default Values:
css_url
Description:
Status:
Type:
Accepted Values:
Default Values:
ssl_css_url
Description:
Status:
Type:
Accepted Values:
Default Values:
Page 7 of 13
debug
Description:
Status:
Type:
Accepted Values:
Default Value:
admin_dir
Description:
Status:
Type:
Accepted Values:
Default Value:
Specify the name of the admin directory. This option can be used by
advanced users to specify an alternate admin directory name.
Although this may cause difficulty with the upgrade process.
Optional
String
A valid directory name (relative to the root_path above).
admin
persist_db_conn
Description:
Status:
Type:
Accepted Values:
Default Value:
previews_path (deprecated)
Description:
Status:
Type:
Accepted Values:
Default Value:
auto_alias_content
Description:
Status:
Type:
Default Value:
Page 8 of 13
url_rewriting
Description:
Status:
Type:
Accepted Values:
Example::
Default Value:
See Also:
What type of URL rewriting should we be using for pretty URLs. The
possible values for this variable are system dependant.
Optional
String
none, internal, mod_rewrite
$config['url_rewriting'] = 'internal';
none
http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URL
s#Pretty_URLs
page_extension
Description:
Status:
Type:
Default Value:
Example:
Used when the url_rewriting is a value other than 'none' this variable
specifies the extension that should be appended to all URLS that the
system generates.
Optional
String
n/a
$config['page_extension'] = '.html';
query_var
Description:
Status:
Type:
Default Value:
Specifies the name of the URL variable that will indicate the page
alias. You should not need to override this value unless the default
value interferes with another software package.
Optional
String
page
image_manipulation_prog (deprecated)
Description:
Status:
Type:
Default Value:
Accepted Values
See Also:
Specify the program (or library) that should be used for image
manipulation.
Optional
String
gd
gd or imagemagick
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Pan
el/Content/Image_Manager
image_transform_lib_path
Description:
Status:
Type:
Default Value:
Page 9 of 13
locale
Description:
Note:
Status:
Type:
Default Value:
See Also:
Note:
Locale to use for various default date handling functions, etc. Leaving
this blank will use the value associated with the currently selected
'language' for frontend or admin actions. Specifying this value will only
be used once per request.
Though you can specify any valid locale, the locale information you
specify must be installed on the server.
Optional
String
n/a
http://php.net/manual/en/function.setlocale.php
Behavior of this config variable changed in 1.11
admin_encoding (deprecated)
Description:
Note:
Status:
Type:
Default Value:
default_encoding (deprecated)
Description:
Note:
Status:
Type:
Default Value:
set_names
Description:
Status:
Type:
Default Value:
Page 10 of 13
set_db_timezone
Description:
Status:
Type:
Default Value:
Version 1.11.7
Version 2.0
See Also
A URL indicating where the CMSMS wiki is located. Used for help
links
Optional
string
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Pan
el
show_performance_info
Description:
Note:
Status:
Type:
Default Value:
debug_to_log
Description:
Status:
Type:
Default Value:
php_memory_limit (deprecated)
Description:
Status:
Type:
Example::
Default Value:
Page 11 of 13
showbase
Description:
Status:
Type:
Example::
Default Value:
This config variable, indicates wether the <base> tag should be output
by the {metadata} tag. This config variable can also be overridden by
the showbase parameter of the {metadata} tag.
Optional
boolean
$config['show_base'] = true;
true
Page 12 of 13
Revision History:
August 2011 Robert Campbell
Initial Revision
Adds css_path
Adds css_url
Adds ssl_css_url
Removes process_whole_template
Removes output_compression
Removes use_adodb_lite
Remove use_smarty_php_tags
Removes default_upload_permission
Page 13 of 13