════════════════════════════════════════════════════════════════════════════════
                    PXEBOT - CPANEL DEPLOYMENT READY
════════════════════════════════════════════════════════════════════════════════

Target Domain: https://phxbot.com
Hosting Type:  cPanel Shared Hosting

⚠️  CRITICAL WARNING ⚠️
Shared hosting will have LIMITED functionality!
- User registration/login will work ✅
- YouTube chat monitoring will NOT work ❌
- Bot auto-replies will NOT work ❌

Recommended: Use VPS hosting instead ($5/month) for full functionality.

════════════════════════════════════════════════════════════════════════════════
                         BEFORE YOU UPLOAD
════════════════════════════════════════════════════════════════════════════════

📋 STEP 1: GET API CREDENTIALS (REQUIRED)

1. Google OAuth (for YouTube connection):
   → https://console.cloud.google.com/apis/credentials
   - Create OAuth 2.0 Client ID
   - Add redirect: https://phxbot.com/oauth/google/callback
   - Copy Client ID and Client Secret

2. OpenAI API (for bot responses):
   → https://platform.openai.com/api-keys
   - Create new API key
   - Copy key (starts with sk-proj-...)

────────────────────────────────────────────────────────────────────────────────

📝 STEP 2: CREATE CPANEL DATABASE

1. Login to cPanel
2. Go to: MySQL Databases
3. Create database: pxebot (becomes: phxbot_pxebot)
4. Create user: user (becomes: phxbot_user)
5. Set strong password (write it down!)
6. Grant ALL PRIVILEGES to user

────────────────────────────────────────────────────────────────────────────────

✏️  STEP 3: UPDATE .env.production FILE

Open file: .env.production

Update these lines:

DB_HOST=localhost
DB_DATABASE=phxbot_pxebot
DB_USERNAME=phxbot_user
DB_PASSWORD=YOUR_CPANEL_DATABASE_PASSWORD

YT_CLIENT_ID=your-client-id.apps.googleusercontent.com
YT_CLIENT_SECRET=your-client-secret

OPENAI_API_KEY=sk-proj-your-api-key-here

Save the file!

════════════════════════════════════════════════════════════════════════════════
                          NOW YOU CAN UPLOAD
════════════════════════════════════════════════════════════════════════════════

📤 UPLOAD STEPS:

1. Upload entire 'pxebots' folder to: /public_html/pxebot/
   (via FTP: FileZilla, Cyberduck, or cPanel File Manager)

2. Rename .env.production to .env

3. Set permissions:
   - storage/ → 755
   - bootstrap/cache/ → 755

4. Change domain document root:
   cPanel → Domains → phxbot.com
   Document Root: /public_html/pxebot/public

5. Run migrations (via SSH or cPanel Terminal):
   cd /home/phxbot/public_html/pxebot
   php artisan migrate --force
   php artisan storage:link

6. Visit: https://phxbot.com

════════════════════════════════════════════════════════════════════════════════
                         DETAILED GUIDES
════════════════════════════════════════════════════════════════════════════════

📚 Read these files for detailed instructions:

1. CPANEL_CHECKLIST.md     → Step-by-step checklist with checkboxes
2. DEPLOYMENT_CPANEL.md    → Detailed cPanel deployment guide
3. DEPLOYMENT_STATUS.md    → What's prepared and what's needed
4. DEPLOYMENT.md           → VPS deployment guide (recommended!)

════════════════════════════════════════════════════════════════════════════════
                         TROUBLESHOOTING
════════════════════════════════════════════════════════════════════════════════

❌ 500 Error?
   → Check storage/bootstrap permissions (755)
   → Verify .env has correct database credentials

❌ Database connection failed?
   → Check database name has cPanel prefix (phxbot_pxebot)
   → Verify DB_HOST is 'localhost'

❌ 404 on all pages?
   → Verify document root: /public_html/pxebot/public
   → Check .htaccess exists in public folder

❌ OAuth error?
   → Verify redirect URI matches exactly in Google Console

════════════════════════════════════════════════════════════════════════════════

🚀 For FULL functionality, consider VPS hosting:
   - DigitalOcean ($5/month)
   - Vultr ($5/month)
   - Linode ($5/month)

════════════════════════════════════════════════════════════════════════════════
