Setup Guide

Steps0
Time15mEstimated setup time
RequirementsPHP 8+ MySQL 5.7+

GoDaddy cPanel Deployment

1

Check Requirements

PHP 8.0+, MySQL 5.7+, mod_rewrite enabled. Extensions: pdo_mysql, json, openssl, curl, mbstring.

2

Upload Files

Upload all project files to public_html/ via cPanel File Manager or FTP.

3

Create Database

In cPanel → MySQL Databases: create a database and a user. Grant ALL PRIVILEGES.

4

Configure

Copy config.local.php.example to config.local.php. Fill in DB credentials, SMTP settings, and JWT secret.

5

Import Schema

Open phpMyAdmin → Select your database → Import → Choose database/schema.sql → Execute.

6

Set Cron Jobs

cPanel → Cron Jobs:
*/1 * * * * php ~/public_html/cron/process-notifications.php
0 * * * * php ~/public_html/cron/maintenance.php

7

Create Directories

Ensure logs/ and exports/ directories exist and are writable (chmod 755).

8

Run Setup Check

Visit https://yourdomain.com/checks/setup-check.php — all items should show green.

9

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":{}}'