================================================================================
QUICK FIX FOR 500 INTERNAL SERVER ERROR
================================================================================

The 500 error is caused by .htaccess directives that your server doesn't allow.

SOLUTION - DO THIS NOW:
================================================================================

OPTION 1: Replace .htaccess file (RECOMMENDED)
------------------------------------------------
1. Delete the current .htaccess file in /public_html/ea-staff/
2. Use the NEW .htaccess file included in this package (already fixed)
3. Try accessing installer again

OPTION 2: Disable .htaccess temporarily
------------------------------------------------
1. Rename .htaccess to .htaccess.bak
2. Access installer at: https://brandsmen.pk/ea-staff/install/installer.php
3. After installation, rename back to .htaccess

OPTION 3: Create a simple .htaccess
------------------------------------------------
Create a NEW .htaccess file with ONLY this content:

    RewriteEngine On
    Options -Indexes

That's it! Nothing else.

================================================================================
WHAT WAS THE PROBLEM?
================================================================================

Your cPanel server doesn't allow these PHP directives in .htaccess:
- php_value upload_max_filesize
- php_value post_max_size
- php_flag display_errors

These are server-level settings and can only be changed by:
1. Using a php.ini file in your directory
2. Contacting your hosting provider
3. Using cPanel's PHP settings

================================================================================
AFTER YOU FIX .htaccess:
================================================================================

1. Visit: https://brandsmen.pk/ea-staff/install/installer.php
2. Enter database credentials
3. Create Super Admin account
4. Done!

================================================================================
TO INCREASE UPLOAD LIMITS (For file uploads):
================================================================================

Create a file called php.ini in /public_html/ea-staff/ with:

    upload_max_filesize = 5M
    post_max_size = 5M
    max_execution_time = 300
    max_input_time = 300

OR

Use cPanel > Select PHP Version > Options
Set:
- upload_max_filesize: 5M
- post_max_size: 5M

================================================================================
STILL NOT WORKING?
================================================================================

Check server error log in cPanel:
1. Go to cPanel
2. Find "Error Log" or "Errors"
3. Look at the last error message
4. Send me the exact error and I'll fix it immediately!

Common issues:
- PHP version too old (need 7.4+)
- Missing PHP extensions (PDO, MySQLi)
- File permissions (should be 644 for files, 755 for folders)

Fix file permissions:
    find /public_html/ea-staff -type f -exec chmod 644 {} \;
    find /public_html/ea-staff -type d -exec chmod 755 {} \;
    chmod 777 /public_html/ea-staff/uploads
    chmod 777 /public_html/ea-staff/uploads/*

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