Buckets:
| // Diagnostic page - bypasses Laravel completely | |
| header('Content-Type: text/plain'); | |
| echo "=== SGAE Diagnostic ===\n\n"; | |
| echo 'PHP Version: '.PHP_VERSION."\n"; | |
| echo 'Server: '.($_SERVER['SERVER_SOFTWARE'] ?? 'unknown')."\n"; | |
| echo 'Document Root: '.($_SERVER['DOCUMENT_ROOT'] ?? 'unknown')."\n\n"; | |
| echo "=== File checks ===\n"; | |
| $checks = [ | |
| '/var/www/html/.env' => 'ENV file', | |
| '/var/www/html/vendor/autoload.php' => 'Vendor autoload', | |
| '/var/www/html/bootstrap/app.php' => 'Bootstrap app', | |
| '/var/www/html/storage/logs' => 'Storage logs dir', | |
| '/var/www/html/storage/framework/sessions' => 'Sessions dir', | |
| '/var/www/html/storage/framework/views' => 'Views dir', | |
| '/var/www/html/storage/framework/cache/data' => 'Cache dir', | |
| '/var/www/html/database/database.sqlite' => 'SQLite database', | |
| ]; | |
| foreach ($checks as $path => $label) { | |
| $exists = file_exists($path) ? 'EXISTS' : 'MISSING'; | |
| $writable = is_writable($path) ? 'writable' : 'not-writable'; | |
| echo "$label: $exists ($writable) - $path\n"; | |
| } | |
| echo "\n=== ENV content ===\n"; | |
| if (file_exists('/var/www/html/.env')) { | |
| echo file_get_contents('/var/www/html/.env'); | |
| } else { | |
| echo "NO .env FILE FOUND\n"; | |
| } | |
| echo "\n\n=== Try Laravel bootstrap ===\n"; | |
| try { | |
| require '/var/www/html/vendor/autoload.php'; | |
| echo "Autoload: OK\n"; | |
| $app = require '/var/www/html/bootstrap/app.php'; | |
| echo "Bootstrap: OK\n"; | |
| $kernel = $app->make(\Illuminate\Contracts\Http\Kernel::class); | |
| echo "Kernel: OK\n"; | |
| } catch (\Throwable $e) { | |
| echo 'ERROR: '.$e->getMessage()."\n"; | |
| echo 'File: '.$e->getFile().':'.$e->getLine()."\n"; | |
| echo "Trace:\n".$e->getTraceAsString()."\n"; | |
| } | |
Xet Storage Details
- Size:
- 1.69 kB
- Xet hash:
- 3a605639236f27dc26fea3470d8c0c0446367dda1231e2e71447776b83bfa38e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.