├── fpm ├── php5-fpm.conf ├── pool.d │ ├── www1.conf │ ├── www2.conf │ └── www0.conf ├── php5-fpm.conf.dpkg-dist └── php.ini └── README.md /fpm/php5-fpm.conf: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;; 2 | ; FPM Configuration ; 3 | ;;;;;;;;;;;;;;;;;;;;; 4 | 5 | ; All relative paths in this configuration file are relative to PHP's install 6 | ; prefix (/usr). This prefix can be dynamicaly changed by using the 7 | ; '-p' argument from the command line. 8 | 9 | ; Include one or more files. If glob(3) exists, it is used to include a bunch of 10 | ; files from a glob(3) pattern. This directive can be used everywhere in the 11 | ; file. 12 | ; Relative path can also be used. They will be prefixed by: 13 | ; - the global prefix if it's been set (-p arguement) 14 | ; - /usr otherwise 15 | ;include=/etc/php5/fpm/*.conf 16 | 17 | ;;;;;;;;;;;;;;;;;; 18 | ; Global Options ; 19 | ;;;;;;;;;;;;;;;;;; 20 | 21 | [global] 22 | ; Pid file 23 | ; Note: the default prefix is /var 24 | ; Default Value: none 25 | pid = run/php5-fpm.pid 26 | 27 | ; Error log file 28 | ; Note: the default prefix is /var 29 | ; Default Value: log/php-fpm.log 30 | error_log = /var/log/php5-fpm.log 31 | 32 | ; Log level 33 | ; Possible Values: alert, error, warning, notice, debug 34 | ; Default Value: notice 35 | ;log_level = notice 36 | 37 | ; If this number of child processes exit with SIGSEGV or SIGBUS within the time 38 | ; interval set by emergency_restart_interval then FPM will restart. A value 39 | ; of '0' means 'Off'. 40 | ; Default Value: 0 41 | emergency_restart_threshold = 10 42 | 43 | ; Interval of time used by emergency_restart_interval to determine when 44 | ; a graceful restart will be initiated. This can be useful to work around 45 | ; accidental corruptions in an accelerator's shared memory. 46 | ; Available Units: s(econds), m(inutes), h(ours), or d(ays) 47 | ; Default Unit: seconds 48 | ; Default Value: 0 49 | emergency_restart_interval = 1m 50 | 51 | ; Time limit for child processes to wait for a reaction on signals from master. 52 | ; Available units: s(econds), m(inutes), h(ours), or d(ays) 53 | ; Default Unit: seconds 54 | ; Default Value: 0 55 | process_control_timeout = 5 56 | 57 | ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. 58 | ; Default Value: yes 59 | daemonize = yes 60 | 61 | ;;;;;;;;;;;;;;;;;;;; 62 | ; Pool Definitions ; 63 | ;;;;;;;;;;;;;;;;;;;; 64 | 65 | ; Multiple pools of child processes may be started with different listening 66 | ; ports and different management options. The name of the pool will be 67 | ; used in logs and stats. There is no limitation on the number of pools which 68 | ; FPM can handle. Your system will tell you anyway :) 69 | 70 | ; To configure the pools it is recommended to have one .conf file per 71 | ; pool in the following directory: 72 | include=/etc/php5/fpm/pool.d/*.conf 73 | 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Example configuration of php-fpm 2 | 3 | ## Introduction 4 | 5 | This is an example configuration [`php-fpm`](http://www.php.net/manual/en/install.fpm.php) 6 | which is the preferred way of serving PHP with FastCGI. The old 7 | `php-cgi` is deprecated. You can even use a 8 | [patch](http://php-fpm.org) for PHP versions prior to 5.3.3, when fpm 9 | become an official PHP project. 10 | 11 | 12 | ## Generalities 13 | 14 | The way that php-fpm operates is through a **master** process that 15 | launches children processes (workers) that serve the requests. These 16 | workers can be run under a particular user. Making it appropriate for 17 | environments where there are several users each one running their own 18 | set of PHP apps. 19 | 20 | php-fpm is pretty much a **work in progress**, although on one hand is 21 | IMHO the best thing to come out of PHP land in a lot of time, still 22 | lacks a lot of nice features like **graceful restarts**. Currently 23 | adding a new pool or reloading the config requires a **full 24 | restart**. Which causes some downtime. Work is in progress to provide 25 | graceful restarts/reloads like 26 | [Nginx](http://wiki.nginx.org/NginxCommandLine) has. 27 | 28 | It has the capacity to adjust the number of workers **dynamically** to 29 | the load, varying from a minimum to a specified maximum. 30 | 31 | ## Configuration layout 32 | 33 | The configuration comes in two flavors: 34 | 35 | 1. [unix](https://github.com/perusio/php-fpm-example-config) which is 36 | the **default**. It uses **UNIX domain sockets** for communication 37 | between the FCGI responder provided by php-fpm and the server or 38 | request frontend. 39 | 40 | 2. [tcp](https://github.com/perusio/php-fpm-example-config/tree/tcp). 41 | It uses **TCP sockets** for communication between the FCGI 42 | responder provided by php-fpm and the server or request frontend. 43 | 44 | Choose the one that is more appropriate for your setup. Up until PHP 45 | 5.3.8 TCP sockets, although, theoretically slower, if your setup is 46 | on the loopback, behave better than UNIX sockets for high-traffic 47 | sites. 48 | 49 | This might have changed in 5.3.10 and 5.4.x. Try it and report back 50 | please. 51 | 52 | ## Load adequation 53 | 54 | There's no algorithm for determining the number of children. It 55 | depends on your application. 56 | 57 | A 58 | [thread](http://groups.google.com/group/highload-php-en/browse_thread/thread/754dbedc5eb841a2) 59 | in the 60 | [highload-php-en](http://groups.google.com/group/highload-php-en) 61 | gives some tips on how to determine the number of children. 62 | 63 | 1. If your load is **CPU bound** then the rule is that the number of 64 | children should be **equal** to number of **CPUs** plus 20 %. 65 | 66 | Example: Machine with 8 CPUs. Number of children = 10. 67 | 68 | 2. If your load is I/O bound then apply the following rule: 69 | 70 | number_of_children = 1.2 * total_memory / average_space_per_process 71 | 72 | Example: PHP processes occupying 256 MB of average space in a 73 | machine with 2GB of RAM that can be used for running this PHP 74 | application. 75 | 76 | number_of_children = 1.2 * 2048 / 256 77 | 78 | giving: `10` children. 79 | 80 | Determine the medium space occupied by a PHP process and apply the 81 | above formula. The 1.2 factor is just a security factor, to use a 82 | much abused engineering term. 83 | 84 | ## Features 85 | 86 | 1. It uses `UNIX` sockets for connections from the web server to the 87 | FastCGI daemon as the *default*. It provides a branch `tcp` that 88 | relies on TCP sockets. Choose which suits you better. 89 | 90 | 2. The `php.ini` is modified from the stock one that comes with the 91 | Debian package. The modifications were made by using a tiny script 92 | that I wrote for *cleaning up* a PHP config and that's available 93 | [here](https://github.com/perusio/php-ini-cleanup) on 94 | github. 95 | 96 | 3. There are **three** pools on this config that run under the 97 | `www-data` user. The idea is that the server should load balance 98 | and distribute the load as you wish over it. 99 | 100 | 4. Support for the **status** and **ping** functionalities of 101 | `php-fpm`. See 102 | [here](https://github.com/perusio/drupal-with-nginx) how to enable 103 | it for [Nginx](http://wiki.nginx.org). 104 | 105 | ## Installation 106 | 107 | 1. Clone the git repo: 108 | `git://github.com/perusio/php-fpm-example-config`. 109 | 110 | 2. Checkout the `tcp` branch if that's suits you better: 111 | 112 | git checkout -b tcp 113 | 114 | If on the contrary the `unix` sockets approach is more suited to 115 | your site(s) then you can ignore this step and proceed to 3 116 | directly. 117 | 118 | 3. Alter the `php-fpm.conf` and the `pool.d/www.conf` file to your 119 | liking. Add any pool that you might want. 120 | 121 | 4. Copy the files to the destination directory: 122 | 123 | cp php5-fpm.conf /etc/php5/fpm 124 | 125 | cp -a pool.d /etc/php5/fpm 126 | 127 | 5. (Re)start `php5-fpm` with `service php5-fpm restart` or `service 128 | php5-fpm start` if starting `php-fpm` anew. 129 | 130 | ## Caveats 131 | 132 | Remember to **always** do `service php5-fpm restart` after adding a 133 | new pool or modifying the configuration of an existing one. 134 | -------------------------------------------------------------------------------- /fpm/pool.d/www1.conf: -------------------------------------------------------------------------------- 1 | ; Start a new pool named 'www'. 2 | ; the variable $pool can we used in any directive and will be replaced by the 3 | ; pool name ('www' here) 4 | [www1] 5 | 6 | ; Per pool prefix 7 | ; It only applies on the following directives: 8 | ; - 'slowlog' 9 | ; - 'listen' (unixsocket) 10 | ; - 'chroot' 11 | ; - 'chdir' 12 | ; - 'php_values' 13 | ; - 'php_admin_values' 14 | ; When not set, the global prefix (or /usr) applies instead. 15 | ; Note: This directive can also be relative to the global prefix. 16 | ; Default Value: none 17 | ;prefix = /path/to/pools/$pool 18 | 19 | ; The address on which to accept FastCGI requests. 20 | ; Valid syntaxes are: 21 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on 22 | ; a specific port; 23 | ; 'port' - to listen on a TCP socket to all addresses on a 24 | ; specific port; 25 | ; '/path/to/unix/socket' - to listen on a unix socket. 26 | ; Note: This value is mandatory. 27 | listen = 127.0.0.1:9002 28 | 29 | ; Set listen(2) backlog. A value of '-1' means unlimited. 30 | ; Default Value: 128 (-1 on FreeBSD and OpenBSD) 31 | ;listen.backlog = -1 32 | 33 | ; List of ipv4 addresses of FastCGI clients which are allowed to connect. 34 | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original 35 | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address 36 | ; must be separated by a comma. If this value is left blank, connections will be 37 | ; accepted from any ip address. 38 | ; Default Value: any 39 | listen.allowed_clients = 127.0.0.1 40 | 41 | ; Set permissions for unix socket, if one is used. In Linux, read/write 42 | ; permissions must be set in order to allow connections from a web server. Many 43 | ; BSD-derived systems allow connections regardless of permissions. 44 | ; Default Values: user and group are set as the running user 45 | ; mode is set to 0666 46 | ; listen.owner = www-data 47 | ; listen.group = www-data 48 | ; listen.mode = 0600 49 | 50 | ; Unix user/group of processes 51 | ; Note: The user is mandatory. If the group is not set, the default user's group 52 | ; will be used. 53 | user = www-data 54 | group = www-data 55 | 56 | ; Choose how the process manager will control the number of child processes. 57 | ; Possible Values: 58 | ; static - a fixed number (pm.max_children) of child processes; 59 | ; dynamic - the number of child processes are set dynamically based on the 60 | ; following directives: 61 | ; pm.max_children - the maximum number of children that can 62 | ; be alive at the same time. 63 | ; pm.start_servers - the number of children created on startup. 64 | ; pm.min_spare_servers - the minimum number of children in 'idle' 65 | ; state (waiting to process). If the number 66 | ; of 'idle' processes is less than this 67 | ; number then some children will be created. 68 | ; pm.max_spare_servers - the maximum number of children in 'idle' 69 | ; state (waiting to process). If the number 70 | ; of 'idle' processes is greater than this 71 | ; number then some children will be killed. 72 | ; Note: This value is mandatory. 73 | pm = dynamic 74 | 75 | ; The number of child processes to be created when pm is set to 'static' and the 76 | ; maximum number of child processes to be created when pm is set to 'dynamic'. 77 | ; This value sets the limit on the number of simultaneous requests that will be 78 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. 79 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP 80 | ; CGI. 81 | ; Note: Used when pm is set to either 'static' or 'dynamic' 82 | ; Note: This value is mandatory. 83 | pm.max_children = 6 84 | 85 | ; The number of child processes created on startup. 86 | ; Note: Used only when pm is set to 'dynamic' 87 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 88 | pm.start_servers = 3 89 | 90 | ; The desired minimum number of idle server processes. 91 | ; Note: Used only when pm is set to 'dynamic' 92 | ; Note: Mandatory when pm is set to 'dynamic' 93 | pm.min_spare_servers = 3 94 | 95 | ; The desired maximum number of idle server processes. 96 | ; Note: Used only when pm is set to 'dynamic' 97 | ; Note: Mandatory when pm is set to 'dynamic' 98 | pm.max_spare_servers = 5 99 | 100 | ; The number of requests each child process should execute before respawning. 101 | ; This can be useful to work around memory leaks in 3rd party libraries. For 102 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. 103 | ; Default Value: 0 104 | pm.max_requests = 500 105 | 106 | ; The URI to view the FPM status page. If this value is not set, no URI will be 107 | ; recognized as a status page. By default, the status page shows the following 108 | ; information: 109 | ; accepted conn - the number of request accepted by the pool; 110 | ; pool - the name of the pool; 111 | ; process manager - static or dynamic; 112 | ; idle processes - the number of idle processes; 113 | ; active processes - the number of active processes; 114 | ; total processes - the number of idle + active processes. 115 | ; max children reached - number of times, the process limit has been reached, 116 | ; when pm tries to start more children (works only for 117 | ; pm 'dynamic') 118 | ; The values of 'idle processes', 'active processes' and 'total processes' are 119 | ; updated each second. The value of 'accepted conn' is updated in real time. 120 | ; Example output: 121 | ; accepted conn: 12073 122 | ; pool: www 123 | ; process manager: static 124 | ; idle processes: 35 125 | ; active processes: 65 126 | ; total processes: 100 127 | ; max children reached: 1 128 | ; By default the status page output is formatted as text/plain. Passing either 129 | ; 'html' or 'json' as a query string will return the corresponding output 130 | ; syntax. Example: 131 | ; http://www.foo.bar/status 132 | ; http://www.foo.bar/status?json 133 | ; http://www.foo.bar/status?html 134 | ; Note: The value must start with a leading slash (/). The value can be 135 | ; anything, but it may not be a good idea to use the .php extension or it 136 | ; may conflict with a real PHP file. 137 | ; Default Value: not set 138 | pm.status_path = /fpm-status 139 | 140 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no 141 | ; URI will be recognized as a ping page. This could be used to test from outside 142 | ; that FPM is alive and responding, or to 143 | ; - create a graph of FPM availability (rrd or such); 144 | ; - remove a server from a group if it is not responding (load balancing); 145 | ; - trigger alerts for the operating team (24/7). 146 | ; Note: The value must start with a leading slash (/). The value can be 147 | ; anything, but it may not be a good idea to use the .php extension or it 148 | ; may conflict with a real PHP file. 149 | ; Default Value: not set 150 | ping.path = /ping 151 | 152 | ; This directive may be used to customize the response of a ping request. The 153 | ; response is formatted as text/plain with a 200 response code. 154 | ; Default Value: pong 155 | ;ping.response = pong 156 | 157 | ; The timeout for serving a single request after which the worker process will 158 | ; be killed. This option should be used when the 'max_execution_time' ini option 159 | ; does not stop script execution for some reason. A value of '0' means 'off'. 160 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 161 | ; Default Value: 0 162 | request_terminate_timeout = 120s 163 | 164 | ; The timeout for serving a single request after which a PHP backtrace will be 165 | ; dumped to the 'slowlog' file. A value of '0s' means 'off'. 166 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 167 | ; Default Value: 0 168 | request_slowlog_timeout = 5s 169 | 170 | ; The log file for slow requests 171 | ; Default Value: not set 172 | ; Note: slowlog is mandatory if request_slowlog_timeout is set 173 | slowlog = /var/log/$pool.log.slow 174 | 175 | ; Set open file descriptor rlimit. 176 | ; Default Value: system defined value 177 | rlimit_files = 4096 178 | 179 | ; Set max core size rlimit. 180 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 181 | ; Default Value: system defined value 182 | rlimit_core = 0 183 | 184 | ; Chroot to this directory at the start. This value must be defined as an 185 | ; absolute path. When this value is not set, chroot is not used. 186 | ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one 187 | ; of its subdirectories. If the pool prefix is not set, the global prefix 188 | ; will be used instead. 189 | ; Note: chrooting is a great security feature and should be used whenever 190 | ; possible. However, all PHP paths will be relative to the chroot 191 | ; (error_log, sessions.save_path, ...). 192 | ; Default Value: not set 193 | ;chroot = 194 | 195 | ; Chdir to this directory at the start. 196 | ; Note: relative path can be used. 197 | ; Default Value: current directory or / when chroot 198 | chdir = /var/www 199 | 200 | ; Redirect worker stdout and stderr into main error log. If not set, stdout and 201 | ; stderr will be redirected to /dev/null according to FastCGI specs. 202 | ; Note: on highloaded environement, this can cause some delay in the page 203 | ; process time (several ms). 204 | ; Default Value: no 205 | catch_workers_output = yes 206 | 207 | ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from 208 | ; the current environment. 209 | ; Default Value: clean env 210 | ;env[HOSTNAME] = $HOSTNAME 211 | ;env[PATH] = /usr/local/bin:/usr/bin:/bin 212 | ;env[TMP] = /tmp 213 | ;env[TMPDIR] = /tmp 214 | ;env[TEMP] = /tmp 215 | 216 | ; Additional php.ini defines, specific to this pool of workers. These settings 217 | ; overwrite the values previously defined in the php.ini. The directives are the 218 | ; same as the PHP SAPI: 219 | ; php_value/php_flag - you can set classic ini defines which can 220 | ; be overwritten from PHP call 'ini_set'. 221 | ; php_admin_value/php_admin_flag - these directives won't be overwritten by 222 | ; PHP call 'ini_set' 223 | ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. 224 | 225 | ; Defining 'extension' will load the corresponding shared extension from 226 | ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not 227 | ; overwrite previously defined php.ini values, but will append the new value 228 | ; instead. 229 | 230 | ; Note: path INI options can be relative and will be expanded with the prefix 231 | ; (pool, global or /usr) 232 | 233 | ; Default Value: nothing is defined by default except the values in php.ini and 234 | ; specified at startup with the -d argument 235 | ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com 236 | ;php_flag[display_errors] = off 237 | ;php_admin_value[error_log] = /var/log/fpm-php.www.log 238 | ;php_admin_flag[log_errors] = on 239 | ;php_admin_value[memory_limit] = 32M 240 | -------------------------------------------------------------------------------- /fpm/pool.d/www2.conf: -------------------------------------------------------------------------------- 1 | ; Start a new pool named 'www'. 2 | ; the variable $pool can we used in any directive and will be replaced by the 3 | ; pool name ('www' here) 4 | [www2] 5 | 6 | ; Per pool prefix 7 | ; It only applies on the following directives: 8 | ; - 'slowlog' 9 | ; - 'listen' (unixsocket) 10 | ; - 'chroot' 11 | ; - 'chdir' 12 | ; - 'php_values' 13 | ; - 'php_admin_values' 14 | ; When not set, the global prefix (or /usr) applies instead. 15 | ; Note: This directive can also be relative to the global prefix. 16 | ; Default Value: none 17 | ;prefix = /path/to/pools/$pool 18 | 19 | ; The address on which to accept FastCGI requests. 20 | ; Valid syntaxes are: 21 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on 22 | ; a specific port; 23 | ; 'port' - to listen on a TCP socket to all addresses on a 24 | ; specific port; 25 | ; '/path/to/unix/socket' - to listen on a unix socket. 26 | ; Note: This value is mandatory. 27 | listen = 127.0.0.1:9003 28 | 29 | ; Set listen(2) backlog. A value of '-1' means unlimited. 30 | ; Default Value: 128 (-1 on FreeBSD and OpenBSD) 31 | ;listen.backlog = -1 32 | 33 | ; List of ipv4 addresses of FastCGI clients which are allowed to connect. 34 | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original 35 | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address 36 | ; must be separated by a comma. If this value is left blank, connections will be 37 | ; accepted from any ip address. 38 | ; Default Value: any 39 | listen.allowed_clients = 127.0.0.1 40 | 41 | ; Set permissions for unix socket, if one is used. In Linux, read/write 42 | ; permissions must be set in order to allow connections from a web server. Many 43 | ; BSD-derived systems allow connections regardless of permissions. 44 | ; Default Values: user and group are set as the running user 45 | ; mode is set to 0666 46 | ; listen.owner = www-data 47 | ; listen.group = www-data 48 | ; listen.mode = 0600 49 | 50 | ; Unix user/group of processes 51 | ; Note: The user is mandatory. If the group is not set, the default user's group 52 | ; will be used. 53 | user = www-data 54 | group = www-data 55 | 56 | ; Choose how the process manager will control the number of child processes. 57 | ; Possible Values: 58 | ; static - a fixed number (pm.max_children) of child processes; 59 | ; dynamic - the number of child processes are set dynamically based on the 60 | ; following directives: 61 | ; pm.max_children - the maximum number of children that can 62 | ; be alive at the same time. 63 | ; pm.start_servers - the number of children created on startup. 64 | ; pm.min_spare_servers - the minimum number of children in 'idle' 65 | ; state (waiting to process). If the number 66 | ; of 'idle' processes is less than this 67 | ; number then some children will be created. 68 | ; pm.max_spare_servers - the maximum number of children in 'idle' 69 | ; state (waiting to process). If the number 70 | ; of 'idle' processes is greater than this 71 | ; number then some children will be killed. 72 | ; Note: This value is mandatory. 73 | pm = dynamic 74 | 75 | ; The number of child processes to be created when pm is set to 'static' and the 76 | ; maximum number of child processes to be created when pm is set to 'dynamic'. 77 | ; This value sets the limit on the number of simultaneous requests that will be 78 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. 79 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP 80 | ; CGI. 81 | ; Note: Used when pm is set to either 'static' or 'dynamic' 82 | ; Note: This value is mandatory. 83 | pm.max_children = 6 84 | 85 | ; The number of child processes created on startup. 86 | ; Note: Used only when pm is set to 'dynamic' 87 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 88 | pm.start_servers = 3 89 | 90 | ; The desired minimum number of idle server processes. 91 | ; Note: Used only when pm is set to 'dynamic' 92 | ; Note: Mandatory when pm is set to 'dynamic' 93 | pm.min_spare_servers = 3 94 | 95 | ; The desired maximum number of idle server processes. 96 | ; Note: Used only when pm is set to 'dynamic' 97 | ; Note: Mandatory when pm is set to 'dynamic' 98 | pm.max_spare_servers = 5 99 | 100 | ; The number of requests each child process should execute before respawning. 101 | ; This can be useful to work around memory leaks in 3rd party libraries. For 102 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. 103 | ; Default Value: 0 104 | pm.max_requests = 500 105 | 106 | ; The URI to view the FPM status page. If this value is not set, no URI will be 107 | ; recognized as a status page. By default, the status page shows the following 108 | ; information: 109 | ; accepted conn - the number of request accepted by the pool; 110 | ; pool - the name of the pool; 111 | ; process manager - static or dynamic; 112 | ; idle processes - the number of idle processes; 113 | ; active processes - the number of active processes; 114 | ; total processes - the number of idle + active processes. 115 | ; max children reached - number of times, the process limit has been reached, 116 | ; when pm tries to start more children (works only for 117 | ; pm 'dynamic') 118 | ; The values of 'idle processes', 'active processes' and 'total processes' are 119 | ; updated each second. The value of 'accepted conn' is updated in real time. 120 | ; Example output: 121 | ; accepted conn: 12073 122 | ; pool: www 123 | ; process manager: static 124 | ; idle processes: 35 125 | ; active processes: 65 126 | ; total processes: 100 127 | ; max children reached: 1 128 | ; By default the status page output is formatted as text/plain. Passing either 129 | ; 'html' or 'json' as a query string will return the corresponding output 130 | ; syntax. Example: 131 | ; http://www.foo.bar/status 132 | ; http://www.foo.bar/status?json 133 | ; http://www.foo.bar/status?html 134 | ; Note: The value must start with a leading slash (/). The value can be 135 | ; anything, but it may not be a good idea to use the .php extension or it 136 | ; may conflict with a real PHP file. 137 | ; Default Value: not set 138 | pm.status_path = /fpm-status-drei 139 | 140 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no 141 | ; URI will be recognized as a ping page. This could be used to test from outside 142 | ; that FPM is alive and responding, or to 143 | ; - create a graph of FPM availability (rrd or such); 144 | ; - remove a server from a group if it is not responding (load balancing); 145 | ; - trigger alerts for the operating team (24/7). 146 | ; Note: The value must start with a leading slash (/). The value can be 147 | ; anything, but it may not be a good idea to use the .php extension or it 148 | ; may conflict with a real PHP file. 149 | ; Default Value: not set 150 | ping.path = /ping-drei 151 | 152 | ; This directive may be used to customize the response of a ping request. The 153 | ; response is formatted as text/plain with a 200 response code. 154 | ; Default Value: pong 155 | ;ping.response = pong 156 | 157 | ; The timeout for serving a single request after which the worker process will 158 | ; be killed. This option should be used when the 'max_execution_time' ini option 159 | ; does not stop script execution for some reason. A value of '0' means 'off'. 160 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 161 | ; Default Value: 0 162 | request_terminate_timeout = 120s 163 | 164 | ; The timeout for serving a single request after which a PHP backtrace will be 165 | ; dumped to the 'slowlog' file. A value of '0s' means 'off'. 166 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 167 | ; Default Value: 0 168 | request_slowlog_timeout = 5s 169 | 170 | ; The log file for slow requests 171 | ; Default Value: not set 172 | ; Note: slowlog is mandatory if request_slowlog_timeout is set 173 | slowlog = /var/log/$pool.log.slow 174 | 175 | ; Set open file descriptor rlimit. 176 | ; Default Value: system defined value 177 | rlimit_files = 4096 178 | 179 | ; Set max core size rlimit. 180 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 181 | ; Default Value: system defined value 182 | rlimit_core = 0 183 | 184 | ; Chroot to this directory at the start. This value must be defined as an 185 | ; absolute path. When this value is not set, chroot is not used. 186 | ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one 187 | ; of its subdirectories. If the pool prefix is not set, the global prefix 188 | ; will be used instead. 189 | ; Note: chrooting is a great security feature and should be used whenever 190 | ; possible. However, all PHP paths will be relative to the chroot 191 | ; (error_log, sessions.save_path, ...). 192 | ; Default Value: not set 193 | ;chroot = 194 | 195 | ; Chdir to this directory at the start. 196 | ; Note: relative path can be used. 197 | ; Default Value: current directory or / when chroot 198 | chdir = /var/www 199 | 200 | ; Redirect worker stdout and stderr into main error log. If not set, stdout and 201 | ; stderr will be redirected to /dev/null according to FastCGI specs. 202 | ; Note: on highloaded environement, this can cause some delay in the page 203 | ; process time (several ms). 204 | ; Default Value: no 205 | catch_workers_output = yes 206 | 207 | ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from 208 | ; the current environment. 209 | ; Default Value: clean env 210 | ;env[HOSTNAME] = $HOSTNAME 211 | ;env[PATH] = /usr/local/bin:/usr/bin:/bin 212 | ;env[TMP] = /tmp 213 | ;env[TMPDIR] = /tmp 214 | ;env[TEMP] = /tmp 215 | 216 | ; Additional php.ini defines, specific to this pool of workers. These settings 217 | ; overwrite the values previously defined in the php.ini. The directives are the 218 | ; same as the PHP SAPI: 219 | ; php_value/php_flag - you can set classic ini defines which can 220 | ; be overwritten from PHP call 'ini_set'. 221 | ; php_admin_value/php_admin_flag - these directives won't be overwritten by 222 | ; PHP call 'ini_set' 223 | ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. 224 | 225 | ; Defining 'extension' will load the corresponding shared extension from 226 | ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not 227 | ; overwrite previously defined php.ini values, but will append the new value 228 | ; instead. 229 | 230 | ; Note: path INI options can be relative and will be expanded with the prefix 231 | ; (pool, global or /usr) 232 | 233 | ; Default Value: nothing is defined by default except the values in php.ini and 234 | ; specified at startup with the -d argument 235 | ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com 236 | ;php_flag[display_errors] = off 237 | ;php_admin_value[error_log] = /var/log/fpm-php.www.log 238 | ;php_admin_flag[log_errors] = on 239 | ;php_admin_value[memory_limit] = 32M 240 | -------------------------------------------------------------------------------- /fpm/pool.d/www0.conf: -------------------------------------------------------------------------------- 1 | ; Start a new pool named 'www'. 2 | ; the variable $pool can we used in any directive and will be replaced by the 3 | ; pool name ('www' here) 4 | [www0] 5 | 6 | ; Per pool prefix 7 | ; It only applies on the following directives: 8 | ; - 'slowlog' 9 | ; - 'listen' (unixsocket) 10 | ; - 'chroot' 11 | ; - 'chdir' 12 | ; - 'php_values' 13 | ; - 'php_admin_values' 14 | ; When not set, the global prefix (or /usr) applies instead. 15 | ; Note: This directive can also be relative to the global prefix. 16 | ; Default Value: none 17 | ;prefix = /path/to/pools/$pool 18 | 19 | ; The address on which to accept FastCGI requests. 20 | ; Valid syntaxes are: 21 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on 22 | ; a specific port; 23 | ; 'port' - to listen on a TCP socket to all addresses on a 24 | ; specific port; 25 | ; '/path/to/unix/socket' - to listen on a unix socket. 26 | ; Note: This value is mandatory. 27 | listen = 127.0.0.1:9001 28 | 29 | 30 | ; Set listen(2) backlog. A value of '-1' means unlimited. 31 | ; Default Value: 128 (-1 on FreeBSD and OpenBSD) 32 | ;listen.backlog = -1 33 | 34 | ; List of ipv4 addresses of FastCGI clients which are allowed to connect. 35 | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original 36 | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address 37 | ; must be separated by a comma. If this value is left blank, connections will be 38 | ; accepted from any ip address. 39 | ; Default Value: any 40 | listen.allowed_clients = 127.0.0.1 41 | 42 | ; Set permissions for unix socket, if one is used. In Linux, read/write 43 | ; permissions must be set in order to allow connections from a web server. Many 44 | ; BSD-derived systems allow connections regardless of permissions. 45 | ; Default Values: user and group are set as the running user 46 | ; mode is set to 0666 47 | ; listen.owner = www-data 48 | ; listen.group = www-data 49 | ; listen.mode = 0600 50 | 51 | ; Unix user/group of processes 52 | ; Note: The user is mandatory. If the group is not set, the default user's group 53 | ; will be used. 54 | user = www-data 55 | group = www-data 56 | 57 | ; Choose how the process manager will control the number of child processes. 58 | ; Possible Values: 59 | ; static - a fixed number (pm.max_children) of child processes; 60 | ; dynamic - the number of child processes are set dynamically based on the 61 | ; following directives: 62 | ; pm.max_children - the maximum number of children that can 63 | ; be alive at the same time. 64 | ; pm.start_servers - the number of children created on startup. 65 | ; pm.min_spare_servers - the minimum number of children in 'idle' 66 | ; state (waiting to process). If the number 67 | ; of 'idle' processes is less than this 68 | ; number then some children will be created. 69 | ; pm.max_spare_servers - the maximum number of children in 'idle' 70 | ; state (waiting to process). If the number 71 | ; of 'idle' processes is greater than this 72 | ; number then some children will be killed. 73 | ; Note: This value is mandatory. 74 | pm = dynamic 75 | 76 | ; The number of child processes to be created when pm is set to 'static' and the 77 | ; maximum number of child processes to be created when pm is set to 'dynamic'. 78 | ; This value sets the limit on the number of simultaneous requests that will be 79 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. 80 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP 81 | ; CGI. 82 | ; Note: Used when pm is set to either 'static' or 'dynamic' 83 | ; Note: This value is mandatory. 84 | pm.max_children = 6 85 | 86 | ; The number of child processes created on startup. 87 | ; Note: Used only when pm is set to 'dynamic' 88 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 89 | pm.start_servers = 3 90 | 91 | ; The desired minimum number of idle server processes. 92 | ; Note: Used only when pm is set to 'dynamic' 93 | ; Note: Mandatory when pm is set to 'dynamic' 94 | pm.min_spare_servers = 3 95 | 96 | ; The desired maximum number of idle server processes. 97 | ; Note: Used only when pm is set to 'dynamic' 98 | ; Note: Mandatory when pm is set to 'dynamic' 99 | pm.max_spare_servers = 5 100 | 101 | ; The number of requests each child process should execute before respawning. 102 | ; This can be useful to work around memory leaks in 3rd party libraries. For 103 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. 104 | ; Default Value: 0 105 | pm.max_requests = 500 106 | 107 | ; The URI to view the FPM status page. If this value is not set, no URI will be 108 | ; recognized as a status page. By default, the status page shows the following 109 | ; information: 110 | ; accepted conn - the number of request accepted by the pool; 111 | ; pool - the name of the pool; 112 | ; process manager - static or dynamic; 113 | ; idle processes - the number of idle processes; 114 | ; active processes - the number of active processes; 115 | ; total processes - the number of idle + active processes. 116 | ; max children reached - number of times, the process limit has been reached, 117 | ; when pm tries to start more children (works only for 118 | ; pm 'dynamic') 119 | ; The values of 'idle processes', 'active processes' and 'total processes' are 120 | ; updated each second. The value of 'accepted conn' is updated in real time. 121 | ; Example output: 122 | ; accepted conn: 12073 123 | ; pool: www 124 | ; process manager: static 125 | ; idle processes: 35 126 | ; active processes: 65 127 | ; total processes: 100 128 | ; max children reached: 1 129 | ; By default the status page output is formatted as text/plain. Passing either 130 | ; 'html' or 'json' as a query string will return the corresponding output 131 | ; syntax. Example: 132 | ; http://www.foo.bar/status 133 | ; http://www.foo.bar/status?json 134 | ; http://www.foo.bar/status?html 135 | ; Note: The value must start with a leading slash (/). The value can be 136 | ; anything, but it may not be a good idea to use the .php extension or it 137 | ; may conflict with a real PHP file. 138 | ; Default Value: not set 139 | pm.status_path = /fpm-status-zwei 140 | 141 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no 142 | ; URI will be recognized as a ping page. This could be used to test from outside 143 | ; that FPM is alive and responding, or to 144 | ; - create a graph of FPM availability (rrd or such); 145 | ; - remove a server from a group if it is not responding (load balancing); 146 | ; - trigger alerts for the operating team (24/7). 147 | ; Note: The value must start with a leading slash (/). The value can be 148 | ; anything, but it may not be a good idea to use the .php extension or it 149 | ; may conflict with a real PHP file. 150 | ; Default Value: not set 151 | ping.path = /ping-zwei 152 | 153 | ; This directive may be used to customize the response of a ping request. The 154 | ; response is formatted as text/plain with a 200 response code. 155 | ; Default Value: pong 156 | ;ping.response = pong 157 | 158 | ; The timeout for serving a single request after which the worker process will 159 | ; be killed. This option should be used when the 'max_execution_time' ini option 160 | ; does not stop script execution for some reason. A value of '0' means 'off'. 161 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 162 | ; Default Value: 0 163 | request_terminate_timeout = 120s 164 | 165 | ; The timeout for serving a single request after which a PHP backtrace will be 166 | ; dumped to the 'slowlog' file. A value of '0s' means 'off'. 167 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 168 | ; Default Value: 0 169 | request_slowlog_timeout = 5s 170 | 171 | ; The log file for slow requests 172 | ; Default Value: not set 173 | ; Note: slowlog is mandatory if request_slowlog_timeout is set 174 | slowlog = /var/log/$pool.log.slow 175 | 176 | ; Set open file descriptor rlimit. 177 | ; Default Value: system defined value 178 | rlimit_files = 4096 179 | 180 | ; Set max core size rlimit. 181 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 182 | ; Default Value: system defined value 183 | rlimit_core = 0 184 | 185 | ; Chroot to this directory at the start. This value must be defined as an 186 | ; absolute path. When this value is not set, chroot is not used. 187 | ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one 188 | ; of its subdirectories. If the pool prefix is not set, the global prefix 189 | ; will be used instead. 190 | ; Note: chrooting is a great security feature and should be used whenever 191 | ; possible. However, all PHP paths will be relative to the chroot 192 | ; (error_log, sessions.save_path, ...). 193 | ; Default Value: not set 194 | ;chroot = 195 | 196 | ; Chdir to this directory at the start. 197 | ; Note: relative path can be used. 198 | ; Default Value: current directory or / when chroot 199 | chdir = /var/www 200 | 201 | ; Redirect worker stdout and stderr into main error log. If not set, stdout and 202 | ; stderr will be redirected to /dev/null according to FastCGI specs. 203 | ; Note: on highloaded environement, this can cause some delay in the page 204 | ; process time (several ms). 205 | ; Default Value: no 206 | catch_workers_output = yes 207 | 208 | ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from 209 | ; the current environment. 210 | ; Default Value: clean env 211 | ;env[HOSTNAME] = $HOSTNAME 212 | ;env[PATH] = /usr/local/bin:/usr/bin:/bin 213 | ;env[TMP] = /tmp 214 | ;env[TMPDIR] = /tmp 215 | ;env[TEMP] = /tmp 216 | 217 | ; Additional php.ini defines, specific to this pool of workers. These settings 218 | ; overwrite the values previously defined in the php.ini. The directives are the 219 | ; same as the PHP SAPI: 220 | ; php_value/php_flag - you can set classic ini defines which can 221 | ; be overwritten from PHP call 'ini_set'. 222 | ; php_admin_value/php_admin_flag - these directives won't be overwritten by 223 | ; PHP call 'ini_set' 224 | ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. 225 | 226 | ; Defining 'extension' will load the corresponding shared extension from 227 | ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not 228 | ; overwrite previously defined php.ini values, but will append the new value 229 | ; instead. 230 | 231 | ; Note: path INI options can be relative and will be expanded with the prefix 232 | ; (pool, global or /usr) 233 | 234 | ; Default Value: nothing is defined by default except the values in php.ini and 235 | ; specified at startup with the -d argument 236 | ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com 237 | ;php_flag[display_errors] = off 238 | ;php_admin_value[error_log] = /var/log/fpm-php.www.log 239 | ;php_admin_flag[log_errors] = on 240 | ;php_admin_value[memory_limit] = 32M 241 | -------------------------------------------------------------------------------- /fpm/php5-fpm.conf.dpkg-dist: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;; 2 | ; FPM Configuration ; 3 | ;;;;;;;;;;;;;;;;;;;;; 4 | 5 | ; All relative paths in this configuration file are relative to PHP's install 6 | ; prefix (/usr). This prefix can be dynamicaly changed by using the 7 | ; '-p' argument from the command line. 8 | 9 | ; Include one or more files. If glob(3) exists, it is used to include a bunch of 10 | ; files from a glob(3) pattern. This directive can be used everywhere in the 11 | ; file. 12 | ; Relative path can also be used. They will be prefixed by: 13 | ; - the global prefix if it's been set (-p arguement) 14 | ; - /usr otherwise 15 | ;include=etc/fpm.d/*.conf 16 | 17 | ;;;;;;;;;;;;;;;;;; 18 | ; Global Options ; 19 | ;;;;;;;;;;;;;;;;;; 20 | 21 | [global] 22 | ; Pid file 23 | ; Note: the default prefix is /var 24 | ; Default Value: none 25 | pid = /var/run/php5-fpm.pid 26 | 27 | ; Error log file 28 | ; Note: the default prefix is /var 29 | ; Default Value: log/php5-fpm.log 30 | error_log = log/php5-fpm.log 31 | 32 | ; Log level 33 | ; Possible Values: alert, error, warning, notice, debug 34 | ; Default Value: notice 35 | ;log_level = notice 36 | 37 | ; If this number of child processes exit with SIGSEGV or SIGBUS within the time 38 | ; interval set by emergency_restart_interval then FPM will restart. A value 39 | ; of '0' means 'Off'. 40 | ; Default Value: 0 41 | ;emergency_restart_threshold = 0 42 | 43 | ; Interval of time used by emergency_restart_interval to determine when 44 | ; a graceful restart will be initiated. This can be useful to work around 45 | ; accidental corruptions in an accelerator's shared memory. 46 | ; Available Units: s(econds), m(inutes), h(ours), or d(ays) 47 | ; Default Unit: seconds 48 | ; Default Value: 0 49 | ;emergency_restart_interval = 0 50 | 51 | ; Time limit for child processes to wait for a reaction on signals from master. 52 | ; Available units: s(econds), m(inutes), h(ours), or d(ays) 53 | ; Default Unit: seconds 54 | ; Default Value: 0 55 | ;process_control_timeout = 0 56 | 57 | ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. 58 | ; Default Value: yes 59 | ;daemonize = yes 60 | 61 | ;;;;;;;;;;;;;;;;;;;; 62 | ; Pool Definitions ; 63 | ;;;;;;;;;;;;;;;;;;;; 64 | 65 | ; Multiple pools of child processes may be started with different listening 66 | ; ports and different management options. The name of the pool will be 67 | ; used in logs and stats. There is no limitation on the number of pools which 68 | ; FPM can handle. Your system will tell you anyway :) 69 | 70 | ; Start a new pool named 'www'. 71 | ; the variable $pool can we used in any directive and will be replaced by the 72 | ; pool name ('www' here) 73 | [www] 74 | 75 | ; Per pool prefix 76 | ; It only applies on the following directives: 77 | ; - 'slowlog' 78 | ; - 'listen' (unixsocket) 79 | ; - 'chroot' 80 | ; - 'chdir' 81 | ; - 'php_values' 82 | ; - 'php_admin_values' 83 | ; When not set, the global prefix (or /usr) applies instead. 84 | ; Note: This directive can also be relative to the global prefix. 85 | ; Default Value: none 86 | ;prefix = /path/to/pools/$pool 87 | 88 | ; The address on which to accept FastCGI requests. 89 | ; Valid syntaxes are: 90 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on 91 | ; a specific port; 92 | ; 'port' - to listen on a TCP socket to all addresses on a 93 | ; specific port; 94 | ; '/path/to/unix/socket' - to listen on a unix socket. 95 | ; Note: This value is mandatory. 96 | listen = 127.0.0.1:9000 97 | 98 | ; Set listen(2) backlog. A value of '-1' means unlimited. 99 | ; Default Value: 128 (-1 on FreeBSD and OpenBSD) 100 | ;listen.backlog = -1 101 | 102 | ; List of ipv4 addresses of FastCGI clients which are allowed to connect. 103 | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original 104 | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address 105 | ; must be separated by a comma. If this value is left blank, connections will be 106 | ; accepted from any ip address. 107 | ; Default Value: any 108 | ;listen.allowed_clients = 127.0.0.1 109 | 110 | ; Set permissions for unix socket, if one is used. In Linux, read/write 111 | ; permissions must be set in order to allow connections from a web server. Many 112 | ; BSD-derived systems allow connections regardless of permissions. 113 | ; Default Values: user and group are set as the running user 114 | ; mode is set to 0666 115 | ;listen.owner = www-data 116 | ;listen.group = www-data 117 | ;listen.mode = 0666 118 | 119 | ; Unix user/group of processes 120 | ; Note: The user is mandatory. If the group is not set, the default user's group 121 | ; will be used. 122 | user = www-data 123 | group = www-data 124 | 125 | ; Choose how the process manager will control the number of child processes. 126 | ; Possible Values: 127 | ; static - a fixed number (pm.max_children) of child processes; 128 | ; dynamic - the number of child processes are set dynamically based on the 129 | ; following directives: 130 | ; pm.max_children - the maximum number of children that can 131 | ; be alive at the same time. 132 | ; pm.start_servers - the number of children created on startup. 133 | ; pm.min_spare_servers - the minimum number of children in 'idle' 134 | ; state (waiting to process). If the number 135 | ; of 'idle' processes is less than this 136 | ; number then some children will be created. 137 | ; pm.max_spare_servers - the maximum number of children in 'idle' 138 | ; state (waiting to process). If the number 139 | ; of 'idle' processes is greater than this 140 | ; number then some children will be killed. 141 | ; Note: This value is mandatory. 142 | pm = dynamic 143 | 144 | ; The number of child processes to be created when pm is set to 'static' and the 145 | ; maximum number of child processes to be created when pm is set to 'dynamic'. 146 | ; This value sets the limit on the number of simultaneous requests that will be 147 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. 148 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP 149 | ; CGI. 150 | ; Note: Used when pm is set to either 'static' or 'dynamic' 151 | ; Note: This value is mandatory. 152 | pm.max_children = 50 153 | 154 | ; The number of child processes created on startup. 155 | ; Note: Used only when pm is set to 'dynamic' 156 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 157 | pm.start_servers = 20 158 | 159 | ; The desired minimum number of idle server processes. 160 | ; Note: Used only when pm is set to 'dynamic' 161 | ; Note: Mandatory when pm is set to 'dynamic' 162 | pm.min_spare_servers = 5 163 | 164 | ; The desired maximum number of idle server processes. 165 | ; Note: Used only when pm is set to 'dynamic' 166 | ; Note: Mandatory when pm is set to 'dynamic' 167 | pm.max_spare_servers = 35 168 | 169 | ; The number of requests each child process should execute before respawning. 170 | ; This can be useful to work around memory leaks in 3rd party libraries. For 171 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. 172 | ; Default Value: 0 173 | pm.max_requests = 0 174 | 175 | ; The URI to view the FPM status page. If this value is not set, no URI will be 176 | ; recognized as a status page. By default, the status page shows the following 177 | ; information: 178 | ; accepted conn - the number of request accepted by the pool; 179 | ; pool - the name of the pool; 180 | ; process manager - static or dynamic; 181 | ; idle processes - the number of idle processes; 182 | ; active processes - the number of active processes; 183 | ; total processes - the number of idle + active processes. 184 | ; max children reached - number of times, the process limit has been reached, 185 | ; when pm tries to start more children (works only for 186 | ; pm 'dynamic') 187 | ; The values of 'idle processes', 'active processes' and 'total processes' are 188 | ; updated each second. The value of 'accepted conn' is updated in real time. 189 | ; Example output: 190 | ; accepted conn: 12073 191 | ; pool: www 192 | ; process manager: static 193 | ; idle processes: 35 194 | ; active processes: 65 195 | ; total processes: 100 196 | ; max children reached: 1 197 | ; By default the status page output is formatted as text/plain. Passing either 198 | ; 'html' or 'json' as a query string will return the corresponding output 199 | ; syntax. Example: 200 | ; http://www.foo.bar/status 201 | ; http://www.foo.bar/status?json 202 | ; http://www.foo.bar/status?html 203 | ; Note: The value must start with a leading slash (/). The value can be 204 | ; anything, but it may not be a good idea to use the .php extension or it 205 | ; may conflict with a real PHP file. 206 | ; Default Value: not set 207 | ;pm.status_path = /status 208 | 209 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no 210 | ; URI will be recognized as a ping page. This could be used to test from outside 211 | ; that FPM is alive and responding, or to 212 | ; - create a graph of FPM availability (rrd or such); 213 | ; - remove a server from a group if it is not responding (load balancing); 214 | ; - trigger alerts for the operating team (24/7). 215 | ; Note: The value must start with a leading slash (/). The value can be 216 | ; anything, but it may not be a good idea to use the .php extension or it 217 | ; may conflict with a real PHP file. 218 | ; Default Value: not set 219 | ;ping.path = /ping 220 | 221 | ; This directive may be used to customize the response of a ping request. The 222 | ; response is formatted as text/plain with a 200 response code. 223 | ; Default Value: pong 224 | ;ping.response = pong 225 | 226 | ; The timeout for serving a single request after which the worker process will 227 | ; be killed. This option should be used when the 'max_execution_time' ini option 228 | ; does not stop script execution for some reason. A value of '0' means 'off'. 229 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 230 | ; Default Value: 0 231 | ;request_terminate_timeout = 0 232 | 233 | ; The timeout for serving a single request after which a PHP backtrace will be 234 | ; dumped to the 'slowlog' file. A value of '0s' means 'off'. 235 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) 236 | ; Default Value: 0 237 | ;request_slowlog_timeout = 0 238 | 239 | ; The log file for slow requests 240 | ; Default Value: not set 241 | ; Note: slowlog is mandatory if request_slowlog_timeout is set 242 | ;slowlog = log/$pool.log.slow 243 | 244 | ; Set open file descriptor rlimit. 245 | ; Default Value: system defined value 246 | ;rlimit_files = 1024 247 | 248 | ; Set max core size rlimit. 249 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 250 | ; Default Value: system defined value 251 | ;rlimit_core = 0 252 | 253 | ; Chroot to this directory at the start. This value must be defined as an 254 | ; absolute path. When this value is not set, chroot is not used. 255 | ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one 256 | ; of its subdirectories. If the pool prefix is not set, the global prefix 257 | ; will be used instead. 258 | ; Note: chrooting is a great security feature and should be used whenever 259 | ; possible. However, all PHP paths will be relative to the chroot 260 | ; (error_log, sessions.save_path, ...). 261 | ; Default Value: not set 262 | ;chroot = 263 | 264 | ; Chdir to this directory at the start. 265 | ; Note: relative path can be used. 266 | ; Default Value: current directory or / when chroot 267 | ;chdir = /var/www 268 | 269 | ; Redirect worker stdout and stderr into main error log. If not set, stdout and 270 | ; stderr will be redirected to /dev/null according to FastCGI specs. 271 | ; Note: on highloaded environement, this can cause some delay in the page 272 | ; process time (several ms). 273 | ; Default Value: no 274 | ;catch_workers_output = yes 275 | 276 | ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from 277 | ; the current environment. 278 | ; Default Value: clean env 279 | ;env[HOSTNAME] = $HOSTNAME 280 | ;env[PATH] = /usr/local/bin:/usr/bin:/bin 281 | ;env[TMP] = /tmp 282 | ;env[TMPDIR] = /tmp 283 | ;env[TEMP] = /tmp 284 | 285 | ; Additional php.ini defines, specific to this pool of workers. These settings 286 | ; overwrite the values previously defined in the php.ini. The directives are the 287 | ; same as the PHP SAPI: 288 | ; php_value/php_flag - you can set classic ini defines which can 289 | ; be overwritten from PHP call 'ini_set'. 290 | ; php_admin_value/php_admin_flag - these directives won't be overwritten by 291 | ; PHP call 'ini_set' 292 | ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. 293 | 294 | ; Defining 'extension' will load the corresponding shared extension from 295 | ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not 296 | ; overwrite previously defined php.ini values, but will append the new value 297 | ; instead. 298 | 299 | ; Note: path INI options can be relative and will be expanded with the prefix 300 | ; (pool, global or /usr) 301 | 302 | ; Default Value: nothing is defined by default except the values in php.ini and 303 | ; specified at startup with the -d argument 304 | ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com 305 | ;php_flag[display_errors] = off 306 | ;php_admin_value[error_log] = /var/log/fpm-php.www.log 307 | ;php_admin_flag[log_errors] = on 308 | ;php_admin_value[memory_limit] = 32M 309 | -------------------------------------------------------------------------------- /fpm/php.ini: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and Lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it's 82 | ; much more verbose when it comes to errors. We recommending using the 83 | ; development version only in development environments as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ;;;;;;;;;;;;;;;;;;; 87 | ; Quick Reference ; 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; The following are all the settings which are different in either the production 90 | ; or development versions of the INIs with respect to PHP's default behavior. 91 | ; Please see the actual settings later in the document for more details as to why 92 | ; we recommend these changes in PHP's behavior. 93 | 94 | ; allow_call_time_pass_reference 95 | ; Default Value: On 96 | ; Development Value: Off 97 | ; Production Value: Off 98 | 99 | display_errors = On 100 | ; Default Value: On 101 | ; Development Value: On 102 | ; Production Value: Off 103 | 104 | ; display_startup_errors 105 | ; Default Value: Off 106 | ; Development Value: On 107 | ; Production Value: Off 108 | 109 | ; error_reporting 110 | ; Default Value: E_ALL & ~E_NOTICE 111 | ; Development Value: E_ALL | E_STRICT 112 | ; Production Value: E_ALL & ~E_DEPRECATED 113 | 114 | ; html_errors 115 | ; Default Value: On 116 | ; Development Value: On 117 | ; Production value: Off 118 | 119 | ; log_errors 120 | ; Default Value: Off 121 | ; Development Value: On 122 | ; Production Value: On 123 | 124 | ; magic_quotes_gpc 125 | ; Default Value: On 126 | ; Development Value: Off 127 | ; Production Value: Off 128 | 129 | ; max_input_time 130 | ; Default Value: -1 (Unlimited) 131 | ; Development Value: 60 (60 seconds) 132 | ; Production Value: 60 (60 seconds) 133 | 134 | ; output_buffering 135 | ; Default Value: Off 136 | ; Development Value: 4096 137 | ; Production Value: 4096 138 | 139 | ; register_argc_argv 140 | ; Default Value: On 141 | ; Development Value: Off 142 | ; Production Value: Off 143 | 144 | ; register_long_arrays 145 | ; Default Value: On 146 | ; Development Value: Off 147 | ; Production Value: Off 148 | 149 | ; request_order 150 | ; Default Value: None 151 | ; Development Value: "GP" 152 | ; Production Value: "GP" 153 | 154 | ; session.bug_compat_42 155 | ; Default Value: On 156 | ; Development Value: On 157 | ; Production Value: Off 158 | 159 | ; session.bug_compat_warn 160 | ; Default Value: On 161 | ; Development Value: On 162 | ; Production Value: Off 163 | 164 | ; session.gc_divisor 165 | ; Default Value: 100 166 | ; Development Value: 1000 167 | ; Production Value: 1000 168 | 169 | ; session.hash_bits_per_character 170 | ; Default Value: 4 171 | ; Development Value: 5 172 | ; Production Value: 5 173 | 174 | ; short_open_tag 175 | ; Default Value: On 176 | ; Development Value: Off 177 | ; Production Value: Off 178 | 179 | ; track_errors 180 | ; Default Value: Off 181 | ; Development Value: On 182 | ; Production Value: Off 183 | 184 | ; url_rewriter.tags 185 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 186 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 187 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 188 | 189 | ; variables_order 190 | ; Default Value: "EGPCS" 191 | ; Development Value: "GPCS" 192 | ; Production Value: "GPCS" 193 | 194 | ;;;;;;;;;;;;;;;;;;;; 195 | ; php.ini Options ; 196 | ;;;;;;;;;;;;;;;;;;;; 197 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 198 | ;user_ini.filename = ".user.ini" 199 | 200 | ; To disable this feature set this option to empty value 201 | ;user_ini.filename = 202 | 203 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 204 | ;user_ini.cache_ttl = 300 205 | 206 | ;;;;;;;;;;;;;;;;;;;; 207 | ; Language Options ; 208 | ;;;;;;;;;;;;;;;;;;;; 209 | 210 | ; Enable the PHP scripting language engine under Apache. 211 | ; http://php.net/engine 212 | engine = On 213 | 214 | ; This directive determines whether or not PHP will recognize code between 215 | ; tags as PHP source which should be processed as such. It's been 216 | ; recommended for several years that you not use the short tag "short cut" and 217 | ; instead to use the full tag combination. With the wide spread use 218 | ; of XML and use of these tags by other languages, the server can become easily 219 | ; confused and end up parsing the wrong code in the wrong context. But because 220 | ; this short cut has been a feature for such a long time, it's currently still 221 | ; supported for backwards compatibility, but we recommend you don't use them. 222 | ; Default Value: On 223 | ; Development Value: Off 224 | ; Production Value: Off 225 | ; http://php.net/short-open-tag 226 | short_open_tag = Off 227 | 228 | ; Allow ASP-style <% %> tags. 229 | ; http://php.net/asp-tags 230 | asp_tags = Off 231 | 232 | ; The number of significant digits displayed in floating point numbers. 233 | ; http://php.net/precision 234 | precision = 14 235 | 236 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers) 237 | ; http://php.net/y2k-compliance 238 | y2k_compliance = On 239 | 240 | ; Output buffering is a mechanism for controlling how much output data 241 | ; (excluding headers and cookies) PHP should keep internally before pushing that 242 | ; data to the client. If your application's output exceeds this setting, PHP 243 | ; will send that data in chunks of roughly the size you specify. 244 | ; Turning on this setting and managing its maximum buffer size can yield some 245 | ; interesting side-effects depending on your application and web server. 246 | ; You may be able to send headers and cookies after you've already sent output 247 | ; through print or echo. You also may see performance benefits if your server is 248 | ; emitting less packets due to buffered output versus PHP streaming the output 249 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 250 | ; reasons. 251 | ; Note: Output buffering can also be controlled via Output Buffering Control 252 | ; functions. 253 | ; Possible Values: 254 | ; On = Enabled and buffer is unlimited. (Use with caution) 255 | ; Off = Disabled 256 | ; Integer = Enables the buffer and sets its maximum size in bytes. 257 | ; Note: This directive is hardcoded to Off for the CLI SAPI 258 | ; Default Value: Off 259 | ; Development Value: 4096 260 | ; Production Value: 4096 261 | ; http://php.net/output-buffering 262 | output_buffering = 4096 263 | 264 | ; You can redirect all of the output of your scripts to a function. For 265 | ; example, if you set output_handler to "mb_output_handler", character 266 | ; encoding will be transparently converted to the specified encoding. 267 | ; Setting any output handler automatically turns on output buffering. 268 | ; Note: People who wrote portable scripts should not depend on this ini 269 | ; directive. Instead, explicitly set the output handler using ob_start(). 270 | ; Using this ini directive may cause problems unless you know what script 271 | ; is doing. 272 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 273 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 274 | ; Note: output_handler must be empty if this is set 'On' !!!! 275 | ; Instead you must use zlib.output_handler. 276 | ; http://php.net/output-handler 277 | ;output_handler = 278 | 279 | ; Transparent output compression using the zlib library 280 | ; Valid values for this option are 'off', 'on', or a specific buffer size 281 | ; to be used for compression (default is 4KB) 282 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 283 | ; outputs chunks that are few hundreds bytes each as a result of 284 | ; compression. If you prefer a larger chunk size for better 285 | ; performance, enable output_buffering in addition. 286 | ; Note: You need to use zlib.output_handler instead of the standard 287 | ; output_handler, or otherwise the output will be corrupted. 288 | ; http://php.net/zlib.output-compression 289 | zlib.output_compression = On 290 | 291 | ; http://php.net/zlib.output-compression-level 292 | zlib.output_compression_level = 1 293 | 294 | ; You cannot specify additional output handlers if zlib.output_compression 295 | ; is activated here. This setting does the same as output_handler but in 296 | ; a different order. 297 | ; http://php.net/zlib.output-handler 298 | ;zlib.output_handler = 299 | 300 | ; Implicit flush tells PHP to tell the output layer to flush itself 301 | ; automatically after every output block. This is equivalent to calling the 302 | ; PHP function flush() after each and every call to print() or echo() and each 303 | ; and every HTML block. Turning this option on has serious performance 304 | ; implications and is generally recommended for debugging purposes only. 305 | ; http://php.net/implicit-flush 306 | ; Note: This directive is hardcoded to On for the CLI SAPI 307 | implicit_flush = Off 308 | 309 | ; The unserialize callback function will be called (with the undefined class' 310 | ; name as parameter), if the unserializer finds an undefined class 311 | ; which should be instantiated. A warning appears if the specified function is 312 | ; not defined, or if the function doesn't include/implement the missing class. 313 | ; So only set this entry, if you really want to implement such a 314 | ; callback-function. 315 | unserialize_callback_func = 316 | 317 | ; When floats & doubles are serialized store serialize_precision significant 318 | ; digits after the floating point. The default value ensures that when floats 319 | ; are decoded with unserialize, the data will remain the same. 320 | serialize_precision = 100 321 | 322 | ; This directive allows you to enable and disable warnings which PHP will issue 323 | ; if you pass a value by reference at function call time. Passing values by 324 | ; reference at function call time is a deprecated feature which will be removed 325 | ; from PHP at some point in the near future. The acceptable method for passing a 326 | ; value by reference to a function is by declaring the reference in the functions 327 | ; definition, not at call time. This directive does not disable this feature, it 328 | ; only determines whether PHP will warn you about it or not. These warnings 329 | ; should enabled in development environments only. 330 | ; Default Value: On (Suppress warnings) 331 | ; Development Value: Off (Issue warnings) 332 | ; Production Value: Off (Issue warnings) 333 | ; http://php.net/allow-call-time-pass-reference 334 | allow_call_time_pass_reference = Off 335 | 336 | ; Safe Mode 337 | ; http://php.net/safe-mode 338 | safe_mode = Off 339 | 340 | ; By default, Safe Mode does a UID compare check when 341 | ; opening files. If you want to relax this to a GID compare, 342 | ; then turn on safe_mode_gid. 343 | ; http://php.net/safe-mode-gid 344 | safe_mode_gid = Off 345 | 346 | ; When safe_mode is on, UID/GID checks are bypassed when 347 | ; including files from this directory and its subdirectories. 348 | ; (directory must also be in include_path or full path must 349 | ; be used when including) 350 | ; http://php.net/safe-mode-include-dir 351 | safe_mode_include_dir = 352 | 353 | ; When safe_mode is on, only executables located in the safe_mode_exec_dir 354 | ; will be allowed to be executed via the exec family of functions. 355 | ; http://php.net/safe-mode-exec-dir 356 | safe_mode_exec_dir = 357 | 358 | ; Setting certain environment variables may be a potential security breach. 359 | ; This directive contains a comma-delimited list of prefixes. In Safe Mode, 360 | ; the user may only alter environment variables whose names begin with the 361 | ; prefixes supplied here. By default, users will only be able to set 362 | ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR). 363 | ; Note: If this directive is empty, PHP will let the user modify ANY 364 | ; environment variable! 365 | ; http://php.net/safe-mode-allowed-env-vars 366 | safe_mode_allowed_env_vars = PHP_ 367 | 368 | ; This directive contains a comma-delimited list of environment variables that 369 | ; the end user won't be able to change using putenv(). These variables will be 370 | ; protected even if safe_mode_allowed_env_vars is set to allow to change them. 371 | ; http://php.net/safe-mode-protected-env-vars 372 | safe_mode_protected_env_vars = LD_LIBRARY_PATH 373 | 374 | ; open_basedir, if set, limits all file operations to the defined directory 375 | ; and below. This directive makes most sense if used in a per-directory 376 | ; or per-virtualhost web server configuration file. This directive is 377 | ; *NOT* affected by whether Safe Mode is turned On or Off. 378 | ; http://php.net/open-basedir 379 | ;open_basedir = 380 | 381 | ; This directive allows you to disable certain functions for security reasons. 382 | ; It receives a comma-delimited list of function names. This directive is 383 | ; *NOT* affected by whether Safe Mode is turned On or Off. 384 | ; http://php.net/disable-functions 385 | disable_functions = 386 | 387 | ; This directive allows you to disable certain classes for security reasons. 388 | ; It receives a comma-delimited list of class names. This directive is 389 | ; *NOT* affected by whether Safe Mode is turned On or Off. 390 | ; http://php.net/disable-classes 391 | disable_classes = 392 | 393 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 394 | ; would work. 395 | ; http://php.net/syntax-highlighting 396 | ;highlight.string = #DD0000 397 | ;highlight.comment = #FF9900 398 | ;highlight.keyword = #007700 399 | ;highlight.bg = #FFFFFF 400 | ;highlight.default = #0000BB 401 | ;highlight.html = #000000 402 | 403 | ; If enabled, the request will be allowed to complete even if the user aborts 404 | ; the request. Consider enabling it if executing long requests, which may end up 405 | ; being interrupted by the user or a browser timing out. PHP's default behavior 406 | ; is to disable this feature. 407 | ; http://php.net/ignore-user-abort 408 | ;ignore_user_abort = On 409 | 410 | ; Determines the size of the realpath cache to be used by PHP. This value should 411 | ; be increased on systems where PHP opens many files to reflect the quantity of 412 | ; the file operations performed. 413 | ; http://php.net/realpath-cache-size 414 | ;realpath_cache_size = 16k 415 | 416 | ; Duration of time, in seconds for which to cache realpath information for a given 417 | ; file or directory. For systems with rarely changing files, consider increasing this 418 | ; value. 419 | ; http://php.net/realpath-cache-ttl 420 | ;realpath_cache_ttl = 120 421 | 422 | ;;;;;;;;;;;;;;;;; 423 | ; Miscellaneous ; 424 | ;;;;;;;;;;;;;;;;; 425 | 426 | ; Decides whether PHP may expose the fact that it is installed on the server 427 | ; (e.g. by adding its signature to the Web server header). It is no security 428 | ; threat in any way, but it makes it possible to determine whether you use PHP 429 | ; on your server or not. 430 | ; http://php.net/expose-php 431 | expose_php = Off 432 | 433 | ;;;;;;;;;;;;;;;;;;; 434 | ; Resource Limits ; 435 | ;;;;;;;;;;;;;;;;;;; 436 | 437 | ; Maximum execution time of each script, in seconds 438 | ; http://php.net/max-execution-time 439 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 440 | max_execution_time = 30 441 | 442 | ; Maximum amount of time each script may spend parsing request data. It's a good 443 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 444 | ; long running scripts. 445 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 446 | ; Default Value: -1 (Unlimited) 447 | ; Development Value: 60 (60 seconds) 448 | ; Production Value: 60 (60 seconds) 449 | ; http://php.net/max-input-time 450 | max_input_time = 60 451 | 452 | ; Maximum input variable nesting level 453 | ; http://php.net/max-input-nesting-level 454 | ;max_input_nesting_level = 64 455 | 456 | ; Maximum amount of memory a script may consume (128MB) 457 | ; http://php.net/memory-limit 458 | memory_limit = 512M 459 | 460 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 461 | ; Error handling and logging ; 462 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 463 | 464 | ; This directive informs PHP of which errors, warnings and notices you would like 465 | ; it to take action for. The recommended way of setting values for this 466 | ; directive is through the use of the error level constants and bitwise 467 | ; operators. The error level constants are below here for convenience as well as 468 | ; some common settings and their meanings. 469 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 470 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 471 | ; recommended coding standards in PHP. For performance reasons, this is the 472 | ; recommend error reporting setting. Your production server shouldn't be wasting 473 | ; resources complaining about best practices and coding standards. That's what 474 | ; development servers and development settings are for. 475 | ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This 476 | ; means it pretty much reports everything which is exactly what you want during 477 | ; development and early testing. 478 | ; 479 | ; Error Level Constants: 480 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0) 481 | ; E_ERROR - fatal run-time errors 482 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 483 | ; E_WARNING - run-time warnings (non-fatal errors) 484 | ; E_PARSE - compile-time parse errors 485 | ; E_NOTICE - run-time notices (these are warnings which often result 486 | ; from a bug in your code, but it's possible that it was 487 | ; intentional (e.g., using an uninitialized variable and 488 | ; relying on the fact it's automatically initialized to an 489 | ; empty string) 490 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 491 | ; to your code which will ensure the best interoperability 492 | ; and forward compatibility of your code 493 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 494 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 495 | ; initial startup 496 | ; E_COMPILE_ERROR - fatal compile-time errors 497 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 498 | ; E_USER_ERROR - user-generated error message 499 | ; E_USER_WARNING - user-generated warning message 500 | ; E_USER_NOTICE - user-generated notice message 501 | ; E_DEPRECATED - warn about code that will not work in future versions 502 | ; of PHP 503 | ; E_USER_DEPRECATED - user-generated deprecation warnings 504 | ; 505 | ; Common Values: 506 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) 507 | ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) 508 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 509 | ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) 510 | ; Default Value: E_ALL & ~E_NOTICE 511 | ; Development Value: E_ALL | E_STRICT 512 | ; Production Value: E_ALL & ~E_DEPRECATED 513 | ; http://php.net/error-reporting 514 | error_reporting = E_ALL & ~E_DEPRECATED 515 | 516 | ; This directive controls whether or not and where PHP will output errors, 517 | ; notices and warnings too. Error output is very useful during development, but 518 | ; it could be very dangerous in production environments. Depending on the code 519 | ; which is triggering the error, sensitive information could potentially leak 520 | ; out of your application such as database usernames and passwords or worse. 521 | ; It's recommended that errors be logged on production servers rather than 522 | ; having the errors sent to STDOUT. 523 | ; Possible Values: 524 | ; Off = Do not display any errors 525 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 526 | ; On or stdout = Display errors to STDOUT 527 | ; Default Value: On 528 | ; Development Value: On 529 | ; Production Value: Off 530 | ; http://php.net/display-errors 531 | display_errors = On 532 | 533 | ; The display of errors which occur during PHP's startup sequence are handled 534 | ; separately from display_errors. PHP's default behavior is to suppress those 535 | ; errors from clients. Turning the display of startup errors on can be useful in 536 | ; debugging configuration problems. But, it's strongly recommended that you 537 | ; leave this setting off on production servers. 538 | ; Default Value: Off 539 | ; Development Value: On 540 | ; Production Value: Off 541 | ; http://php.net/display-startup-errors 542 | display_startup_errors = Off 543 | 544 | ; Besides displaying errors, PHP can also log errors to locations such as a 545 | ; server-specific log, STDERR, or a location specified by the error_log 546 | ; directive found below. While errors should not be displayed on productions 547 | ; servers they should still be monitored and logging is a great way to do that. 548 | ; Default Value: Off 549 | ; Development Value: On 550 | ; Production Value: On 551 | ; http://php.net/log-errors 552 | log_errors = On 553 | 554 | ; Set maximum length of log_errors. In error_log information about the source is 555 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 556 | ; http://php.net/log-errors-max-len 557 | log_errors_max_len = 1024 558 | 559 | ; Do not log repeated messages. Repeated errors must occur in same file on same 560 | ; line unless ignore_repeated_source is set true. 561 | ; http://php.net/ignore-repeated-errors 562 | ignore_repeated_errors = Off 563 | 564 | ; Ignore source of message when ignoring repeated messages. When this setting 565 | ; is On you will not log errors with repeated messages from different files or 566 | ; source lines. 567 | ; http://php.net/ignore-repeated-source 568 | ignore_repeated_source = Off 569 | 570 | ; If this parameter is set to Off, then memory leaks will not be shown (on 571 | ; stdout or in the log). This has only effect in a debug compile, and if 572 | ; error reporting includes E_WARNING in the allowed list 573 | ; http://php.net/report-memleaks 574 | report_memleaks = On 575 | 576 | ; This setting is on by default. 577 | ;report_zend_debug = 0 578 | 579 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 580 | ; to On can assist in debugging and is appropriate for development servers. It should 581 | ; however be disabled on production servers. 582 | ; Default Value: Off 583 | ; Development Value: On 584 | ; Production Value: Off 585 | ; http://php.net/track-errors 586 | track_errors = Off 587 | 588 | ; Turn off normal error reporting and emit XML-RPC error XML 589 | ; http://php.net/xmlrpc-errors 590 | ;xmlrpc_errors = 0 591 | 592 | ; An XML-RPC faultCode 593 | ;xmlrpc_error_number = 0 594 | 595 | ; When PHP displays or logs an error, it has the capability of inserting html 596 | ; links to documentation related to that error. This directive controls whether 597 | ; those HTML links appear in error messages or not. For performance and security 598 | ; reasons, it's recommended you disable this on production servers. 599 | ; Note: This directive is hardcoded to Off for the CLI SAPI 600 | ; Default Value: On 601 | ; Development Value: On 602 | ; Production value: Off 603 | ; http://php.net/html-errors 604 | html_errors = Off 605 | 606 | ; If html_errors is set On PHP produces clickable error messages that direct 607 | ; to a page describing the error or function causing the error in detail. 608 | ; You can download a copy of the PHP manual from http://php.net/docs 609 | ; and change docref_root to the base URL of your local copy including the 610 | ; leading '/'. You must also specify the file extension being used including 611 | ; the dot. PHP's default behavior is to leave these settings empty. 612 | ; Note: Never use this feature for production boxes. 613 | ; http://php.net/docref-root 614 | ; Examples 615 | ;docref_root = "/phpmanual/" 616 | 617 | ; http://php.net/docref-ext 618 | ;docref_ext = .html 619 | 620 | ; String to output before an error message. PHP's default behavior is to leave 621 | ; this setting blank. 622 | ; http://php.net/error-prepend-string 623 | ; Example: 624 | ;error_prepend_string = "" 625 | 626 | ; String to output after an error message. PHP's default behavior is to leave 627 | ; this setting blank. 628 | ; http://php.net/error-append-string 629 | ; Example: 630 | ;error_append_string = "" 631 | 632 | ; Log errors to specified file. PHP's default behavior is to leave this value 633 | ; empty. 634 | ; http://php.net/error-log 635 | ; Example: 636 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95). 637 | ;error_log = syslog 638 | 639 | ;;;;;;;;;;;;;;;;; 640 | ; Data Handling ; 641 | ;;;;;;;;;;;;;;;;; 642 | 643 | ; The separator used in PHP generated URLs to separate arguments. 644 | ; PHP's default setting is "&". 645 | ; http://php.net/arg-separator.output 646 | ; Example: 647 | ;arg_separator.output = "&" 648 | 649 | ; List of separator(s) used by PHP to parse input URLs into variables. 650 | ; PHP's default setting is "&". 651 | ; NOTE: Every character in this directive is considered as separator! 652 | ; http://php.net/arg-separator.input 653 | ; Example: 654 | ;arg_separator.input = ";&" 655 | 656 | ; This directive determines which super global arrays are registered when PHP 657 | ; starts up. If the register_globals directive is enabled, it also determines 658 | ; what order variables are populated into the global space. G,P,C,E & S are 659 | ; abbreviations for the following respective super globals: GET, POST, COOKIE, 660 | ; ENV and SERVER. There is a performance penalty paid for the registration of 661 | ; these arrays and because ENV is not as commonly used as the others, ENV is 662 | ; is not recommended on productions servers. You can still get access to 663 | ; the environment variables through getenv() should you need to. 664 | ; Default Value: "EGPCS" 665 | ; Development Value: "GPCS" 666 | ; Production Value: "GPCS"; 667 | ; http://php.net/variables-order 668 | variables_order = "GPCS" 669 | 670 | ; This directive determines which super global data (G,P,C,E & S) should 671 | ; be registered into the super global array REQUEST. If so, it also determines 672 | ; the order in which that data is registered. The values for this directive are 673 | ; specified in the same manner as the variables_order directive, EXCEPT one. 674 | ; Leaving this value empty will cause PHP to use the value set in the 675 | ; variables_order directive. It does not mean it will leave the super globals 676 | ; array REQUEST empty. 677 | ; Default Value: None 678 | ; Development Value: "GP" 679 | ; Production Value: "GP" 680 | ; http://php.net/request-order 681 | request_order = "GP" 682 | 683 | ; Whether or not to register the EGPCS variables as global variables. You may 684 | ; want to turn this off if you don't want to clutter your scripts' global scope 685 | ; with user data. 686 | ; You should do your best to write your scripts so that they do not require 687 | ; register_globals to be on; Using form variables as globals can easily lead 688 | ; to possible security problems, if the code is not very well thought of. 689 | ; http://php.net/register-globals 690 | register_globals = Off 691 | 692 | ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables 693 | ; are registered by PHP or not. As they are deprecated, we obviously don't 694 | ; recommend you use them. They are on by default for compatibility reasons but 695 | ; they are not recommended on production servers. 696 | ; Default Value: On 697 | ; Development Value: Off 698 | ; Production Value: Off 699 | ; http://php.net/register-long-arrays 700 | register_long_arrays = Off 701 | 702 | ; This directive determines whether PHP registers $argv & $argc each time it 703 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 704 | ; is invoked. $argc contains an integer representing the number of arguments 705 | ; that were passed when the script was invoked. These arrays are extremely 706 | ; useful when running scripts from the command line. When this directive is 707 | ; enabled, registering these variables consumes CPU cycles and memory each time 708 | ; a script is executed. For performance reasons, this feature should be disabled 709 | ; on production servers. 710 | ; Note: This directive is hardcoded to On for the CLI SAPI 711 | ; Default Value: On 712 | ; Development Value: Off 713 | ; Production Value: Off 714 | ; http://php.net/register-argc-argv 715 | register_argc_argv = Off 716 | 717 | ; When enabled, the SERVER and ENV variables are created when they're first 718 | ; used (Just In Time) instead of when the script starts. If these variables 719 | ; are not used within a script, having this directive on will result in a 720 | ; performance gain. The PHP directives register_globals, register_long_arrays, 721 | ; and register_argc_argv must be disabled for this directive to have any affect. 722 | ; http://php.net/auto-globals-jit 723 | auto_globals_jit = On 724 | 725 | ; Maximum size of POST data that PHP will accept. 726 | ; http://php.net/post-max-size 727 | post_max_size = 1024M 728 | 729 | ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to 730 | ; escape any character sequences in GET, POST, COOKIE and ENV data which might 731 | ; otherwise corrupt data being placed in resources such as databases before 732 | ; making that data available to you. Because of character encoding issues and 733 | ; non-standard SQL implementations across many databases, it's not currently 734 | ; possible for this feature to be 100% accurate. PHP's default behavior is to 735 | ; enable the feature. We strongly recommend you use the escaping mechanisms 736 | ; designed specifically for the database your using instead of relying on this 737 | ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is 738 | ; scheduled for removal in PHP 6. 739 | ; Default Value: On 740 | ; Development Value: Off 741 | ; Production Value: Off 742 | ; http://php.net/magic-quotes-gpc 743 | magic_quotes_gpc = Off 744 | 745 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. 746 | ; http://php.net/magic-quotes-runtime 747 | magic_quotes_runtime = Off 748 | 749 | ; Use Sybase-style magic quotes (escape ' with '' instead of \'). 750 | ; http://php.net/magic-quotes-sybase 751 | magic_quotes_sybase = Off 752 | 753 | ; Automatically add files before PHP document. 754 | ; http://php.net/auto-prepend-file 755 | auto_prepend_file = 756 | 757 | ; Automatically add files after PHP document. 758 | ; http://php.net/auto-append-file 759 | auto_append_file = 760 | 761 | ; By default, PHP will output a character encoding using 762 | ; the Content-type: header. To disable sending of the charset, simply 763 | ; set it to be empty. 764 | ; 765 | ; PHP's built-in default is text/html 766 | ; http://php.net/default-mimetype 767 | default_mimetype = "text/html" 768 | 769 | ; PHP's default character set is set to empty. 770 | ; http://php.net/default-charset 771 | ;default_charset = "iso-8859-1" 772 | 773 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 774 | ; to disable this feature. 775 | ; http://php.net/always-populate-raw-post-data 776 | ;always_populate_raw_post_data = On 777 | 778 | ;;;;;;;;;;;;;;;;;;;;;;;;; 779 | ; Paths and Directories ; 780 | ;;;;;;;;;;;;;;;;;;;;;;;;; 781 | 782 | ; UNIX: "/path1:/path2" 783 | ;include_path = ".:/usr/share/php" 784 | ; 785 | ; Windows: "\path1;\path2" 786 | ;include_path = ".;c:\php\includes" 787 | ; 788 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 789 | ; http://php.net/include-path 790 | 791 | ; The root of the PHP pages, used only if nonempty. 792 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 793 | ; if you are running php as a CGI under any web server (other than IIS) 794 | ; see documentation for security issues. The alternate is to use the 795 | ; cgi.force_redirect configuration below 796 | ; http://php.net/doc-root 797 | doc_root = 798 | 799 | ; The directory under which PHP opens the script using /~username used only 800 | ; if nonempty. 801 | ; http://php.net/user-dir 802 | user_dir = 803 | 804 | ; Directory in which the loadable extensions (modules) reside. 805 | ; http://php.net/extension-dir 806 | ; extension_dir = "./" 807 | ; On windows: 808 | ; extension_dir = "ext" 809 | 810 | ; Whether or not to enable the dl() function. The dl() function does NOT work 811 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 812 | ; disabled on them. 813 | ; http://php.net/enable-dl 814 | enable_dl = Off 815 | 816 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 817 | ; most web servers. Left undefined, PHP turns this on by default. You can 818 | ; turn it off here AT YOUR OWN RISK 819 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 820 | ; http://php.net/cgi.force-redirect 821 | ;cgi.force_redirect = 1 822 | 823 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 824 | ; every request. PHP's default behavior is to disable this feature. 825 | ;cgi.nph = 1 826 | 827 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 828 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 829 | ; will look for to know it is OK to continue execution. Setting this variable MAY 830 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 831 | ; http://php.net/cgi.redirect-status-env 832 | ;cgi.redirect_status_env = ; 833 | 834 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 835 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 836 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 837 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 838 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 839 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 840 | ; http://php.net/cgi.fix-pathinfo 841 | ;cgi.fix_pathinfo=1 842 | 843 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 844 | ; security tokens of the calling client. This allows IIS to define the 845 | ; security context that the request runs under. mod_fastcgi under Apache 846 | ; does not currently support this feature (03/17/2002) 847 | ; Set to 1 if running under IIS. Default is zero. 848 | ; http://php.net/fastcgi.impersonate 849 | ;fastcgi.impersonate = 1; 850 | 851 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 852 | ; this feature. 853 | ;fastcgi.logging = 0 854 | 855 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 856 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that 857 | ; is supported by Apache. When this option is set to 1 PHP will send 858 | ; RFC2616 compliant header. 859 | ; Default is zero. 860 | ; http://php.net/cgi.rfc2616-headers 861 | ;cgi.rfc2616_headers = 0 862 | 863 | ;;;;;;;;;;;;;;;; 864 | ; File Uploads ; 865 | ;;;;;;;;;;;;;;;; 866 | 867 | ; Whether to allow HTTP file uploads. 868 | ; http://php.net/file-uploads 869 | file_uploads = On 870 | 871 | ; Temporary directory for HTTP uploaded files (will use system default if not 872 | ; specified). 873 | ; http://php.net/upload-tmp-dir 874 | ;upload_tmp_dir = 875 | 876 | ; Maximum allowed size for uploaded files. 877 | ; http://php.net/upload-max-filesize 878 | upload_max_filesize = 512M 879 | 880 | ; Maximum number of files that can be uploaded via a single request 881 | max_file_uploads = 20 882 | 883 | ;;;;;;;;;;;;;;;;;; 884 | ; Fopen wrappers ; 885 | ;;;;;;;;;;;;;;;;;; 886 | 887 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 888 | ; http://php.net/allow-url-fopen 889 | allow_url_fopen = Off 890 | 891 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 892 | ; http://php.net/allow-url-include 893 | allow_url_include = Off 894 | 895 | ; Define the anonymous ftp password (your email address). PHP's default setting 896 | ; for this is empty. 897 | ; http://php.net/from 898 | ;from="john@doe.com" 899 | 900 | ; Define the User-Agent string. PHP's default setting for this is empty. 901 | ; http://php.net/user-agent 902 | ;user_agent="PHP" 903 | 904 | ; Default timeout for socket based streams (seconds) 905 | ; http://php.net/default-socket-timeout 906 | default_socket_timeout = 60 907 | 908 | ; If your scripts have to deal with files from Macintosh systems, 909 | ; or you are running on a Mac and need to deal with files from 910 | ; unix or win32 systems, setting this flag will cause PHP to 911 | ; automatically detect the EOL character in those files so that 912 | ; fgets() and file() will work regardless of the source of the file. 913 | ; http://php.net/auto-detect-line-endings 914 | ;auto_detect_line_endings = Off 915 | 916 | ;;;;;;;;;;;;;;;;;;;;;; 917 | ; Dynamic Extensions ; 918 | ;;;;;;;;;;;;;;;;;;;;;; 919 | 920 | ; If you wish to have an extension loaded automatically, use the following 921 | ; syntax: 922 | ; 923 | ; extension=modulename.extension 924 | ; 925 | ; For example, on Windows: 926 | ; 927 | ; extension=msql.dll 928 | ; 929 | ; ... or under UNIX: 930 | ; 931 | ; extension=msql.so 932 | ; 933 | ; ... or with a path: 934 | ; 935 | ; extension=/path/to/extension/msql.so 936 | ; 937 | ; If you only provide the name of the extension, PHP will look for it in its 938 | ; default extension directory. 939 | ; 940 | 941 | ;;;;;;;;;;;;;;;;;;; 942 | ; Module Settings ; 943 | ;;;;;;;;;;;;;;;;;;; 944 | 945 | [Date] 946 | ; Defines the default timezone used by the date functions 947 | ; http://php.net/date.timezone 948 | date.timezone = 'Europe/Lisbon' 949 | 950 | ; http://php.net/date.default-latitude 951 | ;date.default_latitude = 31.7667 952 | 953 | ; http://php.net/date.default-longitude 954 | ;date.default_longitude = 35.2333 955 | 956 | ; http://php.net/date.sunrise-zenith 957 | ;date.sunrise_zenith = 90.583333 958 | 959 | ; http://php.net/date.sunset-zenith 960 | ;date.sunset_zenith = 90.583333 961 | 962 | [filter] 963 | ; http://php.net/filter.default 964 | ;filter.default = unsafe_raw 965 | 966 | ; http://php.net/filter.default-flags 967 | ;filter.default_flags = 968 | 969 | [iconv] 970 | ;iconv.input_encoding = ISO-8859-1 971 | ;iconv.internal_encoding = ISO-8859-1 972 | ;iconv.output_encoding = ISO-8859-1 973 | 974 | [intl] 975 | ;intl.default_locale = 976 | ; This directive allows you to produce PHP errors when some error 977 | ; happens within intl functions. The value is the level of the error produced. 978 | ; Default is 0, which does not produce any errors. 979 | ;intl.error_level = E_WARNING 980 | 981 | [sqlite] 982 | ; http://php.net/sqlite.assoc-case 983 | ;sqlite.assoc_case = 0 984 | 985 | [sqlite3] 986 | ;sqlite3.extension_dir = 987 | 988 | [Pcre] 989 | ;PCRE library backtracking limit. 990 | ; http://php.net/pcre.backtrack-limit 991 | ;pcre.backtrack_limit=100000 992 | 993 | ;PCRE library recursion limit. 994 | ;Please note that if you set this value to a high number you may consume all 995 | ;the available process stack and eventually crash PHP (due to reaching the 996 | ;stack size limit imposed by the Operating System). 997 | ; http://php.net/pcre.recursion-limit 998 | ;pcre.recursion_limit=100000 999 | 1000 | [Pdo] 1001 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1002 | ; http://php.net/pdo-odbc.connection-pooling 1003 | ;pdo_odbc.connection_pooling=strict 1004 | 1005 | ;pdo_odbc.db2_instance_name 1006 | 1007 | [Pdo_mysql] 1008 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1009 | ; http://php.net/pdo_mysql.cache_size 1010 | pdo_mysql.cache_size = 2000 1011 | 1012 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1013 | ; MySQL defaults. 1014 | ; http://php.net/pdo_mysql.default-socket 1015 | pdo_mysql.default_socket= 1016 | 1017 | [Phar] 1018 | ; http://php.net/phar.readonly 1019 | ;phar.readonly = On 1020 | 1021 | ; http://php.net/phar.require-hash 1022 | ;phar.require_hash = On 1023 | 1024 | ;phar.cache_list = 1025 | 1026 | [Syslog] 1027 | ; Whether or not to define the various syslog variables (e.g. $LOG_PID, 1028 | ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In 1029 | ; runtime, you can define these variables by calling define_syslog_variables(). 1030 | ; http://php.net/define-syslog-variables 1031 | define_syslog_variables = Off 1032 | 1033 | [mail function] 1034 | ; For Win32 only. 1035 | ; http://php.net/smtp 1036 | SMTP = localhost 1037 | ; http://php.net/smtp-port 1038 | smtp_port = 25 1039 | 1040 | ; For Win32 only. 1041 | ; http://php.net/sendmail-from 1042 | ;sendmail_from = me@example.com 1043 | 1044 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1045 | ; http://php.net/sendmail-path 1046 | ;sendmail_path = 1047 | 1048 | ; Force the addition of the specified parameters to be passed as extra parameters 1049 | ; to the sendmail binary. These parameters will always replace the value of 1050 | ; the 5th parameter to mail(), even in safe mode. 1051 | ;mail.force_extra_parameters = 1052 | 1053 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1054 | mail.add_x_header = On 1055 | 1056 | ; The path to a log file that will log all mail() calls. Log entries include 1057 | ; the full path of the script, line number, To address and headers. 1058 | ;mail.log = 1059 | 1060 | [SQL] 1061 | ; http://php.net/sql.safe-mode 1062 | sql.safe_mode = Off 1063 | 1064 | [ODBC] 1065 | ; http://php.net/odbc.default-db 1066 | ;odbc.default_db = Not yet implemented 1067 | 1068 | ; http://php.net/odbc.default-user 1069 | ;odbc.default_user = Not yet implemented 1070 | 1071 | ; http://php.net/odbc.default-pw 1072 | ;odbc.default_pw = Not yet implemented 1073 | 1074 | ; Controls the ODBC cursor model. 1075 | ; Default: SQL_CURSOR_STATIC (default). 1076 | ;odbc.default_cursortype 1077 | 1078 | ; Allow or prevent persistent links. 1079 | ; http://php.net/odbc.allow-persistent 1080 | odbc.allow_persistent = On 1081 | 1082 | ; Check that a connection is still valid before reuse. 1083 | ; http://php.net/odbc.check-persistent 1084 | odbc.check_persistent = On 1085 | 1086 | ; Maximum number of persistent links. -1 means no limit. 1087 | ; http://php.net/odbc.max-persistent 1088 | odbc.max_persistent = -1 1089 | 1090 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1091 | ; http://php.net/odbc.max-links 1092 | odbc.max_links = -1 1093 | 1094 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1095 | ; passthru. 1096 | ; http://php.net/odbc.defaultlrl 1097 | odbc.defaultlrl = 4096 1098 | 1099 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1100 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1101 | ; of odbc.defaultlrl and odbc.defaultbinmode 1102 | ; http://php.net/odbc.defaultbinmode 1103 | odbc.defaultbinmode = 1 1104 | 1105 | ;birdstep.max_links = -1 1106 | 1107 | [Interbase] 1108 | ; Allow or prevent persistent links. 1109 | ibase.allow_persistent = 1 1110 | 1111 | ; Maximum number of persistent links. -1 means no limit. 1112 | ibase.max_persistent = -1 1113 | 1114 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1115 | ibase.max_links = -1 1116 | 1117 | ; Default database name for ibase_connect(). 1118 | ;ibase.default_db = 1119 | 1120 | ; Default username for ibase_connect(). 1121 | ;ibase.default_user = 1122 | 1123 | ; Default password for ibase_connect(). 1124 | ;ibase.default_password = 1125 | 1126 | ; Default charset for ibase_connect(). 1127 | ;ibase.default_charset = 1128 | 1129 | ; Default timestamp format. 1130 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1131 | 1132 | ; Default date format. 1133 | ibase.dateformat = "%Y-%m-%d" 1134 | 1135 | ; Default time format. 1136 | ibase.timeformat = "%H:%M:%S" 1137 | 1138 | [MySQL] 1139 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1140 | ; http://php.net/mysql.allow_local_infile 1141 | mysql.allow_local_infile = On 1142 | 1143 | ; Allow or prevent persistent links. 1144 | ; http://php.net/mysql.allow-persistent 1145 | mysql.allow_persistent = On 1146 | 1147 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1148 | ; http://php.net/mysql.cache_size 1149 | mysql.cache_size = 2000 1150 | 1151 | ; Maximum number of persistent links. -1 means no limit. 1152 | ; http://php.net/mysql.max-persistent 1153 | mysql.max_persistent = -1 1154 | 1155 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1156 | ; http://php.net/mysql.max-links 1157 | mysql.max_links = -1 1158 | 1159 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1160 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1161 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1162 | ; at MYSQL_PORT. 1163 | ; http://php.net/mysql.default-port 1164 | mysql.default_port = 1165 | 1166 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1167 | ; MySQL defaults. 1168 | ; http://php.net/mysql.default-socket 1169 | mysql.default_socket = 1170 | 1171 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1172 | ; http://php.net/mysql.default-host 1173 | mysql.default_host = 1174 | 1175 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1176 | ; http://php.net/mysql.default-user 1177 | mysql.default_user = 1178 | 1179 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1180 | ; Note that this is generally a *bad* idea to store passwords in this file. 1181 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1182 | ; and reveal this password! And of course, any users with read access to this 1183 | ; file will be able to reveal the password as well. 1184 | ; http://php.net/mysql.default-password 1185 | mysql.default_password = 1186 | 1187 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1188 | ; http://php.net/mysql.connect-timeout 1189 | mysql.connect_timeout = 60 1190 | 1191 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1192 | ; SQL-Errors will be displayed. 1193 | ; http://php.net/mysql.trace-mode 1194 | mysql.trace_mode = Off 1195 | 1196 | [MySQLi] 1197 | 1198 | ; Maximum number of persistent links. -1 means no limit. 1199 | ; http://php.net/mysqli.max-persistent 1200 | mysqli.max_persistent = -1 1201 | 1202 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1203 | ; http://php.net/mysqli.allow_local_infile 1204 | ;mysqli.allow_local_infile = On 1205 | 1206 | ; Allow or prevent persistent links. 1207 | ; http://php.net/mysqli.allow-persistent 1208 | mysqli.allow_persistent = On 1209 | 1210 | ; Maximum number of links. -1 means no limit. 1211 | ; http://php.net/mysqli.max-links 1212 | mysqli.max_links = -1 1213 | 1214 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1215 | ; http://php.net/mysqli.cache_size 1216 | mysqli.cache_size = 2000 1217 | 1218 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1219 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1220 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1221 | ; at MYSQL_PORT. 1222 | ; http://php.net/mysqli.default-port 1223 | mysqli.default_port = 3306 1224 | 1225 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1226 | ; MySQL defaults. 1227 | ; http://php.net/mysqli.default-socket 1228 | mysqli.default_socket = 1229 | 1230 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1231 | ; http://php.net/mysqli.default-host 1232 | mysqli.default_host = 1233 | 1234 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1235 | ; http://php.net/mysqli.default-user 1236 | mysqli.default_user = 1237 | 1238 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1239 | ; Note that this is generally a *bad* idea to store passwords in this file. 1240 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1241 | ; and reveal this password! And of course, any users with read access to this 1242 | ; file will be able to reveal the password as well. 1243 | ; http://php.net/mysqli.default-pw 1244 | mysqli.default_pw = 1245 | 1246 | ; Allow or prevent reconnect 1247 | mysqli.reconnect = Off 1248 | 1249 | [mysqlnd] 1250 | ; Enable / Disable collection of general statstics by mysqlnd which can be 1251 | ; used to tune and monitor MySQL operations. 1252 | ; http://php.net/mysqlnd.collect_statistics 1253 | mysqlnd.collect_statistics = On 1254 | 1255 | ; Enable / Disable collection of memory usage statstics by mysqlnd which can be 1256 | ; used to tune and monitor MySQL operations. 1257 | ; http://php.net/mysqlnd.collect_memory_statistics 1258 | mysqlnd.collect_memory_statistics = Off 1259 | 1260 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1261 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1262 | ;mysqlnd.net_cmd_buffer_size = 2048 1263 | 1264 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1265 | ; bytes. 1266 | ; http://php.net/mysqlnd.net_read_buffer_size 1267 | ;mysqlnd.net_read_buffer_size = 32768 1268 | 1269 | [OCI8] 1270 | 1271 | ; Connection: Enables privileged connections using external 1272 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1273 | ; http://php.net/oci8.privileged-connect 1274 | ;oci8.privileged_connect = Off 1275 | 1276 | ; Connection: The maximum number of persistent OCI8 connections per 1277 | ; process. Using -1 means no limit. 1278 | ; http://php.net/oci8.max-persistent 1279 | ;oci8.max_persistent = -1 1280 | 1281 | ; Connection: The maximum number of seconds a process is allowed to 1282 | ; maintain an idle persistent connection. Using -1 means idle 1283 | ; persistent connections will be maintained forever. 1284 | ; http://php.net/oci8.persistent-timeout 1285 | ;oci8.persistent_timeout = -1 1286 | 1287 | ; Connection: The number of seconds that must pass before issuing a 1288 | ; ping during oci_pconnect() to check the connection validity. When 1289 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1290 | ; pings completely. 1291 | ; http://php.net/oci8.ping-interval 1292 | ;oci8.ping_interval = 60 1293 | 1294 | ; Connection: Set this to a user chosen connection class to be used 1295 | ; for all pooled server requests with Oracle 11g Database Resident 1296 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1297 | ; the same string for all web servers running the same application, 1298 | ; the database pool must be configured, and the connection string must 1299 | ; specify to use a pooled server. 1300 | ;oci8.connection_class = 1301 | 1302 | ; High Availability: Using On lets PHP receive Fast Application 1303 | ; Notification (FAN) events generated when a database node fails. The 1304 | ; database must also be configured to post FAN events. 1305 | ;oci8.events = Off 1306 | 1307 | ; Tuning: This option enables statement caching, and specifies how 1308 | ; many statements to cache. Using 0 disables statement caching. 1309 | ; http://php.net/oci8.statement-cache-size 1310 | ;oci8.statement_cache_size = 20 1311 | 1312 | ; Tuning: Enables statement prefetching and sets the default number of 1313 | ; rows that will be fetched automatically after statement execution. 1314 | ; http://php.net/oci8.default-prefetch 1315 | ;oci8.default_prefetch = 100 1316 | 1317 | ; Compatibility. Using On means oci_close() will not close 1318 | ; oci_connect() and oci_new_connect() connections. 1319 | ; http://php.net/oci8.old-oci-close-semantics 1320 | ;oci8.old_oci_close_semantics = Off 1321 | 1322 | [PostgresSQL] 1323 | ; Allow or prevent persistent links. 1324 | ; http://php.net/pgsql.allow-persistent 1325 | pgsql.allow_persistent = On 1326 | 1327 | ; Detect broken persistent links always with pg_pconnect(). 1328 | ; Auto reset feature requires a little overheads. 1329 | ; http://php.net/pgsql.auto-reset-persistent 1330 | pgsql.auto_reset_persistent = Off 1331 | 1332 | ; Maximum number of persistent links. -1 means no limit. 1333 | ; http://php.net/pgsql.max-persistent 1334 | pgsql.max_persistent = -1 1335 | 1336 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1337 | ; http://php.net/pgsql.max-links 1338 | pgsql.max_links = -1 1339 | 1340 | ; Ignore PostgreSQL backends Notice message or not. 1341 | ; Notice message logging require a little overheads. 1342 | ; http://php.net/pgsql.ignore-notice 1343 | pgsql.ignore_notice = 0 1344 | 1345 | ; Log PostgreSQL backends Notice message or not. 1346 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1347 | ; http://php.net/pgsql.log-notice 1348 | pgsql.log_notice = 0 1349 | 1350 | [Sybase-CT] 1351 | ; Allow or prevent persistent links. 1352 | ; http://php.net/sybct.allow-persistent 1353 | sybct.allow_persistent = On 1354 | 1355 | ; Maximum number of persistent links. -1 means no limit. 1356 | ; http://php.net/sybct.max-persistent 1357 | sybct.max_persistent = -1 1358 | 1359 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1360 | ; http://php.net/sybct.max-links 1361 | sybct.max_links = -1 1362 | 1363 | ; Minimum server message severity to display. 1364 | ; http://php.net/sybct.min-server-severity 1365 | sybct.min_server_severity = 10 1366 | 1367 | ; Minimum client message severity to display. 1368 | ; http://php.net/sybct.min-client-severity 1369 | sybct.min_client_severity = 10 1370 | 1371 | ; Set per-context timeout 1372 | ; http://php.net/sybct.timeout 1373 | ;sybct.timeout= 1374 | 1375 | ;sybct.packet_size 1376 | 1377 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1378 | ; Default: one minute 1379 | ;sybct.login_timeout= 1380 | 1381 | ; The name of the host you claim to be connecting from, for display by sp_who. 1382 | ; Default: none 1383 | ;sybct.hostname= 1384 | 1385 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1386 | ; Default: 0 1387 | ;sybct.deadlock_retry_count= 1388 | 1389 | [bcmath] 1390 | ; Number of decimal digits for all bcmath functions. 1391 | ; http://php.net/bcmath.scale 1392 | bcmath.scale = 0 1393 | 1394 | [browscap] 1395 | ; http://php.net/browscap 1396 | ;browscap = extra/browscap.ini 1397 | 1398 | [Session] 1399 | ; Handler used to store/retrieve data. 1400 | ; http://php.net/session.save-handler 1401 | session.save_handler = files 1402 | 1403 | ; Argument passed to save_handler. In the case of files, this is the path 1404 | ; where data files are stored. Note: Windows users have to change this 1405 | ; variable in order to use PHP's session functions. 1406 | ; 1407 | ; The path can be defined as: 1408 | ; 1409 | ; session.save_path = "N;/path" 1410 | ; 1411 | ; where N is an integer. Instead of storing all the session files in 1412 | ; /path, what this will do is use subdirectories N-levels deep, and 1413 | ; store the session data in those directories. This is useful if you 1414 | ; or your OS have problems with lots of files in one directory, and is 1415 | ; a more efficient layout for servers that handle lots of sessions. 1416 | ; 1417 | ; NOTE 1: PHP will not create this directory structure automatically. 1418 | ; You can use the script in the ext/session dir for that purpose. 1419 | ; NOTE 2: See the section on garbage collection below if you choose to 1420 | ; use subdirectories for session storage 1421 | ; 1422 | ; The file storage module creates files using mode 600 by default. 1423 | ; You can change that by using 1424 | ; 1425 | ; session.save_path = "N;MODE;/path" 1426 | ; 1427 | ; where MODE is the octal representation of the mode. Note that this 1428 | ; does not overwrite the process's umask. 1429 | ; http://php.net/session.save-path 1430 | ;session.save_path = "/tmp" 1431 | 1432 | ; Whether to use cookies. 1433 | ; http://php.net/session.use-cookies 1434 | session.use_cookies = 1 1435 | 1436 | ; http://php.net/session.cookie-secure 1437 | ;session.cookie_secure = 1438 | 1439 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1440 | ; the session id. We encourage this operation as it's very helpful in combatting 1441 | ; session hijacking when not specifying and managing your own session id. It is 1442 | ; not the end all be all of session hijacking defense, but it's a good start. 1443 | ; http://php.net/session.use-only-cookies 1444 | session.use_only_cookies = 1 1445 | 1446 | ; Name of the session (used as cookie name). 1447 | ; http://php.net/session.name 1448 | session.name = PHPSESSID 1449 | 1450 | ; Initialize session on request startup. 1451 | ; http://php.net/session.auto-start 1452 | session.auto_start = 0 1453 | 1454 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1455 | ; http://php.net/session.cookie-lifetime 1456 | session.cookie_lifetime = 0 1457 | 1458 | ; The path for which the cookie is valid. 1459 | ; http://php.net/session.cookie-path 1460 | session.cookie_path = / 1461 | 1462 | ; The domain for which the cookie is valid. 1463 | ; http://php.net/session.cookie-domain 1464 | session.cookie_domain = 1465 | 1466 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1467 | ; http://php.net/session.cookie-httponly 1468 | session.cookie_httponly = 1 1469 | 1470 | ; Handler used to serialize data. php is the standard serializer of PHP. 1471 | ; http://php.net/session.serialize-handler 1472 | session.serialize_handler = php 1473 | 1474 | ; Defines the probability that the 'garbage collection' process is started 1475 | ; on every session initialization. The probability is calculated by using 1476 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1477 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1478 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1479 | ; the gc will run on any give request. 1480 | ; Default Value: 1 1481 | ; Development Value: 1 1482 | ; Production Value: 1 1483 | ; http://php.net/session.gc-probability 1484 | session.gc_probability = 1 1485 | 1486 | ; Defines the probability that the 'garbage collection' process is started on every 1487 | ; session initialization. The probability is calculated by using the following equation: 1488 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1489 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1490 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1491 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1492 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1493 | ; this is a more efficient approach. 1494 | ; Default Value: 100 1495 | ; Development Value: 1000 1496 | ; Production Value: 1000 1497 | ; http://php.net/session.gc-divisor 1498 | session.gc_divisor = 1000 1499 | 1500 | ; After this number of seconds, stored data will be seen as 'garbage' and 1501 | ; cleaned up by the garbage collection process. 1502 | ; http://php.net/session.gc-maxlifetime 1503 | session.gc_maxlifetime = 1440 1504 | 1505 | ; NOTE: If you are using the subdirectory option for storing session files 1506 | ; (see session.save_path above), then garbage collection does *not* 1507 | ; happen automatically. You will need to do your own garbage 1508 | ; collection through a shell script, cron entry, or some other method. 1509 | ; For example, the following script would is the equivalent of 1510 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1511 | ; find /path/to/sessions -cmin +24 | xargs rm 1512 | 1513 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to 1514 | ; to initialize a session variable in the global scope, even when register_globals 1515 | ; is disabled. PHP 4.3 and later will warn you, if this feature is used. 1516 | ; You can disable the feature and the warning separately. At this time, 1517 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature 1518 | ; introduces some serious security problems if not handled correctly. It's 1519 | ; recommended that you do not use this feature on production servers. But you 1520 | ; should enable this on development servers and enable the warning as well. If you 1521 | ; do not enable the feature on development servers, you won't be warned when it's 1522 | ; used and debugging errors caused by this can be difficult to track down. 1523 | ; Default Value: On 1524 | ; Development Value: On 1525 | ; Production Value: Off 1526 | ; http://php.net/session.bug-compat-42 1527 | session.bug_compat_42 = Off 1528 | 1529 | ; This setting controls whether or not you are warned by PHP when initializing a 1530 | ; session value into the global space. session.bug_compat_42 must be enabled before 1531 | ; these warnings can be issued by PHP. See the directive above for more information. 1532 | ; Default Value: On 1533 | ; Development Value: On 1534 | ; Production Value: Off 1535 | ; http://php.net/session.bug-compat-warn 1536 | session.bug_compat_warn = Off 1537 | 1538 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1539 | ; HTTP_REFERER has to contain this substring for the session to be 1540 | ; considered as valid. 1541 | ; http://php.net/session.referer-check 1542 | session.referer_check = 1543 | 1544 | ; How many bytes to read from the file. 1545 | ; http://php.net/session.entropy-length 1546 | session.entropy_length = 0 1547 | 1548 | ; Specified here to create the session id. 1549 | ; http://php.net/session.entropy-file 1550 | ; On systems that don't have /dev/urandom /dev/arandom can be used 1551 | ; On windows, setting the entropy_length setting will activate the 1552 | ; Windows random source (using the CryptoAPI) 1553 | ;session.entropy_file = /dev/urandom 1554 | 1555 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1556 | ; or leave this empty to avoid sending anti-caching headers. 1557 | ; http://php.net/session.cache-limiter 1558 | session.cache_limiter = nocache 1559 | 1560 | ; Document expires after n minutes. 1561 | ; http://php.net/session.cache-expire 1562 | session.cache_expire = 180 1563 | 1564 | ; trans sid support is disabled by default. 1565 | ; Use of trans sid may risk your users security. 1566 | ; Use this option with caution. 1567 | ; - User may send URL contains active session ID 1568 | ; to other person via. email/irc/etc. 1569 | ; - URL that contains active session ID may be stored 1570 | ; in publically accessible computer. 1571 | ; - User may access your site with the same session ID 1572 | ; always using URL stored in browser's history or bookmarks. 1573 | ; http://php.net/session.use-trans-sid 1574 | session.use_trans_sid = 0 1575 | 1576 | ; Select a hash function for use in generating session ids. 1577 | ; Possible Values 1578 | ; 0 (MD5 128 bits) 1579 | ; 1 (SHA-1 160 bits) 1580 | ; This option may also be set to the name of any hash function supported by 1581 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1582 | ; function. 1583 | ; http://php.net/session.hash-function 1584 | session.hash_function = 0 1585 | 1586 | ; Define how many bits are stored in each character when converting 1587 | ; the binary hash data to something readable. 1588 | ; Possible values: 1589 | ; 4 (4 bits: 0-9, a-f) 1590 | ; 5 (5 bits: 0-9, a-v) 1591 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1592 | ; Default Value: 4 1593 | ; Development Value: 5 1594 | ; Production Value: 5 1595 | ; http://php.net/session.hash-bits-per-character 1596 | session.hash_bits_per_character = 5 1597 | 1598 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1599 | ; form/fieldset are special; if you include them here, the rewriter will 1600 | ; add a hidden field with the info which is otherwise appended 1601 | ; to URLs. If you want XHTML conformity, remove the form entry. 1602 | ; Note that all valid entries require a "=", even if no value follows. 1603 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1604 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1605 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1606 | ; http://php.net/url-rewriter.tags 1607 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1608 | 1609 | [MSSQL] 1610 | ; Allow or prevent persistent links. 1611 | mssql.allow_persistent = On 1612 | 1613 | ; Maximum number of persistent links. -1 means no limit. 1614 | mssql.max_persistent = -1 1615 | 1616 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1617 | mssql.max_links = -1 1618 | 1619 | ; Minimum error severity to display. 1620 | mssql.min_error_severity = 10 1621 | 1622 | ; Minimum message severity to display. 1623 | mssql.min_message_severity = 10 1624 | 1625 | ; Compatibility mode with old versions of PHP 3.0. 1626 | mssql.compatability_mode = Off 1627 | 1628 | ; Connect timeout 1629 | ;mssql.connect_timeout = 5 1630 | 1631 | ; Query timeout 1632 | ;mssql.timeout = 60 1633 | 1634 | ; Valid range 0 - 2147483647. Default = 4096. 1635 | ;mssql.textlimit = 4096 1636 | 1637 | ; Valid range 0 - 2147483647. Default = 4096. 1638 | ;mssql.textsize = 4096 1639 | 1640 | ; Limits the number of records in each batch. 0 = all records in one batch. 1641 | ;mssql.batchsize = 0 1642 | 1643 | ; Specify how datetime and datetim4 columns are returned 1644 | ; On => Returns data converted to SQL server settings 1645 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1646 | ;mssql.datetimeconvert = On 1647 | 1648 | ; Use NT authentication when connecting to the server 1649 | mssql.secure_connection = Off 1650 | 1651 | ; Specify max number of processes. -1 = library default 1652 | ; msdlib defaults to 25 1653 | ; FreeTDS defaults to 4096 1654 | ;mssql.max_procs = -1 1655 | 1656 | ; Specify client character set. 1657 | ; If empty or not set the client charset from freetds.comf is used 1658 | ; This is only used when compiled with FreeTDS 1659 | ;mssql.charset = "ISO-8859-1" 1660 | 1661 | [Assertion] 1662 | ; Assert(expr); active by default. 1663 | ; http://php.net/assert.active 1664 | ;assert.active = On 1665 | 1666 | ; Issue a PHP warning for each failed assertion. 1667 | ; http://php.net/assert.warning 1668 | ;assert.warning = On 1669 | 1670 | ; Don't bail out by default. 1671 | ; http://php.net/assert.bail 1672 | ;assert.bail = Off 1673 | 1674 | ; User-function to be called if an assertion fails. 1675 | ; http://php.net/assert.callback 1676 | ;assert.callback = 0 1677 | 1678 | ; Eval the expression with current error_reporting(). Set to true if you want 1679 | ; error_reporting(0) around the eval(). 1680 | ; http://php.net/assert.quiet-eval 1681 | ;assert.quiet_eval = 0 1682 | 1683 | [COM] 1684 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1685 | ; http://php.net/com.typelib-file 1686 | ;com.typelib_file = 1687 | 1688 | ; allow Distributed-COM calls 1689 | ; http://php.net/com.allow-dcom 1690 | ;com.allow_dcom = true 1691 | 1692 | ; autoregister constants of a components typlib on com_load() 1693 | ; http://php.net/com.autoregister-typelib 1694 | ;com.autoregister_typelib = true 1695 | 1696 | ; register constants casesensitive 1697 | ; http://php.net/com.autoregister-casesensitive 1698 | ;com.autoregister_casesensitive = false 1699 | 1700 | ; show warnings on duplicate constant registrations 1701 | ; http://php.net/com.autoregister-verbose 1702 | ;com.autoregister_verbose = true 1703 | 1704 | ; The default character set code-page to use when passing strings to and from COM objects. 1705 | ; Default: system ANSI code page 1706 | ;com.code_page= 1707 | 1708 | [mbstring] 1709 | ; language for internal character representation. 1710 | ; http://php.net/mbstring.language 1711 | ;mbstring.language = Japanese 1712 | 1713 | ; internal/script encoding. 1714 | ; Some encoding cannot work as internal encoding. 1715 | ; (e.g. SJIS, BIG5, ISO-2022-*) 1716 | ; http://php.net/mbstring.internal-encoding 1717 | ;mbstring.internal_encoding = EUC-JP 1718 | 1719 | ; http input encoding. 1720 | ; http://php.net/mbstring.http-input 1721 | ;mbstring.http_input = auto 1722 | 1723 | ; http output encoding. mb_output_handler must be 1724 | ; registered as output buffer to function 1725 | ; http://php.net/mbstring.http-output 1726 | ;mbstring.http_output = SJIS 1727 | 1728 | ; enable automatic encoding translation according to 1729 | ; mbstring.internal_encoding setting. Input chars are 1730 | ; converted to internal encoding by setting this to On. 1731 | ; Note: Do _not_ use automatic encoding translation for 1732 | ; portable libs/applications. 1733 | ; http://php.net/mbstring.encoding-translation 1734 | ;mbstring.encoding_translation = Off 1735 | 1736 | ; automatic encoding detection order. 1737 | ; auto means 1738 | ; http://php.net/mbstring.detect-order 1739 | ;mbstring.detect_order = auto 1740 | 1741 | ; substitute_character used when character cannot be converted 1742 | ; one from another 1743 | ; http://php.net/mbstring.substitute-character 1744 | ;mbstring.substitute_character = none; 1745 | 1746 | ; overload(replace) single byte functions by mbstring functions. 1747 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1748 | ; etc. Possible values are 0,1,2,4 or combination of them. 1749 | ; For example, 7 for overload everything. 1750 | ; 0: No overload 1751 | ; 1: Overload mail() function 1752 | ; 2: Overload str*() functions 1753 | ; 4: Overload ereg*() functions 1754 | ; http://php.net/mbstring.func-overload 1755 | ;mbstring.func_overload = 0 1756 | 1757 | ; enable strict encoding detection. 1758 | ;mbstring.strict_detection = Off 1759 | 1760 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1761 | ; is activated. 1762 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1763 | ;mbstring.http_output_conv_mimetype= 1764 | 1765 | ; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte 1766 | ; Default: "" 1767 | ;mbstring.script_encoding= 1768 | 1769 | [gd] 1770 | ; Tell the jpeg decode to ignore warnings and try to create 1771 | ; a gd image. The warning will then be displayed as notices 1772 | ; disabled by default 1773 | ; http://php.net/gd.jpeg-ignore-warning 1774 | ;gd.jpeg_ignore_warning = 0 1775 | 1776 | [exif] 1777 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1778 | ; With mbstring support this will automatically be converted into the encoding 1779 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1780 | ; is used. For the decode settings you can distinguish between motorola and 1781 | ; intel byte order. A decode setting cannot be empty. 1782 | ; http://php.net/exif.encode-unicode 1783 | ;exif.encode_unicode = ISO-8859-15 1784 | 1785 | ; http://php.net/exif.decode-unicode-motorola 1786 | ;exif.decode_unicode_motorola = UCS-2BE 1787 | 1788 | ; http://php.net/exif.decode-unicode-intel 1789 | ;exif.decode_unicode_intel = UCS-2LE 1790 | 1791 | ; http://php.net/exif.encode-jis 1792 | ;exif.encode_jis = 1793 | 1794 | ; http://php.net/exif.decode-jis-motorola 1795 | ;exif.decode_jis_motorola = JIS 1796 | 1797 | ; http://php.net/exif.decode-jis-intel 1798 | ;exif.decode_jis_intel = JIS 1799 | 1800 | [Tidy] 1801 | ; The path to a default tidy configuration file to use when using tidy 1802 | ; http://php.net/tidy.default-config 1803 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1804 | 1805 | ; Should tidy clean and repair output automatically? 1806 | ; WARNING: Do not use this option if you are generating non-html content 1807 | ; such as dynamic images 1808 | ; http://php.net/tidy.clean-output 1809 | tidy.clean_output = Off 1810 | 1811 | [soap] 1812 | ; Enables or disables WSDL caching feature. 1813 | ; http://php.net/soap.wsdl-cache-enabled 1814 | soap.wsdl_cache_enabled=1 1815 | 1816 | ; Sets the directory name where SOAP extension will put cache files. 1817 | ; http://php.net/soap.wsdl-cache-dir 1818 | soap.wsdl_cache_dir="/tmp" 1819 | 1820 | ; (time to live) Sets the number of second while cached file will be used 1821 | ; instead of original one. 1822 | ; http://php.net/soap.wsdl-cache-ttl 1823 | soap.wsdl_cache_ttl=86400 1824 | 1825 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1826 | soap.wsdl_cache_limit = 5 1827 | 1828 | [sysvshm] 1829 | ; A default size of the shared memory segment 1830 | ;sysvshm.init_mem = 10000 1831 | 1832 | [ldap] 1833 | ; Sets the maximum number of open links or -1 for unlimited. 1834 | ldap.max_links = -1 1835 | 1836 | [mcrypt] 1837 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1838 | 1839 | ; Directory where to load mcrypt algorithms 1840 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1841 | ;mcrypt.algorithms_dir= 1842 | 1843 | ; Directory where to load mcrypt modes 1844 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1845 | ;mcrypt.modes_dir= 1846 | 1847 | [dba] 1848 | ;dba.default_handler= 1849 | 1850 | ; Local Variables: 1851 | ; tab-width: 4 1852 | ; End: 1853 | --------------------------------------------------------------------------------