# EducaPro ERP v2 Foundation Deployment

1. Create an empty MySQL database and user in cPanel.
2. Assign the user to the database with ALL PRIVILEGES.
3. Upload the package outside the public web directory where possible.
4. Set the subdomain document root to `educapro_v2_foundation/public`.
5. Ensure `config` and `storage` are writable during installation (usually 755; use 775 only if required by the host).
6. Visit `https://your-subdomain/install.php`.
7. Enter the exact cPanel database name, username and password.
8. After installation, rename or delete `public/install.php`.
9. Sign in and test branches, users, branch switching and academic masters.

## Upgrades
New releases add numbered PHP files under `database/migrations`. Upload changed files, then visit **System Updates** and run pending migrations. Applied migrations are never run twice.
