================================================================================
          EDUBASEFORUM — CPANEL INSTALLATION GUIDE (STEP-BY-STEP)
================================================================================

YES! This script works 100% perfectly on cPanel.
In fact, cPanel is MUCH EASIER than aaPanel because cPanel uses Apache by default,
which reads .htaccess files automatically without needing any manual NGINX rewrite
rules.

Here is the exact 4-step guide to installing on cPanel in under 3 minutes:

================================================================================
STEP 1: UPLOAD & EXTRACT FILES IN CPANEL
================================================================================
1. Log in to your cPanel dashboard.
2. Open "File Manager".
3. Navigate to `public_html` (or your addon domain folder).
4. Click "Upload" at the top and upload your zipped project files.
5. Once uploaded, right-click the zip file in File Manager and click "Extract".
6. Make sure your files are extracted directly into `public_html/`.
   You should see `app`, `public`, `storage`, `routes`, `vendor`, `.env` inside `public_html`.

* NOTE ON CPANEL ROUTING:
Your project already includes the pre-configured `.htaccess` file in the root.
It automatically and securely redirects all visitor traffic into the `/public`
folder and blocks direct access to your `.env` file automatically!

================================================================================
STEP 2: SET PHP VERSION TO 8.2 OR 8.3 IN CPANEL
================================================================================
1. In cPanel search bar, type "PHP" and click on "MultiPHP Manager" (or "Select PHP Version").
2. Check the box next to your domain.
3. In the PHP Version dropdown, select:
   👉 PHP 8.2 or PHP 8.3
4. Click "Apply".

================================================================================
STEP 3: CREATE A MYSQL DATABASE IN CPANEL
================================================================================
1. In cPanel, click on "MySQL Databases" (or "MySQL Database Wizard").
2. Create a new database:
   - Example Database Name: `youruser_forum`
3. Create a new database user:
   - Example Username: `youruser_admin`
   - Password: Use a strong password (copy it down!)
4. Scroll down to "Add User To Database":
   - Select your user and your database -> click "Add".
   - Check the box: [x] "ALL PRIVILEGES" -> click "Make Changes".

================================================================================
STEP 4: RUN THE WEB INSTALLER!
================================================================================
1. Open your web browser and go to:
   👉 `https://yourdomain.com/install`

2. The 5-step installer wizard will appear:
   - Step 1: Click "Begin Installation" (all system checks will show green checkmarks).
   - Step 2: Database Setup:
     * Driver: MySQL
     * Host: `localhost` (or `127.0.0.1`)
     * Port: `3306`
     * Database: Enter your cPanel database name (e.g. `youruser_forum`)
     * Username: Enter your cPanel database user (e.g. `youruser_admin`)
     * Password: Enter your database password
     * Click "Test Connection" -> you will see "Database connection successful!"
   - Step 3: Enter your desired Super Admin Username, Email, and Password.
   - Step 4: Click "Install Now".

3. DONE! The installer automatically creates all 80 tables, sets up your admin account,
   configures your live site, and opens your forum homepage!
================================================================================
