# Deployment on cPanel / Apache

Assume the project is `/home/USERNAME/abhflight`.

1. Upload and extract the ZIP.
2. Copy `.env.example` to `.env`.
3. Edit `.env`:
   - `APP_URL=https://your-domain`
   - `DUFFEL_ACCESS_TOKEN=YOUR_NEW_ROTATED_TOKEN`
   - `ADMIN_EMAIL=your-admin-email`
   - `ADMIN_PASSWORD=your-strong-admin-password`
4. Make `storage/` writable by the PHP user.
5. From SSH:
   `cd /home/USERNAME/abhflight && php setup.php`
6. Set the domain/subdomain document root to:
   `/home/USERNAME/abhflight/public`
7. Open the domain and register a normal user, or sign in with the admin credentials.
8. Delete or protect `setup.php` after installation.
9. Enable HTTPS.
10. Keep `.env` outside the public document root (it already is).

## PHP requirements
- PHP 8.2+
- PDO SQLite
- cURL
- OpenSSL
- JSON
- Mbstring recommended

## Local
`php setup.php`
`php -S 127.0.0.1:8080 -t public`
