├── .gitignore ├── benchmark ├── bench.sh └── README.md ├── templates └── alpine │ ├── php73.yaml │ └── php74.yaml ├── images ├── async-ext.dockerfile ├── uv-ext.dockerfile ├── yaml-ext.dockerfile ├── brotli-ext.dockerfile ├── eio-ext.dockerfile ├── swoole-async-ext.dockerfile ├── swoole-ext.dockerfile ├── env.dockerfile └── alpine.tmpl ├── index.php ├── tests.php ├── entry.sh ├── Makefile ├── LICENSE ├── .circleci └── config.yml ├── CODE_OF_CONDUCT.md ├── README.md └── php.ini.tmpl /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /benchmark/bench.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wrk -t8 -c1000 -d10s http://127.0.0.1:8080/ 4 | -------------------------------------------------------------------------------- /templates/alpine/php73.yaml: -------------------------------------------------------------------------------- 1 | base_image: php:7.3-cli-alpine 2 | 3 | swoole: 4 | main_version: v4.3.5 5 | async_version: v4.3.3 6 | -------------------------------------------------------------------------------- /templates/alpine/php74.yaml: -------------------------------------------------------------------------------- 1 | base_image: php:7.4-rc-cli-alpine 2 | 3 | swoole: 4 | main_version: v4.3.5 5 | async_version: v4.3.3 6 | -------------------------------------------------------------------------------- /images/async-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/concurrent-php/ext-async.git \ 2 | && cd ext-async \ 3 | && phpize && ./configure && make -j $(nproc) && make install \ 4 | && docker-php-ext-enable async 5 | -------------------------------------------------------------------------------- /images/uv-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/bwoebi/php-uv.git \ 2 | && cd php-uv \ 3 | && phpize \ 4 | && ./configure \ 5 | && make -j $(nproc) \ 6 | && make install \ 7 | && docker-php-ext-enable uv 8 | -------------------------------------------------------------------------------- /images/yaml-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/php/pecl-file_formats-yaml.git \ 2 | && cd pecl-file_formats-yaml \ 3 | && phpize && ./configure && make -j $(nproc) && make install \ 4 | && docker-php-ext-enable yaml 5 | -------------------------------------------------------------------------------- /images/brotli-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone --recursive --depth=1 https://github.com/kjdev/php-ext-brotli.git \ 2 | && cd php-ext-brotli \ 3 | && phpize && ./configure && make -j $(nproc) && make install \ 4 | && docker-php-ext-enable brotli 5 | -------------------------------------------------------------------------------- /images/eio-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/rosmanov/pecl-eio.git \ 2 | && cd pecl-eio \ 3 | && phpize \ 4 | && ./configure --with-eio --enable-eio-sockets \ 5 | && make -j $(nproc) \ 6 | && make install \ 7 | && docker-php-ext-enable eio 8 | -------------------------------------------------------------------------------- /images/swoole-async-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/swoole/async-ext.git \ 2 | && cd async-ext \ 3 | && git checkout "{{ swoole.async_version }}" \ 4 | && phpize && ./configure && make -j $(nproc) && make install \ 5 | && docker-php-ext-enable swoole_async 6 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | set([ 9 | 'worker_num' => 4, 10 | ]); 11 | 12 | $http->on('request', function ($request, Response $response) { 13 | $response->end('Hello world!'); 14 | }); 15 | 16 | $http->start(); 17 | -------------------------------------------------------------------------------- /images/swoole-ext.dockerfile: -------------------------------------------------------------------------------- 1 | RUN git clone https://github.com/swoole/swoole-src.git \ 2 | && cd swoole-src \ 3 | && git checkout "{{ swoole.main_version }}" \ 4 | && phpize && ./configure && make -j $(nproc) && make install \ 5 | && echo 'swoole.fast_serialize=On' >> /usr/local/etc/php/conf.d/docker-php-ext-swoole-serialize.ini \ 6 | && docker-php-ext-enable swoole 7 | -------------------------------------------------------------------------------- /tests.php: -------------------------------------------------------------------------------- 1 | "Dockerfile.alpine-${PHP}" 8 | 9 | fix_circleci_bug: 10 | sed 's/\^\@\^\@//' "Dockerfile.alpine-${PHP}" > Dockerfile 11 | rm "Dockerfile.alpine-${PHP}" 12 | mv Dockerfile "Dockerfile.alpine-${PHP}" 13 | 14 | image: 15 | docker build -f "Dockerfile.alpine-${PHP}" -t $(IMAGE):$(VERSION) . 16 | 17 | push: 18 | docker push $(IMAGE):$(VERSION) 19 | 20 | run: 21 | docker run --rm -it -p 8080:8080 $(IMAGE):$(VERSION) 22 | 23 | test: 24 | docker run --rm -it -v $$(pwd):/app $(IMAGE):$(VERSION) php tests.php 25 | 26 | 27 | all: alpine image push 28 | -------------------------------------------------------------------------------- /images/env.dockerfile: -------------------------------------------------------------------------------- 1 | ENV ENTRY_SCRIPT /app/index.php 2 | 3 | ENV PHP_MEMORY_LIMIT=-1 4 | ENV PHP_MAX_EXECUTION_TIME=120 5 | ENV PHP_MAX_INPUT_TIME=60 6 | ENV PHP_ERROR_REPORTING="E_ALL & ~E_DEPRECATED & ~E_STRICT" 7 | ENV PHP_DISPLAY_ERRORS=Off 8 | ENV PHP_POST_MAX_SIZE=512M 9 | ENV PHP_UPLOAD_MAX_FILESIZE=512M 10 | ENV PHP_MAX_FILE_UPLOADS=20 11 | ENV PHP_DEFAULT_MIMETYPE=application/json 12 | ENV PHP_SESSION_STRICT_MODE=1 13 | ENV PHP_SESSION_COOKIE_SECURE=1 14 | ENV PHP_EXPOSE_PHP=Off 15 | ENV PHP_DATE_TIMEZONE=UTC 16 | ENV PHP_SHORT_OPEN_TAG=Off 17 | ENV PHP_ASYNC_THREADS=auto 18 | 19 | ENV PHP_OPCACHE_ENABLE=1 20 | ENV PHP_OPCACHE_ENABLE_CLI=1 21 | ENV PHP_OPCACHE_MEMORY_CONSUMPTION=512 22 | ENV PHP_OPCACHE_INTERNED_STRINGS_BUFFER=16 23 | ENV PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO=true 24 | ENV PHP_OPCACHE_MAX_ACCELERATED_FILES=50000 25 | ENV PHP_OPCACHE_REVALIDATE_FREQ=0 26 | ENV PHP_OPCACHE_ENABLE_FILE_OVERRIDE=1 27 | ENV PHP_OPCACHE_FILE_CACHE_ONLY=1 28 | -------------------------------------------------------------------------------- /benchmark/README.md: -------------------------------------------------------------------------------- 1 | Benchmark 2 | --------- 3 | 4 | Testing environment 5 | 6 | * 8 vCPU 7 | * 32 GB RAM 8 | * Ubuntu 18.04 9 | * Running from Docker-ce 18.09.0~3-0~ubuntu-bionic 10 | * Swoole version 4.2.7 11 | 12 | Hetzner CX51 Virtual Machine from Cloud. 13 | 14 | Command to run app: 15 | 16 | ```bash 17 | docker run -d --rm -it --init -p 8080:8080 roquie/docker-swoole-webapp:latest 18 | ``` 19 | 20 | Command to run http tests: 21 | ```bash 22 | ./examples/bench.sh # wrk -t8 -c1000 -d10s http://127.0.0.1:8080/ 23 | ``` 24 | 25 | Results: 26 | 27 | ```bash 28 | root@test-server ~/wrk/docker-swoole-webapp # wrk -t8 -c1000 -d10s http://127.0.0.1:8080/ 29 | Running 10s test @ http://127.0.0.1:8080/ 30 | 8 threads and 1000 connections 31 | Thread Stats Avg Stdev Max +/- Stdev 32 | Latency 12.07ms 7.21ms 249.03ms 87.74% 33 | Req/Sec 10.09k 1.83k 27.86k 87.31% 34 | 806302 requests in 10.10s, 126.88MB read 35 | Requests/sec: 79826.96 36 | Transfer/sec: 12.56MB 37 | ``` 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 roquie0@gmail.com 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /images/alpine.tmpl: -------------------------------------------------------------------------------- 1 | FROM {{ base_image }} AS build 2 | 3 | RUN apk add --update --no-cache autoconf g++ libtool pcre make icu-dev postgresql-dev postgresql-libs libsasl db gmp-dev oniguruma-dev yaml-dev git \ 4 | && docker-php-ext-configure opcache --enable-opcache --enable-opcache-file \ 5 | && docker-php-ext-install -j $(nproc) opcache intl pdo_pgsql pdo_mysql sockets gmp 6 | 7 | {% include 'async-ext.dockerfile' %} 8 | {% include 'swoole-ext.dockerfile' %} 9 | {% include 'swoole-async-ext.dockerfile' %} 10 | {% include 'brotli-ext.dockerfile' %} 11 | {% include 'eio-ext.dockerfile' %} 12 | {% include 'yaml-ext.dockerfile' %} 13 | 14 | FROM {{ base_image }} 15 | 16 | {% include 'env.dockerfile' %} 17 | 18 | RUN apk add --update --no-cache pcre ca-certificates icu postgresql-libs sqlite-libs gmp libstdc++ yaml 19 | 20 | COPY --from=build /usr/local/lib/php/extensions/ /usr/local/lib/php/extensions/ 21 | COPY --from=build /usr/local/etc/php/conf.d/ /usr/local/etc/php/conf.d/ 22 | COPY --from=build /usr/local/include/php/ /usr/local/include/php/ 23 | 24 | COPY entry.sh / 25 | COPY --from=roquie/smalte:latest-alpine /app/smalte /usr/local/bin/smalte 26 | COPY php.ini.tmpl /usr/local/etc/php/ 27 | COPY index.php /app/index.php 28 | 29 | EXPOSE 8080 30 | WORKDIR /app 31 | 32 | 33 | ENTRYPOINT ["/entry.sh"] 34 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | 4 | # Parallel build? NO... ) 5 | 6 | jobs: 7 | build: 8 | machine: 9 | docker_layer_caching: true 10 | steps: 11 | - checkout 12 | 13 | # PHP 7.4 14 | - run: 15 | name: PHP 7.4 application Docker image 16 | command: | 17 | echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin 18 | make VERSION=7.4-latest PHP=74 alpine fix_circleci_bug image test push 19 | 20 | # PHP 7.3 LATEST STABLE 21 | - run: 22 | name: PHP 7.3 application Docker image 23 | command: | 24 | echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin 25 | make VERSION=7.3-latest PHP=73 alpine fix_circleci_bug image test push 26 | docker tag $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME:7.3-latest $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME:latest 27 | docker push $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME:latest 28 | 29 | # PHP 7.2 30 | # - run: 31 | # name: PHP 7.2 application Docker image 32 | # command: | 33 | # echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin 34 | # make VERSION=7.2-latest PHP=72 alpine fix_circleci_bug image test push 35 | # 36 | # # PHP 7.1 37 | # - run: 38 | # name: PHP 7.1 application Docker image 39 | # command: | 40 | # echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin 41 | # make VERSION=7.1-latest PHP=71 alpine fix_circleci_bug image test push 42 | 43 | workflows: 44 | version: 2 45 | build: 46 | triggers: 47 | - schedule: 48 | cron: "0 0 * * 0" # Every week 49 | filters: 50 | branches: 51 | only: 52 | - master 53 | jobs: 54 | - build 55 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at roquie0@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Docker Swoole WebApp Image 2 | -------------------------- 3 | 4 | [![CircleCI](https://circleci.com/gh/roquie/docker-swoole-webapp.svg?style=svg)](https://circleci.com/gh/roquie/docker-swoole-webapp) 5 | 6 | Simple docker image to build your applications based on Swoole PHP extension. 7 | Tuned for maximum performance. 8 | 9 | Versions: 10 | * PHP 7.4, 7.3, 7.2 (out of date), 7.1 (out of date) 11 | * Latest Alpine 12 | * Swoole builds from source with versions: [templates/alpine/php74.yaml](templates/alpine/php74.yaml). 13 | 14 | Notice: 15 | * Opcache enabled for cli. It use very aggressive caching and settings. Only for production. 16 | * For now (28/06/2019) `composer` does not support PHP 7.4 :( 17 | 18 | **Every week at 00:00 on Sunday (UTC) Docker images automatically rebuilds.** 19 | 20 | ## Async 21 | 22 | Image provides following async extensions: 23 | * `async`, https://github.com/concurrent-php/ext-async.git 24 | * `eio`, https://github.com/rosmanov/pecl-eio.git 25 | * `uv`, https://github.com/bwoebi/php-uv.git 26 | * `swoole_async`, https://github.com/swoole/async-ext.git 27 | 28 | ## Run 29 | 30 | ```bash 31 | docker run --rm -it --init -p 8080:8080 roquie/docker-swoole-webapp 32 | ``` 33 | 34 | ## How to usage 35 | 36 | Example 1: 37 | 38 | ```Dockerfile 39 | FROM roquie/composer-parallel 40 | COPY . /app 41 | 42 | RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader --ignore-platform-reqs 43 | 44 | FROM roquie/docker-swoole-webapp 45 | COPY --from=0 /app /app 46 | ``` 47 | 48 | Example 2: 49 | 50 | ```Dockerfile 51 | FROM roquie/docker-swoole-webapp 52 | COPY . /app 53 | ``` 54 | 55 | Example 3: 56 | 57 | ```Dockerfile 58 | FROM roquie/docker-swoole-webapp 59 | 60 | # Override default env values 61 | ENV PHP_OPCACHE_ENABLE=0 62 | 63 | COPY . /app 64 | ``` 65 | 66 | Project files must be contains `index.php` to start app. 67 | 68 | ## Extensions 69 | 70 | ```bash 71 | [PHP Modules] 72 | async 73 | brotli 74 | Core 75 | ctype 76 | curl 77 | date 78 | dom 79 | eio 80 | fileinfo 81 | filter 82 | ftp 83 | gmp 84 | hash 85 | iconv 86 | intl 87 | json 88 | libxml 89 | mbstring 90 | mysqlnd 91 | openssl 92 | pcre 93 | PDO 94 | pdo_mysql 95 | pdo_pgsql 96 | pdo_sqlite 97 | Phar 98 | posix 99 | readline 100 | Reflection 101 | session 102 | SimpleXML 103 | sockets 104 | sodium 105 | SPL 106 | sqlite3 107 | standard 108 | swoole 109 | swoole_async 110 | tokenizer 111 | xml 112 | xmlreader 113 | xmlwriter 114 | yaml 115 | Zend OPcache 116 | zlib 117 | 118 | [Zend Modules] 119 | Zend OPcache 120 | 121 | ``` 122 | 123 | ## Env variables 124 | 125 | ```bash 126 | ENTRY_SCRIPT /app/index.php 127 | 128 | PHP_MEMORY_LIMIT=-1 129 | PHP_MAX_EXECUTION_TIME=120 # seconds 130 | PHP_MAX_INPUT_TIME=60 # seconds 131 | PHP_ERROR_REPORTING="E_ALL & ~E_DEPRECATED & ~E_STRICT" 132 | PHP_DISPLAY_ERRORS=Off 133 | PHP_POST_MAX_SIZE=512M 134 | PHP_UPLOAD_MAX_FILESIZE=512M 135 | PHP_MAX_FILE_UPLOADS=20 136 | PHP_DEFAULT_MIMETYPE=application/json 137 | PHP_SESSION_STRICT_MODE=1 138 | PHP_SESSION_COOKIE_SECURE=1 139 | PHP_EXPOSE_PHP=Off 140 | PHP_DATE_TIMEZONE=UTC 141 | PHP_SHORT_OPEN_TAG=Off 142 | PHP_ASYNC_THREADS=auto 143 | 144 | PHP_OPCACHE_ENABLE=1 145 | PHP_OPCACHE_ENABLE_CLI=1 146 | PHP_OPCACHE_MEMORY_CONSUMPTION=512 147 | PHP_OPCACHE_INTERNED_STRINGS_BUFFER=16 148 | PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO=true 149 | PHP_OPCACHE_MAX_ACCELERATED_FILES=50000 # if PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO is `true`, files count automatically. 150 | PHP_OPCACHE_REVALIDATE_FREQ=0 151 | PHP_OPCACHE_ENABLE_FILE_OVERRIDE=1 152 | PHP_OPCACHE_FILE_CACHE_ONLY=1 153 | ``` 154 | 155 | ## Tags 156 | 157 | * latest (PHP 7.3) 158 | * 7.4-latest 159 | * 7.3-latest 160 | * 7.2-latest (only `swoole` available, out of date) 161 | * 7.1-latest (only `swoole` available, out of date) 162 | 163 | ## License 164 | 165 | MIT License 166 | 167 | Copyright (c) 2019 roquie0@gmail.com 168 | 169 | Permission is hereby granted, free of charge, to any person obtaining a copy 170 | of this software and associated documentation files (the "Software"), to deal 171 | in the Software without restriction, including without limitation the rights 172 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 173 | copies of the Software, and to permit persons to whom the Software is 174 | furnished to do so, subject to the following conditions: 175 | 176 | The above copyright notice and this permission notice shall be included in all 177 | copies or substantial portions of the Software. 178 | 179 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 180 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 181 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 182 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 183 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 184 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 185 | SOFTWARE. 186 | 187 | -------------------------------------------------------------------------------- /php.ini.tmpl: -------------------------------------------------------------------------------- 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 (usually C:\windows) 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 is 82 | ; much more verbose when it comes to errors. We recommend using the 83 | ; development version only in development environments, as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is the php.ini-production INI file. 87 | 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; Quick Reference ; 90 | ;;;;;;;;;;;;;;;;;;; 91 | ; The following are all the settings which are different in either the production 92 | ; or development versions of the INIs with respect to PHP's default behavior. 93 | ; Please see the actual settings later in the document for more details as to why 94 | ; we recommend these changes in PHP's behavior. 95 | 96 | ; display_errors 97 | ; Default Value: On 98 | ; Development Value: On 99 | ; Production Value: Off 100 | 101 | ; display_startup_errors 102 | ; Default Value: Off 103 | ; Development Value: On 104 | ; Production Value: Off 105 | 106 | ; error_reporting 107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 108 | ; Development Value: E_ALL 109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 110 | 111 | ; html_errors 112 | ; Default Value: On 113 | ; Development Value: On 114 | ; Production value: On 115 | 116 | ; log_errors 117 | ; Default Value: Off 118 | ; Development Value: On 119 | ; Production Value: On 120 | 121 | ; max_input_time 122 | ; Default Value: -1 (Unlimited) 123 | ; Development Value: 60 (60 seconds) 124 | ; Production Value: 60 (60 seconds) 125 | 126 | ; output_buffering 127 | ; Default Value: Off 128 | ; Development Value: 4096 129 | ; Production Value: 4096 130 | 131 | ; register_argc_argv 132 | ; Default Value: On 133 | ; Development Value: Off 134 | ; Production Value: Off 135 | 136 | ; request_order 137 | ; Default Value: None 138 | ; Development Value: "GP" 139 | ; Production Value: "GP" 140 | 141 | ; session.gc_divisor 142 | ; Default Value: 100 143 | ; Development Value: 1000 144 | ; Production Value: 1000 145 | 146 | ; session.sid_bits_per_character 147 | ; Default Value: 4 148 | ; Development Value: 5 149 | ; Production Value: 5 150 | 151 | ; short_open_tag 152 | ; Default Value: On 153 | ; Development Value: Off 154 | ; Production Value: Off 155 | 156 | ; track_errors 157 | ; Default Value: Off 158 | ; Development Value: On 159 | ; Production Value: Off 160 | 161 | ; variables_order 162 | ; Default Value: "EGPCS" 163 | ; Development Value: "GPCS" 164 | ; Production Value: "GPCS" 165 | 166 | ;;;;;;;;;;;;;;;;;;;; 167 | ; php.ini Options ; 168 | ;;;;;;;;;;;;;;;;;;;; 169 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 170 | ;user_ini.filename = ".user.ini" 171 | 172 | ; To disable this feature set this option to an empty value 173 | ;user_ini.filename = 174 | 175 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 176 | ;user_ini.cache_ttl = 300 177 | 178 | ;;;;;;;;;;;;;;;;;;;; 179 | ; Language Options ; 180 | ;;;;;;;;;;;;;;;;;;;; 181 | 182 | ; Enable the PHP scripting language engine under Apache. 183 | ; http://php.net/engine 184 | engine = Off 185 | 186 | ; This directive determines whether or not PHP will recognize code between 187 | ; tags as PHP source which should be processed as such. It is 188 | ; generally recommended that should be used and that this feature 189 | ; should be disabled, as enabling it may result in issues when generating XML 190 | ; documents, however this remains supported for backward compatibility reasons. 191 | ; Note that this directive does not control the would work. 323 | ; http://php.net/syntax-highlighting 324 | ;highlight.string = #DD0000 325 | ;highlight.comment = #FF9900 326 | ;highlight.keyword = #007700 327 | ;highlight.default = #0000BB 328 | ;highlight.html = #000000 329 | 330 | ; If enabled, the request will be allowed to complete even if the user aborts 331 | ; the request. Consider enabling it if executing long requests, which may end up 332 | ; being interrupted by the user or a browser timing out. PHP's default behavior 333 | ; is to disable this feature. 334 | ; http://php.net/ignore-user-abort 335 | ;ignore_user_abort = On 336 | 337 | ; Determines the size of the realpath cache to be used by PHP. This value should 338 | ; be increased on systems where PHP opens many files to reflect the quantity of 339 | ; the file operations performed. 340 | ; http://php.net/realpath-cache-size 341 | ;realpath_cache_size = 4096k 342 | 343 | ; Duration of time, in seconds for which to cache realpath information for a given 344 | ; file or directory. For systems with rarely changing files, consider increasing this 345 | ; value. 346 | ; http://php.net/realpath-cache-ttl 347 | ;realpath_cache_ttl = 120 348 | 349 | ; Enables or disables the circular reference collector. 350 | ; http://php.net/zend.enable-gc 351 | zend.enable_gc = On 352 | 353 | ; If enabled, scripts may be written in encodings that are incompatible with 354 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 355 | ; encodings. To use this feature, mbstring extension must be enabled. 356 | ; Default: Off 357 | ;zend.multibyte = Off 358 | 359 | ; Allows to set the default encoding for the scripts. This value will be used 360 | ; unless "declare(encoding=...)" directive appears at the top of the script. 361 | ; Only affects if zend.multibyte is set. 362 | ; Default: "" 363 | ;zend.script_encoding = 364 | 365 | ;;;;;;;;;;;;;;;;; 366 | ; Miscellaneous ; 367 | ;;;;;;;;;;;;;;;;; 368 | 369 | ; Decides whether PHP may expose the fact that it is installed on the server 370 | ; (e.g. by adding its signature to the Web server header). It is no security 371 | ; threat in any way, but it makes it possible to determine whether you use PHP 372 | ; on your server or not. 373 | ; http://php.net/expose-php 374 | expose_php = $PHP_EXPOSE_PHP 375 | 376 | ;;;;;;;;;;;;;;;;;;; 377 | ; Resource Limits ; 378 | ;;;;;;;;;;;;;;;;;;; 379 | 380 | ; Maximum execution time of each script, in seconds 381 | ; http://php.net/max-execution-time 382 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 383 | max_execution_time = $PHP_MAX_EXECUTION_TIME 384 | 385 | ; Maximum amount of time each script may spend parsing request data. It's a good 386 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 387 | ; long running scripts. 388 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 389 | ; Default Value: -1 (Unlimited) 390 | ; Development Value: 60 (60 seconds) 391 | ; Production Value: 60 (60 seconds) 392 | ; http://php.net/max-input-time 393 | max_input_time = $PHP_MAX_INPUT_TIME 394 | 395 | ; Maximum input variable nesting level 396 | ; http://php.net/max-input-nesting-level 397 | ;max_input_nesting_level = 64 398 | 399 | ; How many GET/POST/COOKIE input variables may be accepted 400 | ;max_input_vars = 1000 401 | 402 | ; Maximum amount of memory a script may consume (128MB) 403 | ; http://php.net/memory-limit 404 | memory_limit = $PHP_MEMORY_LIMIT 405 | 406 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 407 | ; Error handling and logging ; 408 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 409 | 410 | ; This directive informs PHP of which errors, warnings and notices you would like 411 | ; it to take action for. The recommended way of setting values for this 412 | ; directive is through the use of the error level constants and bitwise 413 | ; operators. The error level constants are below here for convenience as well as 414 | ; some common settings and their meanings. 415 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 416 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 417 | ; recommended coding standards in PHP. For performance reasons, this is the 418 | ; recommend error reporting setting. Your production server shouldn't be wasting 419 | ; resources complaining about best practices and coding standards. That's what 420 | ; development servers and development settings are for. 421 | ; Note: The php.ini-development file has this setting as E_ALL. This 422 | ; means it pretty much reports everything which is exactly what you want during 423 | ; development and early testing. 424 | ; 425 | ; Error Level Constants: 426 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 427 | ; E_ERROR - fatal run-time errors 428 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 429 | ; E_WARNING - run-time warnings (non-fatal errors) 430 | ; E_PARSE - compile-time parse errors 431 | ; E_NOTICE - run-time notices (these are warnings which often result 432 | ; from a bug in your code, but it's possible that it was 433 | ; intentional (e.g., using an uninitialized variable and 434 | ; relying on the fact it is automatically initialized to an 435 | ; empty string) 436 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 437 | ; to your code which will ensure the best interoperability 438 | ; and forward compatibility of your code 439 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 440 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 441 | ; initial startup 442 | ; E_COMPILE_ERROR - fatal compile-time errors 443 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 444 | ; E_USER_ERROR - user-generated error message 445 | ; E_USER_WARNING - user-generated warning message 446 | ; E_USER_NOTICE - user-generated notice message 447 | ; E_DEPRECATED - warn about code that will not work in future versions 448 | ; of PHP 449 | ; E_USER_DEPRECATED - user-generated deprecation warnings 450 | ; 451 | ; Common Values: 452 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 453 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 454 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 455 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 456 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 457 | ; Development Value: E_ALL 458 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 459 | ; http://php.net/error-reporting 460 | error_reporting = $PHP_ERROR_REPORTING 461 | 462 | ; This directive controls whether or not and where PHP will output errors, 463 | ; notices and warnings too. Error output is very useful during development, but 464 | ; it could be very dangerous in production environments. Depending on the code 465 | ; which is triggering the error, sensitive information could potentially leak 466 | ; out of your application such as database usernames and passwords or worse. 467 | ; For production environments, we recommend logging errors rather than 468 | ; sending them to STDOUT. 469 | ; Possible Values: 470 | ; Off = Do not display any errors 471 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 472 | ; On or stdout = Display errors to STDOUT 473 | ; Default Value: On 474 | ; Development Value: On 475 | ; Production Value: Off 476 | ; http://php.net/display-errors 477 | display_errors = $PHP_DISPLAY_ERRORS 478 | 479 | ; The display of errors which occur during PHP's startup sequence are handled 480 | ; separately from display_errors. PHP's default behavior is to suppress those 481 | ; errors from clients. Turning the display of startup errors on can be useful in 482 | ; debugging configuration problems. We strongly recommend you 483 | ; set this to 'off' for production servers. 484 | ; Default Value: Off 485 | ; Development Value: On 486 | ; Production Value: Off 487 | ; http://php.net/display-startup-errors 488 | display_startup_errors = Off 489 | 490 | ; Besides displaying errors, PHP can also log errors to locations such as a 491 | ; server-specific log, STDERR, or a location specified by the error_log 492 | ; directive found below. While errors should not be displayed on productions 493 | ; servers they should still be monitored and logging is a great way to do that. 494 | ; Default Value: Off 495 | ; Development Value: On 496 | ; Production Value: On 497 | ; http://php.net/log-errors 498 | log_errors = On 499 | 500 | ; Set maximum length of log_errors. In error_log information about the source is 501 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 502 | ; http://php.net/log-errors-max-len 503 | log_errors_max_len = 1024 504 | 505 | ; Do not log repeated messages. Repeated errors must occur in same file on same 506 | ; line unless ignore_repeated_source is set true. 507 | ; http://php.net/ignore-repeated-errors 508 | ignore_repeated_errors = Off 509 | 510 | ; Ignore source of message when ignoring repeated messages. When this setting 511 | ; is On you will not log errors with repeated messages from different files or 512 | ; source lines. 513 | ; http://php.net/ignore-repeated-source 514 | ignore_repeated_source = Off 515 | 516 | ; If this parameter is set to Off, then memory leaks will not be shown (on 517 | ; stdout or in the log). This is only effective in a debug compile, and if 518 | ; error reporting includes E_WARNING in the allowed list 519 | ; http://php.net/report-memleaks 520 | report_memleaks = On 521 | 522 | ; This setting is on by default. 523 | ;report_zend_debug = 0 524 | 525 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 526 | ; to On can assist in debugging and is appropriate for development servers. It should 527 | ; however be disabled on production servers. 528 | ; This directive is DEPRECATED. 529 | ; Default Value: Off 530 | ; Development Value: Off 531 | ; Production Value: Off 532 | ; http://php.net/track-errors 533 | ;track_errors = Off 534 | 535 | ; Turn off normal error reporting and emit XML-RPC error XML 536 | ; http://php.net/xmlrpc-errors 537 | ;xmlrpc_errors = 0 538 | 539 | ; An XML-RPC faultCode 540 | ;xmlrpc_error_number = 0 541 | 542 | ; When PHP displays or logs an error, it has the capability of formatting the 543 | ; error message as HTML for easier reading. This directive controls whether 544 | ; the error message is formatted as HTML or not. 545 | ; Note: This directive is hardcoded to Off for the CLI SAPI 546 | ; Default Value: On 547 | ; Development Value: On 548 | ; Production value: On 549 | ; http://php.net/html-errors 550 | html_errors = On 551 | 552 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 553 | ; produces clickable error messages that direct to a page describing the error 554 | ; or function causing the error in detail. 555 | ; You can download a copy of the PHP manual from http://php.net/docs 556 | ; and change docref_root to the base URL of your local copy including the 557 | ; leading '/'. You must also specify the file extension being used including 558 | ; the dot. PHP's default behavior is to leave these settings empty, in which 559 | ; case no links to documentation are generated. 560 | ; Note: Never use this feature for production boxes. 561 | ; http://php.net/docref-root 562 | ; Examples 563 | ;docref_root = "/phpmanual/" 564 | 565 | ; http://php.net/docref-ext 566 | ;docref_ext = .html 567 | 568 | ; String to output before an error message. PHP's default behavior is to leave 569 | ; this setting blank. 570 | ; http://php.net/error-prepend-string 571 | ; Example: 572 | ;error_prepend_string = "" 573 | 574 | ; String to output after an error message. PHP's default behavior is to leave 575 | ; this setting blank. 576 | ; http://php.net/error-append-string 577 | ; Example: 578 | ;error_append_string = "" 579 | 580 | ; Log errors to specified file. PHP's default behavior is to leave this value 581 | ; empty. 582 | ; http://php.net/error-log 583 | ; Example: 584 | ;error_log = php_errors.log 585 | ; Log errors to syslog (Event Log on Windows). 586 | ;error_log = syslog 587 | 588 | ; The syslog ident is a string which is prepended to every message logged 589 | ; to syslog. Only used when error_log is set to syslog. 590 | ;syslog.ident = php 591 | 592 | ; The syslog facility is used to specify what type of program is logging 593 | ; the message. Only used when error_log is set to syslog. 594 | ;syslog.facility = user 595 | 596 | ; Set this to disable filtering control characters (the default). 597 | ; Some loggers only accept NVT-ASCII, others accept anything that's not 598 | ; control characters. If your logger accepts everything, then no filtering 599 | ; is needed at all. 600 | ; Allowed values are: 601 | ; ascii (only base ASCII characters) 602 | ; no_ctrl (all characters except control characters) 603 | ; all (all characters) 604 | ;syslog.filter = ascii 605 | 606 | ;windows.show_crt_warning 607 | ; Default value: 0 608 | ; Development value: 0 609 | ; Production value: 0 610 | 611 | ;;;;;;;;;;;;;;;;; 612 | ; Data Handling ; 613 | ;;;;;;;;;;;;;;;;; 614 | 615 | ; The separator used in PHP generated URLs to separate arguments. 616 | ; PHP's default setting is "&". 617 | ; http://php.net/arg-separator.output 618 | ; Example: 619 | ;arg_separator.output = "&" 620 | 621 | ; List of separator(s) used by PHP to parse input URLs into variables. 622 | ; PHP's default setting is "&". 623 | ; NOTE: Every character in this directive is considered as separator! 624 | ; http://php.net/arg-separator.input 625 | ; Example: 626 | ;arg_separator.input = ";&" 627 | 628 | ; This directive determines which super global arrays are registered when PHP 629 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 630 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 631 | ; paid for the registration of these arrays and because ENV is not as commonly 632 | ; used as the others, ENV is not recommended on productions servers. You 633 | ; can still get access to the environment variables through getenv() should you 634 | ; need to. 635 | ; Default Value: "EGPCS" 636 | ; Development Value: "GPCS" 637 | ; Production Value: "GPCS"; 638 | ; http://php.net/variables-order 639 | variables_order = "GPCS" 640 | 641 | ; This directive determines which super global data (G,P & C) should be 642 | ; registered into the super global array REQUEST. If so, it also determines 643 | ; the order in which that data is registered. The values for this directive 644 | ; are specified in the same manner as the variables_order directive, 645 | ; EXCEPT one. Leaving this value empty will cause PHP to use the value set 646 | ; in the variables_order directive. It does not mean it will leave the super 647 | ; globals array REQUEST empty. 648 | ; Default Value: None 649 | ; Development Value: "GP" 650 | ; Production Value: "GP" 651 | ; http://php.net/request-order 652 | request_order = "GP" 653 | 654 | ; This directive determines whether PHP registers $argv & $argc each time it 655 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 656 | ; is invoked. $argc contains an integer representing the number of arguments 657 | ; that were passed when the script was invoked. These arrays are extremely 658 | ; useful when running scripts from the command line. When this directive is 659 | ; enabled, registering these variables consumes CPU cycles and memory each time 660 | ; a script is executed. For performance reasons, this feature should be disabled 661 | ; on production servers. 662 | ; Note: This directive is hardcoded to On for the CLI SAPI 663 | ; Default Value: On 664 | ; Development Value: Off 665 | ; Production Value: Off 666 | ; http://php.net/register-argc-argv 667 | register_argc_argv = Off 668 | 669 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 670 | ; first used (Just In Time) instead of when the script starts. If these 671 | ; variables are not used within a script, having this directive on will result 672 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 673 | ; for this directive to have any effect. 674 | ; http://php.net/auto-globals-jit 675 | auto_globals_jit = On 676 | 677 | ; Whether PHP will read the POST data. 678 | ; This option is enabled by default. 679 | ; Most likely, you won't want to disable this option globally. It causes $_POST 680 | ; and $_FILES to always be empty; the only way you will be able to read the 681 | ; POST data will be through the php://input stream wrapper. This can be useful 682 | ; to proxy requests or to process the POST data in a memory efficient fashion. 683 | ; http://php.net/enable-post-data-reading 684 | ;enable_post_data_reading = Off 685 | 686 | ; Maximum size of POST data that PHP will accept. 687 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 688 | ; is disabled through enable_post_data_reading. 689 | ; http://php.net/post-max-size 690 | post_max_size = $PHP_POST_MAX_SIZE 691 | 692 | ; Automatically add files before PHP document. 693 | ; http://php.net/auto-prepend-file 694 | auto_prepend_file = 695 | 696 | ; Automatically add files after PHP document. 697 | ; http://php.net/auto-append-file 698 | auto_append_file = 699 | 700 | ; By default, PHP will output a media type using the Content-Type header. To 701 | ; disable this, simply set it to be empty. 702 | ; 703 | ; PHP's built-in default media type is set to text/html. 704 | ; http://php.net/default-mimetype 705 | default_mimetype = "$PHP_DEFAULT_MIMETYPE" 706 | 707 | ; PHP's default character set is set to UTF-8. 708 | ; http://php.net/default-charset 709 | default_charset = "UTF-8" 710 | 711 | ; PHP internal character encoding is set to empty. 712 | ; If empty, default_charset is used. 713 | ; http://php.net/internal-encoding 714 | ;internal_encoding = 715 | 716 | ; PHP input character encoding is set to empty. 717 | ; If empty, default_charset is used. 718 | ; http://php.net/input-encoding 719 | ;input_encoding = 720 | 721 | ; PHP output character encoding is set to empty. 722 | ; If empty, default_charset is used. 723 | ; See also output_buffer. 724 | ; http://php.net/output-encoding 725 | ;output_encoding = 726 | 727 | ;;;;;;;;;;;;;;;;;;;;;;;;; 728 | ; Paths and Directories ; 729 | ;;;;;;;;;;;;;;;;;;;;;;;;; 730 | 731 | ; UNIX: "/path1:/path2" 732 | ;include_path = ".:/php/includes" 733 | ; 734 | ; Windows: "\path1;\path2" 735 | ;include_path = ".;c:\php\includes" 736 | ; 737 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 738 | ; http://php.net/include-path 739 | 740 | ; The root of the PHP pages, used only if nonempty. 741 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 742 | ; if you are running php as a CGI under any web server (other than IIS) 743 | ; see documentation for security issues. The alternate is to use the 744 | ; cgi.force_redirect configuration below 745 | ; http://php.net/doc-root 746 | doc_root = 747 | 748 | ; The directory under which PHP opens the script using /~username used only 749 | ; if nonempty. 750 | ; http://php.net/user-dir 751 | user_dir = 752 | 753 | ; Directory in which the loadable extensions (modules) reside. 754 | ; http://php.net/extension-dir 755 | ;extension_dir = "./" 756 | ; On windows: 757 | ;extension_dir = "ext" 758 | 759 | ; Directory where the temporary files should be placed. 760 | ; Defaults to the system default (see sys_get_temp_dir) 761 | ;sys_temp_dir = "/tmp" 762 | 763 | ; Whether or not to enable the dl() function. The dl() function does NOT work 764 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 765 | ; disabled on them. 766 | ; http://php.net/enable-dl 767 | enable_dl = Off 768 | 769 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 770 | ; most web servers. Left undefined, PHP turns this on by default. You can 771 | ; turn it off here AT YOUR OWN RISK 772 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 773 | ; http://php.net/cgi.force-redirect 774 | ;cgi.force_redirect = 1 775 | 776 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 777 | ; every request. PHP's default behavior is to disable this feature. 778 | ;cgi.nph = 1 779 | 780 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 781 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 782 | ; will look for to know it is OK to continue execution. Setting this variable MAY 783 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 784 | ; http://php.net/cgi.redirect-status-env 785 | ;cgi.redirect_status_env = 786 | 787 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 788 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 789 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 790 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 791 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 792 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 793 | ; http://php.net/cgi.fix-pathinfo 794 | ;cgi.fix_pathinfo=1 795 | 796 | ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 797 | ; of the web tree and people will not be able to circumvent .htaccess security. 798 | ;cgi.discard_path=1 799 | 800 | ; FastCGI under IIS supports the ability to impersonate 801 | ; security tokens of the calling client. This allows IIS to define the 802 | ; security context that the request runs under. mod_fastcgi under Apache 803 | ; does not currently support this feature (03/17/2002) 804 | ; Set to 1 if running under IIS. Default is zero. 805 | ; http://php.net/fastcgi.impersonate 806 | ;fastcgi.impersonate = 1 807 | 808 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 809 | ; this feature. 810 | ;fastcgi.logging = 0 811 | 812 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 813 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 814 | ; is supported by Apache. When this option is set to 1, PHP will send 815 | ; RFC2616 compliant header. 816 | ; Default is zero. 817 | ; http://php.net/cgi.rfc2616-headers 818 | ;cgi.rfc2616_headers = 0 819 | 820 | ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! 821 | ; (shebang) at the top of the running script. This line might be needed if the 822 | ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI 823 | ; mode skips this line and ignores its content if this directive is turned on. 824 | ; http://php.net/cgi.check-shebang-line 825 | ;cgi.check_shebang_line=1 826 | 827 | ;;;;;;;;;;;;;;;; 828 | ; File Uploads ; 829 | ;;;;;;;;;;;;;;;; 830 | 831 | ; Whether to allow HTTP file uploads. 832 | ; http://php.net/file-uploads 833 | file_uploads = On 834 | 835 | ; Temporary directory for HTTP uploaded files (will use system default if not 836 | ; specified). 837 | ; http://php.net/upload-tmp-dir 838 | ;upload_tmp_dir = 839 | 840 | ; Maximum allowed size for uploaded files. 841 | ; http://php.net/upload-max-filesize 842 | upload_max_filesize = $PHP_UPLOAD_MAX_FILESIZE 843 | 844 | ; Maximum number of files that can be uploaded via a single request 845 | max_file_uploads = $PHP_MAX_FILE_UPLOADS 846 | 847 | ;;;;;;;;;;;;;;;;;; 848 | ; Fopen wrappers ; 849 | ;;;;;;;;;;;;;;;;;; 850 | 851 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 852 | ; http://php.net/allow-url-fopen 853 | allow_url_fopen = On 854 | 855 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 856 | ; http://php.net/allow-url-include 857 | allow_url_include = Off 858 | 859 | ; Define the anonymous ftp password (your email address). PHP's default setting 860 | ; for this is empty. 861 | ; http://php.net/from 862 | ;from="john@doe.com" 863 | 864 | ; Define the User-Agent string. PHP's default setting for this is empty. 865 | ; http://php.net/user-agent 866 | ;user_agent="PHP" 867 | 868 | ; Default timeout for socket based streams (seconds) 869 | ; http://php.net/default-socket-timeout 870 | default_socket_timeout = 60 871 | 872 | ; If your scripts have to deal with files from Macintosh systems, 873 | ; or you are running on a Mac and need to deal with files from 874 | ; unix or win32 systems, setting this flag will cause PHP to 875 | ; automatically detect the EOL character in those files so that 876 | ; fgets() and file() will work regardless of the source of the file. 877 | ; http://php.net/auto-detect-line-endings 878 | ;auto_detect_line_endings = Off 879 | 880 | ;;;;;;;;;;;;;;;;;;;;;; 881 | ; Dynamic Extensions ; 882 | ;;;;;;;;;;;;;;;;;;;;;; 883 | 884 | ; If you wish to have an extension loaded automatically, use the following 885 | ; syntax: 886 | ; 887 | ; extension=modulename 888 | ; 889 | ; For example: 890 | ; 891 | ; extension=mysqli 892 | ; 893 | ; When the extension library to load is not located in the default extension 894 | ; directory, You may specify an absolute path to the library file: 895 | ; 896 | ; extension=/path/to/extension/mysqli.so 897 | ; 898 | ; Note : The syntax used in previous PHP versions ('extension=.so' and 899 | ; 'extension='php_.dll') is supported for legacy reasons and may be 900 | ; deprecated in a future PHP major version. So, when it is possible, please 901 | ; move to the new ('extension=) syntax. 902 | ; 903 | ; Notes for Windows environments : 904 | ; 905 | ; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) 906 | ; extension folders as well as the separate PECL DLL download (PHP 5+). 907 | ; Be sure to appropriately set the extension_dir directive. 908 | ; 909 | ;extension=bz2 910 | ;extension=curl 911 | ;extension=fileinfo 912 | ;extension=gd2 913 | ;extension=gettext 914 | ;extension=gmp 915 | ;extension=intl 916 | ;extension=imap 917 | ;extension=interbase 918 | ;extension=ldap 919 | ;extension=mbstring 920 | ;extension=exif ; Must be after mbstring as it depends on it 921 | ;extension=mysqli 922 | ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client 923 | ;extension=odbc 924 | ;extension=openssl 925 | ;extension=pdo_firebird 926 | ;extension=pdo_mysql 927 | ;extension=pdo_oci 928 | ;extension=pdo_odbc 929 | ;extension=pdo_pgsql 930 | ;extension=pdo_sqlite 931 | ;extension=pgsql 932 | ;extension=shmop 933 | 934 | ; The MIBS data available in the PHP distribution must be installed. 935 | ; See http://www.php.net/manual/en/snmp.installation.php 936 | ;extension=snmp 937 | 938 | ;extension=soap 939 | ;extension=sockets 940 | ;extension=sodium 941 | ;extension=sqlite3 942 | ;extension=tidy 943 | ;extension=xmlrpc 944 | ;extension=xsl 945 | 946 | ;;;;;;;;;;;;;;;;;;; 947 | ; Module Settings ; 948 | ;;;;;;;;;;;;;;;;;;; 949 | 950 | [CLI Server] 951 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 952 | cli_server.color = On 953 | 954 | [Date] 955 | ; Defines the default timezone used by the date functions 956 | ; http://php.net/date.timezone 957 | date.timezone = $PHP_DATE_TIMEZONE 958 | 959 | ; http://php.net/date.default-latitude 960 | ;date.default_latitude = 31.7667 961 | 962 | ; http://php.net/date.default-longitude 963 | ;date.default_longitude = 35.2333 964 | 965 | ; http://php.net/date.sunrise-zenith 966 | ;date.sunrise_zenith = 90.583333 967 | 968 | ; http://php.net/date.sunset-zenith 969 | ;date.sunset_zenith = 90.583333 970 | 971 | [filter] 972 | ; http://php.net/filter.default 973 | ;filter.default = unsafe_raw 974 | 975 | ; http://php.net/filter.default-flags 976 | ;filter.default_flags = 977 | 978 | [iconv] 979 | ; Use of this INI entry is deprecated, use global input_encoding instead. 980 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 981 | ; The precedence is: default_charset < input_encoding < iconv.input_encoding 982 | ;iconv.input_encoding = 983 | 984 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 985 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 986 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 987 | ;iconv.internal_encoding = 988 | 989 | ; Use of this INI entry is deprecated, use global output_encoding instead. 990 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 991 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding 992 | ; To use an output encoding conversion, iconv's output handler must be set 993 | ; otherwise output encoding conversion cannot be performed. 994 | ;iconv.output_encoding = 995 | 996 | [intl] 997 | ;intl.default_locale = 998 | ; This directive allows you to produce PHP errors when some error 999 | ; happens within intl functions. The value is the level of the error produced. 1000 | ; Default is 0, which does not produce any errors. 1001 | ;intl.error_level = E_WARNING 1002 | ;intl.use_exceptions = 0 1003 | 1004 | [sqlite3] 1005 | ;sqlite3.extension_dir = 1006 | 1007 | [Pcre] 1008 | ; PCRE library backtracking limit. 1009 | ; http://php.net/pcre.backtrack-limit 1010 | ;pcre.backtrack_limit=100000 1011 | 1012 | ; PCRE library recursion limit. 1013 | ; Please note that if you set this value to a high number you may consume all 1014 | ; the available process stack and eventually crash PHP (due to reaching the 1015 | ; stack size limit imposed by the Operating System). 1016 | ; http://php.net/pcre.recursion-limit 1017 | ;pcre.recursion_limit=100000 1018 | 1019 | ; Enables or disables JIT compilation of patterns. This requires the PCRE 1020 | ; library to be compiled with JIT support. 1021 | ;pcre.jit=1 1022 | 1023 | [Pdo] 1024 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1025 | ; http://php.net/pdo-odbc.connection-pooling 1026 | ;pdo_odbc.connection_pooling=strict 1027 | 1028 | ;pdo_odbc.db2_instance_name 1029 | 1030 | [Pdo_mysql] 1031 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1032 | ; MySQL defaults. 1033 | pdo_mysql.default_socket= 1034 | 1035 | [Phar] 1036 | ; http://php.net/phar.readonly 1037 | ;phar.readonly = On 1038 | 1039 | ; http://php.net/phar.require-hash 1040 | ;phar.require_hash = On 1041 | 1042 | ;phar.cache_list = 1043 | 1044 | [mail function] 1045 | ; For Win32 only. 1046 | ; http://php.net/smtp 1047 | SMTP = localhost 1048 | ; http://php.net/smtp-port 1049 | smtp_port = 25 1050 | 1051 | ; For Win32 only. 1052 | ; http://php.net/sendmail-from 1053 | ;sendmail_from = me@example.com 1054 | 1055 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1056 | ; http://php.net/sendmail-path 1057 | ;sendmail_path = 1058 | 1059 | ; Force the addition of the specified parameters to be passed as extra parameters 1060 | ; to the sendmail binary. These parameters will always replace the value of 1061 | ; the 5th parameter to mail(). 1062 | ;mail.force_extra_parameters = 1063 | 1064 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1065 | mail.add_x_header = Off 1066 | 1067 | ; The path to a log file that will log all mail() calls. Log entries include 1068 | ; the full path of the script, line number, To address and headers. 1069 | ;mail.log = 1070 | ; Log mail to syslog (Event Log on Windows). 1071 | ;mail.log = syslog 1072 | 1073 | [ODBC] 1074 | ; http://php.net/odbc.default-db 1075 | ;odbc.default_db = Not yet implemented 1076 | 1077 | ; http://php.net/odbc.default-user 1078 | ;odbc.default_user = Not yet implemented 1079 | 1080 | ; http://php.net/odbc.default-pw 1081 | ;odbc.default_pw = Not yet implemented 1082 | 1083 | ; Controls the ODBC cursor model. 1084 | ; Default: SQL_CURSOR_STATIC (default). 1085 | ;odbc.default_cursortype 1086 | 1087 | ; Allow or prevent persistent links. 1088 | ; http://php.net/odbc.allow-persistent 1089 | odbc.allow_persistent = On 1090 | 1091 | ; Check that a connection is still valid before reuse. 1092 | ; http://php.net/odbc.check-persistent 1093 | odbc.check_persistent = On 1094 | 1095 | ; Maximum number of persistent links. -1 means no limit. 1096 | ; http://php.net/odbc.max-persistent 1097 | odbc.max_persistent = -1 1098 | 1099 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1100 | ; http://php.net/odbc.max-links 1101 | odbc.max_links = -1 1102 | 1103 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1104 | ; passthru. 1105 | ; http://php.net/odbc.defaultlrl 1106 | odbc.defaultlrl = 4096 1107 | 1108 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1109 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1110 | ; of odbc.defaultlrl and odbc.defaultbinmode 1111 | ; http://php.net/odbc.defaultbinmode 1112 | odbc.defaultbinmode = 1 1113 | 1114 | [Interbase] 1115 | ; Allow or prevent persistent links. 1116 | ibase.allow_persistent = 1 1117 | 1118 | ; Maximum number of persistent links. -1 means no limit. 1119 | ibase.max_persistent = -1 1120 | 1121 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1122 | ibase.max_links = -1 1123 | 1124 | ; Default database name for ibase_connect(). 1125 | ;ibase.default_db = 1126 | 1127 | ; Default username for ibase_connect(). 1128 | ;ibase.default_user = 1129 | 1130 | ; Default password for ibase_connect(). 1131 | ;ibase.default_password = 1132 | 1133 | ; Default charset for ibase_connect(). 1134 | ;ibase.default_charset = 1135 | 1136 | ; Default timestamp format. 1137 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1138 | 1139 | ; Default date format. 1140 | ibase.dateformat = "%Y-%m-%d" 1141 | 1142 | ; Default time format. 1143 | ibase.timeformat = "%H:%M:%S" 1144 | 1145 | [MySQLi] 1146 | 1147 | ; Maximum number of persistent links. -1 means no limit. 1148 | ; http://php.net/mysqli.max-persistent 1149 | mysqli.max_persistent = -1 1150 | 1151 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1152 | ; http://php.net/mysqli.allow_local_infile 1153 | ;mysqli.allow_local_infile = On 1154 | 1155 | ; Allow or prevent persistent links. 1156 | ; http://php.net/mysqli.allow-persistent 1157 | mysqli.allow_persistent = On 1158 | 1159 | ; Maximum number of links. -1 means no limit. 1160 | ; http://php.net/mysqli.max-links 1161 | mysqli.max_links = -1 1162 | 1163 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1164 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1165 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1166 | ; at MYSQL_PORT. 1167 | ; http://php.net/mysqli.default-port 1168 | mysqli.default_port = 3306 1169 | 1170 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1171 | ; MySQL defaults. 1172 | ; http://php.net/mysqli.default-socket 1173 | mysqli.default_socket = 1174 | 1175 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1176 | ; http://php.net/mysqli.default-host 1177 | mysqli.default_host = 1178 | 1179 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1180 | ; http://php.net/mysqli.default-user 1181 | mysqli.default_user = 1182 | 1183 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1184 | ; Note that this is generally a *bad* idea to store passwords in this file. 1185 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1186 | ; and reveal this password! And of course, any users with read access to this 1187 | ; file will be able to reveal the password as well. 1188 | ; http://php.net/mysqli.default-pw 1189 | mysqli.default_pw = 1190 | 1191 | ; Allow or prevent reconnect 1192 | mysqli.reconnect = Off 1193 | 1194 | [mysqlnd] 1195 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1196 | ; used to tune and monitor MySQL operations. 1197 | mysqlnd.collect_statistics = On 1198 | 1199 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1200 | ; used to tune and monitor MySQL operations. 1201 | mysqlnd.collect_memory_statistics = Off 1202 | 1203 | ; Records communication from all extensions using mysqlnd to the specified log 1204 | ; file. 1205 | ; http://php.net/mysqlnd.debug 1206 | ;mysqlnd.debug = 1207 | 1208 | ; Defines which queries will be logged. 1209 | ;mysqlnd.log_mask = 0 1210 | 1211 | ; Default size of the mysqlnd memory pool, which is used by result sets. 1212 | ;mysqlnd.mempool_default_size = 16000 1213 | 1214 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1215 | ;mysqlnd.net_cmd_buffer_size = 2048 1216 | 1217 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1218 | ; bytes. 1219 | ;mysqlnd.net_read_buffer_size = 32768 1220 | 1221 | ; Timeout for network requests in seconds. 1222 | ;mysqlnd.net_read_timeout = 31536000 1223 | 1224 | ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA 1225 | ; key. 1226 | ;mysqlnd.sha256_server_public_key = 1227 | 1228 | [OCI8] 1229 | 1230 | ; Connection: Enables privileged connections using external 1231 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1232 | ; http://php.net/oci8.privileged-connect 1233 | ;oci8.privileged_connect = Off 1234 | 1235 | ; Connection: The maximum number of persistent OCI8 connections per 1236 | ; process. Using -1 means no limit. 1237 | ; http://php.net/oci8.max-persistent 1238 | ;oci8.max_persistent = -1 1239 | 1240 | ; Connection: The maximum number of seconds a process is allowed to 1241 | ; maintain an idle persistent connection. Using -1 means idle 1242 | ; persistent connections will be maintained forever. 1243 | ; http://php.net/oci8.persistent-timeout 1244 | ;oci8.persistent_timeout = -1 1245 | 1246 | ; Connection: The number of seconds that must pass before issuing a 1247 | ; ping during oci_pconnect() to check the connection validity. When 1248 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1249 | ; pings completely. 1250 | ; http://php.net/oci8.ping-interval 1251 | ;oci8.ping_interval = 60 1252 | 1253 | ; Connection: Set this to a user chosen connection class to be used 1254 | ; for all pooled server requests with Oracle 11g Database Resident 1255 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1256 | ; the same string for all web servers running the same application, 1257 | ; the database pool must be configured, and the connection string must 1258 | ; specify to use a pooled server. 1259 | ;oci8.connection_class = 1260 | 1261 | ; High Availability: Using On lets PHP receive Fast Application 1262 | ; Notification (FAN) events generated when a database node fails. The 1263 | ; database must also be configured to post FAN events. 1264 | ;oci8.events = Off 1265 | 1266 | ; Tuning: This option enables statement caching, and specifies how 1267 | ; many statements to cache. Using 0 disables statement caching. 1268 | ; http://php.net/oci8.statement-cache-size 1269 | ;oci8.statement_cache_size = 20 1270 | 1271 | ; Tuning: Enables statement prefetching and sets the default number of 1272 | ; rows that will be fetched automatically after statement execution. 1273 | ; http://php.net/oci8.default-prefetch 1274 | ;oci8.default_prefetch = 100 1275 | 1276 | ; Compatibility. Using On means oci_close() will not close 1277 | ; oci_connect() and oci_new_connect() connections. 1278 | ; http://php.net/oci8.old-oci-close-semantics 1279 | ;oci8.old_oci_close_semantics = Off 1280 | 1281 | [PostgreSQL] 1282 | ; Allow or prevent persistent links. 1283 | ; http://php.net/pgsql.allow-persistent 1284 | pgsql.allow_persistent = On 1285 | 1286 | ; Detect broken persistent links always with pg_pconnect(). 1287 | ; Auto reset feature requires a little overheads. 1288 | ; http://php.net/pgsql.auto-reset-persistent 1289 | pgsql.auto_reset_persistent = Off 1290 | 1291 | ; Maximum number of persistent links. -1 means no limit. 1292 | ; http://php.net/pgsql.max-persistent 1293 | pgsql.max_persistent = -1 1294 | 1295 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1296 | ; http://php.net/pgsql.max-links 1297 | pgsql.max_links = -1 1298 | 1299 | ; Ignore PostgreSQL backends Notice message or not. 1300 | ; Notice message logging require a little overheads. 1301 | ; http://php.net/pgsql.ignore-notice 1302 | pgsql.ignore_notice = 0 1303 | 1304 | ; Log PostgreSQL backends Notice message or not. 1305 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1306 | ; http://php.net/pgsql.log-notice 1307 | pgsql.log_notice = 0 1308 | 1309 | [bcmath] 1310 | ; Number of decimal digits for all bcmath functions. 1311 | ; http://php.net/bcmath.scale 1312 | bcmath.scale = 0 1313 | 1314 | [browscap] 1315 | ; http://php.net/browscap 1316 | ;browscap = extra/browscap.ini 1317 | 1318 | [Session] 1319 | ; Handler used to store/retrieve data. 1320 | ; http://php.net/session.save-handler 1321 | session.save_handler = files 1322 | 1323 | ; Argument passed to save_handler. In the case of files, this is the path 1324 | ; where data files are stored. Note: Windows users have to change this 1325 | ; variable in order to use PHP's session functions. 1326 | ; 1327 | ; The path can be defined as: 1328 | ; 1329 | ; session.save_path = "N;/path" 1330 | ; 1331 | ; where N is an integer. Instead of storing all the session files in 1332 | ; /path, what this will do is use subdirectories N-levels deep, and 1333 | ; store the session data in those directories. This is useful if 1334 | ; your OS has problems with many files in one directory, and is 1335 | ; a more efficient layout for servers that handle many sessions. 1336 | ; 1337 | ; NOTE 1: PHP will not create this directory structure automatically. 1338 | ; You can use the script in the ext/session dir for that purpose. 1339 | ; NOTE 2: See the section on garbage collection below if you choose to 1340 | ; use subdirectories for session storage 1341 | ; 1342 | ; The file storage module creates files using mode 600 by default. 1343 | ; You can change that by using 1344 | ; 1345 | ; session.save_path = "N;MODE;/path" 1346 | ; 1347 | ; where MODE is the octal representation of the mode. Note that this 1348 | ; does not overwrite the process's umask. 1349 | ; http://php.net/session.save-path 1350 | ;session.save_path = "/tmp" 1351 | 1352 | ; Whether to use strict session mode. 1353 | ; Strict session mode does not accept an uninitialized session ID, and 1354 | ; regenerates the session ID if the browser sends an uninitialized session ID. 1355 | ; Strict mode protects applications from session fixation via a session adoption 1356 | ; vulnerability. It is disabled by default for maximum compatibility, but 1357 | ; enabling it is encouraged. 1358 | ; https://wiki.php.net/rfc/strict_sessions 1359 | session.use_strict_mode = $PHP_SESSION_STRICT_MODE 1360 | 1361 | ; Whether to use cookies. 1362 | ; http://php.net/session.use-cookies 1363 | session.use_cookies = 1 1364 | 1365 | ; http://php.net/session.cookie-secure 1366 | session.cookie_secure = $PHP_SESSION_COOKIE_SECURE 1367 | 1368 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1369 | ; the session id. We encourage this operation as it's very helpful in combating 1370 | ; session hijacking when not specifying and managing your own session id. It is 1371 | ; not the be-all and end-all of session hijacking defense, but it's a good start. 1372 | ; http://php.net/session.use-only-cookies 1373 | session.use_only_cookies = 1 1374 | 1375 | ; Name of the session (used as cookie name). 1376 | ; http://php.net/session.name 1377 | session.name = PHPSESSID 1378 | 1379 | ; Initialize session on request startup. 1380 | ; http://php.net/session.auto-start 1381 | session.auto_start = 0 1382 | 1383 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1384 | ; http://php.net/session.cookie-lifetime 1385 | session.cookie_lifetime = 0 1386 | 1387 | ; The path for which the cookie is valid. 1388 | ; http://php.net/session.cookie-path 1389 | session.cookie_path = / 1390 | 1391 | ; The domain for which the cookie is valid. 1392 | ; http://php.net/session.cookie-domain 1393 | session.cookie_domain = 1394 | 1395 | ; Whether or not to add the httpOnly flag to the cookie, which makes it 1396 | ; inaccessible to browser scripting languages such as JavaScript. 1397 | ; http://php.net/session.cookie-httponly 1398 | session.cookie_httponly = 1399 | 1400 | ; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) 1401 | ; Current valid values are "Lax" or "Strict" 1402 | ; https://tools.ietf.org/html/draft-west-first-party-cookies-07 1403 | session.cookie_samesite = 1404 | 1405 | ; Handler used to serialize data. php is the standard serializer of PHP. 1406 | ; http://php.net/session.serialize-handler 1407 | session.serialize_handler = php 1408 | 1409 | ; Defines the probability that the 'garbage collection' process is started 1410 | ; on every session initialization. The probability is calculated by using 1411 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1412 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1413 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1414 | ; the gc will run on any given request. 1415 | ; Default Value: 1 1416 | ; Development Value: 1 1417 | ; Production Value: 1 1418 | ; http://php.net/session.gc-probability 1419 | session.gc_probability = 1 1420 | 1421 | ; Defines the probability that the 'garbage collection' process is started on every 1422 | ; session initialization. The probability is calculated by using the following equation: 1423 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1424 | ; session.gc_divisor is the denominator in the equation. Setting this value to 100 1425 | ; when the session.gc_probability value is 1 will give you approximately a 1% chance 1426 | ; the gc will run on any given request. Increasing this value to 1000 will give you 1427 | ; a 0.1% chance the gc will run on any given request. For high volume production servers, 1428 | ; this is a more efficient approach. 1429 | ; Default Value: 100 1430 | ; Development Value: 1000 1431 | ; Production Value: 1000 1432 | ; http://php.net/session.gc-divisor 1433 | session.gc_divisor = 1000 1434 | 1435 | ; After this number of seconds, stored data will be seen as 'garbage' and 1436 | ; cleaned up by the garbage collection process. 1437 | ; http://php.net/session.gc-maxlifetime 1438 | session.gc_maxlifetime = 1440 1439 | 1440 | ; NOTE: If you are using the subdirectory option for storing session files 1441 | ; (see session.save_path above), then garbage collection does *not* 1442 | ; happen automatically. You will need to do your own garbage 1443 | ; collection through a shell script, cron entry, or some other method. 1444 | ; For example, the following script would is the equivalent of 1445 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1446 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1447 | 1448 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1449 | ; HTTP_REFERER has to contain this substring for the session to be 1450 | ; considered as valid. 1451 | ; http://php.net/session.referer-check 1452 | session.referer_check = 1453 | 1454 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1455 | ; or leave this empty to avoid sending anti-caching headers. 1456 | ; http://php.net/session.cache-limiter 1457 | session.cache_limiter = nocache 1458 | 1459 | ; Document expires after n minutes. 1460 | ; http://php.net/session.cache-expire 1461 | session.cache_expire = 180 1462 | 1463 | ; trans sid support is disabled by default. 1464 | ; Use of trans sid may risk your users' security. 1465 | ; Use this option with caution. 1466 | ; - User may send URL contains active session ID 1467 | ; to other person via. email/irc/etc. 1468 | ; - URL that contains active session ID may be stored 1469 | ; in publicly accessible computer. 1470 | ; - User may access your site with the same session ID 1471 | ; always using URL stored in browser's history or bookmarks. 1472 | ; http://php.net/session.use-trans-sid 1473 | session.use_trans_sid = 0 1474 | 1475 | ; Set session ID character length. This value could be between 22 to 256. 1476 | ; Shorter length than default is supported only for compatibility reason. 1477 | ; Users should use 32 or more chars. 1478 | ; http://php.net/session.sid-length 1479 | ; Default Value: 32 1480 | ; Development Value: 26 1481 | ; Production Value: 26 1482 | session.sid_length = 26 1483 | 1484 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1485 | ;
is special; if you include them here, the rewriter will 1486 | ; add a hidden field with the info which is otherwise appended 1487 | ; to URLs. tag's action attribute URL will not be modified 1488 | ; unless it is specified. 1489 | ; Note that all valid entries require a "=", even if no value follows. 1490 | ; Default Value: "a=href,area=href,frame=src,form=" 1491 | ; Development Value: "a=href,area=href,frame=src,form=" 1492 | ; Production Value: "a=href,area=href,frame=src,form=" 1493 | ; http://php.net/url-rewriter.tags 1494 | session.trans_sid_tags = "a=href,area=href,frame=src,form=" 1495 | 1496 | ; URL rewriter does not rewrite absolute URLs by default. 1497 | ; To enable rewrites for absolute paths, target hosts must be specified 1498 | ; at RUNTIME. i.e. use ini_set() 1499 | ; tags is special. PHP will check action attribute's URL regardless 1500 | ; of session.trans_sid_tags setting. 1501 | ; If no host is defined, HTTP_HOST will be used for allowed host. 1502 | ; Example value: php.net,www.php.net,wiki.php.net 1503 | ; Use "," for multiple hosts. No spaces are allowed. 1504 | ; Default Value: "" 1505 | ; Development Value: "" 1506 | ; Production Value: "" 1507 | ;session.trans_sid_hosts="" 1508 | 1509 | ; Define how many bits are stored in each character when converting 1510 | ; the binary hash data to something readable. 1511 | ; Possible values: 1512 | ; 4 (4 bits: 0-9, a-f) 1513 | ; 5 (5 bits: 0-9, a-v) 1514 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1515 | ; Default Value: 4 1516 | ; Development Value: 5 1517 | ; Production Value: 5 1518 | ; http://php.net/session.hash-bits-per-character 1519 | session.sid_bits_per_character = 5 1520 | 1521 | ; Enable upload progress tracking in $_SESSION 1522 | ; Default Value: On 1523 | ; Development Value: On 1524 | ; Production Value: On 1525 | ; http://php.net/session.upload-progress.enabled 1526 | ;session.upload_progress.enabled = On 1527 | 1528 | ; Cleanup the progress information as soon as all POST data has been read 1529 | ; (i.e. upload completed). 1530 | ; Default Value: On 1531 | ; Development Value: On 1532 | ; Production Value: On 1533 | ; http://php.net/session.upload-progress.cleanup 1534 | ;session.upload_progress.cleanup = On 1535 | 1536 | ; A prefix used for the upload progress key in $_SESSION 1537 | ; Default Value: "upload_progress_" 1538 | ; Development Value: "upload_progress_" 1539 | ; Production Value: "upload_progress_" 1540 | ; http://php.net/session.upload-progress.prefix 1541 | ;session.upload_progress.prefix = "upload_progress_" 1542 | 1543 | ; The index name (concatenated with the prefix) in $_SESSION 1544 | ; containing the upload progress information 1545 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1546 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1547 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1548 | ; http://php.net/session.upload-progress.name 1549 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1550 | 1551 | ; How frequently the upload progress should be updated. 1552 | ; Given either in percentages (per-file), or in bytes 1553 | ; Default Value: "1%" 1554 | ; Development Value: "1%" 1555 | ; Production Value: "1%" 1556 | ; http://php.net/session.upload-progress.freq 1557 | ;session.upload_progress.freq = "1%" 1558 | 1559 | ; The minimum delay between updates, in seconds 1560 | ; Default Value: 1 1561 | ; Development Value: 1 1562 | ; Production Value: 1 1563 | ; http://php.net/session.upload-progress.min-freq 1564 | ;session.upload_progress.min_freq = "1" 1565 | 1566 | ; Only write session data when session data is changed. Enabled by default. 1567 | ; http://php.net/session.lazy-write 1568 | ;session.lazy_write = On 1569 | 1570 | [Assertion] 1571 | ; Switch whether to compile assertions at all (to have no overhead at run-time) 1572 | ; -1: Do not compile at all 1573 | ; 0: Jump over assertion at run-time 1574 | ; 1: Execute assertions 1575 | ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) 1576 | ; Default Value: 1 1577 | ; Development Value: 1 1578 | ; Production Value: -1 1579 | ; http://php.net/zend.assertions 1580 | zend.assertions = -1 1581 | 1582 | ; Assert(expr); active by default. 1583 | ; http://php.net/assert.active 1584 | ;assert.active = On 1585 | 1586 | ; Throw an AssertionError on failed assertions 1587 | ; http://php.net/assert.exception 1588 | ;assert.exception = On 1589 | 1590 | ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) 1591 | ; http://php.net/assert.warning 1592 | ;assert.warning = On 1593 | 1594 | ; Don't bail out by default. 1595 | ; http://php.net/assert.bail 1596 | ;assert.bail = Off 1597 | 1598 | ; User-function to be called if an assertion fails. 1599 | ; http://php.net/assert.callback 1600 | ;assert.callback = 0 1601 | 1602 | ; Eval the expression with current error_reporting(). Set to true if you want 1603 | ; error_reporting(0) around the eval(). 1604 | ; http://php.net/assert.quiet-eval 1605 | ;assert.quiet_eval = 0 1606 | 1607 | [COM] 1608 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1609 | ; http://php.net/com.typelib-file 1610 | ;com.typelib_file = 1611 | 1612 | ; allow Distributed-COM calls 1613 | ; http://php.net/com.allow-dcom 1614 | ;com.allow_dcom = true 1615 | 1616 | ; autoregister constants of a component's typlib on com_load() 1617 | ; http://php.net/com.autoregister-typelib 1618 | ;com.autoregister_typelib = true 1619 | 1620 | ; register constants casesensitive 1621 | ; http://php.net/com.autoregister-casesensitive 1622 | ;com.autoregister_casesensitive = false 1623 | 1624 | ; show warnings on duplicate constant registrations 1625 | ; http://php.net/com.autoregister-verbose 1626 | ;com.autoregister_verbose = true 1627 | 1628 | ; The default character set code-page to use when passing strings to and from COM objects. 1629 | ; Default: system ANSI code page 1630 | ;com.code_page= 1631 | 1632 | [mbstring] 1633 | ; language for internal character representation. 1634 | ; This affects mb_send_mail() and mbstring.detect_order. 1635 | ; http://php.net/mbstring.language 1636 | ;mbstring.language = Japanese 1637 | 1638 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 1639 | ; internal/script encoding. 1640 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1641 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1642 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1643 | ;mbstring.internal_encoding = 1644 | 1645 | ; Use of this INI entry is deprecated, use global input_encoding instead. 1646 | ; http input encoding. 1647 | ; mbstring.encoding_translation = On is needed to use this setting. 1648 | ; If empty, default_charset or input_encoding or mbstring.input is used. 1649 | ; The precedence is: default_charset < input_encoding < mbsting.http_input 1650 | ; http://php.net/mbstring.http-input 1651 | ;mbstring.http_input = 1652 | 1653 | ; Use of this INI entry is deprecated, use global output_encoding instead. 1654 | ; http output encoding. 1655 | ; mb_output_handler must be registered as output buffer to function. 1656 | ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1657 | ; The precedence is: default_charset < output_encoding < mbstring.http_output 1658 | ; To use an output encoding conversion, mbstring's output handler must be set 1659 | ; otherwise output encoding conversion cannot be performed. 1660 | ; http://php.net/mbstring.http-output 1661 | ;mbstring.http_output = 1662 | 1663 | ; enable automatic encoding translation according to 1664 | ; mbstring.internal_encoding setting. Input chars are 1665 | ; converted to internal encoding by setting this to On. 1666 | ; Note: Do _not_ use automatic encoding translation for 1667 | ; portable libs/applications. 1668 | ; http://php.net/mbstring.encoding-translation 1669 | ;mbstring.encoding_translation = Off 1670 | 1671 | ; automatic encoding detection order. 1672 | ; "auto" detect order is changed according to mbstring.language 1673 | ; http://php.net/mbstring.detect-order 1674 | ;mbstring.detect_order = auto 1675 | 1676 | ; substitute_character used when character cannot be converted 1677 | ; one from another 1678 | ; http://php.net/mbstring.substitute-character 1679 | ;mbstring.substitute_character = none 1680 | 1681 | ; overload(replace) single byte functions by mbstring functions. 1682 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1683 | ; etc. Possible values are 0,1,2,4 or combination of them. 1684 | ; For example, 7 for overload everything. 1685 | ; 0: No overload 1686 | ; 1: Overload mail() function 1687 | ; 2: Overload str*() functions 1688 | ; 4: Overload ereg*() functions 1689 | ; http://php.net/mbstring.func-overload 1690 | ;mbstring.func_overload = 0 1691 | 1692 | ; enable strict encoding detection. 1693 | ; Default: Off 1694 | ;mbstring.strict_detection = On 1695 | 1696 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1697 | ; is activated. 1698 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1699 | ;mbstring.http_output_conv_mimetype= 1700 | 1701 | [gd] 1702 | ; Tell the jpeg decode to ignore warnings and try to create 1703 | ; a gd image. The warning will then be displayed as notices 1704 | ; disabled by default 1705 | ; http://php.net/gd.jpeg-ignore-warning 1706 | ;gd.jpeg_ignore_warning = 1 1707 | 1708 | [exif] 1709 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1710 | ; With mbstring support this will automatically be converted into the encoding 1711 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1712 | ; is used. For the decode settings you can distinguish between motorola and 1713 | ; intel byte order. A decode setting cannot be empty. 1714 | ; http://php.net/exif.encode-unicode 1715 | ;exif.encode_unicode = ISO-8859-15 1716 | 1717 | ; http://php.net/exif.decode-unicode-motorola 1718 | ;exif.decode_unicode_motorola = UCS-2BE 1719 | 1720 | ; http://php.net/exif.decode-unicode-intel 1721 | ;exif.decode_unicode_intel = UCS-2LE 1722 | 1723 | ; http://php.net/exif.encode-jis 1724 | ;exif.encode_jis = 1725 | 1726 | ; http://php.net/exif.decode-jis-motorola 1727 | ;exif.decode_jis_motorola = JIS 1728 | 1729 | ; http://php.net/exif.decode-jis-intel 1730 | ;exif.decode_jis_intel = JIS 1731 | 1732 | [Tidy] 1733 | ; The path to a default tidy configuration file to use when using tidy 1734 | ; http://php.net/tidy.default-config 1735 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1736 | 1737 | ; Should tidy clean and repair output automatically? 1738 | ; WARNING: Do not use this option if you are generating non-html content 1739 | ; such as dynamic images 1740 | ; http://php.net/tidy.clean-output 1741 | tidy.clean_output = Off 1742 | 1743 | [soap] 1744 | ; Enables or disables WSDL caching feature. 1745 | ; http://php.net/soap.wsdl-cache-enabled 1746 | soap.wsdl_cache_enabled=1 1747 | 1748 | ; Sets the directory name where SOAP extension will put cache files. 1749 | ; http://php.net/soap.wsdl-cache-dir 1750 | soap.wsdl_cache_dir="/tmp" 1751 | 1752 | ; (time to live) Sets the number of second while cached file will be used 1753 | ; instead of original one. 1754 | ; http://php.net/soap.wsdl-cache-ttl 1755 | soap.wsdl_cache_ttl=86400 1756 | 1757 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1758 | soap.wsdl_cache_limit = 5 1759 | 1760 | [sysvshm] 1761 | ; A default size of the shared memory segment 1762 | ;sysvshm.init_mem = 10000 1763 | 1764 | [ldap] 1765 | ; Sets the maximum number of open links or -1 for unlimited. 1766 | ldap.max_links = -1 1767 | 1768 | [dba] 1769 | ;dba.default_handler= 1770 | 1771 | [opcache] 1772 | ; Determines if Zend OPCache is enabled 1773 | opcache.enable=$PHP_OPCACHE_ENABLE 1774 | 1775 | ; Determines if Zend OPCache is enabled for the CLI version of PHP 1776 | opcache.enable_cli=$PHP_OPCACHE_ENABLE_CLI 1777 | 1778 | ; The OPcache shared memory storage size. 1779 | opcache.memory_consumption=$PHP_OPCACHE_MEMORY_CONSUMPTION 1780 | 1781 | ; The amount of memory for interned strings in Mbytes. 1782 | opcache.interned_strings_buffer=$PHP_OPCACHE_INTERNED_STRINGS_BUFFER 1783 | 1784 | ; The maximum number of keys (scripts) in the OPcache hash table. 1785 | ; Only numbers between 200 and 1000000 are allowed. 1786 | opcache.max_accelerated_files=1000000 1787 | 1788 | ; The maximum percentage of "wasted" memory until a restart is scheduled. 1789 | ;opcache.max_wasted_percentage=5 1790 | 1791 | ; When this directive is enabled, the OPcache appends the current working 1792 | ; directory to the script key, thus eliminating possible collisions between 1793 | ; files with the same name (basename). Disabling the directive improves 1794 | ; performance, but may break existing applications. 1795 | ;opcache.use_cwd=1 1796 | 1797 | ; When disabled, you must reset the OPcache manually or restart the 1798 | ; webserver for changes to the filesystem to take effect. 1799 | opcache.validate_timestamps=$PHP_OPCACHE_VALIDATE_TIMESTAMPS 1800 | 1801 | ; How often (in seconds) to check file timestamps for changes to the shared 1802 | ; memory storage allocation. ("1" means validate once per second, but only 1803 | ; once per request. "0" means always validate) 1804 | opcache.revalidate_freq=$PHP_OPCACHE_REVALIDATE_FREQ 1805 | 1806 | ; Enables or disables file search in include_path optimization 1807 | ;opcache.revalidate_path=0 1808 | 1809 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the 1810 | ; size of the optimized code. 1811 | ;opcache.save_comments=1 1812 | 1813 | ; Allow file existence override (file_exists, etc.) performance feature. 1814 | opcache.enable_file_override=$PHP_OPCACHE_ENABLE_FILE_OVERRIDE 1815 | 1816 | ; A bitmask, where each bit enables or disables the appropriate OPcache 1817 | ; passes 1818 | ;opcache.optimization_level=0x7FFFBFFF 1819 | 1820 | ;opcache.dups_fix=0 1821 | 1822 | ; The location of the OPcache blacklist file (wildcards allowed). 1823 | ; Each OPcache blacklist file is a text file that holds the names of files 1824 | ; that should not be accelerated. The file format is to add each filename 1825 | ; to a new line. The filename may be a full path or just a file prefix 1826 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www 1827 | ; that start with 'x'). Line starting with a ; are ignored (comments). 1828 | ;opcache.blacklist_filename= 1829 | 1830 | ; Allows exclusion of large files from being cached. By default all files 1831 | ; are cached. 1832 | ;opcache.max_file_size=0 1833 | 1834 | ; Check the cache checksum each N requests. 1835 | ; The default value of "0" means that the checks are disabled. 1836 | ;opcache.consistency_checks=0 1837 | 1838 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache 1839 | ; is not being accessed. 1840 | ;opcache.force_restart_timeout=180 1841 | 1842 | ; OPcache error_log file name. Empty string assumes "stderr". 1843 | ;opcache.error_log= 1844 | 1845 | ; All OPcache errors go to the Web server log. 1846 | ; By default, only fatal errors (level 0) or errors (level 1) are logged. 1847 | ; You can also enable warnings (level 2), info messages (level 3) or 1848 | ; debug messages (level 4). 1849 | ;opcache.log_verbosity_level=1 1850 | 1851 | ; Preferred Shared Memory back-end. Leave empty and let the system decide. 1852 | ;opcache.preferred_memory_model= 1853 | 1854 | ; Protect the shared memory from unexpected writing during script execution. 1855 | ; Useful for internal debugging only. 1856 | ;opcache.protect_memory=0 1857 | 1858 | ; Allows calling OPcache API functions only from PHP scripts which path is 1859 | ; started from specified string. The default "" means no restriction 1860 | ;opcache.restrict_api= 1861 | 1862 | ; Mapping base of shared memory segments (for Windows only). All the PHP 1863 | ; processes have to map shared memory into the same address space. This 1864 | ; directive allows to manually fix the "Unable to reattach to base address" 1865 | ; errors. 1866 | ;opcache.mmap_base= 1867 | 1868 | ; Enables and sets the second level cache directory. 1869 | ; It should improve performance when SHM memory is full, at server restart or 1870 | ; SHM reset. The default "" disables file based caching. 1871 | opcache.file_cache=/tmp 1872 | 1873 | ; Enables or disables opcode caching in shared memory. 1874 | opcache.file_cache_only=$PHP_OPCACHE_FILE_CACHE_ONLY 1875 | 1876 | ; Enables or disables checksum validation when script loaded from file cache. 1877 | ;opcache.file_cache_consistency_checks=1 1878 | 1879 | ; Implies opcache.file_cache_only=1 for a certain process that failed to 1880 | ; reattach to the shared memory (for Windows only). Explicitly enabled file 1881 | ; cache is required. 1882 | ;opcache.file_cache_fallback=1 1883 | 1884 | ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. 1885 | ; This should improve performance, but requires appropriate OS configuration. 1886 | ;opcache.huge_code_pages=1 1887 | 1888 | ; Validate cached file permissions. 1889 | ;opcache.validate_permission=0 1890 | 1891 | ; Prevent name collisions in chroot'ed environment. 1892 | ;opcache.validate_root=0 1893 | 1894 | ; If specified, it produces opcode dumps for debugging different stages of 1895 | ; optimizations. 1896 | ;opcache.opt_debug_level=0 1897 | 1898 | [curl] 1899 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1900 | ; absolute path. 1901 | ;curl.cainfo = 1902 | 1903 | [openssl] 1904 | ; The location of a Certificate Authority (CA) file on the local filesystem 1905 | ; to use when verifying the identity of SSL/TLS peers. Most users should 1906 | ; not specify a value for this directive as PHP will attempt to use the 1907 | ; OS-managed cert stores in its absence. If specified, this value may still 1908 | ; be overridden on a per-stream basis via the "cafile" SSL stream context 1909 | ; option. 1910 | ;openssl.cafile= 1911 | 1912 | ; If openssl.cafile is not specified or if the CA file is not found, the 1913 | ; directory pointed to by openssl.capath is searched for a suitable 1914 | ; certificate. This value must be a correctly hashed certificate directory. 1915 | ; Most users should not specify a value for this directive as PHP will 1916 | ; attempt to use the OS-managed cert stores in its absence. If specified, 1917 | ; this value may still be overridden on a per-stream basis via the "capath" 1918 | ; SSL stream context option. 1919 | ;openssl.capath= 1920 | 1921 | ; Local Variables: 1922 | ; tab-width: 4 1923 | ; End: 1924 | 1925 | 1926 | ; ASYNC EXTENSION 1927 | 1928 | async.threads=$PHP_ASYNC_THREADS 1929 | --------------------------------------------------------------------------------