]>
Commit | Line | Data |
---|---|---|
c0240cb1 | 1 | ; php-cgi-fcgi.ini - configuration used only for cgi-fcgi SAPI |
2 | ; | |
3 | ; Please note that, unlikely in original php distributions, this file | |
4 | ; is read AFTER (not instead of) reading global /etc/php/php.ini. | |
5 | ; | |
6 | ; It allows you to control global settings for all SAPIs in one place | |
7 | ; and override some settings in SAPI-specific files without need of | |
8 | ; copying whole large php.ini. | |
9 | ||
10 | [PHP] | |
c0240cb1 | 11 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under |
12 | ; most web servers. Left undefined, PHP turns this on by default. You can | |
13 | ; turn it off here AT YOUR OWN RISK | |
14 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** | |
eafd88fc ER |
15 | ; http://php.net/cgi.force-redirect |
16 | ;cgi.force_redirect = 1 | |
c0240cb1 | 17 | |
18 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with | |
eafd88fc ER |
19 | ; every request. PHP's default behavior is to disable this feature. |
20 | ;cgi.nph = 1 | |
c0240cb1 | 21 | |
22 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape | |
23 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP | |
24 | ; will look for to know it is OK to continue execution. Setting this variable MAY | |
25 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. | |
eafd88fc ER |
26 | ; http://php.net/cgi.redirect-status-env |
27 | ;cgi.redirect_status_env = | |
c0240cb1 | 28 | |
29 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's | |
30 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok | |
31 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting | |
eafd88fc | 32 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting |
c0240cb1 | 33 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts |
34 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. | |
eafd88fc | 35 | ; http://php.net/cgi.fix-pathinfo |
c0240cb1 | 36 | cgi.fix_pathinfo=1 |
37 | ||
eafd88fc ER |
38 | ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside |
39 | ; of the web tree and people will not be able to circumvent .htaccess security. | |
40 | ; http://php.net/cgi.dicard-path | |
41 | ;cgi.discard_path=1 | |
42 | ||
43 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate | |
44 | ; security tokens of the calling client. This allows IIS to define the | |
45 | ; security context that the request runs under. mod_fastcgi under Apache | |
46 | ; does not currently support this feature (03/17/2002) | |
47 | ; Set to 1 if running under IIS. Default is zero. | |
48 | ; http://php.net/fastcgi.impersonate | |
49 | ;fastcgi.impersonate = 1 | |
50 | ||
51 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable | |
52 | ; this feature. | |
53 | ;fastcgi.logging = 0 | |
54 | ||
c0240cb1 | 55 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to |
eafd88fc ER |
56 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that |
57 | ; is supported by Apache. When this option is set to 1, PHP will send | |
c0240cb1 | 58 | ; RFC2616 compliant header. |
59 | ; Default is zero. | |
eafd88fc | 60 | ; http://php.net/cgi.rfc2616-headers |
c0240cb1 | 61 | ;cgi.rfc2616_headers = 0 |
62 | ||
eafd88fc ER |
63 | ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! |
64 | ; (shebang) at the top of the running script. This line might be needed if the | |
65 | ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI | |
66 | ; mode skips this line and ignores its content if this directive is turned on. | |
67 | ; http://php.net/cgi.check-shebang-line | |
68 | ;cgi.check_shebang_line=1 | |
69 | ||
c0240cb1 | 70 | [Session] |
71 | session.save_path = /tmp ; argument passed to save_handler | |
72 | ; in the case of files, this is the | |
73 | ; path where data files are stored | |
74 |