================================================================================
  PAYROLL SYSTEM - cPanel INSTALL (5 minutes)
================================================================================

STEP 1 — Upload this ZIP
------------------------
1. Log in to cPanel
2. Open "File Manager"
3. Go to public_html (or public_html/your-subfolder)
4. Click "Upload" and upload: payroll-cpanel.zip
5. Right-click the zip → Extract
6. You should see a folder "payroll-cpanel" with index.php inside

STEP 2 — Create MySQL database
------------------------------
1. cPanel → MySQL Databases
2. Create database: e.g. myuser_payroll
3. Create user with password, add user to database (ALL PRIVILEGES)
4. Note: host is usually "localhost"

STEP 3 — Import tables
----------------------
1. cPanel → phpMyAdmin
2. Select your database (myuser_payroll)
3. Click Import → choose file: database_import.sql → Go

STEP 4 — Configure database connection
--------------------------------------
1. File Manager → payroll-cpanel/config/
2. Duplicate database.php.example → rename to database.php
3. Edit database.php and set:
   - host: localhost
   - user: your cPanel MySQL username
   - password: your MySQL password
   - database: myuser_payroll

STEP 5 — Open the app
---------------------
Visit in browser:
  https://yourdomain.com/payroll-cpanel/
  (or wherever you extracted the folder)

Default sample employees are included after import.

TROUBLESHOOTING
---------------
- Blank page: cPanel → Select PHP Version → use PHP 8.0 or higher
- Database error: check database.php credentials match cPanel MySQL
- 403 on config: normal (folder is protected)

================================================================================
