mirror of https://github.com/itflow-org/itflow
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:
parent
cc38c642c5
commit
af6740d898
|
|
@ -5,7 +5,6 @@ require_once "database_version.php";
|
||||||
|
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
|
|
||||||
|
|
||||||
$folderPath = 'uploads';
|
$folderPath = 'uploads';
|
||||||
|
|
||||||
function countFilesInDirectory($dir) {
|
function countFilesInDirectory($dir) {
|
||||||
|
|
@ -190,7 +189,8 @@ $phpVersion = phpversion();
|
||||||
$mysqlVersion = $mysqli->server_version;
|
$mysqlVersion = $mysqli->server_version;
|
||||||
$operatingSystem = php_uname();
|
$operatingSystem = php_uname();
|
||||||
$webServer = $_SERVER['SERVER_SOFTWARE'];
|
$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 "MySQL Version: " . $mysqlVersion . "<br>";
|
||||||
echo "Operating System: " . $operatingSystem . "<br>";
|
echo "Operating System: " . $operatingSystem . "<br>";
|
||||||
echo "Web Server: " . $webServer . "<br>";
|
echo "Web Server: " . $webServer . "<br>";
|
||||||
echo "PHP Error Log: " . $errorLog
|
echo "Apache/PHP Error Log: " . $errorLog
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
@ -223,6 +223,14 @@ $errorLog = ini_get('error_log');
|
||||||
echo "Total size of files in $folderPath and its subdirectories: " . $totalSizeMB . " MB";
|
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>
|
<hr>
|
||||||
|
|
||||||
<h3>Database Structure Check</h3>
|
<h3>Database Structure Check</h3>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ if ($config_enable_setup == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once "settings_localization_array.php";
|
include_once "settings_localization_array.php";
|
||||||
|
$errorLog = ini_get('error_log') ?: "Debian/Ubuntu default is usually /var/log/apache2/error.log";
|
||||||
|
|
||||||
// Get a list of all available timezones
|
// Get a list of all available timezones
|
||||||
$timezones = DateTimeZone::listIdentifiers();
|
$timezones = DateTimeZone::listIdentifiers();
|
||||||
|
|
@ -848,7 +849,7 @@ if (isset($_POST['add_telemetry'])) {
|
||||||
<ul>
|
<ul>
|
||||||
<li>Please take a look over the install <a href="https://docs.itflow.org/installation">docs</a>, if you haven't already</li>
|
<li>Please take a look over the install <a href="https://docs.itflow.org/installation">docs</a>, if you haven't already</li>
|
||||||
<li>Don't hesitate to reach out on the <a href="https://forum.itflow.org/t/support" target="_blank">forums</a> if you need any assistance</li>
|
<li>Don't hesitate to reach out on the <a href="https://forum.itflow.org/t/support" target="_blank">forums</a> if you need any assistance</li>
|
||||||
<li><i>Your PHP Error log is at: <?php echo ini_get('error_log') ?></i></li>
|
<li><i>Apache/PHP Error log: <?php echo $errorLog ?></i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br><p>A database must be created before proceeding - click on the button below to get started.</p>
|
<br><p>A database must be created before proceeding - click on the button below to get started.</p>
|
||||||
<br><hr>
|
<br><hr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue