source: trunk/etc/alternc/templates/php4/apache/php.ini @ 940

Revision 940, 22.1 KB checked in by benjamin, 7 years ago (diff)

moving session path to /var/lib/php4/

Line 
1;
2; Fichier de configuration de PHP4 pour AlternC
3; $Id: php.ini,v 1.7 2005/05/21 13:53:27 arnaud-lb Exp $
4;
5; %%warning_message%%
6;
7
8[PHP]
9;;;;;;;;;;;;;;;;;;;;
10; Language Options ;
11;;;;;;;;;;;;;;;;;;;;
12
13; Enable the PHP scripting language engine under Apache.
14engine = On
15
16; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
17short_open_tag = On
18
19; Allow ASP-style <% %> tags.
20asp_tags = Off
21
22; The number of significant digits displayed in floating point numbers.
23precision    =  14
24
25; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
26y2k_compliance = Off
27
28; Output buffering allows you to send header lines (including cookies) even
29; after you send body content, at the price of slowing PHP's output layer a
30; bit.  You can enable output buffering during runtime by calling the output
31; buffering functions.  You can also enable output buffering for all files by
32; setting this directive to On.  If you wish to limit the size of the buffer
33; to a certain size - you can use a maximum number of bytes instead of 'On', as
34; a value for this directive (e.g., output_buffering=4096).
35output_buffering = Off
36
37; You can redirect all of the output of your scripts to a function.  For
38; example, if you set output_handler to "ob_gzhandler", output will be
39; transparently compressed for browsers that support gzip or deflate encoding.
40; Setting an output handler automatically turns on output buffering.
41output_handler =
42
43; Transparent output compression using the zlib library
44; Valid values for this option are 'off', 'on', or a specific buffer size
45; to be used for compression (default is 4KB)
46zlib.output_compression = Off
47
48; Implicit flush tells PHP to tell the output layer to flush itself
49; automatically after every output block.  This is equivalent to calling the
50; PHP function flush() after each and every call to print() or echo() and each
51; and every HTML block.  Turning this option on has serious performance
52; implications and is generally recommended for debugging purposes only.
53implicit_flush = Off
54
55; Whether to enable the ability to force arguments to be passed by reference
56; at function call time.  This method is deprecated and is likely to be
57; unsupported in future versions of PHP/Zend.  The encouraged method of
58; specifying which arguments should be passed by reference is in the function
59; declaration.  You're encouraged to try and turn this option Off and make
60; sure your scripts work properly with it in order to ensure they will work
61; with future versions of the language (you will receive a warning each time
62; you use this feature, and the argument will be passed by value instead of by
63; reference).
64allow_call_time_pass_reference = On
65
66
67;
68; Safe Mode
69;
70safe_mode = On
71
72; By default, Safe Mode does a UID compare check when
73; opening files. If you want to relax this to a GID compare,
74; then turn on safe_mode_gid.
75safe_mode_gid = On
76
77; When safe_mode is on, UID/GID checks are bypassed when
78; including files from this directory and its subdirectories.
79; (directory must also be in include_path or full path must
80; be used when including)
81safe_mode_include_dir =       
82
83; When safe_mode is on, only executables located in the safe_mode_exec_dir
84; will be allowed to be executed via the exec family of functions.
85safe_mode_exec_dir = /var/alternc/exec.usr
86
87; open_basedir, if set, limits all file operations to the defined directory
88; and below.  This directive makes most sense if used in a per-directory
89; or per-virtualhost web server configuration file.
90;
91open_basedir = 
92
93; Setting certain environment variables may be a potential security breach.
94; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
95; the user may only alter environment variables whose names begin with the
96; prefixes supplied here.  By default, users will only be able to set
97; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
98;
99; Note:  If this directive is empty, PHP will let the user modify ANY
100; environment variable!
101safe_mode_allowed_env_vars = PHP_,LANG,LC_
102
103; This directive contains a comma-delimited list of environment variables that
104; the end user won't be able to change using putenv().  These variables will be
105; protected even if safe_mode_allowed_env_vars is set to allow to change them.
106safe_mode_protected_env_vars = LD_LIBRARY_PATH
107
108; This directive allows you to disable certain functions for security reasons.
109; It receives a comma-delimited list of function names.  This directive is
110; *NOT* affected by whether Safe Mode is turned On or Off.
111disable_functions = chgrp,link,symlink
112
113; Colors for Syntax Highlighting mode.  Anything that's acceptable in
114; <font color="??????"> would work.
115highlight.string  = #CC0000
116highlight.comment = #FF9900
117highlight.keyword = #006600
118highlight.bg      = #FFFFFF
119highlight.default = #0000CC
120highlight.html    = #000000
121
122
123;
124; Misc
125;
126; Decides whether PHP may expose the fact that it is installed on the server
127; (e.g. by adding its signature to the Web server header).  It is no security
128; threat in any way, but it makes it possible to determine whether you use PHP
129; on your server or not.
130expose_php = On
131
132
133;;;;;;;;;;;;;;;;;;;
134; Resource Limits ;
135;;;;;;;;;;;;;;;;;;;
136
137max_execution_time = 30     ; Maximum execution time of each script, in seconds
138memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
139
140
141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
142; Error handling and logging ;
143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
144
145; error_reporting is a bit-field.  Or each number up to get desired error
146; reporting level
147; E_ALL             - All errors and warnings
148; E_ERROR           - fatal run-time errors
149; E_WARNING         - run-time warnings (non-fatal errors)
150; E_PARSE           - compile-time parse errors
151; E_NOTICE          - run-time notices (these are warnings which often result
152;                     from a bug in your code, but it's possible that it was
153;                     intentional (e.g., using an uninitialized variable and
154;                     relying on the fact it's automatically initialized to an
155;                     empty string)
156; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
157; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
158;                     initial startup
159; E_COMPILE_ERROR   - fatal compile-time errors
160; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
161; E_USER_ERROR      - user-generated error message
162; E_USER_WARNING    - user-generated warning message
163; E_USER_NOTICE     - user-generated notice message
164;
165; Examples:
166;
167;   - Show all errors, except for notices
168;
169;error_reporting = E_ALL & ~E_NOTICE
170;
171;   - Show only errors
172;
173;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
174;
175;   - Show all errors except for notices
176;
177error_reporting  =  E_ALL & ~E_NOTICE
178
179; Print out errors (as a part of the output).  For production web sites,
180; you're strongly encouraged to turn this feature off, and use error logging
181; instead (see below).  Keeping display_errors enabled on a production web site
182; may reveal security information to end users, such as file paths on your Web
183; server, your database schema or other information.
184display_errors = On
185
186; Even when display_errors is on, errors that occur during PHP's startup
187; sequence are not displayed.  It's strongly recommended to keep
188; display_startup_errors off, except for when debugging.
189display_startup_errors = Off
190
191; Log errors into a log file (server-specific log, stderr, or error_log (below))
192; As stated above, you're strongly advised to use error logging in place of
193; error displaying on production web sites.
194log_errors = Off
195
196; Store the last error/warning message in $php_errormsg (boolean).
197track_errors = Off
198
199; Disable the inclusion of HTML tags in error messages.
200;html_errors = Off
201 
202; String to output before an error message.
203;error_prepend_string = "<font color=ff0000>"
204
205; String to output after an error message.
206;error_append_string = "</font>"
207
208; Log errors to specified file.
209;error_log = filename
210
211; Log errors to syslog (Event Log on NT, not valid in Windows 95).
212;error_log = syslog
213
214; Warn if the + operator is used with strings.
215warn_plus_overloading = Off
216
217
218;;;;;;;;;;;;;;;;;
219; Data Handling ;
220;;;;;;;;;;;;;;;;;
221;
222; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
223
224; The separator used in PHP generated URLs to separate arguments.
225; Default is "&".
226;arg_separator.output = "&amp;"
227
228; List of separator(s) used by PHP to parse input URLs into variables.
229; Default is "&".
230; NOTE: Every character in this directive is considered as separator!
231;arg_separator.input = ";&"
232
233; This directive describes the order in which PHP registers GET, POST, Cookie,
234; Environment and Built-in variables (G, P, C, E & S respectively, often
235; referred to as EGPCS or GPC).  Registration is done from left to right, newer
236; values override older values.
237variables_order = "EGPCS"
238
239; Whether or not to register the EGPCS variables as global variables.  You may
240; want to turn this off if you don't want to clutter your scripts' global scope
241; with user data.  This makes most sense when coupled with track_vars - in which
242; case you can access all of the GPC variables through the $HTTP_*_VARS[],
243; variables.
244;
245; You should do your best to write your scripts so that they do not require
246; register_globals to be on;  Using form variables as globals can easily lead
247; to possible security problems, if the code is not very well thought of.
248register_globals = On
249
250; This directive tells PHP whether to declare the argv&argc variables (that
251; would contain the GET information).  If you don't use these variables, you
252; should turn it off for increased performance.
253register_argc_argv = On
254
255; Maximum size of POST data that PHP will accept.
256post_max_size = 8M
257
258; This directive is deprecated.  Use variables_order instead.
259gpc_order = "GPC"
260
261; Magic quotes
262;
263
264; Magic quotes for incoming GET/POST/Cookie data.
265magic_quotes_gpc = On
266
267; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
268magic_quotes_runtime = Off   
269
270; Use Sybase-style magic quotes (escape ' with '' instead of \').
271magic_quotes_sybase = Off
272
273; Automatically add files before or after any PHP document.
274auto_prepend_file =
275auto_append_file =
276
277; As of 4.0b4, PHP always outputs a character encoding by default in
278; the Content-type: header.  To disable sending of the charset, simply
279; set it to be empty.
280;
281; PHP's built-in default is text/html
282default_mimetype = "text/html"
283default_charset = "iso-8859-1"
284
285
286;;;;;;;;;;;;;;;;;;;;;;;;;
287; Paths and Directories ;
288;;;;;;;;;;;;;;;;;;;;;;;;;
289
290; UNIX: "/path1:/path2" 
291;include_path = ".:/php/includes"
292;
293; Windows: "\path1;\path2"
294;include_path = ".;c:\php\includes"
295
296; The root of the PHP pages, used only if nonempty.
297doc_root =
298
299; The directory under which PHP opens the script using /~usernamem used only
300; if nonempty.
301user_dir =
302
303; Directory in which the loadable extensions (modules) reside.
304; extension_dir = ./
305
306; Whether or not to enable the dl() function.  The dl() function does NOT work
307; properly in multithreaded servers, such as IIS or Zeus, and is automatically
308; disabled on them.
309enable_dl = Off
310
311
312;;;;;;;;;;;;;;;;
313; File Uploads ;
314;;;;;;;;;;;;;;;;
315
316; Whether to allow HTTP file uploads.
317file_uploads = On
318
319; Temporary directory for HTTP uploaded files (will use system default if not
320; specified).
321upload_tmp_dir = /var/alternc/tmp
322
323; Maximum allowed size for uploaded files.
324upload_max_filesize = 5M
325
326
327;;;;;;;;;;;;;;;;;;
328; Fopen wrappers ;
329;;;;;;;;;;;;;;;;;;
330
331; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
332allow_url_fopen = On
333
334; Define the anonymous ftp password (your email address)
335;from="john@doe.com"
336
337
338;;;;;;;;;;;;;;;;;;;
339; Module Settings ;
340;;;;;;;;;;;;;;;;;;;
341
342[Syslog]
343; Whether or not to define the various syslog variables (e.g. $LOG_PID,
344; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
345; runtime, you can define these variables by calling define_syslog_variables().
346define_syslog_variables  = Off
347
348[mail function]
349; For Win32 only.
350SMTP = localhost
351
352; For Win32 only.
353;sendmail_from = me@localhost.com
354
355; For Unix only.  You may supply arguments as well (default: 'sendmail -t -i').
356; TODO : finish this shell script ! (and move it to a better place)
357sendmail_path = /usr/lib/alternc/sendmail
358
359[Logging]
360; These configuration directives are used by the example logging mechanism.
361; See examples/README.logging for more explanation.
362;logging.method = db
363;logging.directory = /path/to/log/directory
364
365[Java]
366;java.class.path = .\php_java.jar
367;java.home = c:\jdk
368;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
369;java.library.path = .\
370
371[SQL]
372sql.safe_mode = Off
373
374[ODBC]
375;odbc.default_db    =  Not yet implemented
376;odbc.default_user  =  Not yet implemented
377;odbc.default_pw    =  Not yet implemented
378
379; Allow or prevent persistent links.
380odbc.allow_persistent = On
381
382; Check that a connection is still valid before reuse.
383odbc.check_persistent = On
384
385; Maximum number of persistent links.  -1 means no limit.
386odbc.max_persistent = -1
387
388; Maximum number of links (persistent + non-persistent).  -1 means no limit.
389odbc.max_links = -1 
390
391; Handling of LONG fields.  Returns number of bytes to variables.  0 means
392; passthru.
393odbc.defaultlrl = 4096 
394
395; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
396; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
397; of uodbc.defaultlrl and uodbc.defaultbinmode
398odbc.defaultbinmode = 
399
400[MySQL]
401; Allow or prevent persistent links.
402mysql.allow_persistent = On
403
404; Maximum number of persistent links.  -1 means no limit.
405mysql.max_persistent = -1
406
407; Maximum number of links (persistent + non-persistent).  -1 means no limit.
408mysql.max_links = -1
409
410; Default port number for mysql_connect().  If unset, mysql_connect() will use
411; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
412; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
413' at MYSQL_PORT.
414mysql.default_port =
415
416; Default socket name for local MySQL connects.  If empty, uses the built-in
417; MySQL defaults.
418mysql.default_socket =
419
420; Default host for mysql_connect() (doesn't apply in safe mode).
421mysql.default_host =
422
423; Default user for mysql_connect() (doesn't apply in safe mode).
424mysql.default_user =
425
426; Default password for mysql_connect() (doesn't apply in safe mode).
427; Note that this is generally a *bad* idea to store passwords in this file.
428; *Any* user with PHP access can run 'echo cfg_get_var("mysql.default_password")
429; and reveal this password!  And of course, any users with read access to this
430; file will be able to reveal the password as well.
431mysql.default_password =
432
433[mSQL]
434; Allow or prevent persistent links.
435msql.allow_persistent = On
436
437; Maximum number of persistent links.  -1 means no limit.
438msql.max_persistent = -1
439
440; Maximum number of links (persistent+non persistent).  -1 means no limit.
441msql.max_links = -1
442
443[PostgresSQL]
444; Allow or prevent persistent links.
445pgsql.allow_persistent = On
446
447; Maximum number of persistent links.  -1 means no limit.
448pgsql.max_persistent = -1
449
450; Maximum number of links (persistent+non persistent).  -1 means no limit.
451pgsql.max_links = -1
452
453[Sybase]
454; Allow or prevent persistent links.
455sybase.allow_persistent = On
456
457; Maximum number of persistent links.  -1 means no limit.
458sybase.max_persistent = -1
459
460; Maximum number of links (persistent + non-persistent).  -1 means no limit.
461sybase.max_links = -1
462
463sybase.interface_file = "/etc/freetds/interfaces"
464
465; Minimum error severity to display.
466sybase.min_error_severity = 10
467
468; Minimum message severity to display.
469sybase.min_message_severity = 10
470
471; Compatability mode with old versions of PHP 3.0.
472; If on, this will cause PHP to automatically assign types to results according
473; to their Sybase type, instead of treating them all as strings.  This
474; compatability mode will probably not stay around forever, so try applying
475; whatever necessary changes to your code, and turn it off.
476sybase.compatability_mode = Off
477
478[Sybase-CT]
479; Allow or prevent persistent links.
480sybct.allow_persistent = On
481
482; Maximum number of persistent links.  -1 means no limit.
483sybct.max_persistent = -1
484
485; Maximum number of links (persistent + non-persistent).  -1 means no limit.
486sybct.max_links = -1
487
488; Minimum server message severity to display.
489sybct.min_server_severity = 10
490
491; Minimum client message severity to display.
492sybct.min_client_severity = 10
493
494[bcmath]
495; Number of decimal digits for all bcmath functions.
496bcmath.scale = 0
497
498[browscap]
499;browscap = extra/browscap.ini
500
501[Informix]
502; Default host for ifx_connect() (doesn't apply in safe mode).
503ifx.default_host =
504
505; Default user for ifx_connect() (doesn't apply in safe mode).
506ifx.default_user =
507
508; Default password for ifx_connect() (doesn't apply in safe mode).
509ifx.default_password =
510
511; Allow or prevent persistent links.
512ifx.allow_persistent = On
513
514; Maximum number of persistent links.  -1 means no limit.
515ifx.max_persistent = -1
516
517; Maximum number of links (persistent + non-persistent).  -1 means no limit.
518ifx.max_links = -1
519
520; If on, select statements return the contents of a text blob instead of its id.
521ifx.textasvarchar = 0
522
523; If on, select statements return the contents of a byte blob instead of its id.
524ifx.byteasvarchar = 0
525
526; Trailing blanks are stripped from fixed-length char columns.  May help the
527; life of Informix SE users.
528ifx.charasvarchar = 0
529
530; If on, the contents of text and byte blobs are dumped to a file instead of
531; keeping them in memory.
532ifx.blobinfile = 0
533
534; NULL's are returned as empty strings, unless this is set to 1.  In that case,
535; NULL's are returned as string 'NULL'.
536ifx.nullformat = 0
537
538[Session]
539; Handler used to store/retrieve data.
540session.save_handler = files
541
542; Argument passed to save_handler.  In the case of files, this is the path
543; where data files are stored. Note: Windows users have to change this
544; variable in order to use PHP's session functions.
545session.save_path = /var/lib/php4/
546
547; Whether to use cookies.
548session.use_cookies = 1
549
550
551; Name of the session (used as cookie name).
552session.name = PHPSESSID
553
554; Initialize session on request startup.
555session.auto_start = 0
556
557; Lifetime in seconds of cookie or, if 0, until browser is restarted.
558session.cookie_lifetime = 0
559
560; The path for which the cookie is valid.
561session.cookie_path = /
562
563; The domain for which the cookie is valid.
564session.cookie_domain =
565
566; Handler used to serialize data.  php is the standard serializer of PHP.
567session.serialize_handler = php
568
569; Percentual probability that the 'garbage collection' process is started
570; on every session initialization.
571session.gc_probability = 1
572
573; After this number of seconds, stored data will be seen as 'garbage' and
574; cleaned up by the garbage collection process.
575session.gc_maxlifetime = 1440
576
577; Check HTTP Referer to invalidate externally stored URLs containing ids.
578session.referer_check =
579
580; How many bytes to read from the file.
581session.entropy_length = 0
582
583; Specified here to create the session id.
584session.entropy_file =
585
586;session.entropy_length = 16
587
588;session.entropy_file = /dev/urandom
589
590; Set to {nocache,private,public} to determine HTTP caching aspects.
591session.cache_limiter = nocache
592
593; Document expires after n minutes.
594session.cache_expire = 180
595
596; use transient sid support if enabled by compiling with --enable-trans-sid.
597session.use_trans_sid = 1
598
599url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
600
601[MSSQL]
602; Allow or prevent persistent links.
603mssql.allow_persistent = On
604
605; Maximum number of persistent links.  -1 means no limit.
606mssql.max_persistent = -1
607
608; Maximum number of links (persistent+non persistent).  -1 means no limit.
609mssql.max_links = -1
610
611; Minimum error severity to display.
612mssql.min_error_severity = 10
613
614; Minimum message severity to display.
615mssql.min_message_severity = 10
616
617; Compatability mode with old versions of PHP 3.0.
618mssql.compatability_mode = Off
619
620; Valid range 0 - 2147483647.  Default = 4096.
621;mssql.textlimit = 4096
622
623; Valid range 0 - 2147483647.  Default = 4096.
624;mssql.textsize = 4096
625
626; Limits the number of records in each batch.  0 = all records in one batch.
627;mssql.batchsize = 0
628
629[Assertion]
630; Assert(expr); active by default.
631;assert.active = On
632
633; Issue a PHP warning for each failed assertion.
634;assert.warning = On
635
636; Don't bail out by default.
637;assert.bail = Off
638
639; User-function to be called if an assertion fails.
640;assert.callback = 0
641
642; Eval the expression with current error_reporting().  Set to true if you want
643; error_reporting(0) around the eval().
644;assert.quiet_eval = 0
645
646[Ingres II]
647; Allow or prevent persistent links.
648ingres.allow_persistent = On
649
650; Maximum number of persistent links.  -1 means no limit.
651ingres.max_persistent = -1
652
653; Maximum number of links, including persistents.  -1 means no limit.
654ingres.max_links = -1
655
656; Default database (format: [node_id::]dbname[/srv_class]).
657ingres.default_database =
658
659; Default user.
660ingres.default_user =
661
662; Default password.
663ingres.default_password =
664
665[Verisign Payflow Pro]
666; Default Payflow Pro server.
667pfpro.defaulthost = "test-payflow.verisign.com"
668
669; Default port to connect to.
670pfpro.defaultport = 443
671
672; Default timeout in seconds.
673pfpro.defaulttimeout = 30
674
675; Default proxy IP address (if required).
676;pfpro.proxyaddress =
677
678; Default proxy port.
679;pfpro.proxyport =
680
681; Default proxy logon.
682;pfpro.proxylogon =
683
684; Default proxy password.
685;pfpro.proxypassword =
686
687[Sockets]
688; Use the system read() function instead of the php_read() wrapper.
689sockets.use_system_read = On
690
691[com]
692; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
693;com.typelib_file =
694; allow Distributed-COM calls
695;com.allow_dcom = true
696; autoregister constants of a components typlib on com_load()
697;com.autoregister_typelib = true
698; register constants casesensitive
699;com.autoregister_casesensitive = false
700; show warnings on duplicate constat registrations
701;com.autoregister_verbose = true
702
703[Printer]
704;printer.default_printer = ""
705
706[mbstring]
707;mbstring.internal_encoding = EUC-JP
708;mbstring.http_input = auto
709;mbstring.http_output = SJIS
710;mbstring.detect_order = auto
711;mbstring.substitute_character = none;
712
713[FrontBase]
714;fbsql.allow_persistant = On
715;fbsql.autocommit = On
716;fbsql.default_database =
717;fbsql.default_database_password =
718;fbsql.default_host =
719;fbsql.default_password =
720;fbsql.default_user = "_SYSTEM"
721;fbsql.generate_warnings = Off
722;fbsql.max_connections = 128
723;fbsql.max_links = 128
724;fbsql.max_persistent = -1
725;fbsql.max_results = 128
726;fbsql.mbatchSize = 1000
727
728; Local Variables:
729; tab-width: 4
730; End:
731extension=mysql.so
Note: See TracBrowser for help on using the repository browser.