# 🚀 CONFIGURACIÓN PARA ACCEDER AL SISTEMA ## 🛠️ SOLUCIÓN DEFINITIVA Los errores `ERR_CONNECTION_REFUSED` ocurren porque estás intentando acceder a `ventas-test.local` pero no hay servidor configurado para ese dominio. --- ## 📋 OPCIONES PARA ACCEDER AL SISTEMA ### Opción 1: Servidor PHP Local (Recomendado) ```bash # Iniciar servidor en la carpeta del proyecto cd /var/www/html/ventas php -S localhost:8000 -t . # Luego acceder a: http://localhost:8000/login ``` ### Opción 2: Servidor PHP en IP Local ```bash # Iniciar servidor accesible desde red cd /var/www/html/ventas php -S 10.10.4.3:8000 -t . # Luego acceder a: http://10.10.4.3:8000/login ``` ### Opción 3: Configurar /etc/hosts ```bash # Editar archivo de hosts locales sudo nano /etc/hosts # Agregar esta línea: 127.0.0.1 ventas-test.local # Guardar (Ctrl+X, Y, Enter) ``` Luego puedes acceder a `http://ventas-test.local/login` ### Opción 4: Usar Apache/Nginx si están instalados ```bash # Apache sudo a2ensite ventas # o crear virtualhost sudo systemctl reload apache2 # Nginx sudo nano /etc/nginx/sites-available/ventas # Configurar y luego: sudo ln -s /etc/nginx/sites-available/ventas /etc/nginx/sites-enabled/ sudo nginx -t sudo systemctl reload nginx ``` --- ## 🧪 VERIFICACIÓN Para probar que el sistema funciona correctamente: write content [ 'timeout' => 5, 'method' => 'GET' ] ]); $response = @file_get_contents('http://localhost:8000/login', false, $context); if ($response !== false) { echo "✅ Página de login accesible\n"; if (strpos($response, '