# Hostiva v3 — Setup

## Quick start (XAMPP)

1. Drop the `hostiva` folder into `C:\xampp\htdocs\`.
2. Start Apache + MySQL.
3. Go to `http://localhost/hostiva/install.php`.
4. Run the wizard → delete `install.php` when done.
5. Login at `http://localhost/hostiva/pages/login.html`.

Default admin: `admin@hostiva.local` / `Admin@12345` (change immediately, or set your own in the installer).

## Quick start (cPanel)

1. Upload to `public_html/hostiva/`.
2. Create a MySQL DB + user in cPanel.
3. Visit `/install.php`, enter DB creds, finish.
4. Delete `install.php`.

## Files & permissions

- Make `config/` writable during install (the wizard writes `config/config.php`).
- Make `logs/` and `uploads/` writable.
- After install, you can revoke write on `config/`.

## API health checks

- `/api/?r=ping` — server alive
- `/api/?r=health` — DB + tables
