php.ini configuration for cgi.fix_pathinfo = On Or cgi.fix_pathinfo = 1?

; cgi.fix_pathinfo provides real PATH_INFO/PATH_TRANSLATED support for CGI. PHP's

; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok

; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting

; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting

; of zero causes PHP to behave as before. Default is 1. You should fix your scripts



cgi.fix_pathinfo = On

I am still confused with default settings virtualmin, between cgi.fix_pathinfo = On Or use cgi.fix_pathinfo = 1

From php setting using 1, or virtualmin have custom config for On?



wpfqouta's picture
Submitted by wpfqouta on Sat, 02/04/2017 - 05:25

Assigned: ยป Unassigned

Howdy -- Virtualmin doesn't use any custom config regarding that, and also doesn't enable or disable that particular option on it's own.

My suggestion would be to use the option values as described in the PHP documentation. And if you're seeing that some parameters are being incorrectly set, the key would be to determine where those are being set.