Setup Guide
GoDaddy cPanel Deployment
Check Requirements
PHP 8.0+, MySQL 5.7+, mod_rewrite enabled. Extensions: pdo_mysql, json, openssl, curl, mbstring.
Upload Files
Upload all project files to public_html/ via cPanel File Manager or FTP.
Create Database
In cPanel → MySQL Databases: create a database and a user. Grant ALL PRIVILEGES.
Configure
Copy config.local.php.example to config.local.php. Fill in DB credentials, SMTP settings, and JWT secret.
Import Schema
Open phpMyAdmin → Select your database → Import → Choose database/schema.sql → Execute.
Set Cron Jobs
cPanel → Cron Jobs:*/1 * * * * php ~/public_html/cron/process-notifications.php0 * * * * php ~/public_html/cron/maintenance.php
Create Directories
Ensure logs/ and exports/ directories exist and are writable (chmod 755).
Run Setup Check
Visit https://yourdomain.com/checks/setup-check.php — all items should show green.
Secure
Delete checks/setup-check.php after verification. Set APP_DEBUG to false.
🧪 Test Command
curl -X POST https://yourdomain.com/api/telemetry/ingest \
-H "X-Device-Token: YOUR_64_CHAR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"module":"health","metrics":{"systolic":124},"flags":{}}'