General Settings
Site name, base URL, timezone, default language
What it is
General settings control your site's identity: name, base URL, timezone, default language, and system email. These values are used throughout WHMDC in emails, invoices, the client area header, and cron-generated content.
How it works
Settings are stored in the settings table as key-value pairs. The helper functions getSetting() and setSetting() read and write them:
$siteName = getSetting('site_name', 'Billing System');
$baseUrl = getSetting('base_url', 'https://billing.example.com');
setSetting('site_name', 'My Hosting Company');
Key settings
| Setting key | Purpose | Example |
|---|---|---|
site_name |
Displayed in header, emails, PDFs | My Hosting |
base_url |
Full URL to your WHMDC (no trailing slash) | https://billing.example.com |
timezone |
PHP timezone (e.g. Europe/London) | Europe/London |
default_language |
Locale code | en_GB |
system_email |
From address for system emails | [email protected] |
How to set up
- Go to Admin → Settings → General (path:
/admin/settings/general). - Enter your Site Name (e.g. "Acme Hosting").
- Set Base URL to your full domain, e.g.
https://billing.example.com(no trailing slash). - Select Timezone (e.g. Europe/London for UK).
- Choose Default Language.
- Set System Email for outgoing emails.
- Save settings.
Was this helpful?