]>
Commit | Line | Data |
---|---|---|
4bf4f400 ER |
1 | --- php-5.2.8/php.ini-dist 2008-11-28 21:07:09.000000000 +0200 |
2 | +++ php-5.2.8/php.ini 2009-01-05 14:53:55.914702890 +0200 | |
917119c9 | 3 | @@ -3,13 +3,18 @@ |
4342041a JB |
4 | ;;;;;;;;;;; |
5 | ; WARNING ; | |
6 | ;;;;;;;;;;; | |
7 | -; This is the default settings file for new PHP installations. | |
8 | -; By default, PHP installs itself with a configuration suitable for | |
9 | -; development purposes, and *NOT* for production purposes. | |
10 | -; For several security-oriented considerations that should be taken | |
11 | -; before going online with your site, please consult php.ini-recommended | |
12 | -; and http://php.net/manual/en/security.php. | |
917119c9 | 13 | - |
4342041a JB |
14 | +; This is the default settings file for new PHP installations from |
15 | +; PLD Linux Distribution. | |
16 | +; It's based mainly on php.ini-dist, but with some changes made with | |
17 | +; security in mind (see below, consult also | |
18 | +; http://php.net/manual/en/security.php). | |
19 | +; | |
917119c9 AM |
20 | +; Please note, that in PLD installations /etc/php/php.ini file |
21 | +; contains global settings for all SAPIs (cgi, cli, apache...), | |
4342041a JB |
22 | +; and after reading this file, SAPI-specific file (/etc/php/php-cgi.ini, |
23 | +; /etc/php/php-cli.ini, /etc/php/php-apache.ini...) is INCLUDED | |
917119c9 AM |
24 | +; (so you don't have to duplicate whole large file to override only |
25 | +; few options) | |
4342041a | 26 | |
a00e0eb8 AM |
27 | ;;;;;;;;;;;;;;;;;;; |
28 | ; About php.ini ; | |
4bf4f400 ER |
29 | @@ -59,11 +64,73 @@ |
30 | ;;;;;;;;;;;;;;;;;;; | |
917119c9 | 31 | ; About this file ; |
a00e0eb8 | 32 | ;;;;;;;;;;;;;;;;;;; |
4342041a JB |
33 | -; All the values in the php.ini-dist file correspond to the builtin |
34 | -; defaults (that is, if no php.ini is used, or if you delete these lines, | |
35 | -; the builtin defaults will be identical). | |
a00e0eb8 AM |
36 | +; If you use constants in your value, and these constants belong to a |
37 | +; dynamically loaded extension (either a PHP extension or a Zend extension), | |
38 | +; you may only use these constants *after* the line that loads the extension. | |
c5eb76fc | 39 | |
62277197 | 40 | |
4342041a JB |
41 | +; Below is the list of settings changed from default as specified in |
42 | +; php.ini-recommended. These settings make PHP more secure and encourage | |
43 | +; cleaner coding. | |
44 | +; The price is that with these settings, PHP may be incompatible with some old | |
45 | +; or bad-written applications, and sometimes, more difficult to develop with. | |
46 | +; Using this settings is warmly recommended for production sites. As all of | |
47 | +; the changes from the standard settings are thoroughly documented, you can | |
48 | +; go over each one, and decide whether you want to use it or not. | |
49 | +; | |
50 | +; - register_globals = Off [Security, Performance] | |
51 | +; Global variables are no longer registered for input data (POST, GET, cookies, | |
52 | +; environment and other server variables). Instead of using $foo, you must use | |
53 | +; you can use $_REQUEST["foo"] (includes any variable that arrives through the | |
54 | +; request, namely, POST, GET and cookie variables), or use one of the specific | |
55 | +; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending | |
56 | +; on where the input originates. Also, you can look at the | |
57 | +; import_request_variables() function. | |
58 | +; Note that register_globals = Off is the default setting since PHP 4.2.0. | |
59 | +; - display_errors = Off [Security] | |
60 | +; With this directive set to off, errors that occur during the execution of | |
61 | +; scripts will no longer be displayed as a part of the script output, and thus, | |
62 | +; will no longer be exposed to remote users. With some errors, the error message | |
63 | +; content may expose information about your script, web server, or database | |
64 | +; server that may be exploitable for hacking. Production sites should have this | |
65 | +; directive set to off. | |
66 | +; - log_errors = On [Security] | |
67 | +; This directive complements the above one. Any errors that occur during the | |
68 | +; execution of your script will be logged (typically, to your server's error log, | |
69 | +; but can be configured in several ways). Along with setting display_errors to off, | |
70 | +; this setup gives you the ability to fully understand what may have gone wrong, | |
71 | +; without exposing any sensitive information to remote users. | |
72 | +; - error_reporting = E_ALL [Code Cleanliness, Security(?)] | |
73 | +; By default, PHP surpresses errors of type E_NOTICE. These error messages | |
74 | +; are emitted for non-critical errors, but that could be a symptom of a bigger | |
75 | +; problem. Most notably, this will cause error messages about the use | |
76 | +; of uninitialized variables to be displayed. | |
20e4fbdf ER |
77 | +; - register_argc_argv = Off [Performance] |
78 | +; Disables registration of the somewhat redundant $argv and $argc global | |
79 | +; variables. | |
80 | +; - magic_quotes_gpc = Off [Performance] | |
81 | +; Input data is no longer escaped with slashes so that it can be sent into | |
82 | +; SQL databases without further manipulation. Instead, you should use the | |
83 | +; function addslashes() on each input element you wish to send to a database. | |
84 | +; - variables_order = "GPCS" [Performance] | |
85 | +; The environment variables are not hashed into the $HTTP_ENV_VARS[]. To access | |
86 | +; environment variables, you can use getenv() instead. | |
4342041a JB |
87 | + |
88 | +; For completeness, below is list of the rest of changes recommended for | |
89 | +; performance, but NOT applied in default php.ini in PLD (since they are | |
90 | +; not needed for security or may cause problems with some applications | |
91 | +; more likely than above). | |
ff83cd8b | 92 | + |
4342041a JB |
93 | +; - output_buffering = 4096 [Performance] |
94 | +; Set a 4KB output buffer. Enabling output buffering typically results in less | |
95 | +; writes, and sometimes less packets sent on the wire, which can often lead to | |
96 | +; better performance. The gain this directive actually yields greatly depends | |
97 | +; on which Web server you're working with, and what kind of scripts you're using. | |
4342041a JB |
98 | +; - allow_call_time_pass_reference = Off [Code cleanliness] |
99 | +; It's not possible to decide to force a variable to be passed by reference | |
100 | +; when calling a function. The PHP 4 style to do this is by making the | |
101 | +; function require the relevant argument by reference. | |
c5eb76fc | 102 | + |
4342041a | 103 | ;;;;;;;;;;;;;;;;;;;; |
a00e0eb8 | 104 | ; Language Options ; |
4bf4f400 | 105 | ;;;;;;;;;;;;;;;;;;;; |
a00e0eb8 | 106 | @@ -86,7 +153,7 @@ |
9fab2fdf JK |
107 | asp_tags = Off |
108 | ||
109 | ; The number of significant digits displayed in floating point numbers. | |
cc1337ae JK |
110 | -precision = 12 |
111 | +precision = 14 | |
9fab2fdf JK |
112 | |
113 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers) | |
4342041a | 114 | y2k_compliance = On |
c5eb76fc ER |
115 | @@ -245,7 +312,7 @@ |
116 | ; (e.g. by adding its signature to the Web server header). It is no security | |
117 | ; threat in any way, but it makes it possible to determine whether you use PHP | |
118 | ; on your server or not. | |
119 | -expose_php = On | |
120 | +expose_php = Off | |
121 | ||
122 | ||
123 | ;;;;;;;;;;;;;;;;;;; | |
4bf4f400 ER |
124 | @@ -302,7 +369,9 @@ |
125 | ; | |
126 | ; - Show all errors except for notices and coding standards warnings | |
127 | ; | |
128 | -error_reporting = E_ALL & ~E_NOTICE | |
129 | +;error_reporting = E_ALL & ~E_NOTICE | |
130 | + | |
131 | +error_reporting = E_ALL | |
132 | ||
133 | ; Print out errors (as a part of the output). For production web sites, | |
134 | ; you're strongly encouraged to turn this feature off, and use error logging | |
135 | @@ -319,7 +388,7 @@ | |
136 | ; | |
137 | ; stdout (On) - Display errors to STDOUT | |
138 | ; | |
139 | -display_errors = On | |
140 | +display_errors = Off | |
141 | ||
142 | ; Even when display_errors is on, errors that occur during PHP's startup | |
143 | ; sequence are not displayed. It's strongly recommended to keep | |
144 | @@ -329,7 +398,7 @@ | |
2f814ad2 ER |
145 | ; Log errors into a log file (server-specific log, stderr, or error_log (below)) |
146 | ; As stated above, you're strongly advised to use error logging in place of | |
147 | ; error displaying on production web sites. | |
148 | -log_errors = Off | |
149 | +log_errors = On | |
150 | ||
151 | ; Set maximum length of log_errors. In error_log information about the source is | |
152 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. | |
4bf4f400 | 153 | @@ -361,7 +430,7 @@ |
87831047 ER |
154 | |
155 | ; Disable the inclusion of HTML tags in error messages. | |
156 | ; Note: Never use this feature for production boxes. | |
157 | -;html_errors = Off | |
158 | +html_errors = Off | |
159 | ||
160 | ; If html_errors is set On PHP produces clickable error messages that direct | |
161 | ; to a page describing the error or function causing the error in detail. | |
4bf4f400 | 162 | @@ -405,7 +474,7 @@ |
20e4fbdf ER |
163 | ; Environment and Built-in variables (G, P, C, E & S respectively, often |
164 | ; referred to as EGPCS or GPC). Registration is done from left to right, newer | |
165 | ; values override older values. | |
166 | -variables_order = "EGPCS" | |
167 | +variables_order = "GPCS" | |
168 | ||
169 | ; Whether or not to register the EGPCS variables as global variables. You may | |
170 | ; want to turn this off if you don't want to clutter your scripts' global scope | |
4bf4f400 | 171 | @@ -421,12 +490,12 @@ |
20e4fbdf ER |
172 | ; Whether or not to register the old-style input arrays, HTTP_GET_VARS |
173 | ; and friends. If you're not using them, it's recommended to turn them off, | |
174 | ; for performance reasons. | |
175 | -register_long_arrays = On | |
176 | +register_long_arrays = Off | |
177 | ||
178 | ; This directive tells PHP whether to declare the argv&argc variables (that | |
179 | ; would contain the GET information). If you don't use these variables, you | |
180 | ; should turn it off for increased performance. | |
181 | -register_argc_argv = On | |
182 | +register_argc_argv = Off | |
183 | ||
184 | ; When enabled, the SERVER and ENV variables are created when they're first | |
185 | ; used (Just In Time) instead of when the script starts. If these variables | |
4bf4f400 | 186 | @@ -442,7 +511,7 @@ |
20e4fbdf ER |
187 | ; |
188 | ||
189 | ; Magic quotes for incoming GET/POST/Cookie data. | |
190 | -magic_quotes_gpc = On | |
191 | +magic_quotes_gpc = Off | |
192 | ||
193 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. | |
194 | magic_quotes_runtime = Off | |
4bf4f400 | 195 | @@ -488,55 +557,13 @@ |
62277197 AM |
196 | user_dir = |
197 | ||
198 | ; Directory in which the loadable extensions (modules) reside. | |
199 | -extension_dir = "./" | |
200 | +extension_dir = "/usr/lib/php" | |
201 | ||
202 | ; Whether or not to enable the dl() function. The dl() function does NOT work | |
203 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically | |
4bf4f400 ER |
204 | ; disabled on them. |
205 | enable_dl = On | |
206 | ||
207 | -; cgi.force_redirect is necessary to provide security running PHP as a CGI under | |
208 | -; most web servers. Left undefined, PHP turns this on by default. You can | |
209 | -; turn it off here AT YOUR OWN RISK | |
210 | -; **You CAN safely turn this off for IIS, in fact, you MUST.** | |
211 | -; cgi.force_redirect = 1 | |
212 | - | |
213 | -; if cgi.nph is enabled it will force cgi to always sent Status: 200 with | |
214 | -; every request. | |
215 | -; cgi.nph = 1 | |
216 | - | |
217 | -; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape | |
218 | -; (iPlanet) web servers, you MAY need to set an environment variable name that PHP | |
219 | -; will look for to know it is OK to continue execution. Setting this variable MAY | |
220 | -; cause security issues, KNOW WHAT YOU ARE DOING FIRST. | |
221 | -; cgi.redirect_status_env = ; | |
222 | - | |
223 | -; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's | |
224 | -; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok | |
225 | -; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting | |
226 | -; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting | |
227 | -; of zero causes PHP to behave as before. Default is 1. You should fix your scripts | |
228 | -; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. | |
229 | -; cgi.fix_pathinfo=0 | |
230 | - | |
231 | -; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate | |
232 | -; security tokens of the calling client. This allows IIS to define the | |
233 | -; security context that the request runs under. mod_fastcgi under Apache | |
234 | -; does not currently support this feature (03/17/2002) | |
235 | -; Set to 1 if running under IIS. Default is zero. | |
236 | -; fastcgi.impersonate = 1; | |
237 | - | |
238 | -; Disable logging through FastCGI connection | |
239 | -; fastcgi.logging = 0 | |
240 | - | |
241 | -; cgi.rfc2616_headers configuration option tells PHP what type of headers to | |
242 | -; use when sending HTTP response code. If it's set 0 PHP sends Status: header that | |
243 | -; is supported by Apache. When this option is set to 1 PHP will send | |
244 | -; RFC2616 compliant header. | |
245 | -; Default is zero. | |
246 | -;cgi.rfc2616_headers = 0 | |
247 | - | |
248 | - | |
249 | ;;;;;;;;;;;;;;;; | |
250 | ; File Uploads ; | |
251 | ;;;;;;;;;;;;;;;; | |
252 | @@ -600,59 +627,6 @@ | |
bdc88c24 ER |
253 | ; needs to go here. Specify the location of the extension with the |
254 | ; extension_dir directive above. | |
255 | ||
256 | - | |
257 | -; Windows Extensions | |
258 | -; Note that ODBC support is built in, so no dll is needed for it. | |
259 | -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) | |
260 | -; extension folders as well as the separate PECL DLL download (PHP 5). | |
261 | -; Be sure to appropriately set the extension_dir directive. | |
262 | - | |
bdc88c24 ER |
263 | -;extension=php_bz2.dll |
264 | -;extension=php_curl.dll | |
265 | -;extension=php_dba.dll | |
266 | -;extension=php_dbase.dll | |
267 | -;extension=php_exif.dll | |
268 | -;extension=php_fdf.dll | |
bdc88c24 ER |
269 | -;extension=php_gd2.dll |
270 | -;extension=php_gettext.dll | |
e8baea14 | 271 | -;extension=php_gmp.dll |
bdc88c24 ER |
272 | -;extension=php_ifx.dll |
273 | -;extension=php_imap.dll | |
274 | -;extension=php_interbase.dll | |
275 | -;extension=php_ldap.dll | |
e8baea14 | 276 | -;extension=php_mbstring.dll |
bdc88c24 ER |
277 | -;extension=php_mcrypt.dll |
278 | -;extension=php_mhash.dll | |
279 | -;extension=php_mime_magic.dll | |
280 | -;extension=php_ming.dll | |
bdc88c24 | 281 | -;extension=php_msql.dll |
e8baea14 | 282 | -;extension=php_mssql.dll |
bdc88c24 | 283 | -;extension=php_mysql.dll |
e8baea14 | 284 | -;extension=php_mysqli.dll |
bdc88c24 ER |
285 | -;extension=php_oci8.dll |
286 | -;extension=php_openssl.dll | |
e8baea14 ER |
287 | -;extension=php_pdo.dll |
288 | -;extension=php_pdo_firebird.dll | |
289 | -;extension=php_pdo_mssql.dll | |
290 | -;extension=php_pdo_mysql.dll | |
291 | -;extension=php_pdo_oci.dll | |
292 | -;extension=php_pdo_oci8.dll | |
293 | -;extension=php_pdo_odbc.dll | |
294 | -;extension=php_pdo_pgsql.dll | |
295 | -;extension=php_pdo_sqlite.dll | |
bdc88c24 | 296 | -;extension=php_pgsql.dll |
e8baea14 | 297 | -;extension=php_pspell.dll |
bdc88c24 ER |
298 | -;extension=php_shmop.dll |
299 | -;extension=php_snmp.dll | |
e8baea14 | 300 | -;extension=php_soap.dll |
bdc88c24 ER |
301 | -;extension=php_sockets.dll |
302 | -;extension=php_sqlite.dll | |
303 | -;extension=php_sybase_ct.dll | |
304 | -;extension=php_tidy.dll | |
305 | -;extension=php_xmlrpc.dll | |
306 | -;extension=php_xsl.dll | |
e8baea14 | 307 | -;extension=php_zip.dll |
bdc88c24 ER |
308 | - |
309 | ;;;;;;;;;;;;;;;;;;; | |
310 | ; Module Settings ; | |
311 | ;;;;;;;;;;;;;;;;;;; | |
4bf4f400 ER |
312 | @@ -776,6 +750,9 @@ |
313 | ; Maximum time (in seconds) for connect timeout. -1 means no limit | |
314 | mysql.connect_timeout = 60 | |
315 | ||
316 | +; The name of the character set to use as the default character set. | |
317 | +;mysql.connect_charset=utf8 | |
318 | + | |
319 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and | |
320 | ; SQL-Errors will be displayed. | |
321 | mysql.trace_mode = Off | |
322 | @@ -795,6 +772,9 @@ | |
323 | ; MySQL defaults. | |
324 | mysqli.default_socket = | |
325 | ||
326 | +; The name of the character set to use as the default character set. | |
327 | +;mysqli.connect_charset=utf8 | |
328 | + | |
329 | ; Default host for mysql_connect() (doesn't apply in safe mode). | |
330 | mysqli.default_host = | |
331 | ||
332 | @@ -811,6 +791,10 @@ | |
333 | ; Allow or prevent reconnect | |
334 | mysqli.reconnect = Off | |
335 | ||
336 | +[pdo_mysql] | |
337 | +; The name of the character set to use as the default character set. | |
338 | +;pdo_mysql.connect_charset=utf8 | |
339 | + | |
340 | [mSQL] | |
341 | ; Allow or prevent persistent links. | |
342 | msql.allow_persistent = On | |
343 | @@ -920,7 +904,7 @@ | |
55309ada | 344 | bcmath.scale = 0 |
4bf4f400 | 345 | |
55309ada PG |
346 | [browscap] |
347 | -;browscap = extra/browscap.ini | |
7be993d3 | 348 | +browscap = /etc/php/browscap.ini |
4bf4f400 | 349 | |
55309ada PG |
350 | [Informix] |
351 | ; Default host for ifx_connect() (doesn't apply in safe mode). | |
4bf4f400 | 352 | @@ -1273,7 +1257,7 @@ |
614d53e4 ER |
353 | ; Enables or disables WSDL caching feature. |
354 | soap.wsdl_cache_enabled=1 | |
355 | ; Sets the directory name where SOAP extension will put cache files. | |
356 | -soap.wsdl_cache_dir="/tmp" | |
357 | +soap.wsdl_cache_dir="/var/run/php" | |
358 | ; (time to live) Sets the number of second while cached file will be used | |
359 | ; instead of original one. | |
360 | soap.wsdl_cache_ttl=86400 |