diff --git a/install/includes/install_config/install_lib.php b/install/includes/install_config/install_lib.php index d1589f378..deedccd2e 100644 --- a/install/includes/install_config/install_lib.php +++ b/install/includes/install_config/install_lib.php @@ -105,4 +105,20 @@ function log_message($level, $message) { function customError($errno, $errstr, $errfile, $errline) { $message = "[$errno] $errstr in $errfile on line $errline"; log_message('error', $message); -} \ No newline at end of file +} + +// Detect webserver and version +function detect_webserver() { + return $_SERVER['SERVER_SOFTWARE'] ?? __("not detected"); +} + +// Detect nginx setting for PHP file processing +function detect_nginx_php_setting() { + $ch = curl_init($http_scheme.'://'.$_SERVER['HTTP_HOST'].'/install/nginx.php/test'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HEADER, 0); + $data = curl_exec($ch); + $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + return $code; +} diff --git a/install/index.php b/install/index.php index 073ad5da3..7de53989f 100644 --- a/install/index.php +++ b/install/index.php @@ -274,8 +274,28 @@ if (!file_exists('.lock')) {
= __("You can test your MySQL/MariaDB Version in Step 4"); ?>
+= __("You can test your MySQL/MariaDB Version in Step 4"); ?>
+= __("Web Server"); ?>
+| = __("Version:"); ?> | ++ |
= __("Important note for nginx users!"); ?>
+= __("Since you are using nginx as web server please make sure that you have made the changes described in the Wiki before continuing."); ?>
+https://github.com/wavelog/Wavelog/wiki/Installation#nginx-configuration
+