Configuration

This guide covers the configuration options available in Capptro.

Config File (config.php)

The main configuration file is config.php located in your installation root. This file is created automatically during installation.

Database Settings

define('DB_HOST', 'localhost');      // Database server
define('DB_NAME', 'capptro');         // Database name
define('DB_USER', 'capptro_user');    // Database username
define('DB_PASS', 'your_password');   // Database password

Application Settings

define('APP_NAME', 'Capptro');        // Application name (shown in UI)
define('APP_URL', 'https://yoursite.com/capptro'); // Full URL to installation

License Settings

define('LICENSE_KEY', 'XXXX-XXXX-XXXX-XXXX'); // Your license key
define('LICENSE_SERVER', 'https://capptro.com/api/validate.php');

Application Settings

Most settings are configured through the web interface:

Workflow Steps

Define the stages a work item goes through. Access via Settings > Workflow Steps.

  • Add, edit, or remove workflow steps
  • Set display order
  • Example steps: Quote, In Progress, Review, Production, Quality Check, Delivery

Priority Levels

Configure priority levels with colors. Access via Settings > Priority.

  • Define priority names (Low, Normal, High, Rush)
  • Assign colors for visual identification
  • Set display order

Dropdown Options

Configure all dropdown menus. Access via Settings > Dropdowns.

Customize dropdowns to match your business needs. Examples include:

  • Categories: Define job categories relevant to your business
  • Sizes: Standard sizes, custom dimensions, or service tiers
  • Products/Services: Your product catalog or service offerings
  • Packaging: Delivery or packaging options
  • Custom Fields: Any additional specifications you need

For example, a production business might configure material types and finishing options, while a service business might configure service categories and equipment types. Capptro adapts to whatever your business needs.

User Permissions

Currently, all logged-in users have the same access level. User roles will be available in a future update.

Backup Recommendations

We recommend regular backups of:

  • Database: Export using phpMyAdmin or mysqldump
  • Config file: Keep a copy of config.php
  • License file: Keep a backup of license.json

Database Backup Command

mysqldump -u username -p database_name > backup.sql

Environment-Specific Settings

Development vs Production

For development environments, you may want to enable error display:

// Add to config.php for development only
ini_set('display_errors', 1);
error_reporting(E_ALL);
Warning: Never enable error display on production servers as it may expose sensitive information.
← Installation Guide User Management →