================================================================================ QUICK FIX - Database Connection Error ================================================================================ Your admin panel shows "Internal server error" because database is not connected. ================================================================================ STEP 1: UPLOAD debug.php ================================================================================ 1. Upload debug.php to your server 2. Access: https://mikelodon.my.id/debug.php 3. This will show you EXACTLY what's wrong ================================================================================ STEP 2: FIX .env FILE ================================================================================ Your .env file needs CORRECT database credentials from cPanel. On server, edit .env file: DB_HOST=localhost DB_PORT=3306 DB_NAME=mikelodo_db ← Your actual database name DB_USER=mikelodo ← Your database username DB_PASS=your_actual_password ← Your database password (NOT empty!) IMPORTANT: - Get credentials from cPanel → MySQL Databases - Password CANNOT be empty on shared hosting - Database name format is usually: cpanel_user_dbname ================================================================================ STEP 3: VERIFY DATABASE EXISTS ================================================================================ In cPanel → phpMyAdmin: 1. Check if database "mikelodo_db" exists 2. Check if it has these tables: - form_submissions - users - user_sessions - rate_limits - activity_logs - exports If tables missing → Import database.sql again ================================================================================ STEP 4: TEST CONNECTION ================================================================================ After fixing .env: 1. Access: https://mikelodon.my.id/debug.php 2. Should show "ALL CHECKS PASSED" 3. Then access: https://mikelodon.my.id/login.php 4. Login with: admin / Kontolodon123@ ================================================================================ COMMON ISSUES ================================================================================ Issue: "Access denied for user" Fix: Wrong DB_USER or DB_PASS in .env Issue: "Unknown database" Fix: Wrong DB_NAME or database doesn't exist Issue: "Table 'users' doesn't exist" Fix: Import database.sql in phpMyAdmin Issue: Still showing error after fix Fix: Clear browser cache + refresh (Ctrl+F5) ================================================================================ NEED HELP? ================================================================================ 1. Run debug.php and send me the output 2. Check error_log file in your hosting 3. Verify .env file has correct credentials ================================================================================