🔍 Diagnóstico - cPanel Migration Tool

1️⃣ Versión de PHP

PHP: 8.1.34 ✓ OK

2️⃣ Extensiones Requeridas

curl:
openssl:
json:
pdo:
pdo_mysql:

3️⃣ Archivos Necesarios

Configuración (.env):
Archivo config (config/config.php):
Clase API (classes/CpanelAPI.php):
Clase BD (classes/Database.php):
Clase Seguridad (classes/Security.php):
Schema BD (database/schema.sql):

4️⃣ Permisos de Directorios

temp: ✓ Escribible
logs: ✓ Escribible

5️⃣ Archivo .env

.env: ✓ Existe
Líneas: 36
DB_HOST:
ENCRYPTION_KEY:

6️⃣ Cargar config.php

config.php: ✓ Cargado
DB_HOST: ✓ Definido
DB_NAME: ✓ Definido

7️⃣ Conexión MySQL

MySQL: ✗ SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

8️⃣ Logs de Error

Archivos de log: 19
Más reciente: access_2026-05-26.log
[2026-05-26 16:37:07] [IP:216.73.216.109] [SESSION:] [APP_START] Application initialized | UA: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
[2026-05-26 16:10:46] [IP:103.196.9.220] [SESSION:] [APP_START] Application initialized | UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
[2026-05-26 16:10:43] [IP:103.196.9.220] [SESSION:81843afcff7dac82b6be4e362cb881f4] [APP_START] Application initialized | UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
[2026-05-26 16:07:04] [IP:65.21.124.77] [SESSION:60344cf8c56ab62976ea387b7be0aa68] [APP_START] Application initialized | UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
[2026-05-26 16:07:04] [IP:65.21.124.77] [SESSION:60344cf8c56ab62976ea387b7be0aa68] [APP_START] Application initialized | UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

9️⃣ Error Log del Sistema

Error log: ✓ error_log
[08-May-2026 22:01:10 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[10-May-2026 00:25:58 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[17-May-2026 02:08:00 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[18-May-2026 04:15:42 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[26-May-2026 12:34:36 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[26-May-2026 19:56:40 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[26-May-2026 21:07:04 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[26-May-2026 21:10:46 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended
[26-May-2026 21:37:07 UTC] ⚠️ WARNING: Using 'root' user in production is NOT recommended

🔟 Variables de Entorno

APP_URL: https://migracion.terranode.net/
TEMP_DIR: /home/terranod/migracion.terranode.net/temp/
LOG_DIR: /home/terranod/migracion.terranode.net/logs/

📋 Resumen

✓ Todo parece estar en orden
El error 500 puede ser causado por:
- Problema en la lógica de index.php
- Falta de extensión que no se detectó
- Problema con el autoloader

💡 Próximos Pasos

1. Revisa la información anterior
2. Si falta .env, ejecuta installer.php nuevamente
3. Si faltan extensiones, contacta a tu proveedor de hosting
4. Si todo está OK, revisa los logs para más detalles
5. Copia este diagnóstico completo si contactas a soporte