We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2f30f7 commit 03f1c7bCopy full SHA for 03f1c7b
config_defaults_inc.php
@@ -126,6 +126,12 @@
126
$t_host = 'localhost';
127
}
128
129
+ if ( !isset( $_SERVER['SCRIPT_NAME'] )) {
130
+ echo 'Invalid server configuration detected. Please set $g_path manually in config_inc.php.';
131
+ if ( isset( $_SERVER['SERVER_SOFTWARE'] ) && ( stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false ) )
132
+ echo ' Please try to add "fastcgi_param SCRIPT_NAME $fastcgi_script_name;" to the nginx server configuration.';
133
+ die;
134
+ }
135
$t_self = $_SERVER['SCRIPT_NAME'];
136
$t_self = filter_var($t_self, FILTER_SANITIZE_STRING);
137
$t_path = str_replace( basename( $t_self ), '', $t_self );