File: //var/softaculous/churchcrm/Config.php
<?php
/*******************************************************************************
*
* filename : Include/Config.php
* website : https://churchcrm.io
* description : ChurchCRM Configuration
*
******************************************************************************/
/**
* IMPORTANT: Configuration is loaded and validated by LoadConfigs.php (line at bottom).
*
* If you are NOT using the setup wizard:
* - Replace ||PLACEHOLDER|| values with your actual settings below
* - Ensure all REQUIRED settings are present (will fail validation otherwise)
* - Be careful with special characters in $sPASSWORD (no quotes needed, but must be exact)
* - Test by accessing the application; errors will display on config-error.php page
*/
// ============================================================================
// DATABASE CONNECTION (REQUIRED)
// ============================================================================
// These must match your database server exactly or the application will fail
// Database server hostname or IP address
// Examples: "localhost", "127.0.0.1", "db.example.com"
$sSERVERNAME = '[[softdbhost]]';
// Database server port (standard MySQL port is 3306)
$dbPort = '';
// Database user (must have SELECT, INSERT, UPDATE, DELETE, ALTER privileges)
$sUSER = '[[softdbuser]]';
// Database password (special chars are allowed, do NOT add quotes)
$sPASSWORD = '[[softdbpass]]';
// Database name where ChurchCRM tables are located
$sDATABASE = '[[softdb]]';
// ============================================================================
// APPLICATION PATH (REQUIRED)
// ============================================================================
// Path where ChurchCRM is installed on your web server (MUST BE SET CORRECTLY)
// Examples:
// - https://www.yourdomain.com/churchcrm → $sRootPath = '/churchcrm'
// - https://www.yourdomain.com → $sRootPath = '' (empty string)
// - https://crm.yourdomain.com → $sRootPath = '' (empty string, subdomain)
//
// Rules:
// - Start with "/" (slash) OR use empty string for root installation
// - DO NOT end with "/" (slash)
// - Case sensitive (usually lowercase)
$sRootPath = '[[relativeurl]]';
// ============================================================================
// ACCESS URLS (REQUIRED)
// ============================================================================
// URL[0] is the primary URL users will use to access ChurchCRM
// Primary URL - must include https://, domain, and path (with trailing slash)
// Examples: "https://www.mychurch.org/churchcrm/", "https://crm.mychurch.org/"
$URL[0] = '[[softurl]]/';
// Optional: Add alternate URLs for multi-domain or multi-port access
//
// IMPORTANT: Alternate URLs are only enforced when "Lock URL" is enabled in the
// admin settings (System Config). When disabled (default), any URL can access the app.
// When enabled, ONLY the URLs listed below are allowed.
//
// Use cases:
// - Allow access from both www.mychurch.org/churchcrm and crm.mychurch.org
// - Allow both http and https (not recommended for security)
// - Support non-standard port numbers (e.g., :8080)
// - Support shared SSL hosted solutions
//
// Uncomment and configure as needed. Format: https://domain/path/ (with trailing slash)
//
// Example for non-standard port:
//$URL[1] = 'https://www.mychurch.org:8080/churchcrm/';
//
// Example for alternate domain:
//$URL[2] = 'https://crm.mychurch.org/';
//
// Example for shared SSL server:
//$URL[3] = 'https://ssl.sharedsslserver.com/mychurch.org/churchcrm/';
//
// Number them sequentially starting from [1]. ChurchCRM accepts $URL[0] through $URL[5]
// ============================================================================
// ERROR REPORTING (OPTIONAL)
// ============================================================================
// Sets which PHP errors are reported
// E_ERROR = only fatal errors (recommended for production)
// See https://www.php.net/manual/en/errorfunc.constants.php for other options
error_reporting(E_ERROR);
// ============================================================================
// DO NOT MODIFY BELOW THIS LINE
// ============================================================================
// LoadConfigs.php loads and validates all settings above
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'LoadConfigs.php');