· 10 years ago · Dec 02, 2015, 07:42 PM
1#
2# This is the main Apache HTTP server configuration file. It contains the
3# configuration directives that give the server its instructions.
4# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
5# In particular, see
6# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
7# for a discussion of each configuration directive.
8#
9# Do NOT simply read the instructions in here without understanding
10# what they do. They're here only as hints or reminders. If you are unsure
11# consult the online docs. You have been warned.
12#
13# Configuration and logfile names: If the filenames you specify for many
14# of the server's control files begin with "/" (or "drive:/" for Win32), the
15# server will use that explicit path. If the filenames do *not* begin
16# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
17# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
19# will be interpreted as '/logs/access_log'.
20
21#
22# ServerRoot: The top of the directory tree under which the server's
23# configuration, error, and log files are kept.
24#
25# Do not add a slash at the end of the directory path. If you point
26# ServerRoot at a non-local disk, be sure to specify a local disk on the
27# Mutex directive, if file-based mutexes are used. If you wish to share the
28# same ServerRoot for multiple httpd daemons, you will need to change at
29# least PidFile.
30#
31ServerRoot "/etc/httpd"
32
33#
34# Mutex: Allows you to set the mutex mechanism and mutex file directory
35# for individual mutexes, or change the global defaults
36#
37# Uncomment and change the directory if mutexes are file-based and the default
38# mutex file directory is not on a local disk or is not appropriate for some
39# other reason.
40#
41# Mutex default:/run/httpd
42
43#
44# Listen: Allows you to bind Apache to specific IP addresses and/or
45# ports, instead of the default. See also the <VirtualHost>
46# directive.
47#
48# Change this to Listen on specific IP addresses as shown below to
49# prevent Apache from glomming onto all bound IP addresses.
50#
51#Listen 12.34.56.78:80
52Listen 80
53
54#
55# Dynamic Shared Object (DSO) Support
56#
57# To be able to use the functionality of a module which was built as a DSO you
58# have to place corresponding `LoadModule' lines at this location so the
59# directives contained in it are actually available _before_ they are used.
60# Statically compiled modules (those listed by `httpd -l') do not need
61# to be loaded here.
62#
63# Example:
64# LoadModule foo_module modules/mod_foo.so
65#
66LoadModule authn_file_module modules/mod_authn_file.so
67#LoadModule authn_dbm_module modules/mod_authn_dbm.so
68#LoadModule authn_anon_module modules/mod_authn_anon.so
69#LoadModule authn_dbd_module modules/mod_authn_dbd.so
70#LoadModule authn_socache_module modules/mod_authn_socache.so
71LoadModule authn_core_module modules/mod_authn_core.so
72LoadModule authz_host_module modules/mod_authz_host.so
73LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
74LoadModule authz_user_module modules/mod_authz_user.so
75#LoadModule authz_dbm_module modules/mod_authz_dbm.so
76#LoadModule authz_owner_module modules/mod_authz_owner.so
77#LoadModule authz_dbd_module modules/mod_authz_dbd.so
78LoadModule authz_core_module modules/mod_authz_core.so
79#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
80#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
81LoadModule access_compat_module modules/mod_access_compat.so
82LoadModule auth_basic_module modules/mod_auth_basic.so
83#LoadModule auth_form_module modules/mod_auth_form.so
84#LoadModule auth_digest_module modules/mod_auth_digest.so
85#LoadModule allowmethods_module modules/mod_allowmethods.so
86#LoadModule file_cache_module modules/mod_file_cache.so
87#LoadModule cache_module modules/mod_cache.so
88#LoadModule cache_disk_module modules/mod_cache_disk.so
89#LoadModule cache_socache_module modules/mod_cache_socache.so
90#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
91#LoadModule socache_dbm_module modules/mod_socache_dbm.so
92#LoadModule socache_memcache_module modules/mod_socache_memcache.so
93#LoadModule watchdog_module modules/mod_watchdog.so
94#LoadModule macro_module modules/mod_macro.so
95#LoadModule dbd_module modules/mod_dbd.so
96#LoadModule dumpio_module modules/mod_dumpio.so
97#LoadModule echo_module modules/mod_echo.so
98#LoadModule buffer_module modules/mod_buffer.so
99#LoadModule data_module modules/mod_data.so
100#LoadModule ratelimit_module modules/mod_ratelimit.so
101LoadModule reqtimeout_module modules/mod_reqtimeout.so
102#LoadModule ext_filter_module modules/mod_ext_filter.so
103#LoadModule request_module modules/mod_request.so
104LoadModule include_module modules/mod_include.so
105LoadModule filter_module modules/mod_filter.so
106#LoadModule reflector_module modules/mod_reflector.so
107#LoadModule substitute_module modules/mod_substitute.so
108#LoadModule sed_module modules/mod_sed.so
109#LoadModule charset_lite_module modules/mod_charset_lite.so
110#LoadModule deflate_module modules/mod_deflate.so
111#LoadModule xml2enc_module modules/mod_xml2enc.so
112#LoadModule proxy_html_module modules/mod_proxy_html.so
113LoadModule mime_module modules/mod_mime.so
114#LoadModule http2_module modules/mod_http2.so
115#LoadModule ldap_module modules/mod_ldap.so
116LoadModule log_config_module modules/mod_log_config.so
117#LoadModule log_debug_module modules/mod_log_debug.so
118#LoadModule log_forensic_module modules/mod_log_forensic.so
119#LoadModule logio_module modules/mod_logio.so
120#LoadModule lua_module modules/mod_lua.so
121LoadModule env_module modules/mod_env.so
122#LoadModule mime_magic_module modules/mod_mime_magic.so
123#LoadModule cern_meta_module modules/mod_cern_meta.so
124#LoadModule expires_module modules/mod_expires.so
125LoadModule headers_module modules/mod_headers.so
126#LoadModule ident_module modules/mod_ident.so
127#LoadModule usertrack_module modules/mod_usertrack.so
128#LoadModule unique_id_module modules/mod_unique_id.so
129LoadModule setenvif_module modules/mod_setenvif.so
130LoadModule version_module modules/mod_version.so
131#LoadModule remoteip_module modules/mod_remoteip.so
132LoadModule proxy_module modules/mod_proxy.so
133LoadModule proxy_connect_module modules/mod_proxy_connect.so
134LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
135LoadModule proxy_http_module modules/mod_proxy_http.so
136LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
137LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
138#LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
139LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
140LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
141LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
142LoadModule proxy_express_module modules/mod_proxy_express.so
143#LoadModule session_module modules/mod_session.so
144#LoadModule session_cookie_module modules/mod_session_cookie.so
145#LoadModule session_crypto_module modules/mod_session_crypto.so
146#LoadModule session_dbd_module modules/mod_session_dbd.so
147LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
148#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
149#LoadModule ssl_module modules/mod_ssl.so
150#LoadModule dialup_module modules/mod_dialup.so
151LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
152LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
153LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
154LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
155#LoadModule mpm_event_module modules/mod_mpm_event.so
156LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
157#LoadModule mpm_worker_module modules/mod_mpm_worker.so
158LoadModule unixd_module modules/mod_unixd.so
159#LoadModule heartbeat_module modules/mod_heartbeat.so
160#LoadModule heartmonitor_module modules/mod_heartmonitor.so
161#LoadModule dav_module modules/mod_dav.so
162LoadModule status_module modules/mod_status.so
163LoadModule autoindex_module modules/mod_autoindex.so
164#LoadModule asis_module modules/mod_asis.so
165#LoadModule info_module modules/mod_info.so
166#LoadModule suexec_module modules/mod_suexec.so
167<IfModule !mpm_prefork_module>
168 #LoadModule cgid_module modules/mod_cgid.so
169</IfModule>
170<IfModule mpm_prefork_module>
171 #LoadModule cgi_module modules/mod_cgi.so
172</IfModule>
173#LoadModule dav_fs_module modules/mod_dav_fs.so
174#LoadModule dav_lock_module modules/mod_dav_lock.so
175#LoadModule vhost_alias_module modules/mod_vhost_alias.so
176LoadModule negotiation_module modules/mod_negotiation.so
177LoadModule dir_module modules/mod_dir.so
178#LoadModule imagemap_module modules/mod_imagemap.so
179#LoadModule actions_module modules/mod_actions.so
180#LoadModule speling_module modules/mod_speling.so
181LoadModule userdir_module modules/mod_userdir.so
182LoadModule alias_module modules/mod_alias.so
183#LoadModule rewrite_module modules/mod_rewrite.so
184
185<IfModule unixd_module>
186#
187# If you wish httpd to run as a different user or group, you must run
188# httpd as root initially and it will switch.
189#
190# User/Group: The name (or #number) of the user/group to run httpd as.
191# It is usually good practice to create a dedicated user and group for
192# running httpd, as with most system services.
193#
194User http
195Group http
196
197</IfModule>
198
199# 'Main' server configuration
200#
201# The directives in this section set up the values used by the 'main'
202# server, which responds to any requests that aren't handled by a
203# <VirtualHost> definition. These values also provide defaults for
204# any <VirtualHost> containers you may define later in the file.
205#
206# All of these directives may appear inside <VirtualHost> containers,
207# in which case these default settings will be overridden for the
208# virtual host being defined.
209#
210
211#
212# ServerAdmin: Your address, where problems with the server should be
213# e-mailed. This address appears on some server-generated pages, such
214# as error documents. e.g. admin@your-domain.com
215#
216ServerAdmin spechter94@gmx.net
217
218#
219# ServerName gives the name and port that the server uses to identify itself.
220# This can often be determined automatically, but we recommend you specify
221# it explicitly to prevent problems during startup.
222#
223# If your host doesn't have a registered DNS name, enter its IP address here.
224#
225#ServerName www.example.com:80
226
227#
228# Deny access to the entirety of your server's filesystem. You must
229# explicitly permit access to web content directories in other
230# <Directory> blocks below.
231#
232<Directory />
233 AllowOverride none
234 Require all denied
235</Directory>
236
237#
238# Note that from this point forward you must specifically allow
239# particular features to be enabled - so if something's not working as
240# you might expect, make sure that you have specifically enabled it
241# below.
242#
243
244#
245# DocumentRoot: The directory out of which you will serve your
246# documents. By default, all requests are taken from this directory, but
247# symbolic links and aliases may be used to point to other locations.
248#
249DocumentRoot "/srv/http"
250<Directory "/srv/http">
251 #
252 # Possible values for the Options directive are "None", "All",
253 # or any combination of:
254 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
255 #
256 # Note that "MultiViews" must be named *explicitly* --- "Options All"
257 # doesn't give it to you.
258 #
259 # The Options directive is both complicated and important. Please see
260 # http://httpd.apache.org/docs/2.4/mod/core.html#options
261 # for more information.
262 #
263 Options Indexes FollowSymLinks
264
265 #
266 # AllowOverride controls what directives may be placed in .htaccess files.
267 # It can be "All", "None", or any combination of the keywords:
268 # AllowOverride FileInfo AuthConfig Limit
269 #
270 AllowOverride None
271
272 #
273 # Controls who can get stuff from this server.
274 #
275 Require all granted
276</Directory>
277
278#
279# DirectoryIndex: sets the file that Apache will serve if a directory
280# is requested.
281#
282<IfModule dir_module>
283 DirectoryIndex index.html
284</IfModule>
285
286#
287# The following lines prevent .htaccess and .htpasswd files from being
288# viewed by Web clients.
289#
290<Files ".ht*">
291 Require all denied
292</Files>
293
294#
295# ErrorLog: The location of the error log file.
296# If you do not specify an ErrorLog directive within a <VirtualHost>
297# container, error messages relating to that virtual host will be
298# logged here. If you *do* define an error logfile for a <VirtualHost>
299# container, that host's errors will be logged there and not here.
300#
301ErrorLog "/var/log/httpd/error_log"
302
303#
304# LogLevel: Control the number of messages logged to the error_log.
305# Possible values include: debug, info, notice, warn, error, crit,
306# alert, emerg.
307#
308LogLevel warn
309
310<IfModule log_config_module>
311 #
312 # The following directives define some format nicknames for use with
313 # a CustomLog directive (see below).
314 #
315 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
316 LogFormat "%h %l %u %t \"%r\" %>s %b" common
317
318 <IfModule logio_module>
319 # You need to enable mod_logio.c to use %I and %O
320 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
321 </IfModule>
322
323 #
324 # The location and format of the access logfile (Common Logfile Format).
325 # If you do not define any access logfiles within a <VirtualHost>
326 # container, they will be logged here. Contrariwise, if you *do*
327 # define per-<VirtualHost> access logfiles, transactions will be
328 # logged therein and *not* in this file.
329 #
330 CustomLog "/var/log/httpd/access_log" common
331
332 #
333 # If you prefer a logfile with access, agent, and referer information
334 # (Combined Logfile Format) you can use the following directive.
335 #
336 #CustomLog "/var/log/httpd/access_log" combined
337</IfModule>
338
339<IfModule alias_module>
340 #
341 # Redirect: Allows you to tell clients about documents that used to
342 # exist in your server's namespace, but do not anymore. The client
343 # will make a new request for the document at its new location.
344 # Example:
345 # Redirect permanent /foo http://www.example.com/bar
346
347 #
348 # Alias: Maps web paths into filesystem paths and is used to
349 # access content that does not live under the DocumentRoot.
350 # Example:
351 # Alias /webpath /full/filesystem/path
352 #
353 # If you include a trailing / on /webpath then the server will
354 # require it to be present in the URL. You will also likely
355 # need to provide a <Directory> section to allow access to
356 # the filesystem path.
357
358 #
359 # ScriptAlias: This controls which directories contain server scripts.
360 # ScriptAliases are essentially the same as Aliases, except that
361 # documents in the target directory are treated as applications and
362 # run by the server when requested rather than as documents sent to the
363 # client. The same rules about trailing "/" apply to ScriptAlias
364 # directives as to Alias.
365 #
366 ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
367
368</IfModule>
369
370<IfModule cgid_module>
371 #
372 # ScriptSock: On threaded servers, designate the path to the UNIX
373 # socket used to communicate with the CGI daemon of mod_cgid.
374 #
375 #Scriptsock cgisock
376</IfModule>
377
378#
379# "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
380# CGI directory exists, if you have that configured.
381#
382<Directory "/srv/http/cgi-bin">
383 AllowOverride None
384 Options None
385 Require all granted
386</Directory>
387
388<IfModule mime_module>
389 #
390 # TypesConfig points to the file containing the list of mappings from
391 # filename extension to MIME-type.
392 #
393 TypesConfig conf/mime.types
394
395 #
396 # AddType allows you to add to or override the MIME configuration
397 # file specified in TypesConfig for specific file types.
398 #
399 #AddType application/x-gzip .tgz
400 #
401 # AddEncoding allows you to have certain browsers uncompress
402 # information on the fly. Note: Not all browsers support this.
403 #
404 #AddEncoding x-compress .Z
405 #AddEncoding x-gzip .gz .tgz
406 #
407 # If the AddEncoding directives above are commented-out, then you
408 # probably should define those extensions to indicate media types:
409 #
410 AddType application/x-compress .Z
411 AddType application/x-gzip .gz .tgz
412
413 #
414 # AddHandler allows you to map certain file extensions to "handlers":
415 # actions unrelated to filetype. These can be either built into the server
416 # or added with the Action directive (see below)
417 #
418 # To use CGI scripts outside of ScriptAliased directories:
419 # (You will also need to add "ExecCGI" to the "Options" directive.)
420 #
421 #AddHandler cgi-script .cgi
422
423 # For type maps (negotiated resources):
424 #AddHandler type-map var
425
426 #
427 # Filters allow you to process content before it is sent to the client.
428 #
429 # To parse .shtml files for server-side includes (SSI):
430 # (You will also need to add "Includes" to the "Options" directive.)
431 #
432 #AddType text/html .shtml
433 #AddOutputFilter INCLUDES .shtml
434</IfModule>
435
436#
437# The mod_mime_magic module allows the server to use various hints from the
438# contents of the file itself to determine its type. The MIMEMagicFile
439# directive tells the module where the hint definitions are located.
440#
441#MIMEMagicFile conf/magic
442
443#
444# Customizable error responses come in three flavors:
445# 1) plain text 2) local redirects 3) external redirects
446#
447# Some examples:
448#ErrorDocument 500 "The server made a boo boo."
449#ErrorDocument 404 /missing.html
450#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
451#ErrorDocument 402 http://www.example.com/subscription_info.html
452#
453
454#
455# MaxRanges: Maximum number of Ranges in a request before
456# returning the entire resource, or one of the special
457# values 'default', 'none' or 'unlimited'.
458# Default setting is to accept 200 Ranges.
459#MaxRanges unlimited
460
461#
462# EnableMMAP and EnableSendfile: On systems that support it,
463# memory-mapping or the sendfile syscall may be used to deliver
464# files. This usually improves server performance, but must
465# be turned off when serving from networked-mounted
466# filesystems or if support for these functions is otherwise
467# broken on your system.
468# Defaults: EnableMMAP On, EnableSendfile Off
469#
470#EnableMMAP off
471#EnableSendfile on
472
473# Supplemental configuration
474#
475# The configuration files in the conf/extra/ directory can be
476# included to add extra features or to modify the default configuration of
477# the server, or you may simply copy their contents here and change as
478# necessary.
479
480# Server-pool management (MPM specific)
481Include conf/extra/httpd-mpm.conf
482
483# Multi-language error messages
484Include conf/extra/httpd-multilang-errordoc.conf
485
486# Fancy directory listings
487Include conf/extra/httpd-autoindex.conf
488
489# Language settings
490Include conf/extra/httpd-languages.conf
491
492# User home directories
493Include conf/extra/httpd-userdir.conf
494
495# Real-time info on requests and configuration
496#Include conf/extra/httpd-info.conf
497
498# Virtual hosts
499#Include conf/extra/httpd-vhosts.conf
500
501# Local access to the Apache HTTP Server Manual
502#Include conf/extra/httpd-manual.conf
503
504# Distributed authoring and versioning (WebDAV)
505#Include conf/extra/httpd-dav.conf
506
507# Various default settings
508Include conf/extra/httpd-default.conf
509
510#PHP5
511Include conf/extra/php5_module.conf
512
513# Configure mod_proxy_html to understand HTML4/XHTML1
514<IfModule proxy_html_module>
515Include conf/extra/proxy-html.conf
516</IfModule>
517
518# Secure (SSL/TLS) connections
519#Include conf/extra/httpd-ssl.conf
520#
521# Note: The following must must be present to support
522# starting without SSL on platforms with no /dev/random equivalent
523# but a statically compiled-in mod_ssl.
524#
525<IfModule ssl_module>
526SSLRandomSeed startup builtin
527SSLRandomSeed connect builtin
528</IfModule>
529#
530# uncomment out the below to deal with user agents that deliberately
531# violate open standards by misusing DNT (DNT *must* be a specific
532# end-user choice)
533#
534#<IfModule setenvif_module>
535#BrowserMatch "MSIE 10.0;" bad_DNT
536#</IfModule>
537#<IfModule headers_module>
538#RequestHeader unset DNT env=bad_DNT
539#</IfModule>
540
541#Aktivieren von PHP
542LoadModule php5_module modules/libphp5.so
543
544Include conf/extra/owncloud.conf
545#############################################
546[PHP]
547
548;;;;;;;;;;;;;;;;;;;
549; About php.ini ;
550;;;;;;;;;;;;;;;;;;;
551; PHP's initialization file, generally called php.ini, is responsible for
552; configuring many of the aspects of PHP's behavior.
553
554; PHP attempts to find and load this configuration from a number of locations.
555; The following is a summary of its search order:
556; 1. SAPI module specific location.
557; 2. The PHPRC environment variable. (As of PHP 5.2.0)
558; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
559; 4. Current working directory (except CLI)
560; 5. The web server's directory (for SAPI modules), or directory of PHP
561; (otherwise in Windows)
562; 6. The directory from the --with-config-file-path compile time option, or the
563; Windows directory (C:\windows or C:\winnt)
564; See the PHP docs for more specific information.
565; http://php.net/configuration.file
566
567; The syntax of the file is extremely simple. Whitespace and lines
568; beginning with a semicolon are silently ignored (as you probably guessed).
569; Section headers (e.g. [Foo]) are also silently ignored, even though
570; they might mean something in the future.
571
572; Directives following the section heading [PATH=/www/mysite] only
573; apply to PHP files in the /www/mysite directory. Directives
574; following the section heading [HOST=www.example.com] only apply to
575; PHP files served from www.example.com. Directives set in these
576; special sections cannot be overridden by user-defined INI files or
577; at runtime. Currently, [PATH=] and [HOST=] sections only work under
578; CGI/FastCGI.
579; http://php.net/ini.sections
580
581; Directives are specified using the following syntax:
582; directive = value
583; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
584; Directives are variables used to configure PHP or PHP extensions.
585; There is no name validation. If PHP can't find an expected
586; directive because it is not set or is mistyped, a default value will be used.
587
588; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
589; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
590; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
591; previously set variable or directive (e.g. ${foo})
592
593; Expressions in the INI file are limited to bitwise operators and parentheses:
594; | bitwise OR
595; ^ bitwise XOR
596; & bitwise AND
597; ~ bitwise NOT
598; ! boolean NOT
599
600; Boolean flags can be turned on using the values 1, On, True or Yes.
601; They can be turned off using the values 0, Off, False or No.
602
603; An empty string can be denoted by simply not writing anything after the equal
604; sign, or by using the None keyword:
605
606; foo = ; sets foo to an empty string
607; foo = None ; sets foo to an empty string
608; foo = "None" ; sets foo to the string 'None'
609
610; If you use constants in your value, and these constants belong to a
611; dynamically loaded extension (either a PHP extension or a Zend extension),
612; you may only use these constants *after* the line that loads the extension.
613
614;;;;;;;;;;;;;;;;;;;
615; About this file ;
616;;;;;;;;;;;;;;;;;;;
617; PHP comes packaged with two INI files. One that is recommended to be used
618; in production environments and one that is recommended to be used in
619; development environments.
620
621; php.ini-production contains settings which hold security, performance and
622; best practices at its core. But please be aware, these settings may break
623; compatibility with older or less security conscience applications. We
624; recommending using the production ini in production and testing environments.
625
626; php.ini-development is very similar to its production variant, except it is
627; much more verbose when it comes to errors. We recommend using the
628; development version only in development environments, as errors shown to
629; application users can inadvertently leak otherwise secure information.
630
631; This is php.ini-production INI file.
632
633;;;;;;;;;;;;;;;;;;;
634; Quick Reference ;
635;;;;;;;;;;;;;;;;;;;
636; The following are all the settings which are different in either the production
637; or development versions of the INIs with respect to PHP's default behavior.
638; Please see the actual settings later in the document for more details as to why
639; we recommend these changes in PHP's behavior.
640
641; display_errors
642; Default Value: On
643; Development Value: On
644; Production Value: Off
645
646; display_startup_errors
647; Default Value: Off
648; Development Value: On
649; Production Value: Off
650
651; error_reporting
652; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
653; Development Value: E_ALL
654; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
655
656; html_errors
657; Default Value: On
658; Development Value: On
659; Production value: On
660
661; log_errors
662; Default Value: Off
663; Development Value: On
664; Production Value: On
665
666; max_input_time
667; Default Value: -1 (Unlimited)
668; Development Value: 60 (60 seconds)
669; Production Value: 60 (60 seconds)
670
671; output_buffering
672; Default Value: Off
673; Development Value: 4096
674; Production Value: 4096
675
676; register_argc_argv
677; Default Value: On
678; Development Value: Off
679; Production Value: Off
680
681; request_order
682; Default Value: None
683; Development Value: "GP"
684; Production Value: "GP"
685
686; session.gc_divisor
687; Default Value: 100
688; Development Value: 1000
689; Production Value: 1000
690
691; session.hash_bits_per_character
692; Default Value: 4
693; Development Value: 5
694; Production Value: 5
695
696; short_open_tag
697; Default Value: On
698; Development Value: Off
699; Production Value: Off
700
701; track_errors
702; Default Value: Off
703; Development Value: On
704; Production Value: Off
705
706; url_rewriter.tags
707; Default Value: "a=href,area=href,frame=src,form=,fieldset="
708; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
709; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
710
711; variables_order
712; Default Value: "EGPCS"
713; Development Value: "GPCS"
714; Production Value: "GPCS"
715
716;;;;;;;;;;;;;;;;;;;;
717; php.ini Options ;
718;;;;;;;;;;;;;;;;;;;;
719; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
720;user_ini.filename = ".user.ini"
721
722; To disable this feature set this option to empty value
723;user_ini.filename =
724
725; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
726;user_ini.cache_ttl = 300
727
728;;;;;;;;;;;;;;;;;;;;
729; Language Options ;
730;;;;;;;;;;;;;;;;;;;;
731
732; Enable the PHP scripting language engine under Apache.
733; http://php.net/engine
734engine = On
735
736; This directive determines whether or not PHP will recognize code between
737; <? and ?> tags as PHP source which should be processed as such. It is
738; generally recommended that <?php and ?> should be used and that this feature
739; should be disabled, as enabling it may result in issues when generating XML
740; documents, however this remains supported for backward compatibility reasons.
741; Note that this directive does not control the <?= shorthand tag, which can be
742; used regardless of this directive.
743; Default Value: On
744; Development Value: Off
745; Production Value: Off
746; http://php.net/short-open-tag
747short_open_tag = On
748
749; Allow ASP-style <% %> tags.
750; http://php.net/asp-tags
751asp_tags = Off
752
753; The number of significant digits displayed in floating point numbers.
754; http://php.net/precision
755precision = 14
756
757; Output buffering is a mechanism for controlling how much output data
758; (excluding headers and cookies) PHP should keep internally before pushing that
759; data to the client. If your application's output exceeds this setting, PHP
760; will send that data in chunks of roughly the size you specify.
761; Turning on this setting and managing its maximum buffer size can yield some
762; interesting side-effects depending on your application and web server.
763; You may be able to send headers and cookies after you've already sent output
764; through print or echo. You also may see performance benefits if your server is
765; emitting less packets due to buffered output versus PHP streaming the output
766; as it gets it. On production servers, 4096 bytes is a good setting for performance
767; reasons.
768; Note: Output buffering can also be controlled via Output Buffering Control
769; functions.
770; Possible Values:
771; On = Enabled and buffer is unlimited. (Use with caution)
772; Off = Disabled
773; Integer = Enables the buffer and sets its maximum size in bytes.
774; Note: This directive is hardcoded to Off for the CLI SAPI
775; Default Value: Off
776; Development Value: 4096
777; Production Value: 4096
778; http://php.net/output-buffering
779output_buffering = 4096
780
781; You can redirect all of the output of your scripts to a function. For
782; example, if you set output_handler to "mb_output_handler", character
783; encoding will be transparently converted to the specified encoding.
784; Setting any output handler automatically turns on output buffering.
785; Note: People who wrote portable scripts should not depend on this ini
786; directive. Instead, explicitly set the output handler using ob_start().
787; Using this ini directive may cause problems unless you know what script
788; is doing.
789; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
790; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
791; Note: output_handler must be empty if this is set 'On' !!!!
792; Instead you must use zlib.output_handler.
793; http://php.net/output-handler
794;output_handler =
795
796; Transparent output compression using the zlib library
797; Valid values for this option are 'off', 'on', or a specific buffer size
798; to be used for compression (default is 4KB)
799; Note: Resulting chunk size may vary due to nature of compression. PHP
800; outputs chunks that are few hundreds bytes each as a result of
801; compression. If you prefer a larger chunk size for better
802; performance, enable output_buffering in addition.
803; Note: You need to use zlib.output_handler instead of the standard
804; output_handler, or otherwise the output will be corrupted.
805; http://php.net/zlib.output-compression
806zlib.output_compression = Off
807
808; http://php.net/zlib.output-compression-level
809;zlib.output_compression_level = -1
810
811; You cannot specify additional output handlers if zlib.output_compression
812; is activated here. This setting does the same as output_handler but in
813; a different order.
814; http://php.net/zlib.output-handler
815;zlib.output_handler =
816
817; Implicit flush tells PHP to tell the output layer to flush itself
818; automatically after every output block. This is equivalent to calling the
819; PHP function flush() after each and every call to print() or echo() and each
820; and every HTML block. Turning this option on has serious performance
821; implications and is generally recommended for debugging purposes only.
822; http://php.net/implicit-flush
823; Note: This directive is hardcoded to On for the CLI SAPI
824implicit_flush = Off
825
826; The unserialize callback function will be called (with the undefined class'
827; name as parameter), if the unserializer finds an undefined class
828; which should be instantiated. A warning appears if the specified function is
829; not defined, or if the function doesn't include/implement the missing class.
830; So only set this entry, if you really want to implement such a
831; callback-function.
832unserialize_callback_func =
833
834; When floats & doubles are serialized store serialize_precision significant
835; digits after the floating point. The default value ensures that when floats
836; are decoded with unserialize, the data will remain the same.
837serialize_precision = 17
838
839; open_basedir, if set, limits all file operations to the defined directory
840; and below. This directive makes most sense if used in a per-directory
841; or per-virtualhost web server configuration file.
842; http://php.net/open-basedir
843open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/dev/urandom:/usr/share/webapps/owncloud
844
845; This directive allows you to disable certain functions for security reasons.
846; It receives a comma-delimited list of function names.
847; http://php.net/disable-functions
848disable_functions =
849
850; This directive allows you to disable certain classes for security reasons.
851; It receives a comma-delimited list of class names.
852; http://php.net/disable-classes
853disable_classes =
854
855; Colors for Syntax Highlighting mode. Anything that's acceptable in
856; <span style="color: ???????"> would work.
857; http://php.net/syntax-highlighting
858;highlight.string = #DD0000
859;highlight.comment = #FF9900
860;highlight.keyword = #007700
861;highlight.default = #0000BB
862;highlight.html = #000000
863
864; If enabled, the request will be allowed to complete even if the user aborts
865; the request. Consider enabling it if executing long requests, which may end up
866; being interrupted by the user or a browser timing out. PHP's default behavior
867; is to disable this feature.
868; http://php.net/ignore-user-abort
869;ignore_user_abort = On
870
871; Determines the size of the realpath cache to be used by PHP. This value should
872; be increased on systems where PHP opens many files to reflect the quantity of
873; the file operations performed.
874; http://php.net/realpath-cache-size
875;realpath_cache_size = 16k
876
877; Duration of time, in seconds for which to cache realpath information for a given
878; file or directory. For systems with rarely changing files, consider increasing this
879; value.
880; http://php.net/realpath-cache-ttl
881;realpath_cache_ttl = 120
882
883; Enables or disables the circular reference collector.
884; http://php.net/zend.enable-gc
885zend.enable_gc = On
886
887; If enabled, scripts may be written in encodings that are incompatible with
888; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
889; encodings. To use this feature, mbstring extension must be enabled.
890; Default: Off
891;zend.multibyte = Off
892
893; Allows to set the default encoding for the scripts. This value will be used
894; unless "declare(encoding=...)" directive appears at the top of the script.
895; Only affects if zend.multibyte is set.
896; Default: ""
897;zend.script_encoding =
898
899;;;;;;;;;;;;;;;;;
900; Miscellaneous ;
901;;;;;;;;;;;;;;;;;
902
903; Decides whether PHP may expose the fact that it is installed on the server
904; (e.g. by adding its signature to the Web server header). It is no security
905; threat in any way, but it makes it possible to determine whether you use PHP
906; on your server or not.
907; http://php.net/expose-php
908expose_php = On
909
910;;;;;;;;;;;;;;;;;;;
911; Resource Limits ;
912;;;;;;;;;;;;;;;;;;;
913
914; Maximum execution time of each script, in seconds
915; http://php.net/max-execution-time
916; Note: This directive is hardcoded to 0 for the CLI SAPI
917max_execution_time = 30
918
919; Maximum amount of time each script may spend parsing request data. It's a good
920; idea to limit this time on productions servers in order to eliminate unexpectedly
921; long running scripts.
922; Note: This directive is hardcoded to -1 for the CLI SAPI
923; Default Value: -1 (Unlimited)
924; Development Value: 60 (60 seconds)
925; Production Value: 60 (60 seconds)
926; http://php.net/max-input-time
927max_input_time = 60
928
929; Maximum input variable nesting level
930; http://php.net/max-input-nesting-level
931;max_input_nesting_level = 64
932
933; How many GET/POST/COOKIE input variables may be accepted
934; max_input_vars = 1000
935
936; Maximum amount of memory a script may consume (128MB)
937; http://php.net/memory-limit
938memory_limit = 128M
939
940;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
941; Error handling and logging ;
942;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
943
944; This directive informs PHP of which errors, warnings and notices you would like
945; it to take action for. The recommended way of setting values for this
946; directive is through the use of the error level constants and bitwise
947; operators. The error level constants are below here for convenience as well as
948; some common settings and their meanings.
949; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
950; those related to E_NOTICE and E_STRICT, which together cover best practices and
951; recommended coding standards in PHP. For performance reasons, this is the
952; recommend error reporting setting. Your production server shouldn't be wasting
953; resources complaining about best practices and coding standards. That's what
954; development servers and development settings are for.
955; Note: The php.ini-development file has this setting as E_ALL. This
956; means it pretty much reports everything which is exactly what you want during
957; development and early testing.
958;
959; Error Level Constants:
960; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
961; E_ERROR - fatal run-time errors
962; E_RECOVERABLE_ERROR - almost fatal run-time errors
963; E_WARNING - run-time warnings (non-fatal errors)
964; E_PARSE - compile-time parse errors
965; E_NOTICE - run-time notices (these are warnings which often result
966; from a bug in your code, but it's possible that it was
967; intentional (e.g., using an uninitialized variable and
968; relying on the fact it is automatically initialized to an
969; empty string)
970; E_STRICT - run-time notices, enable to have PHP suggest changes
971; to your code which will ensure the best interoperability
972; and forward compatibility of your code
973; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
974; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
975; initial startup
976; E_COMPILE_ERROR - fatal compile-time errors
977; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
978; E_USER_ERROR - user-generated error message
979; E_USER_WARNING - user-generated warning message
980; E_USER_NOTICE - user-generated notice message
981; E_DEPRECATED - warn about code that will not work in future versions
982; of PHP
983; E_USER_DEPRECATED - user-generated deprecation warnings
984;
985; Common Values:
986; E_ALL (Show all errors, warnings and notices including coding standards.)
987; E_ALL & ~E_NOTICE (Show all errors, except for notices)
988; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
989; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
990; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
991; Development Value: E_ALL
992; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
993; http://php.net/error-reporting
994error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
995
996; This directive controls whether or not and where PHP will output errors,
997; notices and warnings too. Error output is very useful during development, but
998; it could be very dangerous in production environments. Depending on the code
999; which is triggering the error, sensitive information could potentially leak
1000; out of your application such as database usernames and passwords or worse.
1001; For production environments, we recommend logging errors rather than
1002; sending them to STDOUT.
1003; Possible Values:
1004; Off = Do not display any errors
1005; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
1006; On or stdout = Display errors to STDOUT
1007; Default Value: On
1008; Development Value: On
1009; Production Value: Off
1010; http://php.net/display-errors
1011display_errors = Off
1012
1013; The display of errors which occur during PHP's startup sequence are handled
1014; separately from display_errors. PHP's default behavior is to suppress those
1015; errors from clients. Turning the display of startup errors on can be useful in
1016; debugging configuration problems. We strongly recommend you
1017; set this to 'off' for production servers.
1018; Default Value: Off
1019; Development Value: On
1020; Production Value: Off
1021; http://php.net/display-startup-errors
1022display_startup_errors = Off
1023
1024; Besides displaying errors, PHP can also log errors to locations such as a
1025; server-specific log, STDERR, or a location specified by the error_log
1026; directive found below. While errors should not be displayed on productions
1027; servers they should still be monitored and logging is a great way to do that.
1028; Default Value: Off
1029; Development Value: On
1030; Production Value: On
1031; http://php.net/log-errors
1032log_errors = On
1033
1034; Set maximum length of log_errors. In error_log information about the source is
1035; added. The default is 1024 and 0 allows to not apply any maximum length at all.
1036; http://php.net/log-errors-max-len
1037log_errors_max_len = 1024
1038
1039; Do not log repeated messages. Repeated errors must occur in same file on same
1040; line unless ignore_repeated_source is set true.
1041; http://php.net/ignore-repeated-errors
1042ignore_repeated_errors = Off
1043
1044; Ignore source of message when ignoring repeated messages. When this setting
1045; is On you will not log errors with repeated messages from different files or
1046; source lines.
1047; http://php.net/ignore-repeated-source
1048ignore_repeated_source = Off
1049
1050; If this parameter is set to Off, then memory leaks will not be shown (on
1051; stdout or in the log). This has only effect in a debug compile, and if
1052; error reporting includes E_WARNING in the allowed list
1053; http://php.net/report-memleaks
1054report_memleaks = On
1055
1056; This setting is on by default.
1057;report_zend_debug = 0
1058
1059; Store the last error/warning message in $php_errormsg (boolean). Setting this value
1060; to On can assist in debugging and is appropriate for development servers. It should
1061; however be disabled on production servers.
1062; Default Value: Off
1063; Development Value: On
1064; Production Value: Off
1065; http://php.net/track-errors
1066track_errors = Off
1067
1068; Turn off normal error reporting and emit XML-RPC error XML
1069; http://php.net/xmlrpc-errors
1070;xmlrpc_errors = 0
1071
1072; An XML-RPC faultCode
1073;xmlrpc_error_number = 0
1074
1075; When PHP displays or logs an error, it has the capability of formatting the
1076; error message as HTML for easier reading. This directive controls whether
1077; the error message is formatted as HTML or not.
1078; Note: This directive is hardcoded to Off for the CLI SAPI
1079; Default Value: On
1080; Development Value: On
1081; Production value: On
1082; http://php.net/html-errors
1083html_errors = On
1084
1085; If html_errors is set to On *and* docref_root is not empty, then PHP
1086; produces clickable error messages that direct to a page describing the error
1087; or function causing the error in detail.
1088; You can download a copy of the PHP manual from http://php.net/docs
1089; and change docref_root to the base URL of your local copy including the
1090; leading '/'. You must also specify the file extension being used including
1091; the dot. PHP's default behavior is to leave these settings empty, in which
1092; case no links to documentation are generated.
1093; Note: Never use this feature for production boxes.
1094; http://php.net/docref-root
1095; Examples
1096;docref_root = "/phpmanual/"
1097
1098; http://php.net/docref-ext
1099;docref_ext = .html
1100
1101; String to output before an error message. PHP's default behavior is to leave
1102; this setting blank.
1103; http://php.net/error-prepend-string
1104; Example:
1105;error_prepend_string = "<span style='color: #ff0000'>"
1106
1107; String to output after an error message. PHP's default behavior is to leave
1108; this setting blank.
1109; http://php.net/error-append-string
1110; Example:
1111;error_append_string = "</span>"
1112
1113; Log errors to specified file. PHP's default behavior is to leave this value
1114; empty.
1115; http://php.net/error-log
1116; Example:
1117;error_log = php_errors.log
1118; Log errors to syslog (Event Log on Windows).
1119;error_log = syslog
1120
1121;windows.show_crt_warning
1122; Default value: 0
1123; Development value: 0
1124; Production value: 0
1125
1126;;;;;;;;;;;;;;;;;
1127; Data Handling ;
1128;;;;;;;;;;;;;;;;;
1129
1130; The separator used in PHP generated URLs to separate arguments.
1131; PHP's default setting is "&".
1132; http://php.net/arg-separator.output
1133; Example:
1134;arg_separator.output = "&"
1135
1136; List of separator(s) used by PHP to parse input URLs into variables.
1137; PHP's default setting is "&".
1138; NOTE: Every character in this directive is considered as separator!
1139; http://php.net/arg-separator.input
1140; Example:
1141;arg_separator.input = ";&"
1142
1143; This directive determines which super global arrays are registered when PHP
1144; starts up. G,P,C,E & S are abbreviations for the following respective super
1145; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
1146; paid for the registration of these arrays and because ENV is not as commonly
1147; used as the others, ENV is not recommended on productions servers. You
1148; can still get access to the environment variables through getenv() should you
1149; need to.
1150; Default Value: "EGPCS"
1151; Development Value: "GPCS"
1152; Production Value: "GPCS";
1153; http://php.net/variables-order
1154variables_order = "GPCS"
1155
1156; This directive determines which super global data (G,P & C) should be
1157; registered into the super global array REQUEST. If so, it also determines
1158; the order in which that data is registered. The values for this directive
1159; are specified in the same manner as the variables_order directive,
1160; EXCEPT one. Leaving this value empty will cause PHP to use the value set
1161; in the variables_order directive. It does not mean it will leave the super
1162; globals array REQUEST empty.
1163; Default Value: None
1164; Development Value: "GP"
1165; Production Value: "GP"
1166; http://php.net/request-order
1167request_order = "GP"
1168
1169; This directive determines whether PHP registers $argv & $argc each time it
1170; runs. $argv contains an array of all the arguments passed to PHP when a script
1171; is invoked. $argc contains an integer representing the number of arguments
1172; that were passed when the script was invoked. These arrays are extremely
1173; useful when running scripts from the command line. When this directive is
1174; enabled, registering these variables consumes CPU cycles and memory each time
1175; a script is executed. For performance reasons, this feature should be disabled
1176; on production servers.
1177; Note: This directive is hardcoded to On for the CLI SAPI
1178; Default Value: On
1179; Development Value: Off
1180; Production Value: Off
1181; http://php.net/register-argc-argv
1182register_argc_argv = Off
1183
1184; When enabled, the ENV, REQUEST and SERVER variables are created when they're
1185; first used (Just In Time) instead of when the script starts. If these
1186; variables are not used within a script, having this directive on will result
1187; in a performance gain. The PHP directive register_argc_argv must be disabled
1188; for this directive to have any affect.
1189; http://php.net/auto-globals-jit
1190auto_globals_jit = On
1191
1192; Whether PHP will read the POST data.
1193; This option is enabled by default.
1194; Most likely, you won't want to disable this option globally. It causes $_POST
1195; and $_FILES to always be empty; the only way you will be able to read the
1196; POST data will be through the php://input stream wrapper. This can be useful
1197; to proxy requests or to process the POST data in a memory efficient fashion.
1198; http://php.net/enable-post-data-reading
1199;enable_post_data_reading = Off
1200
1201; Maximum size of POST data that PHP will accept.
1202; Its value may be 0 to disable the limit. It is ignored if POST data reading
1203; is disabled through enable_post_data_reading.
1204; http://php.net/post-max-size
1205post_max_size = 8M
1206
1207; Automatically add files before PHP document.
1208; http://php.net/auto-prepend-file
1209auto_prepend_file =
1210
1211; Automatically add files after PHP document.
1212; http://php.net/auto-append-file
1213auto_append_file =
1214
1215; By default, PHP will output a character encoding using
1216; the Content-type: header. To disable sending of the charset, simply
1217; set it to be empty.
1218;
1219; PHP's built-in default is text/html
1220; http://php.net/default-mimetype
1221default_mimetype = "text/html"
1222
1223; PHP's default character set is set to UTF-8.
1224; http://php.net/default-charset
1225default_charset = "UTF-8"
1226
1227; PHP internal character encoding is set to empty.
1228; If empty, default_charset is used.
1229; http://php.net/internal-encoding
1230;internal_encoding =
1231
1232; PHP input character encoding is set to empty.
1233; If empty, default_charset is used.
1234; http://php.net/input-encoding
1235;input_encoding =
1236
1237; PHP output character encoding is set to empty.
1238; If empty, default_charset is used.
1239; mbstring or iconv output handler is used.
1240; See also output_buffer.
1241; http://php.net/output-encoding
1242;output_encoding =
1243
1244; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
1245; to disable this feature and it will be removed in a future version.
1246; If post reading is disabled through enable_post_data_reading,
1247; $HTTP_RAW_POST_DATA is *NOT* populated.
1248; http://php.net/always-populate-raw-post-data
1249;always_populate_raw_post_data = -1
1250
1251;;;;;;;;;;;;;;;;;;;;;;;;;
1252; Paths and Directories ;
1253;;;;;;;;;;;;;;;;;;;;;;;;;
1254
1255; UNIX: "/path1:/path2"
1256include_path = ".:/usr/share/pear"
1257;
1258; Windows: "\path1;\path2"
1259;include_path = ".;c:\php\includes"
1260;
1261; PHP's default setting for include_path is ".;/path/to/php/pear"
1262; http://php.net/include-path
1263
1264; The root of the PHP pages, used only if nonempty.
1265; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
1266; if you are running php as a CGI under any web server (other than IIS)
1267; see documentation for security issues. The alternate is to use the
1268; cgi.force_redirect configuration below
1269; http://php.net/doc-root
1270doc_root =
1271
1272; The directory under which PHP opens the script using /~username used only
1273; if nonempty.
1274; http://php.net/user-dir
1275user_dir =
1276
1277; Directory in which the loadable extensions (modules) reside.
1278; http://php.net/extension-dir
1279extension_dir = "/usr/lib/php/modules/"
1280; On windows:
1281; extension_dir = "ext"
1282
1283; Directory where the temporary files should be placed.
1284; Defaults to the system default (see sys_get_temp_dir)
1285; sys_temp_dir = "/tmp"
1286
1287; Whether or not to enable the dl() function. The dl() function does NOT work
1288; properly in multithreaded servers, such as IIS or Zeus, and is automatically
1289; disabled on them.
1290; http://php.net/enable-dl
1291enable_dl = Off
1292
1293; cgi.force_redirect is necessary to provide security running PHP as a CGI under
1294; most web servers. Left undefined, PHP turns this on by default. You can
1295; turn it off here AT YOUR OWN RISK
1296; **You CAN safely turn this off for IIS, in fact, you MUST.**
1297; http://php.net/cgi.force-redirect
1298;cgi.force_redirect = 1
1299
1300; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
1301; every request. PHP's default behavior is to disable this feature.
1302;cgi.nph = 1
1303
1304; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
1305; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
1306; will look for to know it is OK to continue execution. Setting this variable MAY
1307; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
1308; http://php.net/cgi.redirect-status-env
1309;cgi.redirect_status_env =
1310
1311; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
1312; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
1313; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
1314; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
1315; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
1316; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
1317; http://php.net/cgi.fix-pathinfo
1318;cgi.fix_pathinfo=1
1319
1320; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
1321; security tokens of the calling client. This allows IIS to define the
1322; security context that the request runs under. mod_fastcgi under Apache
1323; does not currently support this feature (03/17/2002)
1324; Set to 1 if running under IIS. Default is zero.
1325; http://php.net/fastcgi.impersonate
1326;fastcgi.impersonate = 1
1327
1328; Disable logging through FastCGI connection. PHP's default behavior is to enable
1329; this feature.
1330;fastcgi.logging = 0
1331
1332; cgi.rfc2616_headers configuration option tells PHP what type of headers to
1333; use when sending HTTP response code. If set to 0, PHP sends Status: header that
1334; is supported by Apache. When this option is set to 1, PHP will send
1335; RFC2616 compliant header.
1336; Default is zero.
1337; http://php.net/cgi.rfc2616-headers
1338;cgi.rfc2616_headers = 0
1339
1340;;;;;;;;;;;;;;;;
1341; File Uploads ;
1342;;;;;;;;;;;;;;;;
1343
1344; Whether to allow HTTP file uploads.
1345; http://php.net/file-uploads
1346file_uploads = On
1347
1348; Temporary directory for HTTP uploaded files (will use system default if not
1349; specified).
1350; http://php.net/upload-tmp-dir
1351;upload_tmp_dir =
1352
1353; Maximum allowed size for uploaded files.
1354; http://php.net/upload-max-filesize
1355upload_max_filesize = 2M
1356
1357; Maximum number of files that can be uploaded via a single request
1358max_file_uploads = 20
1359
1360;;;;;;;;;;;;;;;;;;
1361; Fopen wrappers ;
1362;;;;;;;;;;;;;;;;;;
1363
1364; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
1365; http://php.net/allow-url-fopen
1366allow_url_fopen = On
1367
1368; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
1369; http://php.net/allow-url-include
1370allow_url_include = Off
1371
1372; Define the anonymous ftp password (your email address). PHP's default setting
1373; for this is empty.
1374; http://php.net/from
1375;from="john@doe.com"
1376
1377; Define the User-Agent string. PHP's default setting for this is empty.
1378; http://php.net/user-agent
1379;user_agent="PHP"
1380
1381; Default timeout for socket based streams (seconds)
1382; http://php.net/default-socket-timeout
1383default_socket_timeout = 60
1384
1385; If your scripts have to deal with files from Macintosh systems,
1386; or you are running on a Mac and need to deal with files from
1387; unix or win32 systems, setting this flag will cause PHP to
1388; automatically detect the EOL character in those files so that
1389; fgets() and file() will work regardless of the source of the file.
1390; http://php.net/auto-detect-line-endings
1391;auto_detect_line_endings = Off
1392
1393;;;;;;;;;;;;;;;;;;;;;;
1394; Dynamic Extensions ;
1395;;;;;;;;;;;;;;;;;;;;;;
1396
1397; If you wish to have an extension loaded automatically, use the following
1398; syntax:
1399;
1400; extension=modulename.extension
1401;
1402; For example, on Windows:
1403;
1404; extension=msql.dll
1405;
1406; ... or under UNIX:
1407;
1408; extension=msql.so
1409;
1410; ... or with a path:
1411;
1412; extension=/path/to/extension/msql.so
1413;
1414; If you only provide the name of the extension, PHP will look for it in its
1415; default extension directory.
1416;
1417;extension=bcmath.so
1418extension=bz2.so
1419;extension=calendar.so
1420extension=curl.so
1421;extension=dba.so
1422;extension=enchant.so
1423;extension=exif.so
1424;extension=ftp.so
1425extension=gd.so
1426extension=gettext.so
1427;extension=gmp.so
1428extension=iconv.so
1429;extension=imap.so
1430extension=intl.so
1431;extension=ldap.so
1432extension=mcrypt.so
1433;extension=mssql.so
1434extension=mysql.so
1435;extension=mysqli.so
1436;extension=odbc.so
1437;zend_extension=opcache.so
1438extension=openssl.so
1439extension=pdo_mysql.so
1440;extension=pdo_odbc.so
1441;extension=pdo_pgsql.so
1442;extension=pdo_sqlite.so
1443;extension=pgsql.so
1444;extension=phar.so
1445extension=posix.so
1446;extension=pspell.so
1447;extension=shmop.so
1448;extension=snmp.so
1449;extension=soap.so
1450;extension=sockets.so
1451;extension=sqlite3.so
1452;extension=sysvmsg.so
1453;extension=sysvsem.so
1454;extension=sysvshm.so
1455;extension=tidy.so
1456extension=xmlrpc.so
1457;extension=xsl.so
1458extension=zip.so
1459
1460;;;;;;;;;;;;;;;;;;;
1461; Module Settings ;
1462;;;;;;;;;;;;;;;;;;;
1463
1464[CLI Server]
1465; Whether the CLI web server uses ANSI color coding in its terminal output.
1466cli_server.color = On
1467
1468[Date]
1469; Defines the default timezone used by the date functions
1470; http://php.net/date.timezone
1471;date.timezone =
1472
1473; http://php.net/date.default-latitude
1474;date.default_latitude = 31.7667
1475
1476; http://php.net/date.default-longitude
1477;date.default_longitude = 35.2333
1478
1479; http://php.net/date.sunrise-zenith
1480;date.sunrise_zenith = 90.583333
1481
1482; http://php.net/date.sunset-zenith
1483;date.sunset_zenith = 90.583333
1484
1485[filter]
1486; http://php.net/filter.default
1487;filter.default = unsafe_raw
1488
1489; http://php.net/filter.default-flags
1490;filter.default_flags =
1491
1492[iconv]
1493; Use of this INI entry is deprecated, use global input_encoding instead.
1494; If empty, default_charset or input_encoding or iconv.input_encoding is used.
1495; The precedence is: default_charset < intput_encoding < iconv.input_encoding
1496;iconv.input_encoding =
1497
1498; Use of this INI entry is deprecated, use global internal_encoding instead.
1499; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
1500; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
1501;iconv.internal_encoding =
1502
1503; Use of this INI entry is deprecated, use global output_encoding instead.
1504; If empty, default_charset or output_encoding or iconv.output_encoding is used.
1505; The precedence is: default_charset < output_encoding < iconv.output_encoding
1506; To use an output encoding conversion, iconv's output handler must be set
1507; otherwise output encoding conversion cannot be performed.
1508;iconv.output_encoding =
1509
1510[intl]
1511;intl.default_locale =
1512; This directive allows you to produce PHP errors when some error
1513; happens within intl functions. The value is the level of the error produced.
1514; Default is 0, which does not produce any errors.
1515;intl.error_level = E_WARNING
1516
1517[sqlite]
1518; http://php.net/sqlite.assoc-case
1519;sqlite.assoc_case = 0
1520
1521[sqlite3]
1522;sqlite3.extension_dir =
1523
1524[Pcre]
1525;PCRE library backtracking limit.
1526; http://php.net/pcre.backtrack-limit
1527;pcre.backtrack_limit=100000
1528
1529;PCRE library recursion limit.
1530;Please note that if you set this value to a high number you may consume all
1531;the available process stack and eventually crash PHP (due to reaching the
1532;stack size limit imposed by the Operating System).
1533; http://php.net/pcre.recursion-limit
1534;pcre.recursion_limit=100000
1535
1536[Pdo]
1537; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
1538; http://php.net/pdo-odbc.connection-pooling
1539;pdo_odbc.connection_pooling=strict
1540
1541;pdo_odbc.db2_instance_name
1542
1543[Pdo_mysql]
1544; If mysqlnd is used: Number of cache slots for the internal result set cache
1545; http://php.net/pdo_mysql.cache_size
1546pdo_mysql.cache_size = 2000
1547
1548; Default socket name for local MySQL connects. If empty, uses the built-in
1549; MySQL defaults.
1550; http://php.net/pdo_mysql.default-socket
1551pdo_mysql.default_socket=
1552
1553[Phar]
1554; http://php.net/phar.readonly
1555;phar.readonly = On
1556
1557; http://php.net/phar.require-hash
1558;phar.require_hash = On
1559
1560;phar.cache_list =
1561
1562[mail function]
1563; For Win32 only.
1564; http://php.net/smtp
1565SMTP = localhost
1566; http://php.net/smtp-port
1567smtp_port = 25
1568
1569; For Win32 only.
1570; http://php.net/sendmail-from
1571;sendmail_from = me@example.com
1572
1573; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
1574; http://php.net/sendmail-path
1575;sendmail_path =
1576
1577; Force the addition of the specified parameters to be passed as extra parameters
1578; to the sendmail binary. These parameters will always replace the value of
1579; the 5th parameter to mail().
1580;mail.force_extra_parameters =
1581
1582; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
1583mail.add_x_header = On
1584
1585; The path to a log file that will log all mail() calls. Log entries include
1586; the full path of the script, line number, To address and headers.
1587;mail.log =
1588; Log mail to syslog (Event Log on Windows).
1589;mail.log = syslog
1590
1591[SQL]
1592; http://php.net/sql.safe-mode
1593sql.safe_mode = Off
1594
1595[ODBC]
1596; http://php.net/odbc.default-db
1597;odbc.default_db = Not yet implemented
1598
1599; http://php.net/odbc.default-user
1600;odbc.default_user = Not yet implemented
1601
1602; http://php.net/odbc.default-pw
1603;odbc.default_pw = Not yet implemented
1604
1605; Controls the ODBC cursor model.
1606; Default: SQL_CURSOR_STATIC (default).
1607;odbc.default_cursortype
1608
1609; Allow or prevent persistent links.
1610; http://php.net/odbc.allow-persistent
1611odbc.allow_persistent = On
1612
1613; Check that a connection is still valid before reuse.
1614; http://php.net/odbc.check-persistent
1615odbc.check_persistent = On
1616
1617; Maximum number of persistent links. -1 means no limit.
1618; http://php.net/odbc.max-persistent
1619odbc.max_persistent = -1
1620
1621; Maximum number of links (persistent + non-persistent). -1 means no limit.
1622; http://php.net/odbc.max-links
1623odbc.max_links = -1
1624
1625; Handling of LONG fields. Returns number of bytes to variables. 0 means
1626; passthru.
1627; http://php.net/odbc.defaultlrl
1628odbc.defaultlrl = 4096
1629
1630; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
1631; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
1632; of odbc.defaultlrl and odbc.defaultbinmode
1633; http://php.net/odbc.defaultbinmode
1634odbc.defaultbinmode = 1
1635
1636;birdstep.max_links = -1
1637
1638[Interbase]
1639; Allow or prevent persistent links.
1640ibase.allow_persistent = 1
1641
1642; Maximum number of persistent links. -1 means no limit.
1643ibase.max_persistent = -1
1644
1645; Maximum number of links (persistent + non-persistent). -1 means no limit.
1646ibase.max_links = -1
1647
1648; Default database name for ibase_connect().
1649;ibase.default_db =
1650
1651; Default username for ibase_connect().
1652;ibase.default_user =
1653
1654; Default password for ibase_connect().
1655;ibase.default_password =
1656
1657; Default charset for ibase_connect().
1658;ibase.default_charset =
1659
1660; Default timestamp format.
1661ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1662
1663; Default date format.
1664ibase.dateformat = "%Y-%m-%d"
1665
1666; Default time format.
1667ibase.timeformat = "%H:%M:%S"
1668
1669[MySQL]
1670; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1671; http://php.net/mysql.allow_local_infile
1672mysql.allow_local_infile = On
1673
1674; Allow or prevent persistent links.
1675; http://php.net/mysql.allow-persistent
1676mysql.allow_persistent = On
1677
1678; If mysqlnd is used: Number of cache slots for the internal result set cache
1679; http://php.net/mysql.cache_size
1680mysql.cache_size = 2000
1681
1682; Maximum number of persistent links. -1 means no limit.
1683; http://php.net/mysql.max-persistent
1684mysql.max_persistent = -1
1685
1686; Maximum number of links (persistent + non-persistent). -1 means no limit.
1687; http://php.net/mysql.max-links
1688mysql.max_links = -1
1689
1690; Default port number for mysql_connect(). If unset, mysql_connect() will use
1691; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1692; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1693; at MYSQL_PORT.
1694; http://php.net/mysql.default-port
1695mysql.default_port =
1696
1697; Default socket name for local MySQL connects. If empty, uses the built-in
1698; MySQL defaults.
1699; http://php.net/mysql.default-socket
1700mysql.default_socket =
1701
1702; Default host for mysql_connect() (doesn't apply in safe mode).
1703; http://php.net/mysql.default-host
1704mysql.default_host =
1705
1706; Default user for mysql_connect() (doesn't apply in safe mode).
1707; http://php.net/mysql.default-user
1708mysql.default_user =
1709
1710; Default password for mysql_connect() (doesn't apply in safe mode).
1711; Note that this is generally a *bad* idea to store passwords in this file.
1712; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1713; and reveal this password! And of course, any users with read access to this
1714; file will be able to reveal the password as well.
1715; http://php.net/mysql.default-password
1716mysql.default_password =
1717
1718; Maximum time (in seconds) for connect timeout. -1 means no limit
1719; http://php.net/mysql.connect-timeout
1720mysql.connect_timeout = 60
1721
1722; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1723; SQL-Errors will be displayed.
1724; http://php.net/mysql.trace-mode
1725mysql.trace_mode = Off
1726
1727[MySQLi]
1728
1729; Maximum number of persistent links. -1 means no limit.
1730; http://php.net/mysqli.max-persistent
1731mysqli.max_persistent = -1
1732
1733; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1734; http://php.net/mysqli.allow_local_infile
1735;mysqli.allow_local_infile = On
1736
1737; Allow or prevent persistent links.
1738; http://php.net/mysqli.allow-persistent
1739mysqli.allow_persistent = On
1740
1741; Maximum number of links. -1 means no limit.
1742; http://php.net/mysqli.max-links
1743mysqli.max_links = -1
1744
1745; If mysqlnd is used: Number of cache slots for the internal result set cache
1746; http://php.net/mysqli.cache_size
1747mysqli.cache_size = 2000
1748
1749; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1750; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1751; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1752; at MYSQL_PORT.
1753; http://php.net/mysqli.default-port
1754mysqli.default_port = 3306
1755
1756; Default socket name for local MySQL connects. If empty, uses the built-in
1757; MySQL defaults.
1758; http://php.net/mysqli.default-socket
1759mysqli.default_socket =
1760
1761; Default host for mysql_connect() (doesn't apply in safe mode).
1762; http://php.net/mysqli.default-host
1763mysqli.default_host =
1764
1765; Default user for mysql_connect() (doesn't apply in safe mode).
1766; http://php.net/mysqli.default-user
1767mysqli.default_user =
1768
1769; Default password for mysqli_connect() (doesn't apply in safe mode).
1770; Note that this is generally a *bad* idea to store passwords in this file.
1771; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1772; and reveal this password! And of course, any users with read access to this
1773; file will be able to reveal the password as well.
1774; http://php.net/mysqli.default-pw
1775mysqli.default_pw =
1776
1777; Allow or prevent reconnect
1778mysqli.reconnect = Off
1779
1780[mysqlnd]
1781; Enable / Disable collection of general statistics by mysqlnd which can be
1782; used to tune and monitor MySQL operations.
1783; http://php.net/mysqlnd.collect_statistics
1784mysqlnd.collect_statistics = On
1785
1786; Enable / Disable collection of memory usage statistics by mysqlnd which can be
1787; used to tune and monitor MySQL operations.
1788; http://php.net/mysqlnd.collect_memory_statistics
1789mysqlnd.collect_memory_statistics = Off
1790
1791; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1792; http://php.net/mysqlnd.net_cmd_buffer_size
1793;mysqlnd.net_cmd_buffer_size = 2048
1794
1795; Size of a pre-allocated buffer used for reading data sent by the server in
1796; bytes.
1797; http://php.net/mysqlnd.net_read_buffer_size
1798;mysqlnd.net_read_buffer_size = 32768
1799
1800[OCI8]
1801
1802; Connection: Enables privileged connections using external
1803; credentials (OCI_SYSOPER, OCI_SYSDBA)
1804; http://php.net/oci8.privileged-connect
1805;oci8.privileged_connect = Off
1806
1807; Connection: The maximum number of persistent OCI8 connections per
1808; process. Using -1 means no limit.
1809; http://php.net/oci8.max-persistent
1810;oci8.max_persistent = -1
1811
1812; Connection: The maximum number of seconds a process is allowed to
1813; maintain an idle persistent connection. Using -1 means idle
1814; persistent connections will be maintained forever.
1815; http://php.net/oci8.persistent-timeout
1816;oci8.persistent_timeout = -1
1817
1818; Connection: The number of seconds that must pass before issuing a
1819; ping during oci_pconnect() to check the connection validity. When
1820; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1821; pings completely.
1822; http://php.net/oci8.ping-interval
1823;oci8.ping_interval = 60
1824
1825; Connection: Set this to a user chosen connection class to be used
1826; for all pooled server requests with Oracle 11g Database Resident
1827; Connection Pooling (DRCP). To use DRCP, this value should be set to
1828; the same string for all web servers running the same application,
1829; the database pool must be configured, and the connection string must
1830; specify to use a pooled server.
1831;oci8.connection_class =
1832
1833; High Availability: Using On lets PHP receive Fast Application
1834; Notification (FAN) events generated when a database node fails. The
1835; database must also be configured to post FAN events.
1836;oci8.events = Off
1837
1838; Tuning: This option enables statement caching, and specifies how
1839; many statements to cache. Using 0 disables statement caching.
1840; http://php.net/oci8.statement-cache-size
1841;oci8.statement_cache_size = 20
1842
1843; Tuning: Enables statement prefetching and sets the default number of
1844; rows that will be fetched automatically after statement execution.
1845; http://php.net/oci8.default-prefetch
1846;oci8.default_prefetch = 100
1847
1848; Compatibility. Using On means oci_close() will not close
1849; oci_connect() and oci_new_connect() connections.
1850; http://php.net/oci8.old-oci-close-semantics
1851;oci8.old_oci_close_semantics = Off
1852
1853[PostgreSQL]
1854; Allow or prevent persistent links.
1855; http://php.net/pgsql.allow-persistent
1856pgsql.allow_persistent = On
1857
1858; Detect broken persistent links always with pg_pconnect().
1859; Auto reset feature requires a little overheads.
1860; http://php.net/pgsql.auto-reset-persistent
1861pgsql.auto_reset_persistent = Off
1862
1863; Maximum number of persistent links. -1 means no limit.
1864; http://php.net/pgsql.max-persistent
1865pgsql.max_persistent = -1
1866
1867; Maximum number of links (persistent+non persistent). -1 means no limit.
1868; http://php.net/pgsql.max-links
1869pgsql.max_links = -1
1870
1871; Ignore PostgreSQL backends Notice message or not.
1872; Notice message logging require a little overheads.
1873; http://php.net/pgsql.ignore-notice
1874pgsql.ignore_notice = 0
1875
1876; Log PostgreSQL backends Notice message or not.
1877; Unless pgsql.ignore_notice=0, module cannot log notice message.
1878; http://php.net/pgsql.log-notice
1879pgsql.log_notice = 0
1880
1881[Sybase-CT]
1882; Allow or prevent persistent links.
1883; http://php.net/sybct.allow-persistent
1884sybct.allow_persistent = On
1885
1886; Maximum number of persistent links. -1 means no limit.
1887; http://php.net/sybct.max-persistent
1888sybct.max_persistent = -1
1889
1890; Maximum number of links (persistent + non-persistent). -1 means no limit.
1891; http://php.net/sybct.max-links
1892sybct.max_links = -1
1893
1894; Minimum server message severity to display.
1895; http://php.net/sybct.min-server-severity
1896sybct.min_server_severity = 10
1897
1898; Minimum client message severity to display.
1899; http://php.net/sybct.min-client-severity
1900sybct.min_client_severity = 10
1901
1902; Set per-context timeout
1903; http://php.net/sybct.timeout
1904;sybct.timeout=
1905
1906;sybct.packet_size
1907
1908; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
1909; Default: one minute
1910;sybct.login_timeout=
1911
1912; The name of the host you claim to be connecting from, for display by sp_who.
1913; Default: none
1914;sybct.hostname=
1915
1916; Allows you to define how often deadlocks are to be retried. -1 means "forever".
1917; Default: 0
1918;sybct.deadlock_retry_count=
1919
1920[bcmath]
1921; Number of decimal digits for all bcmath functions.
1922; http://php.net/bcmath.scale
1923bcmath.scale = 0
1924
1925[browscap]
1926; http://php.net/browscap
1927;browscap = extra/browscap.ini
1928
1929[Session]
1930; Handler used to store/retrieve data.
1931; http://php.net/session.save-handler
1932session.save_handler = files
1933
1934; Argument passed to save_handler. In the case of files, this is the path
1935; where data files are stored. Note: Windows users have to change this
1936; variable in order to use PHP's session functions.
1937;
1938; The path can be defined as:
1939;
1940; session.save_path = "N;/path"
1941;
1942; where N is an integer. Instead of storing all the session files in
1943; /path, what this will do is use subdirectories N-levels deep, and
1944; store the session data in those directories. This is useful if
1945; your OS has problems with many files in one directory, and is
1946; a more efficient layout for servers that handle many sessions.
1947;
1948; NOTE 1: PHP will not create this directory structure automatically.
1949; You can use the script in the ext/session dir for that purpose.
1950; NOTE 2: See the section on garbage collection below if you choose to
1951; use subdirectories for session storage
1952;
1953; The file storage module creates files using mode 600 by default.
1954; You can change that by using
1955;
1956; session.save_path = "N;MODE;/path"
1957;
1958; where MODE is the octal representation of the mode. Note that this
1959; does not overwrite the process's umask.
1960; http://php.net/session.save-path
1961;session.save_path = "/tmp"
1962
1963; Whether to use strict session mode.
1964; Strict session mode does not accept uninitialized session ID and regenerate
1965; session ID if browser sends uninitialized session ID. Strict mode protects
1966; applications from session fixation via session adoption vulnerability. It is
1967; disabled by default for maximum compatibility, but enabling it is encouraged.
1968; https://wiki.php.net/rfc/strict_sessions
1969session.use_strict_mode = 0
1970
1971; Whether to use cookies.
1972; http://php.net/session.use-cookies
1973session.use_cookies = 1
1974
1975; http://php.net/session.cookie-secure
1976;session.cookie_secure =
1977
1978; This option forces PHP to fetch and use a cookie for storing and maintaining
1979; the session id. We encourage this operation as it's very helpful in combating
1980; session hijacking when not specifying and managing your own session id. It is
1981; not the be-all and end-all of session hijacking defense, but it's a good start.
1982; http://php.net/session.use-only-cookies
1983session.use_only_cookies = 1
1984
1985; Name of the session (used as cookie name).
1986; http://php.net/session.name
1987session.name = PHPSESSID
1988
1989; Initialize session on request startup.
1990; http://php.net/session.auto-start
1991session.auto_start = 0
1992
1993; Lifetime in seconds of cookie or, if 0, until browser is restarted.
1994; http://php.net/session.cookie-lifetime
1995session.cookie_lifetime = 0
1996
1997; The path for which the cookie is valid.
1998; http://php.net/session.cookie-path
1999session.cookie_path = /
2000
2001; The domain for which the cookie is valid.
2002; http://php.net/session.cookie-domain
2003session.cookie_domain =
2004
2005; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
2006; http://php.net/session.cookie-httponly
2007session.cookie_httponly =
2008
2009; Handler used to serialize data. php is the standard serializer of PHP.
2010; http://php.net/session.serialize-handler
2011session.serialize_handler = php
2012
2013; Defines the probability that the 'garbage collection' process is started
2014; on every session initialization. The probability is calculated by using
2015; gc_probability/gc_divisor. Where session.gc_probability is the numerator
2016; and gc_divisor is the denominator in the equation. Setting this value to 1
2017; when the session.gc_divisor value is 100 will give you approximately a 1% chance
2018; the gc will run on any give request.
2019; Default Value: 1
2020; Development Value: 1
2021; Production Value: 1
2022; http://php.net/session.gc-probability
2023session.gc_probability = 1
2024
2025; Defines the probability that the 'garbage collection' process is started on every
2026; session initialization. The probability is calculated by using the following equation:
2027; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
2028; session.gc_divisor is the denominator in the equation. Setting this value to 1
2029; when the session.gc_divisor value is 100 will give you approximately a 1% chance
2030; the gc will run on any give request. Increasing this value to 1000 will give you
2031; a 0.1% chance the gc will run on any give request. For high volume production servers,
2032; this is a more efficient approach.
2033; Default Value: 100
2034; Development Value: 1000
2035; Production Value: 1000
2036; http://php.net/session.gc-divisor
2037session.gc_divisor = 1000
2038
2039; After this number of seconds, stored data will be seen as 'garbage' and
2040; cleaned up by the garbage collection process.
2041; http://php.net/session.gc-maxlifetime
2042session.gc_maxlifetime = 1440
2043
2044; NOTE: If you are using the subdirectory option for storing session files
2045; (see session.save_path above), then garbage collection does *not*
2046; happen automatically. You will need to do your own garbage
2047; collection through a shell script, cron entry, or some other method.
2048; For example, the following script would is the equivalent of
2049; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
2050; find /path/to/sessions -cmin +24 -type f | xargs rm
2051
2052; Check HTTP Referer to invalidate externally stored URLs containing ids.
2053; HTTP_REFERER has to contain this substring for the session to be
2054; considered as valid.
2055; http://php.net/session.referer-check
2056session.referer_check =
2057
2058; How many bytes to read from the file.
2059; http://php.net/session.entropy-length
2060;session.entropy_length = 32
2061
2062; Specified here to create the session id.
2063; http://php.net/session.entropy-file
2064; Defaults to /dev/urandom
2065; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
2066; If neither are found at compile time, the default is no entropy file.
2067; On windows, setting the entropy_length setting will activate the
2068; Windows random source (using the CryptoAPI)
2069;session.entropy_file = /dev/urandom
2070
2071; Set to {nocache,private,public,} to determine HTTP caching aspects
2072; or leave this empty to avoid sending anti-caching headers.
2073; http://php.net/session.cache-limiter
2074session.cache_limiter = nocache
2075
2076; Document expires after n minutes.
2077; http://php.net/session.cache-expire
2078session.cache_expire = 180
2079
2080; trans sid support is disabled by default.
2081; Use of trans sid may risk your users' security.
2082; Use this option with caution.
2083; - User may send URL contains active session ID
2084; to other person via. email/irc/etc.
2085; - URL that contains active session ID may be stored
2086; in publicly accessible computer.
2087; - User may access your site with the same session ID
2088; always using URL stored in browser's history or bookmarks.
2089; http://php.net/session.use-trans-sid
2090session.use_trans_sid = 0
2091
2092; Select a hash function for use in generating session ids.
2093; Possible Values
2094; 0 (MD5 128 bits)
2095; 1 (SHA-1 160 bits)
2096; This option may also be set to the name of any hash function supported by
2097; the hash extension. A list of available hashes is returned by the hash_algos()
2098; function.
2099; http://php.net/session.hash-function
2100session.hash_function = 0
2101
2102; Define how many bits are stored in each character when converting
2103; the binary hash data to something readable.
2104; Possible values:
2105; 4 (4 bits: 0-9, a-f)
2106; 5 (5 bits: 0-9, a-v)
2107; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
2108; Default Value: 4
2109; Development Value: 5
2110; Production Value: 5
2111; http://php.net/session.hash-bits-per-character
2112session.hash_bits_per_character = 5
2113
2114; The URL rewriter will look for URLs in a defined set of HTML tags.
2115; form/fieldset are special; if you include them here, the rewriter will
2116; add a hidden <input> field with the info which is otherwise appended
2117; to URLs. If you want XHTML conformity, remove the form entry.
2118; Note that all valid entries require a "=", even if no value follows.
2119; Default Value: "a=href,area=href,frame=src,form=,fieldset="
2120; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
2121; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
2122; http://php.net/url-rewriter.tags
2123url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
2124
2125; Enable upload progress tracking in $_SESSION
2126; Default Value: On
2127; Development Value: On
2128; Production Value: On
2129; http://php.net/session.upload-progress.enabled
2130;session.upload_progress.enabled = On
2131
2132; Cleanup the progress information as soon as all POST data has been read
2133; (i.e. upload completed).
2134; Default Value: On
2135; Development Value: On
2136; Production Value: On
2137; http://php.net/session.upload-progress.cleanup
2138;session.upload_progress.cleanup = On
2139
2140; A prefix used for the upload progress key in $_SESSION
2141; Default Value: "upload_progress_"
2142; Development Value: "upload_progress_"
2143; Production Value: "upload_progress_"
2144; http://php.net/session.upload-progress.prefix
2145;session.upload_progress.prefix = "upload_progress_"
2146
2147; The index name (concatenated with the prefix) in $_SESSION
2148; containing the upload progress information
2149; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
2150; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
2151; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
2152; http://php.net/session.upload-progress.name
2153;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
2154
2155; How frequently the upload progress should be updated.
2156; Given either in percentages (per-file), or in bytes
2157; Default Value: "1%"
2158; Development Value: "1%"
2159; Production Value: "1%"
2160; http://php.net/session.upload-progress.freq
2161;session.upload_progress.freq = "1%"
2162
2163; The minimum delay between updates, in seconds
2164; Default Value: 1
2165; Development Value: 1
2166; Production Value: 1
2167; http://php.net/session.upload-progress.min-freq
2168;session.upload_progress.min_freq = "1"
2169
2170[MSSQL]
2171; Allow or prevent persistent links.
2172mssql.allow_persistent = On
2173
2174; Maximum number of persistent links. -1 means no limit.
2175mssql.max_persistent = -1
2176
2177; Maximum number of links (persistent+non persistent). -1 means no limit.
2178mssql.max_links = -1
2179
2180; Minimum error severity to display.
2181mssql.min_error_severity = 10
2182
2183; Minimum message severity to display.
2184mssql.min_message_severity = 10
2185
2186; Compatibility mode with old versions of PHP 3.0.
2187mssql.compatibility_mode = Off
2188
2189; Connect timeout
2190;mssql.connect_timeout = 5
2191
2192; Query timeout
2193;mssql.timeout = 60
2194
2195; Valid range 0 - 2147483647. Default = 4096.
2196;mssql.textlimit = 4096
2197
2198; Valid range 0 - 2147483647. Default = 4096.
2199;mssql.textsize = 4096
2200
2201; Limits the number of records in each batch. 0 = all records in one batch.
2202;mssql.batchsize = 0
2203
2204; Specify how datetime and datetim4 columns are returned
2205; On => Returns data converted to SQL server settings
2206; Off => Returns values as YYYY-MM-DD hh:mm:ss
2207;mssql.datetimeconvert = On
2208
2209; Use NT authentication when connecting to the server
2210mssql.secure_connection = Off
2211
2212; Specify max number of processes. -1 = library default
2213; msdlib defaults to 25
2214; FreeTDS defaults to 4096
2215;mssql.max_procs = -1
2216
2217; Specify client character set.
2218; If empty or not set the client charset from freetds.conf is used
2219; This is only used when compiled with FreeTDS
2220;mssql.charset = "ISO-8859-1"
2221
2222[Assertion]
2223; Assert(expr); active by default.
2224; http://php.net/assert.active
2225;assert.active = On
2226
2227; Issue a PHP warning for each failed assertion.
2228; http://php.net/assert.warning
2229;assert.warning = On
2230
2231; Don't bail out by default.
2232; http://php.net/assert.bail
2233;assert.bail = Off
2234
2235; User-function to be called if an assertion fails.
2236; http://php.net/assert.callback
2237;assert.callback = 0
2238
2239; Eval the expression with current error_reporting(). Set to true if you want
2240; error_reporting(0) around the eval().
2241; http://php.net/assert.quiet-eval
2242;assert.quiet_eval = 0
2243
2244[COM]
2245; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
2246; http://php.net/com.typelib-file
2247;com.typelib_file =
2248
2249; allow Distributed-COM calls
2250; http://php.net/com.allow-dcom
2251;com.allow_dcom = true
2252
2253; autoregister constants of a components typlib on com_load()
2254; http://php.net/com.autoregister-typelib
2255;com.autoregister_typelib = true
2256
2257; register constants casesensitive
2258; http://php.net/com.autoregister-casesensitive
2259;com.autoregister_casesensitive = false
2260
2261; show warnings on duplicate constant registrations
2262; http://php.net/com.autoregister-verbose
2263;com.autoregister_verbose = true
2264
2265; The default character set code-page to use when passing strings to and from COM objects.
2266; Default: system ANSI code page
2267;com.code_page=
2268
2269[mbstring]
2270; language for internal character representation.
2271; This affects mb_send_mail() and mbstrig.detect_order.
2272; http://php.net/mbstring.language
2273;mbstring.language = Japanese
2274
2275; Use of this INI entry is deprecated, use global internal_encoding instead.
2276; internal/script encoding.
2277; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
2278; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
2279; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
2280;mbstring.internal_encoding =
2281
2282; Use of this INI entry is deprecated, use global input_encoding instead.
2283; http input encoding.
2284; mbstring.encoding_traslation = On is needed to use this setting.
2285; If empty, default_charset or input_encoding or mbstring.input is used.
2286; The precedence is: default_charset < intput_encoding < mbsting.http_input
2287; http://php.net/mbstring.http-input
2288;mbstring.http_input =
2289
2290; Use of this INI entry is deprecated, use global output_encoding instead.
2291; http output encoding.
2292; mb_output_handler must be registered as output buffer to function.
2293; If empty, default_charset or output_encoding or mbstring.http_output is used.
2294; The precedence is: default_charset < output_encoding < mbstring.http_output
2295; To use an output encoding conversion, mbstring's output handler must be set
2296; otherwise output encoding conversion cannot be performed.
2297; http://php.net/mbstring.http-output
2298;mbstring.http_output =
2299
2300; enable automatic encoding translation according to
2301; mbstring.internal_encoding setting. Input chars are
2302; converted to internal encoding by setting this to On.
2303; Note: Do _not_ use automatic encoding translation for
2304; portable libs/applications.
2305; http://php.net/mbstring.encoding-translation
2306;mbstring.encoding_translation = Off
2307
2308; automatic encoding detection order.
2309; "auto" detect order is changed according to mbstring.language
2310; http://php.net/mbstring.detect-order
2311;mbstring.detect_order = auto
2312
2313; substitute_character used when character cannot be converted
2314; one from another
2315; http://php.net/mbstring.substitute-character
2316;mbstring.substitute_character = none
2317
2318; overload(replace) single byte functions by mbstring functions.
2319; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
2320; etc. Possible values are 0,1,2,4 or combination of them.
2321; For example, 7 for overload everything.
2322; 0: No overload
2323; 1: Overload mail() function
2324; 2: Overload str*() functions
2325; 4: Overload ereg*() functions
2326; http://php.net/mbstring.func-overload
2327;mbstring.func_overload = 0
2328
2329; enable strict encoding detection.
2330; Default: Off
2331;mbstring.strict_detection = On
2332
2333; This directive specifies the regex pattern of content types for which mb_output_handler()
2334; is activated.
2335; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
2336;mbstring.http_output_conv_mimetype=
2337
2338[gd]
2339; Tell the jpeg decode to ignore warnings and try to create
2340; a gd image. The warning will then be displayed as notices
2341; disabled by default
2342; http://php.net/gd.jpeg-ignore-warning
2343;gd.jpeg_ignore_warning = 0
2344
2345[exif]
2346; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
2347; With mbstring support this will automatically be converted into the encoding
2348; given by corresponding encode setting. When empty mbstring.internal_encoding
2349; is used. For the decode settings you can distinguish between motorola and
2350; intel byte order. A decode setting cannot be empty.
2351; http://php.net/exif.encode-unicode
2352;exif.encode_unicode = ISO-8859-15
2353
2354; http://php.net/exif.decode-unicode-motorola
2355;exif.decode_unicode_motorola = UCS-2BE
2356
2357; http://php.net/exif.decode-unicode-intel
2358;exif.decode_unicode_intel = UCS-2LE
2359
2360; http://php.net/exif.encode-jis
2361;exif.encode_jis =
2362
2363; http://php.net/exif.decode-jis-motorola
2364;exif.decode_jis_motorola = JIS
2365
2366; http://php.net/exif.decode-jis-intel
2367;exif.decode_jis_intel = JIS
2368
2369[Tidy]
2370; The path to a default tidy configuration file to use when using tidy
2371; http://php.net/tidy.default-config
2372;tidy.default_config = /usr/local/lib/php/default.tcfg
2373
2374; Should tidy clean and repair output automatically?
2375; WARNING: Do not use this option if you are generating non-html content
2376; such as dynamic images
2377; http://php.net/tidy.clean-output
2378tidy.clean_output = Off
2379
2380[soap]
2381; Enables or disables WSDL caching feature.
2382; http://php.net/soap.wsdl-cache-enabled
2383soap.wsdl_cache_enabled=1
2384
2385; Sets the directory name where SOAP extension will put cache files.
2386; http://php.net/soap.wsdl-cache-dir
2387soap.wsdl_cache_dir="/tmp"
2388
2389; (time to live) Sets the number of second while cached file will be used
2390; instead of original one.
2391; http://php.net/soap.wsdl-cache-ttl
2392soap.wsdl_cache_ttl=86400
2393
2394; Sets the size of the cache limit. (Max. number of WSDL files to cache)
2395soap.wsdl_cache_limit = 5
2396
2397[sysvshm]
2398; A default size of the shared memory segment
2399;sysvshm.init_mem = 10000
2400
2401[ldap]
2402; Sets the maximum number of open links or -1 for unlimited.
2403ldap.max_links = -1
2404
2405[mcrypt]
2406; For more information about mcrypt settings see http://php.net/mcrypt-module-open
2407
2408; Directory where to load mcrypt algorithms
2409; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
2410;mcrypt.algorithms_dir=
2411
2412; Directory where to load mcrypt modes
2413; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
2414;mcrypt.modes_dir=
2415
2416[dba]
2417;dba.default_handler=
2418
2419[opcache]
2420; Determines if Zend OPCache is enabled
2421;opcache.enable=0
2422
2423; Determines if Zend OPCache is enabled for the CLI version of PHP
2424;opcache.enable_cli=0
2425
2426; The OPcache shared memory storage size.
2427;opcache.memory_consumption=64
2428
2429; The amount of memory for interned strings in Mbytes.
2430;opcache.interned_strings_buffer=4
2431
2432; The maximum number of keys (scripts) in the OPcache hash table.
2433; Only numbers between 200 and 100000 are allowed.
2434;opcache.max_accelerated_files=2000
2435
2436; The maximum percentage of "wasted" memory until a restart is scheduled.
2437;opcache.max_wasted_percentage=5
2438
2439; When this directive is enabled, the OPcache appends the current working
2440; directory to the script key, thus eliminating possible collisions between
2441; files with the same name (basename). Disabling the directive improves
2442; performance, but may break existing applications.
2443;opcache.use_cwd=1
2444
2445; When disabled, you must reset the OPcache manually or restart the
2446; webserver for changes to the filesystem to take effect.
2447;opcache.validate_timestamps=1
2448
2449; How often (in seconds) to check file timestamps for changes to the shared
2450; memory storage allocation. ("1" means validate once per second, but only
2451; once per request. "0" means always validate)
2452;opcache.revalidate_freq=2
2453
2454; Enables or disables file search in include_path optimization
2455;opcache.revalidate_path=0
2456
2457; If disabled, all PHPDoc comments are dropped from the code to reduce the
2458; size of the optimized code.
2459;opcache.save_comments=1
2460
2461; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
2462; may be always stored (save_comments=1), but not loaded by applications
2463; that don't need them anyway.
2464;opcache.load_comments=1
2465
2466; If enabled, a fast shutdown sequence is used for the accelerated code
2467;opcache.fast_shutdown=0
2468
2469; Allow file existence override (file_exists, etc.) performance feature.
2470;opcache.enable_file_override=0
2471
2472; A bitmask, where each bit enables or disables the appropriate OPcache
2473; passes
2474;opcache.optimization_level=0xffffffff
2475
2476;opcache.inherited_hack=1
2477;opcache.dups_fix=0
2478
2479; The location of the OPcache blacklist file (wildcards allowed).
2480; Each OPcache blacklist file is a text file that holds the names of files
2481; that should not be accelerated. The file format is to add each filename
2482; to a new line. The filename may be a full path or just a file prefix
2483; (i.e., /var/www/x blacklists all the files and directories in /var/www
2484; that start with 'x'). Line starting with a ; are ignored (comments).
2485;opcache.blacklist_filename=
2486
2487; Allows exclusion of large files from being cached. By default all files
2488; are cached.
2489;opcache.max_file_size=0
2490
2491; Check the cache checksum each N requests.
2492; The default value of "0" means that the checks are disabled.
2493;opcache.consistency_checks=0
2494
2495; How long to wait (in seconds) for a scheduled restart to begin if the cache
2496; is not being accessed.
2497;opcache.force_restart_timeout=180
2498
2499; OPcache error_log file name. Empty string assumes "stderr".
2500;opcache.error_log=
2501
2502; All OPcache errors go to the Web server log.
2503; By default, only fatal errors (level 0) or errors (level 1) are logged.
2504; You can also enable warnings (level 2), info messages (level 3) or
2505; debug messages (level 4).
2506;opcache.log_verbosity_level=1
2507
2508; Preferred Shared Memory back-end. Leave empty and let the system decide.
2509;opcache.preferred_memory_model=
2510
2511; Protect the shared memory from unexpected writing during script execution.
2512; Useful for internal debugging only.
2513;opcache.protect_memory=0
2514
2515[curl]
2516; A default value for the CURLOPT_CAINFO option. This is required to be an
2517; absolute path.
2518;curl.cainfo =
2519
2520[openssl]
2521; The location of a Certificate Authority (CA) file on the local filesystem
2522; to use when verifying the identity of SSL/TLS peers. Most users should
2523; not specify a value for this directive as PHP will attempt to use the
2524; OS-managed cert stores in its absence. If specified, this value may still
2525; be overridden on a per-stream basis via the "cafile" SSL stream context
2526; option.
2527;openssl.cafile=
2528
2529; If openssl.cafile is not specified or if the CA file is not found, the
2530; directory pointed to by openssl.capath is searched for a suitable
2531; certificate. This value must be a correctly hashed certificate directory.
2532; Most users should not specify a value for this directive as PHP will
2533; attempt to use the OS-managed cert stores in its absence. If specified,
2534; this value may still be overridden on a per-stream basis via the "capath"
2535; SSL stream context option.
2536;openssl.capath=
2537
2538; Local Variables:
2539; tab-width: 4
2540; End: