# CiviGO.eu cPanel Upload

## Recommended Upload Structure

Upload/extract this package in the cPanel account root, not inside `public_html` only.

Expected paths after upload:

```text
/home/CPANEL_USER/public_html/
/home/CPANEL_USER/private/civigo/
```

`public_html` contains only web-public files: `index.php`, assets, manifest and service worker.

`private/civigo` contains the application code: `app`, `config`, `database`, `storage`, `composer.json`, `.env.example`.

## Steps

1. In cPanel, select PHP 8.3.
2. Upload `civigo-cpanel-upload.zip` to the account root.
3. Extract it so `public_html` and `private` are siblings.
4. Rename `private/civigo/.env.example` to `private/civigo/.env`.
5. Create a MySQL database and user in cPanel.
6. Import `private/civigo/database/schema.sql` in phpMyAdmin.
7. Optionally import `private/civigo/database/seed.sql`.
8. Edit `.env` with DB, mail and OpenAI settings.
9. If cPanel Terminal is available, run `composer install` in `private/civigo`.

## Important

Do not place `app`, `config`, `database`, `.env` or `storage` directly in a public web folder.

If your domain can point to a custom document root, an even cleaner setup is:

```text
/home/CPANEL_USER/civigo/
domain document root: /home/CPANEL_USER/civigo/public
```

In that case use `civigo-platform.zip` instead.
