=')],
['PDO extension', extension_loaded('PDO') ? 'present' : 'missing', extension_loaded('PDO')],
['PDO SQLite', in_array('sqlite', $pdoDrivers, true) ? 'present' : 'missing', extension_loaded('PDO') && in_array('sqlite', $pdoDrivers, true)],
['OpenSSL', extension_loaded('openssl') ? 'present' : 'missing', extension_loaded('openssl')],
['JSON', extension_loaded('json') ? 'present' : 'missing', extension_loaded('json')],
['proc_open', function_exists('proc_open') ? 'enabled' : 'disenabled', function_exists('proc_open')],
['shell_exec/exec', (function_exists('shell_exec') || function_exists('exec')) ? 'almeno uno enabled' : 'both disabled', (function_exists('shell_exec') || function_exists('exec'))],
['Data dir', bg_data_dir(), is_writable(bg_data_dir())],
['Config', is_file(__DIR__ . '/config.php') ? 'present' : 'missing: setup.php will open', true],
];
$log = '/tmp/bastionguard-webui-php-error.log';
$logTail = is_readable($log) ? implode("\n", array_slice(file($log, FILE_IGNORE_NEW_LINES), -80)) : '';
?>
BastionGuard WebUI Health
BastionGuard WebUI - diagnostics
This page helps diagnose blank pages or PHP issues.
| Check | Value | Result |
|---|
| = bg_e($c[0]) ?> | = bg_e($c[1]) ?> | = $c[2] ? 'OK' : 'Issue' ?> |
Disabled PHP functions
= bg_e($disabled ? implode(', ', $disabled) : 'none declared') ?>Latest WebUI errors
= bg_e($logTail ?: 'No errors in ' . $log) ?>
Back to WebUI