Debug assistance

Clarify Apache/PHP error log location in debug/setup
Include app version, cron and timezone in debug page
This commit is contained in:
Marcus Hill
2024-06-30 12:31:59 +01:00
parent cc38c642c5
commit af6740d898
2 changed files with 13 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ require_once "database_version.php";
require_once "config.php";
$folderPath = 'uploads';
function countFilesInDirectory($dir) {
@@ -190,7 +189,8 @@ $phpVersion = phpversion();
$mysqlVersion = $mysqli->server_version;
$operatingSystem = php_uname();
$webServer = $_SERVER['SERVER_SOFTWARE'];
$errorLog = ini_get('error_log');
$errorLog = ini_get('error_log') ?: "Debian/Ubuntu default is usually /var/log/apache2/error.log";
$updates = fetchUpdates();
?>
@@ -207,7 +207,7 @@ $errorLog = ini_get('error_log');
echo "MySQL Version: " . $mysqlVersion . "<br>";
echo "Operating System: " . $operatingSystem . "<br>";
echo "Web Server: " . $webServer . "<br>";
echo "PHP Error Log: " . $errorLog
echo "Apache/PHP Error Log: " . $errorLog
?>
<hr>
@@ -223,6 +223,14 @@ $errorLog = ini_get('error_log');
echo "Total size of files in $folderPath and its subdirectories: " . $totalSizeMB . " MB";
?>
<hr>
<h3>ITFlow app</h3>
<?php
echo "App Version: " . $updates->current_version . "<br>";
echo "Cron enabled: " . $config_enable_cron . "<br>";
echo "App Timezone: " . $config_timezone;
?>
<hr>
<h3>Database Structure Check</h3>