# cPanel upload — bacobeautyhubcosmetics.com

## Package

Use `baco-beauty-hub-cpanel.zip` (web/CMS/API only — Flutter stays in `mobile/` for local builds).

## Steps

1. In cPanel → **Addon Domains** / **Subdomains**, set document root to the folder that will contain `public/` contents  
   **Recommended:** upload zip so structure is:

   ```text
   home/user/bacobeautyhub/
     config/
     includes/
     sql/
     storage/
     views/
     public/          ← point document root HERE
   ```

2. Extract zip above `public_html` or into a sibling folder, then set addon domain document root to `.../public`.

3. Create an **empty** MySQL database + user in cPanel (grant all privileges on that DB).

4. Ensure `config/`, `storage/`, and `public/uploads/` are writable (755/775).

5. Open the installer: `https://bacobeautyhubcosmetics.com/install/`  
   It creates tables, writes `config/env.php`, and sets your admin account.

6. Delete `public/install/` after a successful install.

7. Login: `https://bacobeautyhubcosmetics.com/admin/login.php` (credentials from installer).

8. CMS → Payments: paste Paystack & Flutterwave keys.  
   Webhooks:
   - `https://bacobeautyhubcosmetics.com/api/webhooks/paystack.php`
   - `https://bacobeautyhubcosmetics.com/api/webhooks/flutterwave.php`

9. PHP version: **8.2+** with `pdo_mysql`, `curl`, `json`, `mbstring`.
