diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 2a4d486ed5..b4cc666440 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -25,6 +25,7 @@ Cacti CHANGELOG -issue#1131: Make upgrade_database.php use same version compare as /install/ system -issue#1133: Fix issues with variable name and debug log -issue#1143: ss_host_cpu.php - Division by zero / Invalid Return Value +-issue#1146: Installation now checks URI path matchs with configuration option URL_PATH -issue: Updated Graph pagenation and filter reset -issue: Resolve issues with cacti_version_compare() processing -issue: Zoom context menu stays open after zoom out actions diff --git a/install/index.php b/install/index.php index 35b957d267..450c4908a5 100644 --- a/install/index.php +++ b/install/index.php @@ -446,6 +446,59 @@ $enabled = '1'; $enabled = '1'; print '
Testing [' . $test_config_path . '] matches [' . $test_final_path .'] result = '.$test_compare_result.'('.gettype($test_compare_result).')
'; + + print 'request_uri = ' . strlen($test_request_uri) . ' [' . $test_request_uri . ']
'; + print 'request_parts = ' . var_export($test_request_parts, true) . '
'; + print 'request_path = ' . strlen($test_request_path) . ' [' . $test_request_path . ']
'; + + print 'script_name = ' . strlen($test_script_name) . ' [' . $test_script_name . ']
'; + print 'script_part = ' . strlen($test_script_part) . ' [' . $test_script_part . ']
'; + print 'script_result = ' . $test_script_result . '
'; + print 'final_path = ' . strlen($test_final_path) . ' [' . $test_final_path . ']
'; + * + * The above code should probably be removed once tested. + */ + + // The path was not what we expected so print an error + if ($test_compare_result !== 0) { + print '' . __('ERROR:') . ' ' . __('Please update config.php with the correct relative URI location of Cacti (url_path).') . '
'; + } else { + print '' . __('Your Cacti configuration has the relative correct path (url_path) in config.php.') . '
'; + } + print '