Quick Installation
Prerequisites
- PHP 8.1 or higher
- MySQL 5.7+ or MariaDB 10.3+
- Composer
- Web server (Apache/Nginx) or PHP built-in server
Automatic Installation
# Clone or download KablaM! framework
cd /var/www/kablam
# Install dependencies
composer install
# Run the installation script
php install/install.php
Manual Installation
1. Database Setup
# Create database and import schema
mysql -u root -p < install/schema.sql
# Seed initial data
mysql -u root -p < install/seed.sql
2. Configuration
Update config/cms.json with your database credentials:
{
"database": {
"host": "localhost",
"database": "kablam",
"username": "your_username",
"password": "your_password",
"charset": "utf8mb4"
},
"stores": {
"default": {
"name": "Default Store",
"database": {
"host": "localhost",
"database": "kablam",
"username": "your_username",
"password": "your_password",
"charset": "utf8mb4"
}
}
}
}
3. File Permissions
chmod -R 755 storage/
chmod -R 644 config/
4. Start Development Server
php -S localhost:8000 -t public public/router.php
Default Admin Credentials
After installation, use these Admin credentials to access the dashboard:
- URL: http://localhost:8000/login (or your staging/production domain)
- Email: admin@kablam.local
- Password: admin123
- Role: Admin (full system access)
⚠️ Important: Change the default password immediately after first login! Create additional accounts with appropriate roles: User (standard operations), Viewer (read-only monitoring), or Developer (debugging access).
Dashboard System
After login, access the comprehensive dashboard at http://localhost:8000/dashboard (or your staging/production domain)
Dashboard Features (Role-Based Access)
- Main Dashboard - System overview, performance metrics, recent activity (Admin/User/Viewer/Developer)
- Theme Manager (
/dashboard/theme) - Switch themes, customize colors and fonts (Admin/User) - Store Manager (
/dashboard/stores) - Multi-store configuration, bootstrap selection, and management (Admin only) - Middleware Config (
/dashboard/middleware) - Security and performance settings (Admin only) - Log Viewer (
/dashboard/logs) - Real-time log monitoring with filtering (Admin/User/Viewer/Developer) - Performance Analytics (
/dashboard/performance) - Memory usage and response times (Admin/User/Viewer/Developer) - CMS Manager (
/dashboard/cms) - WordPress integration and bootstrap management (Admin/Developer)
User Roles
- Admin: Full system administrator access - all configuration, management, and monitoring features
- User: Standard user access - basic operations, theme management, monitoring dashboards
- Viewer: Read-only access - monitoring dashboards, logs, and performance analytics only
- Developer: Developer access with debugging capabilities - includes CMS management and system diagnostics
Theme System
KablaM! includes multiple themes:
- Default Theme - Clean, minimal design with mid-gray colors
- Ceauxvij Theme - Professional dark theme with blue accents
- Custom Themes - Create your own in
themes/directory
Static Pages
Static HTML pages are stored in pages/ directory:
about.html- Framework overview and featureswhy-kablam.html- Competitive comparison analysisdocs.html- This documentation page
Default Roles
| Role | ID | Description | Permissions |
|---|---|---|---|
| Admin | 1 | Full system administrator | All configuration, management, and monitoring features |
| User | 2 | Standard user access | Basic operations, theme management, monitoring dashboards |
| Viewer | 3 | Read-only access | Monitoring dashboards, logs, and performance analytics only |
| Developer | 4 | Developer with debugging capabilities | CMS management, system diagnostics, and debugging tools |
WordPress Integration
KablaM! can orchestrate WordPress installations:
- Install WordPress in
/var/www/wordpress - Update
config/cms.json:
{
"stores": {
"default": {
"cms": {
"wordpress": {
"enabled": true,
"path": "/var/www/wordpress",
"url": "http://localhost:8000",
"database": "wordpress_db"
}
}
}
}
}
⚠️ Important: For production deployment, update the
url field to match your staging/production domain:
- Development:
"url": "http://localhost:8000" - Staging:
"url": "https://staging.yourdomain.com" - Production:
"url": "https://yourdomain.com"
This URL is critical for proper WordPress asset routing and functionality.
Directory Structure
kablam/
├── config/ # Configuration files (cms.json)
├── database/ # Database migrations
├── install/ # Installation scripts
├── pages/ # Static HTML pages
├── public/ # Web root
├── src/ # Framework source code
├── storage/ # Logs, cache, uploads, sessions
├── themes/ # KablaM themes (akira, ceauxvij)
└── vendor/ # Composer dependencies
Troubleshooting
Common Issues
Database Connection Failed
- Verify MySQL credentials in
config/cms.json - Ensure MySQL service is running
- Check database exists and user has permissions
Permission Denied Errors
sudo chown -R www-data:www-data storage/
sudo chmod -R 755 storage/
Session Issues
- Ensure
storage/sessionsdirectory exists and is writable - Check PHP session configuration
Debug Mode
Enable debug mode in config/cms.json:
{
"debug": true,
"app": {
"name": "KablaM! Framework",
"timezone": "UTC"
}
}
Log Files
- Framework logs:
storage/logs/kablam.log - WordPress logs:
/var/www/wordpress/wp-content/debug.log - Web server logs:
/var/log/apache2/or/var/log/nginx/ - Dashboard log viewer: http://localhost:8000/dashboard/logs (or your staging/production domain)
Next Steps
- Change Default Password - Login and update admin password
- Explore Dashboard - Visit http://localhost:8000/dashboard (or your staging/production domain) to configure system
- Configure WordPress - Set up WordPress integration via CMS Manager
- Customize Theme - Use Theme Manager or create custom themes in
themes/ - Configure Security - Set up middleware and security settings
- Set up SSL - Configure HTTPS for production
- Configure Email - Set up SMTP for notifications
- Backup Strategy - Implement database and file backups
Security Checklist
- ☐ Change default admin password
- ☐ Update database credentials
- ☐ Configure SSL/HTTPS
- ☐ Set proper file permissions
- ☐ Enable security middleware
- ☐ Configure rate limiting
- ☐ Set up regular backups
- ☐ Monitor security logs
Support
- Documentation: Check framework source code comments
- Logs: Monitor
storage/logs/kablam.logfor issues - Debug: Enable debug mode for detailed error messages