MENU

CMS Made Simple Configuration Reference

  Previous article

Frequently used, and other useful config.php settings.


<?php
# CMS Made Simple Configuration File
# Documentation: https://docs.cmsmadesimple.org/configuration/config-file/config-reference
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Amsterdam';

$config['____divider____'] = 'CORE SETTINGS';
$config['root_url'] = 'https://website.com';
$config['admin_url'] = 'https://website.com/admin';
$config['url_rewriting'] = 'mod_rewrite';
$config['permissive_smarty'] = true;

$config['____divider____'] = 'PRESSROOM SETTINGS';
$config['pressroom_urlprefix'] = 'news';

$config['____divider____'] = 'CGBLOG SETTINGS';
$config['cgblog_adminsection'] = 'content';

$config['____divider____'] = 'CGEXTENSIONS SETTINGS';
$config['cge_allow_watermarking'] = true;
$config['cge_watermark_file'] = 'img_watermark.png'; /* relative to the uploads folder */
$config['cge_watermark_alignment'] = '0'; /* upper left */
$config['cge_watermark_alignment'] = '1'; /* upper center */
$config['cge_watermark_alignment'] = '2'; /* upper right */
$config['cge_watermark_alignment'] = '3'; /* middle left */
$config['cge_watermark_alignment'] = '4'; /* middle center */
$config['cge_watermark_alignment'] = '5'; /* middle right */
$config['cge_watermark_alignment'] = '6'; /* lower left */
$config['cge_watermark_alignment'] = '7'; /* lower center */
$config['cge_watermark_alignment'] = '8'; /* lower right */

$config['____divider____'] = 'COMPANY DIRECTORY SETTINGS';
$config['companydirectory_adminsection'] = 'content';

$config['____divider____'] = 'DEVELOPMENT SETTINGS';
$config['debug'] = true;
$config['developer_mode'] = true;
?>

The CMSMS upgrade process sadly removes all remarks in the config file... A dirty fix is to create dummy "divider" config settings.


More information:


Advertisement


Ads help me to help you! Thanks!

Ads help me to help you! Buy products from these advertisers!


  Comment Form

Click here to open the form


  0 Comments

No comments yet...

CMS Made Simple - Tutorials, tips and tricks - CMSMS

CMS Made Simple Configuration Reference

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.12
  Last updated: 24-09-2019
  Comments: 0
  http://cms.ms/OtPM

Advertisement


Ads help me to help you! Thanks!

Ads help me to help you! Buy products from these advertisers!

Advertisement


Ads help me to help you! Thanks!

Ads help me to help you! Buy products from these advertisers!