Server Information
| Operating System | {{ PHP_OS }} |
|---|---|
| PHP Version | {{ PHP_VERSION }} |
| Web Server | {{ $_SERVER['SERVER_SOFTWARE'] ?? 'Unknown' }} |
| Server Time | {{ date('Y-m-d H:i:s') }} |
Database Information
| Database Type | {{ config('database.connections.' . config('database.default') . '.driver') }} |
|---|---|
| Connection Status |
@try
@php
DB::connection()->getPdo();
$status = true;
$message = 'Connected';
@endphp
{{ $message }}
@catch(\Exception $e)
@php
$status = false;
$message = $e->getMessage();
@endphp
Failed
{{ $message }}
@endtry
|
| Database Version | @try {{ DB::select('SELECT VERSION() as version')[0]->version }} @catch(\Exception $e) Unknown @endtry |
Linux-Specific Diagnostics
@php
exec('df -h 2>&1', $diskOutput);
@endphp
{{ implode("\n", $diskOutput) }}
@php
$uploadPath = public_path('uploads/visitors');
$permInfo = [];
if (file_exists($uploadPath)) {
$permInfo[] = "Upload directory: $uploadPath";
$permInfo[] = "Permissions: " . substr(sprintf('%o', fileperms($uploadPath)), -4);
$permInfo[] = "Owner: " . posix_getpwuid(fileowner($uploadPath))['name'];
$permInfo[] = "Group: " . posix_getgrgid(filegroup($uploadPath))['name'];
$permInfo[] = "Writable: " . (is_writable($uploadPath) ? 'Yes' : 'No');
} else {
$permInfo[] = "Upload directory does not exist: $uploadPath";
}
@endphp
{{ implode("\n", $permInfo) }}
@php
exec('ps aux | grep -E "mysql|apache|nginx|php" | grep -v grep 2>&1', $processOutput);
@endphp
{{ implode("\n", $processOutput) }}
Database Tables Information
| Table Name | Row Count | Status |
|---|---|---|
| {{ $tableName }} | {{ $count }} | @try @php $status = DB::select("CHECK TABLE `$tableName`")[0]; @endphp @if($status->Msg_text == 'OK') OK @else {{ $status->Msg_text }} @endif @catch(\Exception $e) Error @endtry |
| Failed to retrieve table information: {{ $e->getMessage() }} | ||
Recent Error Logs
@php
$logPath = storage_path('logs/laravel-' . date('Y-m-d') . '.log');
$logContent = [];
if (file_exists($logPath)) {
$logContent = array_slice(file($logPath), -20);
} else {
$logContent[] = "No log file found for today.";
}
@endphp
{{ implode("", $logContent) }}