├── logs ├── mysql │ └── README.txt ├── nginx │ └── README.txt ├── php-fpm │ └── README.txt └── redis │ └── README.txt ├── files ├── php │ ├── pkg │ │ └── .gitignore │ ├── php-fpm.conf │ ├── Dockerfile │ ├── php-dev.ini │ └── php.ini ├── nginx │ ├── certs │ │ └── .gitignore │ ├── Dockerfile │ ├── conf.d │ │ ├── default.conf │ │ └── zphal.conf │ ├── nginx-old.conf │ └── nginx.conf ├── mysql │ ├── scripts │ │ ├── crontabfile │ │ └── mysql-backup.sh │ ├── Dockerfile │ └── conf.d │ │ └── mysql-file.cnf ├── redis │ └── Dockerfile └── docker-compose.yml ├── data ├── desktop.ini └── .gitignore ├── .gitignore └── README.md /logs/mysql/README.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logs/nginx/README.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logs/php-fpm/README.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logs/redis/README.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/php/pkg/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /files/nginx/certs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /data/desktop.ini: -------------------------------------------------------------------------------- 1 | [ViewState] 2 | Mode= 3 | Vid= 4 | FolderType=Generic 5 | -------------------------------------------------------------------------------- /data/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | !/backup/default.sql -------------------------------------------------------------------------------- /files/mysql/scripts/crontabfile: -------------------------------------------------------------------------------- 1 | 0 23 * * * sh /data/mysql/backup/scripts/mysql-backup.sh cron >> /var/log/cron.log 2>&1 -------------------------------------------------------------------------------- /files/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:1.12 2 | LABEL maintainer="gzp@goozp.com" 3 | 4 | # set timezome 5 | ENV TZ=Asia/Shanghai 6 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -------------------------------------------------------------------------------- /files/redis/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM redis:3.2 2 | LABEL maintainer="gzp@goozp.com" 3 | 4 | # set timezome 5 | ENV TZ=Asia/Shanghai 6 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -------------------------------------------------------------------------------- /files/mysql/scripts/mysql-backup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zDATE=\$(date +%Y%m%d) 4 | mkdir /data/mysql/backup/\$zcDATE 5 | mysqldump -h '127.0.0.1' -uroot -p'123456' --databases zphaldb > /data/mysql/backup/\$zDATE/zphaldb.sql 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | 3 | # 数据库文件 4 | /data/redis/ 5 | /data/backup/ 6 | /data/mysql/ 7 | !/data/backup/README.txt 8 | !/data/mysql/README.txt 9 | /logs/mysql/*.log 10 | /logs/nginx/*.log 11 | /logs/php-fpm/*.log 12 | /logs/redis/*.log 13 | 14 | !/data/backup/*.sql 15 | !/data/redis/README.txt 16 | 17 | /app/* -------------------------------------------------------------------------------- /files/mysql/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mysql:5.7 2 | LABEL maintainer="gzp@goozp.com" 3 | 4 | # set timezome 5 | ENV TZ=Asia/Shanghai 6 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 7 | 8 | # mysql backup scripts using crontab 9 | # COPY ./scripts/ /data/mysql/backup/scripts/ 10 | # RUN crontab /data/mysql/backup/scripts/crontabfile 11 | # RUN service cron start -------------------------------------------------------------------------------- /files/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | index index.html index.htm; 4 | server_name localhost docker; 5 | 6 | root /data/www; 7 | index index.php index.html index.htm; 8 | location / { 9 | try_files $uri $uri/ /index.html; 10 | } 11 | 12 | location ~ \.php { 13 | include fastcgi_params; 14 | fastcgi_pass php-fpm:9000; 15 | fastcgi_index index.php; 16 | fastcgi_param SCRIPT_FILENAME /data/www/$fastcgi_script_name; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /files/mysql/conf.d/mysql-file.cnf: -------------------------------------------------------------------------------- 1 | [client] 2 | port=3306 3 | 4 | [mysql] 5 | 6 | [mysqld] 7 | default-storage-engine=INNODB 8 | max_connections=512 9 | skip-host-cache 10 | skip-name-resolve 11 | query_cache_size = 64M 12 | max_allowed_packet = 4M 13 | 14 | 15 | server_id=1 16 | log-bin=mysql-bin 17 | 18 | slow_query_log = 1 19 | slow_query_log_file =/var/lib/mysql-logs/slow.log 20 | long_query_time = 1 21 | log-queries-not-using-indexes 22 | max_connections = 1024 23 | back_log = 128 24 | wait_timeout = 100 25 | interactive_timeout = 200 26 | sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES -------------------------------------------------------------------------------- /files/php/php-fpm.conf: -------------------------------------------------------------------------------- 1 | [global] 2 | daemonize = no 3 | 4 | [www] 5 | user = www-data 6 | group = www-data 7 | 8 | listen = [::]:9000 9 | 10 | pm = dynamic 11 | ;pm = static 12 | pm.max_children = 50 13 | pm.start_servers = 10 14 | pm.min_spare_servers = 10 15 | pm.max_spare_servers = 30 16 | 17 | clear_env = no 18 | 19 | 20 | rlimit_files = 1048576 21 | ;request_terminate_timeout = 0 22 | ;request_slowlog_timeout = 1 23 | ;slowlog = /data/log/php/php-slow.log 24 | 25 | access.format = "%t \"%m %r%Q%q\" %s %{mili}dms %{kilo}Mkb %C%%" 26 | catch_workers_output = yes 27 | 28 | php_flag[display_errors] = on 29 | ;php_admin_flag[log_errors] = true 30 | php_admin_value[date.timezone] = "Asia/Shanghai" -------------------------------------------------------------------------------- /files/nginx/nginx-old.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes auto; 3 | pid /run/nginx.pid; 4 | 5 | events { 6 | worker_connections 1024; 7 | } 8 | 9 | http { 10 | sendfile on; 11 | tcp_nopush on; 12 | tcp_nodelay on; 13 | keepalive_timeout 2; 14 | client_max_body_size 100m; 15 | types_hash_max_size 2048; 16 | server_tokens off; 17 | fastcgi_hide_header X-Powered-By; 18 | 19 | server_names_hash_bucket_size 64; 20 | server_name_in_redirect off; 21 | 22 | include /etc/nginx/mime.types; 23 | default_type application/octet-stream; 24 | 25 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 26 | ssl_prefer_server_ciphers on; 27 | 28 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 29 | '$status $body_bytes_sent "$http_referer" ' 30 | '"$http_user_agent" "$http_x_forwarded_for"'; 31 | 32 | access_log /var/log/nginx/access.log main; 33 | error_log /var/log/nginx/error.log warn; 34 | 35 | gzip on; 36 | gzip_disable "MSIE [1-6].(?!.*SV1)"; 37 | 38 | gzip_vary on; 39 | gzip_proxied any; 40 | gzip_min_length 1000; 41 | gzip_comp_level 6; 42 | gzip_buffers 16 8k; 43 | gzip_http_version 1.1; 44 | gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; 45 | 46 | include /etc/nginx/conf.d/*.conf; 47 | } -------------------------------------------------------------------------------- /files/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.2' 2 | services: 3 | php-fpm: 4 | build: ./php/ 5 | ports: 6 | - "9000:9000" 7 | links: 8 | - mysql-db:mysql-db 9 | - redis-db:redis-db 10 | volumes: 11 | - ../app:/data/www:rw 12 | - ./php/php.ini:/usr/local/etc/php/php.ini:ro # 当前php配置文件;可以拷贝修改php-dev.ini为想要的配置 13 | - ./php/php-fpm.conf:/usr/local/etc/php-fpm.conf:ro 14 | - ../logs/php-fpm:/var/log/php-fpm:rw 15 | restart: always 16 | command: php-fpm 17 | 18 | nginx: 19 | build: ./nginx 20 | depends_on: 21 | - php-fpm 22 | links: 23 | - php-fpm:php-fpm 24 | volumes: 25 | - ../app:/data/www:rw 26 | - ./nginx/conf.d:/etc/nginx/conf.d:ro 27 | - ./nginx/certs/:/etc/nginx/certs 28 | - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro 29 | - ../logs/nginx:/var/log/nginx 30 | ports: 31 | - "80:80" 32 | - "8080:8080" 33 | - "443:443" 34 | restart: always 35 | command: nginx -g 'daemon off;' 36 | 37 | mysql-db: 38 | build: ./mysql 39 | ports: 40 | - "3306:3306" 41 | volumes: 42 | - ../data/mysql:/var/lib/mysql:rw 43 | - ../logs/mysql:/var/lib/mysql-logs:rw 44 | - ./mysql/conf.d:/etc/mysql/conf.d:ro 45 | environment: 46 | MYSQL_ROOT_PASSWORD: 123456 47 | MYSQL_DATABASE: zphaldb 48 | MYSQL_USER: zphal 49 | MYSQL_PASSWORD: zphal123 50 | restart: always 51 | command: "--character-set-server=utf8" 52 | 53 | redis-db: 54 | build: ./redis 55 | ports: 56 | - "6379:6379" 57 | volumes: 58 | - ../data/redis:/data 59 | restart: always -------------------------------------------------------------------------------- /files/php/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2-fpm 2 | LABEL maintainer="gzp@goozp.com" 3 | 4 | 5 | # set timezome 6 | ENV TZ=Asia/Shanghai 7 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 8 | 9 | # Install package and PHP Core extensions 10 | RUN apt-get update && apt-get install -y \ 11 | git \ 12 | libfreetype6-dev \ 13 | libjpeg62-turbo-dev \ 14 | libpng-dev \ 15 | && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ 16 | && docker-php-ext-install -j$(nproc) gd \ 17 | && docker-php-ext-install zip \ 18 | && docker-php-ext-install pdo_mysql \ 19 | && docker-php-ext-install opcache \ 20 | && docker-php-ext-install mysqli \ 21 | && rm -r /var/lib/apt/lists/* 22 | 23 | # Copy extensions had downloaded 24 | COPY ./pkg/redis.tgz /home/redis.tgz 25 | COPY ./pkg/cphalcon.tar.gz /home/cphalcon.tar.gz 26 | 27 | # Install PECL extensions (Redis) 28 | RUN pecl install /home/redis.tgz && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini 29 | 30 | # Install Phalcon extensions 31 | RUN cd /home \ 32 | && tar -zxvf cphalcon.tar.gz \ 33 | && mv cphalcon-* phalcon \ 34 | && cd phalcon/build \ 35 | && ./install \ 36 | && echo "extension=phalcon.so" > /usr/local/etc/php/conf.d/phalcon.ini 37 | 38 | # Install Composer 39 | ENV COMPOSER_HOME /root/composer 40 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 41 | ENV PATH $COMPOSER_HOME/vendor/bin:$PATH 42 | 43 | RUN rm -f /home/redis.tgz \ 44 | rm -f /home/cphalcon.tar.gz 45 | 46 | WORKDIR /data 47 | 48 | # Write Permission 49 | RUN usermod -u 1000 www-data 50 | -------------------------------------------------------------------------------- /files/nginx/conf.d/zphal.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name www.zphal.com zphal.com; 4 | 5 | ########################## 6 | # In production require SSL 7 | # listen 443 ssl default_server; 8 | 9 | # ssl on; 10 | # ssl_session_timeout 5m; 11 | # ssl_protocols SSLv2 SSLv3 TLSv1; 12 | # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; 13 | # ssl_prefer_server_ciphers on; 14 | 15 | # These locations depend on where you store your certs 16 | # ssl_certificate /etc/nginx/certs/default.cert; 17 | # ssl_certificate_key /etc/nginx/certs/default.key; 18 | ########################## 19 | 20 | root /data/www/zPhal/public; 21 | index index.php index.html index.htm; 22 | 23 | charset utf-8; 24 | client_max_body_size 100M; 25 | fastcgi_read_timeout 1800; 26 | 27 | location / { 28 | # Matches URLS `$_GET['_url']` 29 | try_files $uri $uri/ /index.php?_url=$uri&$args; 30 | } 31 | 32 | location ~ \.php$ { 33 | try_files $uri =404; 34 | 35 | #fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; 36 | fastcgi_pass php-fpm:9000; 37 | 38 | fastcgi_index /index.php; 39 | 40 | include fastcgi_params; 41 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 42 | fastcgi_param PATH_INFO $fastcgi_path_info; 43 | fastcgi_param PATH_TRANSLATED /data/www/zPhal/public/$fastcgi_path_info; 44 | fastcgi_param SCRIPT_FILENAME /data/www/zPhal/public/$fastcgi_script_name; 45 | } 46 | 47 | location ~ /\.ht { 48 | deny all; 49 | } 50 | 51 | location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { 52 | expires max; 53 | log_not_found off; 54 | access_log off; 55 | } 56 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zPhal-dockerfiles 2 | dockerfiles that support zPhal's working environment 3 | 4 | ## 简介 5 | 用 Docker 容器服务的方式搭建 zPhal 环境,易于维护、升级。使用前需了解 Docker 的基本概念,常用基本命令。 6 | 可以一条条命令执行docker命令来构建镜像,容器。这里推荐使用 docker-compose 来管理,执行项目,下面是使用流程。 7 | 8 | 相关软件版本: 9 | - PHP 7.2 10 | - MySQL 5.7 11 | - Nginx 1.12 12 | - Redis 3.2 13 | 14 | 用到的 PHP 拓展(2018.2.9更新): 15 | - redis 3.1.4 16 | - Phalcon 3.3.1 17 | 18 | ## 使用 19 | ### 1.安装 Docker,Docker-compose 20 | - Docker,详见官方文档:https://docs.docker.com/engine/installation/linux/docker-ce/centos/ 21 | - docker-compose,文档:https://docs.docker.com/compose/install/ 22 | ``` 23 | sudo pip install -U docker-compose 24 | ``` 25 | 26 | ### 2.下载 zPhal-dockerfiles 27 | 直接 clone: 28 | ``` 29 | git clone git@github.com:ZpGuo/zPhal-dockerfiles.git 30 | ``` 31 | 或者下载 zip 压缩包也可以。 32 | 33 | ### 3.下载需要的拓展包 34 | 先下载好要使用的拓展包,如果编译出错要多次构建容器就可以省掉下载时间。 35 | ``` 36 | cd zPhal-dockerfiles/files 37 | 38 | wget https://pecl.php.net/get/redis-3.1.6.tgz -O php/pkg/redis.tgz 39 | wget https://codeload.github.com/phalcon/cphalcon/tar.gz/v3.3.1 -O php/pkg/cphalcon.tar.gz 40 | ``` 41 | 42 | ### 4.docker-compose 构建项目 43 | 进入 docker-compose.yml 所在目录: 44 | 执行命令: 45 | ``` 46 | docker-compose up 47 | ``` 48 | 49 | 如果没问题,下次启动时可以以守护模式启用,所有容器将后台运行: 50 | ``` 51 | docker-compose up -d 52 | ``` 53 | 54 | 使用 docker-compose 基本上就这么简单,Docker 就跑起来了,用 stop,start 关闭开启容器服务。 55 | 更多的是在于编写 dockerfile 和 docker-compose.yml 文件。 56 | 57 | 可以这样关闭容器并删除服务: 58 | ``` 59 | docker-compose down 60 | ``` 61 | 62 | ### 5. 使用 Composer 63 | zPhal 项目依赖 Composer 进行构建。 64 | 65 | 我们在创建 PHP-fpm 容器时就已经将 Composer 安装在容器中,可以运行该容器进行 Composer 操作。 66 | 67 | 用 docker-compose 进行操作: 68 | ``` 69 | docker-compose run --rm -w /data/www/zPhal php-fpm composer update 70 | ``` 71 | `-w /data/www/zPhal`为在php-fpm的工作区域,zPhal项目也是挂载在里面,所有我们可以直接在容器里运行composer。 72 | 73 | 或者进入宿主机(容器外部)app 目录下用 docker 命令: 74 | ``` 75 | cd zPhal-dockerfiles/app 76 | 77 | docker run -it --rm -v `pwd`:/data/www/ -w /data/www/zPhal files_php-fpm composer update 78 | ``` 79 | -------------------------------------------------------------------------------- /files/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | pid /run/nginx.pid; 3 | 4 | worker_processes 4; 5 | worker_cpu_affinity 01 10 01 10; 6 | worker_rlimit_nofile 51200; 7 | 8 | events { 9 | worker_connections 10240; 10 | multi_accept on; 11 | } 12 | 13 | http { 14 | include /etc/nginx/mime.types; 15 | default_type application/octet-stream; 16 | charset UTF-8; 17 | 18 | sendfile on; 19 | tcp_nopush on; 20 | tcp_nodelay on; 21 | server_tokens off; 22 | keepalive_timeout 10; 23 | 24 | send_timeout 10; 25 | server_name_in_redirect off; 26 | server_names_hash_bucket_size 64; 27 | types_hash_max_size 2048; 28 | client_header_timeout 10; 29 | client_header_buffer_size 32k; 30 | large_client_header_buffers 4 32k; 31 | client_max_body_size 100m; 32 | client_body_timeout 10; 33 | client_body_buffer_size 10m; 34 | reset_timedout_connection on; 35 | 36 | 37 | # log setting 38 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 39 | '$status $body_bytes_sent "$http_referer" ' 40 | '"$http_user_agent" "$http_x_forwarded_for"'; 41 | 42 | # access_log /var/log/nginx/access.log main; 43 | access_log off; 44 | error_log /var/log/nginx/error.log warn; 45 | 46 | 47 | fastcgi_buffers 256 16k; 48 | fastcgi_buffer_size 128k; 49 | fastcgi_connect_timeout 3s; 50 | fastcgi_send_timeout 120s; 51 | fastcgi_read_timeout 120s; 52 | fastcgi_busy_buffers_size 256k; 53 | fastcgi_temp_file_write_size 256k; 54 | fastcgi_hide_header X-Powered-By; 55 | 56 | 57 | # Gzip Compression 58 | gzip on; 59 | gzip_disable "MSIE [1-6]\.(?!.*SV1)"; 60 | gzip_proxied any; 61 | gzip_min_length 1000; 62 | gzip_comp_level 6; 63 | gzip_buffers 16 8k; 64 | gzip_http_version 1.0; 65 | gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; 66 | gzip_vary on; 67 | 68 | 69 | open_file_cache max=10000 inactive=20s; 70 | open_file_cache_valid 30s; 71 | open_file_cache_min_uses 2; 72 | open_file_cache_errors on; 73 | 74 | 75 | include /etc/nginx/conf.d/*.conf; 76 | } -------------------------------------------------------------------------------- /files/php/php-dev.ini: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it's 82 | ; much more verbose when it comes to errors. We recommending using the 83 | ; development version only in development environments as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is 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.bug_compat_42 142 | ; Default Value: On 143 | ; Development Value: On 144 | ; Production Value: Off 145 | 146 | ; session.bug_compat_warn 147 | ; Default Value: On 148 | ; Development Value: On 149 | ; Production Value: Off 150 | 151 | ; session.gc_divisor 152 | ; Default Value: 100 153 | ; Development Value: 1000 154 | ; Production Value: 1000 155 | 156 | ; session.hash_bits_per_character 157 | ; Default Value: 4 158 | ; Development Value: 5 159 | ; Production Value: 5 160 | 161 | ; short_open_tag 162 | ; Default Value: On 163 | ; Development Value: Off 164 | ; Production Value: Off 165 | 166 | ; track_errors 167 | ; Default Value: Off 168 | ; Development Value: On 169 | ; Production Value: Off 170 | 171 | ; url_rewriter.tags 172 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 173 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 174 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 175 | 176 | ; variables_order 177 | ; Default Value: "EGPCS" 178 | ; Development Value: "GPCS" 179 | ; Production Value: "GPCS" 180 | 181 | ;;;;;;;;;;;;;;;;;;;; 182 | ; php.ini Options ; 183 | ;;;;;;;;;;;;;;;;;;;; 184 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 185 | ;user_ini.filename = ".user.ini" 186 | 187 | ; To disable this feature set this option to empty value 188 | ;user_ini.filename = 189 | 190 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 191 | ;user_ini.cache_ttl = 300 192 | 193 | ;;;;;;;;;;;;;;;;;;;; 194 | ; Language Options ; 195 | ;;;;;;;;;;;;;;;;;;;; 196 | 197 | ; Enable the PHP scripting language engine under Apache. 198 | ; http://php.net/engine 199 | engine = On 200 | 201 | ; This directive determines whether or not PHP will recognize code between 202 | ; tags as PHP source which should be processed as such. It is 203 | ; generally recommended that should be used and that this feature 204 | ; should be disabled, as enabling it may result in issues when generating XML 205 | ; documents, however this remains supported for backward compatibility reasons. 206 | ; Note that this directive does not control the tags. 215 | ; http://php.net/asp-tags 216 | asp_tags = Off 217 | 218 | ; The number of significant digits displayed in floating point numbers. 219 | ; http://php.net/precision 220 | precision = 14 221 | 222 | ; Output buffering is a mechanism for controlling how much output data 223 | ; (excluding headers and cookies) PHP should keep internally before pushing that 224 | ; data to the client. If your application's output exceeds this setting, PHP 225 | ; will send that data in chunks of roughly the size you specify. 226 | ; Turning on this setting and managing its maximum buffer size can yield some 227 | ; interesting side-effects depending on your application and web server. 228 | ; You may be able to send headers and cookies after you've already sent output 229 | ; through print or echo. You also may see performance benefits if your server is 230 | ; emitting less packets due to buffered output versus PHP streaming the output 231 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 232 | ; reasons. 233 | ; Note: Output buffering can also be controlled via Output Buffering Control 234 | ; functions. 235 | ; Possible Values: 236 | ; On = Enabled and buffer is unlimited. (Use with caution) 237 | ; Off = Disabled 238 | ; Integer = Enables the buffer and sets its maximum size in bytes. 239 | ; Note: This directive is hardcoded to Off for the CLI SAPI 240 | ; Default Value: Off 241 | ; Development Value: 4096 242 | ; Production Value: 4096 243 | ; http://php.net/output-buffering 244 | output_buffering = 4096 245 | 246 | ; You can redirect all of the output of your scripts to a function. For 247 | ; example, if you set output_handler to "mb_output_handler", character 248 | ; encoding will be transparently converted to the specified encoding. 249 | ; Setting any output handler automatically turns on output buffering. 250 | ; Note: People who wrote portable scripts should not depend on this ini 251 | ; directive. Instead, explicitly set the output handler using ob_start(). 252 | ; Using this ini directive may cause problems unless you know what script 253 | ; is doing. 254 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 255 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 256 | ; Note: output_handler must be empty if this is set 'On' !!!! 257 | ; Instead you must use zlib.output_handler. 258 | ; http://php.net/output-handler 259 | ;output_handler = 260 | 261 | ; Transparent output compression using the zlib library 262 | ; Valid values for this option are 'off', 'on', or a specific buffer size 263 | ; to be used for compression (default is 4KB) 264 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 265 | ; outputs chunks that are few hundreds bytes each as a result of 266 | ; compression. If you prefer a larger chunk size for better 267 | ; performance, enable output_buffering in addition. 268 | ; Note: You need to use zlib.output_handler instead of the standard 269 | ; output_handler, or otherwise the output will be corrupted. 270 | ; http://php.net/zlib.output-compression 271 | zlib.output_compression = Off 272 | 273 | ; http://php.net/zlib.output-compression-level 274 | ;zlib.output_compression_level = -1 275 | 276 | ; You cannot specify additional output handlers if zlib.output_compression 277 | ; is activated here. This setting does the same as output_handler but in 278 | ; a different order. 279 | ; http://php.net/zlib.output-handler 280 | ;zlib.output_handler = 281 | 282 | ; Implicit flush tells PHP to tell the output layer to flush itself 283 | ; automatically after every output block. This is equivalent to calling the 284 | ; PHP function flush() after each and every call to print() or echo() and each 285 | ; and every HTML block. Turning this option on has serious performance 286 | ; implications and is generally recommended for debugging purposes only. 287 | ; http://php.net/implicit-flush 288 | ; Note: This directive is hardcoded to On for the CLI SAPI 289 | implicit_flush = Off 290 | 291 | ; The unserialize callback function will be called (with the undefined class' 292 | ; name as parameter), if the unserializer finds an undefined class 293 | ; which should be instantiated. A warning appears if the specified function is 294 | ; not defined, or if the function doesn't include/implement the missing class. 295 | ; So only set this entry, if you really want to implement such a 296 | ; callback-function. 297 | unserialize_callback_func = 298 | 299 | ; When floats & doubles are serialized store serialize_precision significant 300 | ; digits after the floating point. The default value ensures that when floats 301 | ; are decoded with unserialize, the data will remain the same. 302 | serialize_precision = 17 303 | 304 | ; open_basedir, if set, limits all file operations to the defined directory 305 | ; and below. This directive makes most sense if used in a per-directory 306 | ; or per-virtualhost web server configuration file. This directive is 307 | ; *NOT* affected by whether Safe Mode is turned On or Off. 308 | ; http://php.net/open-basedir 309 | ;open_basedir = 310 | 311 | ; This directive allows you to disable certain functions for security reasons. 312 | ; It receives a comma-delimited list of function names. This directive is 313 | ; *NOT* affected by whether Safe Mode is turned On or Off. 314 | ; http://php.net/disable-functions 315 | disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, 316 | 317 | ; This directive allows you to disable certain classes for security reasons. 318 | ; It receives a comma-delimited list of class names. This directive is 319 | ; *NOT* affected by whether Safe Mode is turned On or Off. 320 | ; http://php.net/disable-classes 321 | disable_classes = 322 | 323 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 324 | ; would work. 325 | ; http://php.net/syntax-highlighting 326 | ;highlight.string = #DD0000 327 | ;highlight.comment = #FF9900 328 | ;highlight.keyword = #007700 329 | ;highlight.default = #0000BB 330 | ;highlight.html = #000000 331 | 332 | ; If enabled, the request will be allowed to complete even if the user aborts 333 | ; the request. Consider enabling it if executing long requests, which may end up 334 | ; being interrupted by the user or a browser timing out. PHP's default behavior 335 | ; is to disable this feature. 336 | ; http://php.net/ignore-user-abort 337 | ;ignore_user_abort = On 338 | 339 | ; Determines the size of the realpath cache to be used by PHP. This value should 340 | ; be increased on systems where PHP opens many files to reflect the quantity of 341 | ; the file operations performed. 342 | ; http://php.net/realpath-cache-size 343 | ;realpath_cache_size = 16k 344 | 345 | ; Duration of time, in seconds for which to cache realpath information for a given 346 | ; file or directory. For systems with rarely changing files, consider increasing this 347 | ; value. 348 | ; http://php.net/realpath-cache-ttl 349 | ;realpath_cache_ttl = 120 350 | 351 | ; Enables or disables the circular reference collector. 352 | ; http://php.net/zend.enable-gc 353 | zend.enable_gc = On 354 | 355 | ; If enabled, scripts may be written in encodings that are incompatible with 356 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 357 | ; encodings. To use this feature, mbstring extension must be enabled. 358 | ; Default: Off 359 | ;zend.multibyte = Off 360 | 361 | ; Allows to set the default encoding for the scripts. This value will be used 362 | ; unless "declare(encoding=...)" directive appears at the top of the script. 363 | ; Only affects if zend.multibyte is set. 364 | ; Default: "" 365 | ;zend.script_encoding = 366 | 367 | ;;;;;;;;;;;;;;;;; 368 | ; Miscellaneous ; 369 | ;;;;;;;;;;;;;;;;; 370 | 371 | ; Decides whether PHP may expose the fact that it is installed on the server 372 | ; (e.g. by adding its signature to the Web server header). It is no security 373 | ; threat in any way, but it makes it possible to determine whether you use PHP 374 | ; on your server or not. 375 | ; http://php.net/expose-php 376 | expose_php = On 377 | 378 | ;;;;;;;;;;;;;;;;;;; 379 | ; Resource Limits ; 380 | ;;;;;;;;;;;;;;;;;;; 381 | 382 | ; Maximum execution time of each script, in seconds 383 | ; http://php.net/max-execution-time 384 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 385 | max_execution_time = 30 386 | 387 | ; Maximum amount of time each script may spend parsing request data. It's a good 388 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 389 | ; long running scripts. 390 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 391 | ; Default Value: -1 (Unlimited) 392 | ; Development Value: 60 (60 seconds) 393 | ; Production Value: 60 (60 seconds) 394 | ; http://php.net/max-input-time 395 | max_input_time = 60 396 | 397 | ; Maximum input variable nesting level 398 | ; http://php.net/max-input-nesting-level 399 | ;max_input_nesting_level = 64 400 | 401 | ; How many GET/POST/COOKIE input variables may be accepted 402 | ; max_input_vars = 1000 403 | 404 | ; Maximum amount of memory a script may consume (128MB) 405 | ; http://php.net/memory-limit 406 | memory_limit = 128M 407 | 408 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 409 | ; Error handling and logging ; 410 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 411 | 412 | ; This directive informs PHP of which errors, warnings and notices you would like 413 | ; it to take action for. The recommended way of setting values for this 414 | ; directive is through the use of the error level constants and bitwise 415 | ; operators. The error level constants are below here for convenience as well as 416 | ; some common settings and their meanings. 417 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 418 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 419 | ; recommended coding standards in PHP. For performance reasons, this is the 420 | ; recommend error reporting setting. Your production server shouldn't be wasting 421 | ; resources complaining about best practices and coding standards. That's what 422 | ; development servers and development settings are for. 423 | ; Note: The php.ini-development file has this setting as E_ALL. This 424 | ; means it pretty much reports everything which is exactly what you want during 425 | ; development and early testing. 426 | ; 427 | ; Error Level Constants: 428 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 429 | ; E_ERROR - fatal run-time errors 430 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 431 | ; E_WARNING - run-time warnings (non-fatal errors) 432 | ; E_PARSE - compile-time parse errors 433 | ; E_NOTICE - run-time notices (these are warnings which often result 434 | ; from a bug in your code, but it's possible that it was 435 | ; intentional (e.g., using an uninitialized variable and 436 | ; relying on the fact it's automatically initialized to an 437 | ; empty string) 438 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 439 | ; to your code which will ensure the best interoperability 440 | ; and forward compatibility of your code 441 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 442 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 443 | ; initial startup 444 | ; E_COMPILE_ERROR - fatal compile-time errors 445 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 446 | ; E_USER_ERROR - user-generated error message 447 | ; E_USER_WARNING - user-generated warning message 448 | ; E_USER_NOTICE - user-generated notice message 449 | ; E_DEPRECATED - warn about code that will not work in future versions 450 | ; of PHP 451 | ; E_USER_DEPRECATED - user-generated deprecation warnings 452 | ; 453 | ; Common Values: 454 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 455 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 456 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 457 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 458 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 459 | ; Development Value: E_ALL 460 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 461 | ; http://php.net/error-reporting 462 | error_reporting = E_ALL 463 | 464 | ; This directive controls whether or not and where PHP will output errors, 465 | ; notices and warnings too. Error output is very useful during development, but 466 | ; it could be very dangerous in production environments. Depending on the code 467 | ; which is triggering the error, sensitive information could potentially leak 468 | ; out of your application such as database usernames and passwords or worse. 469 | ; It's recommended that errors be logged on production servers rather than 470 | ; having the errors sent to STDOUT. 471 | ; Possible Values: 472 | ; Off = Do not display any errors 473 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 474 | ; On or stdout = Display errors to STDOUT 475 | ; Default Value: On 476 | ; Development Value: On 477 | ; Production Value: Off 478 | ; http://php.net/display-errors 479 | display_errors = On 480 | 481 | ; The display of errors which occur during PHP's startup sequence are handled 482 | ; separately from display_errors. PHP's default behavior is to suppress those 483 | ; errors from clients. Turning the display of startup errors on can be useful in 484 | ; debugging configuration problems. But, it's strongly recommended that you 485 | ; leave this setting off on production servers. 486 | ; Default Value: Off 487 | ; Development Value: On 488 | ; Production Value: Off 489 | ; http://php.net/display-startup-errors 490 | display_startup_errors = Off 491 | 492 | ; Besides displaying errors, PHP can also log errors to locations such as a 493 | ; server-specific log, STDERR, or a location specified by the error_log 494 | ; directive found below. While errors should not be displayed on productions 495 | ; servers they should still be monitored and logging is a great way to do that. 496 | ; Default Value: Off 497 | ; Development Value: On 498 | ; Production Value: On 499 | ; http://php.net/log-errors 500 | log_errors = On 501 | 502 | ; Set maximum length of log_errors. In error_log information about the source is 503 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 504 | ; http://php.net/log-errors-max-len 505 | log_errors_max_len = 1024 506 | 507 | ; Do not log repeated messages. Repeated errors must occur in same file on same 508 | ; line unless ignore_repeated_source is set true. 509 | ; http://php.net/ignore-repeated-errors 510 | ignore_repeated_errors = Off 511 | 512 | ; Ignore source of message when ignoring repeated messages. When this setting 513 | ; is On you will not log errors with repeated messages from different files or 514 | ; source lines. 515 | ; http://php.net/ignore-repeated-source 516 | ignore_repeated_source = Off 517 | 518 | ; If this parameter is set to Off, then memory leaks will not be shown (on 519 | ; stdout or in the log). This has only effect in a debug compile, and if 520 | ; error reporting includes E_WARNING in the allowed list 521 | ; http://php.net/report-memleaks 522 | report_memleaks = On 523 | 524 | ; This setting is on by default. 525 | ;report_zend_debug = 0 526 | 527 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 528 | ; to On can assist in debugging and is appropriate for development servers. It should 529 | ; however be disabled on production servers. 530 | ; Default Value: Off 531 | ; Development Value: On 532 | ; Production Value: Off 533 | ; http://php.net/track-errors 534 | track_errors = Off 535 | 536 | ; Turn off normal error reporting and emit XML-RPC error XML 537 | ; http://php.net/xmlrpc-errors 538 | ;xmlrpc_errors = 0 539 | 540 | ; An XML-RPC faultCode 541 | ;xmlrpc_error_number = 0 542 | 543 | ; When PHP displays or logs an error, it has the capability of formatting the 544 | ; error message as HTML for easier reading. This directive controls whether 545 | ; the error message is formatted as HTML or not. 546 | ; Note: This directive is hardcoded to Off for the CLI SAPI 547 | ; Default Value: On 548 | ; Development Value: On 549 | ; Production value: On 550 | ; http://php.net/html-errors 551 | html_errors = On 552 | 553 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 554 | ; produces clickable error messages that direct to a page describing the error 555 | ; or function causing the error in detail. 556 | ; You can download a copy of the PHP manual from http://php.net/docs 557 | ; and change docref_root to the base URL of your local copy including the 558 | ; leading '/'. You must also specify the file extension being used including 559 | ; the dot. PHP's default behavior is to leave these settings empty, in which 560 | ; case no links to documentation are generated. 561 | ; Note: Never use this feature for production boxes. 562 | ; http://php.net/docref-root 563 | ; Examples 564 | ;docref_root = "/phpmanual/" 565 | 566 | ; http://php.net/docref-ext 567 | ;docref_ext = .html 568 | 569 | ; String to output before an error message. PHP's default behavior is to leave 570 | ; this setting blank. 571 | ; http://php.net/error-prepend-string 572 | ; Example: 573 | ;error_prepend_string = "" 574 | 575 | ; String to output after an error message. PHP's default behavior is to leave 576 | ; this setting blank. 577 | ; http://php.net/error-append-string 578 | ; Example: 579 | ;error_append_string = "" 580 | 581 | ; Log errors to specified file. PHP's default behavior is to leave this value 582 | ; empty. 583 | ; http://php.net/error-log 584 | ; Example: 585 | ;error_log = php_errors.log 586 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95). 587 | ;error_log = syslog 588 | 589 | ;windows.show_crt_warning 590 | ; Default value: 0 591 | ; Development value: 0 592 | ; Production value: 0 593 | 594 | ;;;;;;;;;;;;;;;;; 595 | ; Data Handling ; 596 | ;;;;;;;;;;;;;;;;; 597 | 598 | ; The separator used in PHP generated URLs to separate arguments. 599 | ; PHP's default setting is "&". 600 | ; http://php.net/arg-separator.output 601 | ; Example: 602 | ;arg_separator.output = "&" 603 | 604 | ; List of separator(s) used by PHP to parse input URLs into variables. 605 | ; PHP's default setting is "&". 606 | ; NOTE: Every character in this directive is considered as separator! 607 | ; http://php.net/arg-separator.input 608 | ; Example: 609 | ;arg_separator.input = ";&" 610 | 611 | ; This directive determines which super global arrays are registered when PHP 612 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 613 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 614 | ; paid for the registration of these arrays and because ENV is not as commonly 615 | ; used as the others, ENV is not recommended on productions servers. You 616 | ; can still get access to the environment variables through getenv() should you 617 | ; need to. 618 | ; Default Value: "EGPCS" 619 | ; Development Value: "GPCS" 620 | ; Production Value: "GPCS"; 621 | ; http://php.net/variables-order 622 | variables_order = "GPCS" 623 | 624 | ; This directive determines which super global data (G,P,C,E & S) should 625 | ; be registered into the super global array REQUEST. If so, it also determines 626 | ; the order in which that data is registered. The values for this directive are 627 | ; specified in the same manner as the variables_order directive, EXCEPT one. 628 | ; Leaving this value empty will cause PHP to use the value set in the 629 | ; variables_order directive. It does not mean it will leave the super globals 630 | ; array REQUEST empty. 631 | ; Default Value: None 632 | ; Development Value: "GP" 633 | ; Production Value: "GP" 634 | ; http://php.net/request-order 635 | request_order = "GP" 636 | 637 | ; This directive determines whether PHP registers $argv & $argc each time it 638 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 639 | ; is invoked. $argc contains an integer representing the number of arguments 640 | ; that were passed when the script was invoked. These arrays are extremely 641 | ; useful when running scripts from the command line. When this directive is 642 | ; enabled, registering these variables consumes CPU cycles and memory each time 643 | ; a script is executed. For performance reasons, this feature should be disabled 644 | ; on production servers. 645 | ; Note: This directive is hardcoded to On for the CLI SAPI 646 | ; Default Value: On 647 | ; Development Value: Off 648 | ; Production Value: Off 649 | ; http://php.net/register-argc-argv 650 | register_argc_argv = Off 651 | 652 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 653 | ; first used (Just In Time) instead of when the script starts. If these 654 | ; variables are not used within a script, having this directive on will result 655 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 656 | ; for this directive to have any affect. 657 | ; http://php.net/auto-globals-jit 658 | auto_globals_jit = On 659 | 660 | ; Whether PHP will read the POST data. 661 | ; This option is enabled by default. 662 | ; Most likely, you won't want to disable this option globally. It causes $_POST 663 | ; and $_FILES to always be empty; the only way you will be able to read the 664 | ; POST data will be through the php://input stream wrapper. This can be useful 665 | ; to proxy requests or to process the POST data in a memory efficient fashion. 666 | ; http://php.net/enable-post-data-reading 667 | ;enable_post_data_reading = Off 668 | 669 | ; Maximum size of POST data that PHP will accept. 670 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 671 | ; is disabled through enable_post_data_reading. 672 | ; http://php.net/post-max-size 673 | post_max_size = 10M 674 | 675 | ; Automatically add files before PHP document. 676 | ; http://php.net/auto-prepend-file 677 | auto_prepend_file = 678 | 679 | ; Automatically add files after PHP document. 680 | ; http://php.net/auto-append-file 681 | auto_append_file = 682 | 683 | ; By default, PHP will output a character encoding using 684 | ; the Content-type: header. To disable sending of the charset, simply 685 | ; set it to be empty. 686 | ; 687 | ; PHP's built-in default is text/html 688 | ; http://php.net/default-mimetype 689 | default_mimetype = "text/html" 690 | 691 | ; PHP's default character set is set to empty. 692 | ; http://php.net/default-charset 693 | ;default_charset = "UTF-8" 694 | 695 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 696 | ; to disable this feature. If post reading is disabled through 697 | ; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated. 698 | ; http://php.net/always-populate-raw-post-data 699 | ;always_populate_raw_post_data = On 700 | 701 | ;;;;;;;;;;;;;;;;;;;;;;;;; 702 | ; Paths and Directories ; 703 | ;;;;;;;;;;;;;;;;;;;;;;;;; 704 | 705 | ; UNIX: "/path1:/path2" 706 | ;include_path = ".:/usr/share/php" 707 | ; 708 | ; Windows: "\path1;\path2" 709 | ;include_path = ".;c:\php\includes" 710 | ; 711 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 712 | ; http://php.net/include-path 713 | 714 | ; The root of the PHP pages, used only if nonempty. 715 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 716 | ; if you are running php as a CGI under any web server (other than IIS) 717 | ; see documentation for security issues. The alternate is to use the 718 | ; cgi.force_redirect configuration below 719 | ; http://php.net/doc-root 720 | doc_root = 721 | 722 | ; The directory under which PHP opens the script using /~username used only 723 | ; if nonempty. 724 | ; http://php.net/user-dir 725 | user_dir = 726 | 727 | ; Directory in which the loadable extensions (modules) reside. 728 | ; http://php.net/extension-dir 729 | ; extension_dir = "./" 730 | ; On windows: 731 | ; extension_dir = "ext" 732 | 733 | ; Directory where the temporary files should be placed. 734 | ; Defaults to the system default (see sys_get_temp_dir) 735 | ; sys_temp_dir = "/tmp" 736 | 737 | ; Whether or not to enable the dl() function. The dl() function does NOT work 738 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 739 | ; disabled on them. 740 | ; http://php.net/enable-dl 741 | enable_dl = Off 742 | 743 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 744 | ; most web servers. Left undefined, PHP turns this on by default. You can 745 | ; turn it off here AT YOUR OWN RISK 746 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 747 | ; http://php.net/cgi.force-redirect 748 | ;cgi.force_redirect = 1 749 | 750 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 751 | ; every request. PHP's default behavior is to disable this feature. 752 | ;cgi.nph = 1 753 | 754 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 755 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 756 | ; will look for to know it is OK to continue execution. Setting this variable MAY 757 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 758 | ; http://php.net/cgi.redirect-status-env 759 | ;cgi.redirect_status_env = 760 | 761 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 762 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 763 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 764 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 765 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 766 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 767 | ; http://php.net/cgi.fix-pathinfo 768 | ;cgi.fix_pathinfo=1 769 | 770 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 771 | ; security tokens of the calling client. This allows IIS to define the 772 | ; security context that the request runs under. mod_fastcgi under Apache 773 | ; does not currently support this feature (03/17/2002) 774 | ; Set to 1 if running under IIS. Default is zero. 775 | ; http://php.net/fastcgi.impersonate 776 | ;fastcgi.impersonate = 1 777 | 778 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 779 | ; this feature. 780 | ;fastcgi.logging = 0 781 | 782 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 783 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that 784 | ; is supported by Apache. When this option is set to 1 PHP will send 785 | ; RFC2616 compliant header. 786 | ; Default is zero. 787 | ; http://php.net/cgi.rfc2616-headers 788 | ;cgi.rfc2616_headers = 0 789 | 790 | ;;;;;;;;;;;;;;;; 791 | ; File Uploads ; 792 | ;;;;;;;;;;;;;;;; 793 | 794 | ; Whether to allow HTTP file uploads. 795 | ; http://php.net/file-uploads 796 | file_uploads = On 797 | 798 | ; Temporary directory for HTTP uploaded files (will use system default if not 799 | ; specified). 800 | ; http://php.net/upload-tmp-dir 801 | ;upload_tmp_dir = 802 | 803 | ; Maximum allowed size for uploaded files. 804 | ; http://php.net/upload-max-filesize 805 | upload_max_filesize = 20M 806 | 807 | ; Maximum number of files that can be uploaded via a single request 808 | max_file_uploads = 20 809 | 810 | ;;;;;;;;;;;;;;;;;; 811 | ; Fopen wrappers ; 812 | ;;;;;;;;;;;;;;;;;; 813 | 814 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 815 | ; http://php.net/allow-url-fopen 816 | allow_url_fopen = On 817 | 818 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 819 | ; http://php.net/allow-url-include 820 | allow_url_include = Off 821 | 822 | ; Define the anonymous ftp password (your email address). PHP's default setting 823 | ; for this is empty. 824 | ; http://php.net/from 825 | ;from="john@doe.com" 826 | 827 | ; Define the User-Agent string. PHP's default setting for this is empty. 828 | ; http://php.net/user-agent 829 | ;user_agent="PHP" 830 | 831 | ; Default timeout for socket based streams (seconds) 832 | ; http://php.net/default-socket-timeout 833 | default_socket_timeout = 60 834 | 835 | ; If your scripts have to deal with files from Macintosh systems, 836 | ; or you are running on a Mac and need to deal with files from 837 | ; unix or win32 systems, setting this flag will cause PHP to 838 | ; automatically detect the EOL character in those files so that 839 | ; fgets() and file() will work regardless of the source of the file. 840 | ; http://php.net/auto-detect-line-endings 841 | ;auto_detect_line_endings = Off 842 | 843 | ;;;;;;;;;;;;;;;;;;;;;; 844 | ; Dynamic Extensions ; 845 | ;;;;;;;;;;;;;;;;;;;;;; 846 | 847 | ; If you wish to have an extension loaded automatically, use the following 848 | ; syntax: 849 | ; 850 | ; extension=modulename.extension 851 | ; 852 | ; For example, on Windows: 853 | ; 854 | ; extension=msql.dll 855 | ; 856 | ; ... or under UNIX: 857 | ; 858 | ; extension=msql.so 859 | ; 860 | ; ... or with a path: 861 | ; 862 | ; extension=/path/to/extension/msql.so 863 | ; 864 | ; If you only provide the name of the extension, PHP will look for it in its 865 | ; default extension directory. 866 | ; 867 | 868 | ;;;;;;;;;;;;;;;;;;; 869 | ; Module Settings ; 870 | ;;;;;;;;;;;;;;;;;;; 871 | 872 | [CLI Server] 873 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 874 | cli_server.color = On 875 | 876 | [Date] 877 | ; Defines the default timezone used by the date functions 878 | ; http://php.net/date.timezone 879 | date.timezone = "Asia/Shanghai" 880 | 881 | ; http://php.net/date.default-latitude 882 | ;date.default_latitude = 31.7667 883 | 884 | ; http://php.net/date.default-longitude 885 | ;date.default_longitude = 35.2333 886 | 887 | ; http://php.net/date.sunrise-zenith 888 | ;date.sunrise_zenith = 90.583333 889 | 890 | ; http://php.net/date.sunset-zenith 891 | ;date.sunset_zenith = 90.583333 892 | 893 | [filter] 894 | ; http://php.net/filter.default 895 | ;filter.default = unsafe_raw 896 | 897 | ; http://php.net/filter.default-flags 898 | ;filter.default_flags = 899 | 900 | [iconv] 901 | ;iconv.input_encoding = ISO-8859-1 902 | ;iconv.internal_encoding = ISO-8859-1 903 | ;iconv.output_encoding = ISO-8859-1 904 | 905 | [intl] 906 | ;intl.default_locale = 907 | ; This directive allows you to produce PHP errors when some error 908 | ; happens within intl functions. The value is the level of the error produced. 909 | ; Default is 0, which does not produce any errors. 910 | ;intl.error_level = E_WARNING 911 | 912 | [sqlite] 913 | ; http://php.net/sqlite.assoc-case 914 | ;sqlite.assoc_case = 0 915 | 916 | [sqlite3] 917 | ;sqlite3.extension_dir = 918 | 919 | [Pcre] 920 | ;PCRE library backtracking limit. 921 | ; http://php.net/pcre.backtrack-limit 922 | ;pcre.backtrack_limit=100000 923 | 924 | ;PCRE library recursion limit. 925 | ;Please note that if you set this value to a high number you may consume all 926 | ;the available process stack and eventually crash PHP (due to reaching the 927 | ;stack size limit imposed by the Operating System). 928 | ; http://php.net/pcre.recursion-limit 929 | ;pcre.recursion_limit=100000 930 | 931 | [Pdo] 932 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 933 | ; http://php.net/pdo-odbc.connection-pooling 934 | ;pdo_odbc.connection_pooling=strict 935 | 936 | ;pdo_odbc.db2_instance_name 937 | 938 | [Pdo_mysql] 939 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 940 | ; http://php.net/pdo_mysql.cache_size 941 | pdo_mysql.cache_size = 2000 942 | 943 | ; Default socket name for local MySQL connects. If empty, uses the built-in 944 | ; MySQL defaults. 945 | ; http://php.net/pdo_mysql.default-socket 946 | pdo_mysql.default_socket= 947 | 948 | [Phar] 949 | ; http://php.net/phar.readonly 950 | ;phar.readonly = On 951 | 952 | ; http://php.net/phar.require-hash 953 | ;phar.require_hash = On 954 | 955 | ;phar.cache_list = 956 | 957 | [mail function] 958 | ; For Win32 only. 959 | ; http://php.net/smtp 960 | SMTP = localhost 961 | ; http://php.net/smtp-port 962 | smtp_port = 25 963 | 964 | ; For Win32 only. 965 | ; http://php.net/sendmail-from 966 | ;sendmail_from = me@example.com 967 | 968 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 969 | ; http://php.net/sendmail-path 970 | ;sendmail_path = 971 | 972 | ; Force the addition of the specified parameters to be passed as extra parameters 973 | ; to the sendmail binary. These parameters will always replace the value of 974 | ; the 5th parameter to mail(), even in safe mode. 975 | ;mail.force_extra_parameters = 976 | 977 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 978 | mail.add_x_header = On 979 | 980 | ; The path to a log file that will log all mail() calls. Log entries include 981 | ; the full path of the script, line number, To address and headers. 982 | ;mail.log = 983 | ; Log mail to syslog (Event Log on NT, not valid in Windows 95). 984 | ;mail.log = syslog 985 | 986 | [SQL] 987 | ; http://php.net/sql.safe-mode 988 | sql.safe_mode = Off 989 | 990 | [ODBC] 991 | ; http://php.net/odbc.default-db 992 | ;odbc.default_db = Not yet implemented 993 | 994 | ; http://php.net/odbc.default-user 995 | ;odbc.default_user = Not yet implemented 996 | 997 | ; http://php.net/odbc.default-pw 998 | ;odbc.default_pw = Not yet implemented 999 | 1000 | ; Controls the ODBC cursor model. 1001 | ; Default: SQL_CURSOR_STATIC (default). 1002 | ;odbc.default_cursortype 1003 | 1004 | ; Allow or prevent persistent links. 1005 | ; http://php.net/odbc.allow-persistent 1006 | odbc.allow_persistent = On 1007 | 1008 | ; Check that a connection is still valid before reuse. 1009 | ; http://php.net/odbc.check-persistent 1010 | odbc.check_persistent = On 1011 | 1012 | ; Maximum number of persistent links. -1 means no limit. 1013 | ; http://php.net/odbc.max-persistent 1014 | odbc.max_persistent = -1 1015 | 1016 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1017 | ; http://php.net/odbc.max-links 1018 | odbc.max_links = -1 1019 | 1020 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1021 | ; passthru. 1022 | ; http://php.net/odbc.defaultlrl 1023 | odbc.defaultlrl = 4096 1024 | 1025 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1026 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1027 | ; of odbc.defaultlrl and odbc.defaultbinmode 1028 | ; http://php.net/odbc.defaultbinmode 1029 | odbc.defaultbinmode = 1 1030 | 1031 | ;birdstep.max_links = -1 1032 | 1033 | [Interbase] 1034 | ; Allow or prevent persistent links. 1035 | ibase.allow_persistent = 1 1036 | 1037 | ; Maximum number of persistent links. -1 means no limit. 1038 | ibase.max_persistent = -1 1039 | 1040 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1041 | ibase.max_links = -1 1042 | 1043 | ; Default database name for ibase_connect(). 1044 | ;ibase.default_db = 1045 | 1046 | ; Default username for ibase_connect(). 1047 | ;ibase.default_user = 1048 | 1049 | ; Default password for ibase_connect(). 1050 | ;ibase.default_password = 1051 | 1052 | ; Default charset for ibase_connect(). 1053 | ;ibase.default_charset = 1054 | 1055 | ; Default timestamp format. 1056 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1057 | 1058 | ; Default date format. 1059 | ibase.dateformat = "%Y-%m-%d" 1060 | 1061 | ; Default time format. 1062 | ibase.timeformat = "%H:%M:%S" 1063 | 1064 | [MySQL] 1065 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1066 | ; http://php.net/mysql.allow_local_infile 1067 | mysql.allow_local_infile = On 1068 | 1069 | ; Allow or prevent persistent links. 1070 | ; http://php.net/mysql.allow-persistent 1071 | mysql.allow_persistent = On 1072 | 1073 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1074 | ; http://php.net/mysql.cache_size 1075 | mysql.cache_size = 2000 1076 | 1077 | ; Maximum number of persistent links. -1 means no limit. 1078 | ; http://php.net/mysql.max-persistent 1079 | mysql.max_persistent = -1 1080 | 1081 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1082 | ; http://php.net/mysql.max-links 1083 | mysql.max_links = -1 1084 | 1085 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1086 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1087 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1088 | ; at MYSQL_PORT. 1089 | ; http://php.net/mysql.default-port 1090 | mysql.default_port = 1091 | 1092 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1093 | ; MySQL defaults. 1094 | ; http://php.net/mysql.default-socket 1095 | mysql.default_socket = 1096 | 1097 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1098 | ; http://php.net/mysql.default-host 1099 | mysql.default_host = 1100 | 1101 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1102 | ; http://php.net/mysql.default-user 1103 | mysql.default_user = 1104 | 1105 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1106 | ; Note that this is generally a *bad* idea to store passwords in this file. 1107 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1108 | ; and reveal this password! And of course, any users with read access to this 1109 | ; file will be able to reveal the password as well. 1110 | ; http://php.net/mysql.default-password 1111 | mysql.default_password = 1112 | 1113 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1114 | ; http://php.net/mysql.connect-timeout 1115 | mysql.connect_timeout = 60 1116 | 1117 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1118 | ; SQL-Errors will be displayed. 1119 | ; http://php.net/mysql.trace-mode 1120 | mysql.trace_mode = Off 1121 | 1122 | [MySQLi] 1123 | 1124 | ; Maximum number of persistent links. -1 means no limit. 1125 | ; http://php.net/mysqli.max-persistent 1126 | mysqli.max_persistent = -1 1127 | 1128 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1129 | ; http://php.net/mysqli.allow_local_infile 1130 | ;mysqli.allow_local_infile = On 1131 | 1132 | ; Allow or prevent persistent links. 1133 | ; http://php.net/mysqli.allow-persistent 1134 | mysqli.allow_persistent = On 1135 | 1136 | ; Maximum number of links. -1 means no limit. 1137 | ; http://php.net/mysqli.max-links 1138 | mysqli.max_links = -1 1139 | 1140 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1141 | ; http://php.net/mysqli.cache_size 1142 | mysqli.cache_size = 2000 1143 | 1144 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1145 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1146 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1147 | ; at MYSQL_PORT. 1148 | ; http://php.net/mysqli.default-port 1149 | mysqli.default_port = 3306 1150 | 1151 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1152 | ; MySQL defaults. 1153 | ; http://php.net/mysqli.default-socket 1154 | mysqli.default_socket = 1155 | 1156 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1157 | ; http://php.net/mysqli.default-host 1158 | mysqli.default_host = 1159 | 1160 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1161 | ; http://php.net/mysqli.default-user 1162 | mysqli.default_user = 1163 | 1164 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1165 | ; Note that this is generally a *bad* idea to store passwords in this file. 1166 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1167 | ; and reveal this password! And of course, any users with read access to this 1168 | ; file will be able to reveal the password as well. 1169 | ; http://php.net/mysqli.default-pw 1170 | mysqli.default_pw = 1171 | 1172 | ; Allow or prevent reconnect 1173 | mysqli.reconnect = Off 1174 | 1175 | [mysqlnd] 1176 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1177 | ; used to tune and monitor MySQL operations. 1178 | ; http://php.net/mysqlnd.collect_statistics 1179 | mysqlnd.collect_statistics = On 1180 | 1181 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1182 | ; used to tune and monitor MySQL operations. 1183 | ; http://php.net/mysqlnd.collect_memory_statistics 1184 | mysqlnd.collect_memory_statistics = Off 1185 | 1186 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1187 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1188 | ;mysqlnd.net_cmd_buffer_size = 2048 1189 | 1190 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1191 | ; bytes. 1192 | ; http://php.net/mysqlnd.net_read_buffer_size 1193 | ;mysqlnd.net_read_buffer_size = 32768 1194 | 1195 | [OCI8] 1196 | 1197 | ; Connection: Enables privileged connections using external 1198 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1199 | ; http://php.net/oci8.privileged-connect 1200 | ;oci8.privileged_connect = Off 1201 | 1202 | ; Connection: The maximum number of persistent OCI8 connections per 1203 | ; process. Using -1 means no limit. 1204 | ; http://php.net/oci8.max-persistent 1205 | ;oci8.max_persistent = -1 1206 | 1207 | ; Connection: The maximum number of seconds a process is allowed to 1208 | ; maintain an idle persistent connection. Using -1 means idle 1209 | ; persistent connections will be maintained forever. 1210 | ; http://php.net/oci8.persistent-timeout 1211 | ;oci8.persistent_timeout = -1 1212 | 1213 | ; Connection: The number of seconds that must pass before issuing a 1214 | ; ping during oci_pconnect() to check the connection validity. When 1215 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1216 | ; pings completely. 1217 | ; http://php.net/oci8.ping-interval 1218 | ;oci8.ping_interval = 60 1219 | 1220 | ; Connection: Set this to a user chosen connection class to be used 1221 | ; for all pooled server requests with Oracle 11g Database Resident 1222 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1223 | ; the same string for all web servers running the same application, 1224 | ; the database pool must be configured, and the connection string must 1225 | ; specify to use a pooled server. 1226 | ;oci8.connection_class = 1227 | 1228 | ; High Availability: Using On lets PHP receive Fast Application 1229 | ; Notification (FAN) events generated when a database node fails. The 1230 | ; database must also be configured to post FAN events. 1231 | ;oci8.events = Off 1232 | 1233 | ; Tuning: This option enables statement caching, and specifies how 1234 | ; many statements to cache. Using 0 disables statement caching. 1235 | ; http://php.net/oci8.statement-cache-size 1236 | ;oci8.statement_cache_size = 20 1237 | 1238 | ; Tuning: Enables statement prefetching and sets the default number of 1239 | ; rows that will be fetched automatically after statement execution. 1240 | ; http://php.net/oci8.default-prefetch 1241 | ;oci8.default_prefetch = 100 1242 | 1243 | ; Compatibility. Using On means oci_close() will not close 1244 | ; oci_connect() and oci_new_connect() connections. 1245 | ; http://php.net/oci8.old-oci-close-semantics 1246 | ;oci8.old_oci_close_semantics = Off 1247 | 1248 | [PostgreSQL] 1249 | ; Allow or prevent persistent links. 1250 | ; http://php.net/pgsql.allow-persistent 1251 | pgsql.allow_persistent = On 1252 | 1253 | ; Detect broken persistent links always with pg_pconnect(). 1254 | ; Auto reset feature requires a little overheads. 1255 | ; http://php.net/pgsql.auto-reset-persistent 1256 | pgsql.auto_reset_persistent = Off 1257 | 1258 | ; Maximum number of persistent links. -1 means no limit. 1259 | ; http://php.net/pgsql.max-persistent 1260 | pgsql.max_persistent = -1 1261 | 1262 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1263 | ; http://php.net/pgsql.max-links 1264 | pgsql.max_links = -1 1265 | 1266 | ; Ignore PostgreSQL backends Notice message or not. 1267 | ; Notice message logging require a little overheads. 1268 | ; http://php.net/pgsql.ignore-notice 1269 | pgsql.ignore_notice = 0 1270 | 1271 | ; Log PostgreSQL backends Notice message or not. 1272 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1273 | ; http://php.net/pgsql.log-notice 1274 | pgsql.log_notice = 0 1275 | 1276 | [Sybase-CT] 1277 | ; Allow or prevent persistent links. 1278 | ; http://php.net/sybct.allow-persistent 1279 | sybct.allow_persistent = On 1280 | 1281 | ; Maximum number of persistent links. -1 means no limit. 1282 | ; http://php.net/sybct.max-persistent 1283 | sybct.max_persistent = -1 1284 | 1285 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1286 | ; http://php.net/sybct.max-links 1287 | sybct.max_links = -1 1288 | 1289 | ; Minimum server message severity to display. 1290 | ; http://php.net/sybct.min-server-severity 1291 | sybct.min_server_severity = 10 1292 | 1293 | ; Minimum client message severity to display. 1294 | ; http://php.net/sybct.min-client-severity 1295 | sybct.min_client_severity = 10 1296 | 1297 | ; Set per-context timeout 1298 | ; http://php.net/sybct.timeout 1299 | ;sybct.timeout= 1300 | 1301 | ;sybct.packet_size 1302 | 1303 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1304 | ; Default: one minute 1305 | ;sybct.login_timeout= 1306 | 1307 | ; The name of the host you claim to be connecting from, for display by sp_who. 1308 | ; Default: none 1309 | ;sybct.hostname= 1310 | 1311 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1312 | ; Default: 0 1313 | ;sybct.deadlock_retry_count= 1314 | 1315 | [bcmath] 1316 | ; Number of decimal digits for all bcmath functions. 1317 | ; http://php.net/bcmath.scale 1318 | bcmath.scale = 0 1319 | 1320 | [browscap] 1321 | ; http://php.net/browscap 1322 | ;browscap = extra/browscap.ini 1323 | 1324 | [Session] 1325 | ; Handler used to store/retrieve data. 1326 | ; http://php.net/session.save-handler 1327 | session.save_handler = files 1328 | 1329 | ; Argument passed to save_handler. In the case of files, this is the path 1330 | ; where data files are stored. Note: Windows users have to change this 1331 | ; variable in order to use PHP's session functions. 1332 | ; 1333 | ; The path can be defined as: 1334 | ; 1335 | ; session.save_path = "N;/path" 1336 | ; 1337 | ; where N is an integer. Instead of storing all the session files in 1338 | ; /path, what this will do is use subdirectories N-levels deep, and 1339 | ; store the session data in those directories. This is useful if you 1340 | ; or your OS have problems with lots of files in one directory, and is 1341 | ; a more efficient layout for servers that handle lots of sessions. 1342 | ; 1343 | ; NOTE 1: PHP will not create this directory structure automatically. 1344 | ; You can use the script in the ext/session dir for that purpose. 1345 | ; NOTE 2: See the section on garbage collection below if you choose to 1346 | ; use subdirectories for session storage 1347 | ; 1348 | ; The file storage module creates files using mode 600 by default. 1349 | ; You can change that by using 1350 | ; 1351 | ; session.save_path = "N;MODE;/path" 1352 | ; 1353 | ; where MODE is the octal representation of the mode. Note that this 1354 | ; does not overwrite the process's umask. 1355 | ; http://php.net/session.save-path 1356 | ;session.save_path = "/var/lib/php5" 1357 | 1358 | ; Whether to use strict session mode. 1359 | ; Strict session mode does not accept uninitialized session ID and regenerate 1360 | ; session ID if browser sends uninitialized session ID. Strict mode protects 1361 | ; applications from session fixation via session adoption vulnerability. It is 1362 | ; disabled by default for maximum compatibility, but enabling it is encouraged. 1363 | ; https://wiki.php.net/rfc/strict_sessions 1364 | session.use_strict_mode = 0 1365 | 1366 | ; Whether to use cookies. 1367 | ; http://php.net/session.use-cookies 1368 | session.use_cookies = 1 1369 | 1370 | ; http://php.net/session.cookie-secure 1371 | ;session.cookie_secure = 1372 | 1373 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1374 | ; the session id. We encourage this operation as it's very helpful in combating 1375 | ; session hijacking when not specifying and managing your own session id. It is 1376 | ; not the end all be all of session hijacking defense, but it's a good start. 1377 | ; http://php.net/session.use-only-cookies 1378 | session.use_only_cookies = 1 1379 | 1380 | ; Name of the session (used as cookie name). 1381 | ; http://php.net/session.name 1382 | session.name = PHPSESSID 1383 | 1384 | ; Initialize session on request startup. 1385 | ; http://php.net/session.auto-start 1386 | session.auto_start = 0 1387 | 1388 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1389 | ; http://php.net/session.cookie-lifetime 1390 | session.cookie_lifetime = 0 1391 | 1392 | ; The path for which the cookie is valid. 1393 | ; http://php.net/session.cookie-path 1394 | session.cookie_path = / 1395 | 1396 | ; The domain for which the cookie is valid. 1397 | ; http://php.net/session.cookie-domain 1398 | session.cookie_domain = 1399 | 1400 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1401 | ; http://php.net/session.cookie-httponly 1402 | session.cookie_httponly = 1403 | 1404 | ; Handler used to serialize data. php is the standard serializer of PHP. 1405 | ; http://php.net/session.serialize-handler 1406 | session.serialize_handler = php 1407 | 1408 | ; Defines the probability that the 'garbage collection' process is started 1409 | ; on every session initialization. The probability is calculated by using 1410 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1411 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1412 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1413 | ; the gc will run on any give request. 1414 | ; Default Value: 1 1415 | ; Development Value: 1 1416 | ; Production Value: 1 1417 | ; http://php.net/session.gc-probability 1418 | session.gc_probability = 0 1419 | 1420 | ; Defines the probability that the 'garbage collection' process is started on every 1421 | ; session initialization. The probability is calculated by using the following equation: 1422 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1423 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1424 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1425 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1426 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1427 | ; this is a more efficient approach. 1428 | ; Default Value: 100 1429 | ; Development Value: 1000 1430 | ; Production Value: 1000 1431 | ; http://php.net/session.gc-divisor 1432 | session.gc_divisor = 1000 1433 | 1434 | ; After this number of seconds, stored data will be seen as 'garbage' and 1435 | ; cleaned up by the garbage collection process. 1436 | ; http://php.net/session.gc-maxlifetime 1437 | session.gc_maxlifetime = 1440 1438 | 1439 | ; NOTE: If you are using the subdirectory option for storing session files 1440 | ; (see session.save_path above), then garbage collection does *not* 1441 | ; happen automatically. You will need to do your own garbage 1442 | ; collection through a shell script, cron entry, or some other method. 1443 | ; For example, the following script would is the equivalent of 1444 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1445 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1446 | 1447 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to 1448 | ; to initialize a session variable in the global scope. 1449 | ; PHP 4.3 and later will warn you, if this feature is used. 1450 | ; You can disable the feature and the warning separately. At this time, 1451 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature 1452 | ; introduces some serious security problems if not handled correctly. It's 1453 | ; recommended that you do not use this feature on production servers. But you 1454 | ; should enable this on development servers and enable the warning as well. If you 1455 | ; do not enable the feature on development servers, you won't be warned when it's 1456 | ; used and debugging errors caused by this can be difficult to track down. 1457 | ; Default Value: On 1458 | ; Development Value: On 1459 | ; Production Value: Off 1460 | ; http://php.net/session.bug-compat-42 1461 | session.bug_compat_42 = Off 1462 | 1463 | ; This setting controls whether or not you are warned by PHP when initializing a 1464 | ; session value into the global space. session.bug_compat_42 must be enabled before 1465 | ; these warnings can be issued by PHP. See the directive above for more information. 1466 | ; Default Value: On 1467 | ; Development Value: On 1468 | ; Production Value: Off 1469 | ; http://php.net/session.bug-compat-warn 1470 | session.bug_compat_warn = Off 1471 | 1472 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1473 | ; HTTP_REFERER has to contain this substring for the session to be 1474 | ; considered as valid. 1475 | ; http://php.net/session.referer-check 1476 | session.referer_check = 1477 | 1478 | ; How many bytes to read from the file. 1479 | ; http://php.net/session.entropy-length 1480 | ;session.entropy_length = 32 1481 | 1482 | ; Specified here to create the session id. 1483 | ; http://php.net/session.entropy-file 1484 | ; Defaults to /dev/urandom 1485 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom 1486 | ; If neither are found at compile time, the default is no entropy file. 1487 | ; On windows, setting the entropy_length setting will activate the 1488 | ; Windows random source (using the CryptoAPI) 1489 | ;session.entropy_file = /dev/urandom 1490 | 1491 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1492 | ; or leave this empty to avoid sending anti-caching headers. 1493 | ; http://php.net/session.cache-limiter 1494 | session.cache_limiter = nocache 1495 | 1496 | ; Document expires after n minutes. 1497 | ; http://php.net/session.cache-expire 1498 | session.cache_expire = 180 1499 | 1500 | ; trans sid support is disabled by default. 1501 | ; Use of trans sid may risk your users security. 1502 | ; Use this option with caution. 1503 | ; - User may send URL contains active session ID 1504 | ; to other person via. email/irc/etc. 1505 | ; - URL that contains active session ID may be stored 1506 | ; in publicly accessible computer. 1507 | ; - User may access your site with the same session ID 1508 | ; always using URL stored in browser's history or bookmarks. 1509 | ; http://php.net/session.use-trans-sid 1510 | session.use_trans_sid = 0 1511 | 1512 | ; Select a hash function for use in generating session ids. 1513 | ; Possible Values 1514 | ; 0 (MD5 128 bits) 1515 | ; 1 (SHA-1 160 bits) 1516 | ; This option may also be set to the name of any hash function supported by 1517 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1518 | ; function. 1519 | ; http://php.net/session.hash-function 1520 | session.hash_function = 0 1521 | 1522 | ; Define how many bits are stored in each character when converting 1523 | ; the binary hash data to something readable. 1524 | ; Possible values: 1525 | ; 4 (4 bits: 0-9, a-f) 1526 | ; 5 (5 bits: 0-9, a-v) 1527 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1528 | ; Default Value: 4 1529 | ; Development Value: 5 1530 | ; Production Value: 5 1531 | ; http://php.net/session.hash-bits-per-character 1532 | session.hash_bits_per_character = 5 1533 | 1534 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1535 | ; form/fieldset are special; if you include them here, the rewriter will 1536 | ; add a hidden field with the info which is otherwise appended 1537 | ; to URLs. If you want XHTML conformity, remove the form entry. 1538 | ; Note that all valid entries require a "=", even if no value follows. 1539 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1540 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1541 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1542 | ; http://php.net/url-rewriter.tags 1543 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1544 | 1545 | ; Enable upload progress tracking in $_SESSION 1546 | ; Default Value: On 1547 | ; Development Value: On 1548 | ; Production Value: On 1549 | ; http://php.net/session.upload-progress.enabled 1550 | ;session.upload_progress.enabled = On 1551 | 1552 | ; Cleanup the progress information as soon as all POST data has been read 1553 | ; (i.e. upload completed). 1554 | ; Default Value: On 1555 | ; Development Value: On 1556 | ; Production Value: On 1557 | ; http://php.net/session.upload-progress.cleanup 1558 | ;session.upload_progress.cleanup = On 1559 | 1560 | ; A prefix used for the upload progress key in $_SESSION 1561 | ; Default Value: "upload_progress_" 1562 | ; Development Value: "upload_progress_" 1563 | ; Production Value: "upload_progress_" 1564 | ; http://php.net/session.upload-progress.prefix 1565 | ;session.upload_progress.prefix = "upload_progress_" 1566 | 1567 | ; The index name (concatenated with the prefix) in $_SESSION 1568 | ; containing the upload progress information 1569 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1570 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1571 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1572 | ; http://php.net/session.upload-progress.name 1573 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1574 | 1575 | ; How frequently the upload progress should be updated. 1576 | ; Given either in percentages (per-file), or in bytes 1577 | ; Default Value: "1%" 1578 | ; Development Value: "1%" 1579 | ; Production Value: "1%" 1580 | ; http://php.net/session.upload-progress.freq 1581 | ;session.upload_progress.freq = "1%" 1582 | 1583 | ; The minimum delay between updates, in seconds 1584 | ; Default Value: 1 1585 | ; Development Value: 1 1586 | ; Production Value: 1 1587 | ; http://php.net/session.upload-progress.min-freq 1588 | ;session.upload_progress.min_freq = "1" 1589 | 1590 | [MSSQL] 1591 | ; Allow or prevent persistent links. 1592 | mssql.allow_persistent = On 1593 | 1594 | ; Maximum number of persistent links. -1 means no limit. 1595 | mssql.max_persistent = -1 1596 | 1597 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1598 | mssql.max_links = -1 1599 | 1600 | ; Minimum error severity to display. 1601 | mssql.min_error_severity = 10 1602 | 1603 | ; Minimum message severity to display. 1604 | mssql.min_message_severity = 10 1605 | 1606 | ; Compatibility mode with old versions of PHP 3.0. 1607 | mssql.compatibility_mode = Off 1608 | 1609 | ; Connect timeout 1610 | ;mssql.connect_timeout = 5 1611 | 1612 | ; Query timeout 1613 | ;mssql.timeout = 60 1614 | 1615 | ; Valid range 0 - 2147483647. Default = 4096. 1616 | ;mssql.textlimit = 4096 1617 | 1618 | ; Valid range 0 - 2147483647. Default = 4096. 1619 | ;mssql.textsize = 4096 1620 | 1621 | ; Limits the number of records in each batch. 0 = all records in one batch. 1622 | ;mssql.batchsize = 0 1623 | 1624 | ; Specify how datetime and datetim4 columns are returned 1625 | ; On => Returns data converted to SQL server settings 1626 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1627 | ;mssql.datetimeconvert = On 1628 | 1629 | ; Use NT authentication when connecting to the server 1630 | mssql.secure_connection = Off 1631 | 1632 | ; Specify max number of processes. -1 = library default 1633 | ; msdlib defaults to 25 1634 | ; FreeTDS defaults to 4096 1635 | ;mssql.max_procs = -1 1636 | 1637 | ; Specify client character set. 1638 | ; If empty or not set the client charset from freetds.conf is used 1639 | ; This is only used when compiled with FreeTDS 1640 | ;mssql.charset = "ISO-8859-1" 1641 | 1642 | [Assertion] 1643 | ; Assert(expr); active by default. 1644 | ; http://php.net/assert.active 1645 | ;assert.active = On 1646 | 1647 | ; Issue a PHP warning for each failed assertion. 1648 | ; http://php.net/assert.warning 1649 | ;assert.warning = On 1650 | 1651 | ; Don't bail out by default. 1652 | ; http://php.net/assert.bail 1653 | ;assert.bail = Off 1654 | 1655 | ; User-function to be called if an assertion fails. 1656 | ; http://php.net/assert.callback 1657 | ;assert.callback = 0 1658 | 1659 | ; Eval the expression with current error_reporting(). Set to true if you want 1660 | ; error_reporting(0) around the eval(). 1661 | ; http://php.net/assert.quiet-eval 1662 | ;assert.quiet_eval = 0 1663 | 1664 | [COM] 1665 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1666 | ; http://php.net/com.typelib-file 1667 | ;com.typelib_file = 1668 | 1669 | ; allow Distributed-COM calls 1670 | ; http://php.net/com.allow-dcom 1671 | ;com.allow_dcom = true 1672 | 1673 | ; autoregister constants of a components typlib on com_load() 1674 | ; http://php.net/com.autoregister-typelib 1675 | ;com.autoregister_typelib = true 1676 | 1677 | ; register constants casesensitive 1678 | ; http://php.net/com.autoregister-casesensitive 1679 | ;com.autoregister_casesensitive = false 1680 | 1681 | ; show warnings on duplicate constant registrations 1682 | ; http://php.net/com.autoregister-verbose 1683 | ;com.autoregister_verbose = true 1684 | 1685 | ; The default character set code-page to use when passing strings to and from COM objects. 1686 | ; Default: system ANSI code page 1687 | ;com.code_page= 1688 | 1689 | [mbstring] 1690 | ; language for internal character representation. 1691 | ; http://php.net/mbstring.language 1692 | ;mbstring.language = Japanese 1693 | 1694 | ; internal/script encoding. 1695 | ; Some encoding cannot work as internal encoding. 1696 | ; (e.g. SJIS, BIG5, ISO-2022-*) 1697 | ; http://php.net/mbstring.internal-encoding 1698 | ;mbstring.internal_encoding = UTF-8 1699 | 1700 | ; http input encoding. 1701 | ; http://php.net/mbstring.http-input 1702 | ;mbstring.http_input = UTF-8 1703 | 1704 | ; http output encoding. mb_output_handler must be 1705 | ; registered as output buffer to function 1706 | ; http://php.net/mbstring.http-output 1707 | ;mbstring.http_output = pass 1708 | 1709 | ; enable automatic encoding translation according to 1710 | ; mbstring.internal_encoding setting. Input chars are 1711 | ; converted to internal encoding by setting this to On. 1712 | ; Note: Do _not_ use automatic encoding translation for 1713 | ; portable libs/applications. 1714 | ; http://php.net/mbstring.encoding-translation 1715 | ;mbstring.encoding_translation = Off 1716 | 1717 | ; automatic encoding detection order. 1718 | ; auto means 1719 | ; http://php.net/mbstring.detect-order 1720 | ;mbstring.detect_order = auto 1721 | 1722 | ; substitute_character used when character cannot be converted 1723 | ; one from another 1724 | ; http://php.net/mbstring.substitute-character 1725 | ;mbstring.substitute_character = none 1726 | 1727 | ; overload(replace) single byte functions by mbstring functions. 1728 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1729 | ; etc. Possible values are 0,1,2,4 or combination of them. 1730 | ; For example, 7 for overload everything. 1731 | ; 0: No overload 1732 | ; 1: Overload mail() function 1733 | ; 2: Overload str*() functions 1734 | ; 4: Overload ereg*() functions 1735 | ; http://php.net/mbstring.func-overload 1736 | ;mbstring.func_overload = 0 1737 | 1738 | ; enable strict encoding detection. 1739 | ;mbstring.strict_detection = On 1740 | 1741 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1742 | ; is activated. 1743 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1744 | ;mbstring.http_output_conv_mimetype= 1745 | 1746 | [gd] 1747 | ; Tell the jpeg decode to ignore warnings and try to create 1748 | ; a gd image. The warning will then be displayed as notices 1749 | ; disabled by default 1750 | ; http://php.net/gd.jpeg-ignore-warning 1751 | ;gd.jpeg_ignore_warning = 0 1752 | 1753 | [exif] 1754 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1755 | ; With mbstring support this will automatically be converted into the encoding 1756 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1757 | ; is used. For the decode settings you can distinguish between motorola and 1758 | ; intel byte order. A decode setting cannot be empty. 1759 | ; http://php.net/exif.encode-unicode 1760 | ;exif.encode_unicode = ISO-8859-15 1761 | 1762 | ; http://php.net/exif.decode-unicode-motorola 1763 | ;exif.decode_unicode_motorola = UCS-2BE 1764 | 1765 | ; http://php.net/exif.decode-unicode-intel 1766 | ;exif.decode_unicode_intel = UCS-2LE 1767 | 1768 | ; http://php.net/exif.encode-jis 1769 | ;exif.encode_jis = 1770 | 1771 | ; http://php.net/exif.decode-jis-motorola 1772 | ;exif.decode_jis_motorola = JIS 1773 | 1774 | ; http://php.net/exif.decode-jis-intel 1775 | ;exif.decode_jis_intel = JIS 1776 | 1777 | [Tidy] 1778 | ; The path to a default tidy configuration file to use when using tidy 1779 | ; http://php.net/tidy.default-config 1780 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1781 | 1782 | ; Should tidy clean and repair output automatically? 1783 | ; WARNING: Do not use this option if you are generating non-html content 1784 | ; such as dynamic images 1785 | ; http://php.net/tidy.clean-output 1786 | tidy.clean_output = Off 1787 | 1788 | [soap] 1789 | ; Enables or disables WSDL caching feature. 1790 | ; http://php.net/soap.wsdl-cache-enabled 1791 | soap.wsdl_cache_enabled=1 1792 | 1793 | ; Sets the directory name where SOAP extension will put cache files. 1794 | ; http://php.net/soap.wsdl-cache-dir 1795 | soap.wsdl_cache_dir="/tmp" 1796 | 1797 | ; (time to live) Sets the number of second while cached file will be used 1798 | ; instead of original one. 1799 | ; http://php.net/soap.wsdl-cache-ttl 1800 | soap.wsdl_cache_ttl=86400 1801 | 1802 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1803 | soap.wsdl_cache_limit = 5 1804 | 1805 | [sysvshm] 1806 | ; A default size of the shared memory segment 1807 | ;sysvshm.init_mem = 10000 1808 | 1809 | [ldap] 1810 | ; Sets the maximum number of open links or -1 for unlimited. 1811 | ldap.max_links = -1 1812 | 1813 | [mcrypt] 1814 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1815 | 1816 | ; Directory where to load mcrypt algorithms 1817 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1818 | ;mcrypt.algorithms_dir= 1819 | 1820 | ; Directory where to load mcrypt modes 1821 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1822 | ;mcrypt.modes_dir= 1823 | 1824 | [dba] 1825 | ;dba.default_handler= 1826 | 1827 | [opcache] 1828 | ; Determines if Zend OPCache is enabled 1829 | ;opcache.enable=0 1830 | 1831 | ; Determines if Zend OPCache is enabled for the CLI version of PHP 1832 | ;opcache.enable_cli=0 1833 | 1834 | ; The OPcache shared memory storage size. 1835 | ;opcache.memory_consumption=64 1836 | 1837 | ; The amount of memory for interned strings in Mbytes. 1838 | ;opcache.interned_strings_buffer=4 1839 | 1840 | ; The maximum number of keys (scripts) in the OPcache hash table. 1841 | ; Only numbers between 200 and 100000 are allowed. 1842 | ;opcache.max_accelerated_files=2000 1843 | 1844 | ; The maximum percentage of "wasted" memory until a restart is scheduled. 1845 | ;opcache.max_wasted_percentage=5 1846 | 1847 | ; When this directive is enabled, the OPcache appends the current working 1848 | ; directory to the script key, thus eliminating possible collisions between 1849 | ; files with the same name (basename). Disabling the directive improves 1850 | ; performance, but may break existing applications. 1851 | ;opcache.use_cwd=1 1852 | 1853 | ; When disabled, you must reset the OPcache manually or restart the 1854 | ; webserver for changes to the filesystem to take effect. 1855 | ;opcache.validate_timestamps=1 1856 | 1857 | ; How often (in seconds) to check file timestamps for changes to the shared 1858 | ; memory storage allocation. ("1" means validate once per second, but only 1859 | ; once per request. "0" means always validate) 1860 | ;opcache.revalidate_freq=2 1861 | 1862 | ; Enables or disables file search in include_path optimization 1863 | ;opcache.revalidate_path=0 1864 | 1865 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the 1866 | ; size of the optimized code. 1867 | ;opcache.save_comments=1 1868 | 1869 | ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" 1870 | ; may be always stored (save_comments=1), but not loaded by applications 1871 | ; that don't need them anyway. 1872 | ;opcache.load_comments=1 1873 | 1874 | ; If enabled, a fast shutdown sequence is used for the accelerated code 1875 | ;opcache.fast_shutdown=0 1876 | 1877 | ; Allow file existence override (file_exists, etc.) performance feature. 1878 | ;opcache.enable_file_override=0 1879 | 1880 | ; A bitmask, where each bit enables or disables the appropriate OPcache 1881 | ; passes 1882 | ;opcache.optimization_level=0xffffffff 1883 | 1884 | ;opcache.inherited_hack=1 1885 | ;opcache.dups_fix=0 1886 | 1887 | ; The location of the OPcache blacklist file (wildcards allowed). 1888 | ; Each OPcache blacklist file is a text file that holds the names of files 1889 | ; that should not be accelerated. The file format is to add each filename 1890 | ; to a new line. The filename may be a full path or just a file prefix 1891 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www 1892 | ; that start with 'x'). Line starting with a ; are ignored (comments). 1893 | ;opcache.blacklist_filename= 1894 | 1895 | ; Allows exclusion of large files from being cached. By default all files 1896 | ; are cached. 1897 | ;opcache.max_file_size=0 1898 | 1899 | ; Check the cache checksum each N requests. 1900 | ; The default value of "0" means that the checks are disabled. 1901 | ;opcache.consistency_checks=0 1902 | 1903 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache 1904 | ; is not being accessed. 1905 | ;opcache.force_restart_timeout=180 1906 | 1907 | ; OPcache error_log file name. Empty string assumes "stderr". 1908 | ;opcache.error_log= 1909 | 1910 | ; All OPcache errors go to the Web server log. 1911 | ; By default, only fatal errors (level 0) or errors (level 1) are logged. 1912 | ; You can also enable warnings (level 2), info messages (level 3) or 1913 | ; debug messages (level 4). 1914 | ;opcache.log_verbosity_level=1 1915 | 1916 | ; Preferred Shared Memory back-end. Leave empty and let the system decide. 1917 | ;opcache.preferred_memory_model= 1918 | 1919 | ; Protect the shared memory from unexpected writing during script execution. 1920 | ; Useful for internal debugging only. 1921 | ;opcache.protect_memory=0 1922 | 1923 | [curl] 1924 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1925 | ; absolute path. 1926 | ;curl.cainfo = 1927 | 1928 | ; Local Variables: 1929 | ; tab-width: 4 1930 | ; End: -------------------------------------------------------------------------------- /files/php/php.ini: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it's 82 | ; much more verbose when it comes to errors. We recommending using the 83 | ; development version only in development environments as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is 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.bug_compat_42 142 | ; Default Value: On 143 | ; Development Value: On 144 | ; Production Value: Off 145 | 146 | ; session.bug_compat_warn 147 | ; Default Value: On 148 | ; Development Value: On 149 | ; Production Value: Off 150 | 151 | ; session.gc_divisor 152 | ; Default Value: 100 153 | ; Development Value: 1000 154 | ; Production Value: 1000 155 | 156 | ; session.hash_bits_per_character 157 | ; Default Value: 4 158 | ; Development Value: 5 159 | ; Production Value: 5 160 | 161 | ; short_open_tag 162 | ; Default Value: On 163 | ; Development Value: Off 164 | ; Production Value: Off 165 | 166 | ; track_errors 167 | ; Default Value: Off 168 | ; Development Value: On 169 | ; Production Value: Off 170 | 171 | ; url_rewriter.tags 172 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 173 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 174 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 175 | 176 | ; variables_order 177 | ; Default Value: "EGPCS" 178 | ; Development Value: "GPCS" 179 | ; Production Value: "GPCS" 180 | 181 | ;;;;;;;;;;;;;;;;;;;; 182 | ; php.ini Options ; 183 | ;;;;;;;;;;;;;;;;;;;; 184 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 185 | ;user_ini.filename = ".user.ini" 186 | 187 | ; To disable this feature set this option to empty value 188 | ;user_ini.filename = 189 | 190 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 191 | ;user_ini.cache_ttl = 300 192 | 193 | ;;;;;;;;;;;;;;;;;;;; 194 | ; Language Options ; 195 | ;;;;;;;;;;;;;;;;;;;; 196 | 197 | ; Enable the PHP scripting language engine under Apache. 198 | ; http://php.net/engine 199 | engine = On 200 | 201 | ; This directive determines whether or not PHP will recognize code between 202 | ; tags as PHP source which should be processed as such. It is 203 | ; generally recommended that should be used and that this feature 204 | ; should be disabled, as enabling it may result in issues when generating XML 205 | ; documents, however this remains supported for backward compatibility reasons. 206 | ; Note that this directive does not control the tags. 215 | ; http://php.net/asp-tags 216 | asp_tags = Off 217 | 218 | ; The number of significant digits displayed in floating point numbers. 219 | ; http://php.net/precision 220 | precision = 14 221 | 222 | ; Output buffering is a mechanism for controlling how much output data 223 | ; (excluding headers and cookies) PHP should keep internally before pushing that 224 | ; data to the client. If your application's output exceeds this setting, PHP 225 | ; will send that data in chunks of roughly the size you specify. 226 | ; Turning on this setting and managing its maximum buffer size can yield some 227 | ; interesting side-effects depending on your application and web server. 228 | ; You may be able to send headers and cookies after you've already sent output 229 | ; through print or echo. You also may see performance benefits if your server is 230 | ; emitting less packets due to buffered output versus PHP streaming the output 231 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 232 | ; reasons. 233 | ; Note: Output buffering can also be controlled via Output Buffering Control 234 | ; functions. 235 | ; Possible Values: 236 | ; On = Enabled and buffer is unlimited. (Use with caution) 237 | ; Off = Disabled 238 | ; Integer = Enables the buffer and sets its maximum size in bytes. 239 | ; Note: This directive is hardcoded to Off for the CLI SAPI 240 | ; Default Value: Off 241 | ; Development Value: 4096 242 | ; Production Value: 4096 243 | ; http://php.net/output-buffering 244 | output_buffering = 4096 245 | 246 | ; You can redirect all of the output of your scripts to a function. For 247 | ; example, if you set output_handler to "mb_output_handler", character 248 | ; encoding will be transparently converted to the specified encoding. 249 | ; Setting any output handler automatically turns on output buffering. 250 | ; Note: People who wrote portable scripts should not depend on this ini 251 | ; directive. Instead, explicitly set the output handler using ob_start(). 252 | ; Using this ini directive may cause problems unless you know what script 253 | ; is doing. 254 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 255 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 256 | ; Note: output_handler must be empty if this is set 'On' !!!! 257 | ; Instead you must use zlib.output_handler. 258 | ; http://php.net/output-handler 259 | ;output_handler = 260 | 261 | ; Transparent output compression using the zlib library 262 | ; Valid values for this option are 'off', 'on', or a specific buffer size 263 | ; to be used for compression (default is 4KB) 264 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 265 | ; outputs chunks that are few hundreds bytes each as a result of 266 | ; compression. If you prefer a larger chunk size for better 267 | ; performance, enable output_buffering in addition. 268 | ; Note: You need to use zlib.output_handler instead of the standard 269 | ; output_handler, or otherwise the output will be corrupted. 270 | ; http://php.net/zlib.output-compression 271 | zlib.output_compression = Off 272 | 273 | ; http://php.net/zlib.output-compression-level 274 | ;zlib.output_compression_level = -1 275 | 276 | ; You cannot specify additional output handlers if zlib.output_compression 277 | ; is activated here. This setting does the same as output_handler but in 278 | ; a different order. 279 | ; http://php.net/zlib.output-handler 280 | ;zlib.output_handler = 281 | 282 | ; Implicit flush tells PHP to tell the output layer to flush itself 283 | ; automatically after every output block. This is equivalent to calling the 284 | ; PHP function flush() after each and every call to print() or echo() and each 285 | ; and every HTML block. Turning this option on has serious performance 286 | ; implications and is generally recommended for debugging purposes only. 287 | ; http://php.net/implicit-flush 288 | ; Note: This directive is hardcoded to On for the CLI SAPI 289 | implicit_flush = Off 290 | 291 | ; The unserialize callback function will be called (with the undefined class' 292 | ; name as parameter), if the unserializer finds an undefined class 293 | ; which should be instantiated. A warning appears if the specified function is 294 | ; not defined, or if the function doesn't include/implement the missing class. 295 | ; So only set this entry, if you really want to implement such a 296 | ; callback-function. 297 | unserialize_callback_func = 298 | 299 | ; When floats & doubles are serialized store serialize_precision significant 300 | ; digits after the floating point. The default value ensures that when floats 301 | ; are decoded with unserialize, the data will remain the same. 302 | serialize_precision = 17 303 | 304 | ; open_basedir, if set, limits all file operations to the defined directory 305 | ; and below. This directive makes most sense if used in a per-directory 306 | ; or per-virtualhost web server configuration file. This directive is 307 | ; *NOT* affected by whether Safe Mode is turned On or Off. 308 | ; http://php.net/open-basedir 309 | ;open_basedir = 310 | 311 | ; This directive allows you to disable certain functions for security reasons. 312 | ; It receives a comma-delimited list of function names. This directive is 313 | ; *NOT* affected by whether Safe Mode is turned On or Off. 314 | ; http://php.net/disable-functions 315 | disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, 316 | 317 | ; This directive allows you to disable certain classes for security reasons. 318 | ; It receives a comma-delimited list of class names. This directive is 319 | ; *NOT* affected by whether Safe Mode is turned On or Off. 320 | ; http://php.net/disable-classes 321 | disable_classes = 322 | 323 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 324 | ; would work. 325 | ; http://php.net/syntax-highlighting 326 | ;highlight.string = #DD0000 327 | ;highlight.comment = #FF9900 328 | ;highlight.keyword = #007700 329 | ;highlight.default = #0000BB 330 | ;highlight.html = #000000 331 | 332 | ; If enabled, the request will be allowed to complete even if the user aborts 333 | ; the request. Consider enabling it if executing long requests, which may end up 334 | ; being interrupted by the user or a browser timing out. PHP's default behavior 335 | ; is to disable this feature. 336 | ; http://php.net/ignore-user-abort 337 | ;ignore_user_abort = On 338 | 339 | ; Determines the size of the realpath cache to be used by PHP. This value should 340 | ; be increased on systems where PHP opens many files to reflect the quantity of 341 | ; the file operations performed. 342 | ; http://php.net/realpath-cache-size 343 | ;realpath_cache_size = 16k 344 | 345 | ; Duration of time, in seconds for which to cache realpath information for a given 346 | ; file or directory. For systems with rarely changing files, consider increasing this 347 | ; value. 348 | ; http://php.net/realpath-cache-ttl 349 | ;realpath_cache_ttl = 120 350 | 351 | ; Enables or disables the circular reference collector. 352 | ; http://php.net/zend.enable-gc 353 | zend.enable_gc = On 354 | 355 | ; If enabled, scripts may be written in encodings that are incompatible with 356 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 357 | ; encodings. To use this feature, mbstring extension must be enabled. 358 | ; Default: Off 359 | ;zend.multibyte = Off 360 | 361 | ; Allows to set the default encoding for the scripts. This value will be used 362 | ; unless "declare(encoding=...)" directive appears at the top of the script. 363 | ; Only affects if zend.multibyte is set. 364 | ; Default: "" 365 | ;zend.script_encoding = 366 | 367 | ;;;;;;;;;;;;;;;;; 368 | ; Miscellaneous ; 369 | ;;;;;;;;;;;;;;;;; 370 | 371 | ; Decides whether PHP may expose the fact that it is installed on the server 372 | ; (e.g. by adding its signature to the Web server header). It is no security 373 | ; threat in any way, but it makes it possible to determine whether you use PHP 374 | ; on your server or not. 375 | ; http://php.net/expose-php 376 | expose_php = On 377 | 378 | ;;;;;;;;;;;;;;;;;;; 379 | ; Resource Limits ; 380 | ;;;;;;;;;;;;;;;;;;; 381 | 382 | ; Maximum execution time of each script, in seconds 383 | ; http://php.net/max-execution-time 384 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 385 | max_execution_time = 30 386 | 387 | ; Maximum amount of time each script may spend parsing request data. It's a good 388 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 389 | ; long running scripts. 390 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 391 | ; Default Value: -1 (Unlimited) 392 | ; Development Value: 60 (60 seconds) 393 | ; Production Value: 60 (60 seconds) 394 | ; http://php.net/max-input-time 395 | max_input_time = 60 396 | 397 | ; Maximum input variable nesting level 398 | ; http://php.net/max-input-nesting-level 399 | ;max_input_nesting_level = 64 400 | 401 | ; How many GET/POST/COOKIE input variables may be accepted 402 | ; max_input_vars = 1000 403 | 404 | ; Maximum amount of memory a script may consume (128MB) 405 | ; http://php.net/memory-limit 406 | memory_limit = 128M 407 | 408 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 409 | ; Error handling and logging ; 410 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 411 | 412 | ; This directive informs PHP of which errors, warnings and notices you would like 413 | ; it to take action for. The recommended way of setting values for this 414 | ; directive is through the use of the error level constants and bitwise 415 | ; operators. The error level constants are below here for convenience as well as 416 | ; some common settings and their meanings. 417 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 418 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 419 | ; recommended coding standards in PHP. For performance reasons, this is the 420 | ; recommend error reporting setting. Your production server shouldn't be wasting 421 | ; resources complaining about best practices and coding standards. That's what 422 | ; development servers and development settings are for. 423 | ; Note: The php.ini-development file has this setting as E_ALL. This 424 | ; means it pretty much reports everything which is exactly what you want during 425 | ; development and early testing. 426 | ; 427 | ; Error Level Constants: 428 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 429 | ; E_ERROR - fatal run-time errors 430 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 431 | ; E_WARNING - run-time warnings (non-fatal errors) 432 | ; E_PARSE - compile-time parse errors 433 | ; E_NOTICE - run-time notices (these are warnings which often result 434 | ; from a bug in your code, but it's possible that it was 435 | ; intentional (e.g., using an uninitialized variable and 436 | ; relying on the fact it's automatically initialized to an 437 | ; empty string) 438 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 439 | ; to your code which will ensure the best interoperability 440 | ; and forward compatibility of your code 441 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 442 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 443 | ; initial startup 444 | ; E_COMPILE_ERROR - fatal compile-time errors 445 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 446 | ; E_USER_ERROR - user-generated error message 447 | ; E_USER_WARNING - user-generated warning message 448 | ; E_USER_NOTICE - user-generated notice message 449 | ; E_DEPRECATED - warn about code that will not work in future versions 450 | ; of PHP 451 | ; E_USER_DEPRECATED - user-generated deprecation warnings 452 | ; 453 | ; Common Values: 454 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 455 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 456 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 457 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 458 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 459 | ; Development Value: E_ALL 460 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 461 | ; http://php.net/error-reporting 462 | error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 463 | 464 | ; This directive controls whether or not and where PHP will output errors, 465 | ; notices and warnings too. Error output is very useful during development, but 466 | ; it could be very dangerous in production environments. Depending on the code 467 | ; which is triggering the error, sensitive information could potentially leak 468 | ; out of your application such as database usernames and passwords or worse. 469 | ; It's recommended that errors be logged on production servers rather than 470 | ; having the errors sent to STDOUT. 471 | ; Possible Values: 472 | ; Off = Do not display any errors 473 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 474 | ; On or stdout = Display errors to STDOUT 475 | ; Default Value: On 476 | ; Development Value: On 477 | ; Production Value: Off 478 | ; http://php.net/display-errors 479 | display_errors = Off 480 | 481 | ; The display of errors which occur during PHP's startup sequence are handled 482 | ; separately from display_errors. PHP's default behavior is to suppress those 483 | ; errors from clients. Turning the display of startup errors on can be useful in 484 | ; debugging configuration problems. But, it's strongly recommended that you 485 | ; leave this setting off on production servers. 486 | ; Default Value: Off 487 | ; Development Value: On 488 | ; Production Value: Off 489 | ; http://php.net/display-startup-errors 490 | display_startup_errors = Off 491 | 492 | ; Besides displaying errors, PHP can also log errors to locations such as a 493 | ; server-specific log, STDERR, or a location specified by the error_log 494 | ; directive found below. While errors should not be displayed on productions 495 | ; servers they should still be monitored and logging is a great way to do that. 496 | ; Default Value: Off 497 | ; Development Value: On 498 | ; Production Value: On 499 | ; http://php.net/log-errors 500 | log_errors = On 501 | 502 | ; Set maximum length of log_errors. In error_log information about the source is 503 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 504 | ; http://php.net/log-errors-max-len 505 | log_errors_max_len = 1024 506 | 507 | ; Do not log repeated messages. Repeated errors must occur in same file on same 508 | ; line unless ignore_repeated_source is set true. 509 | ; http://php.net/ignore-repeated-errors 510 | ignore_repeated_errors = Off 511 | 512 | ; Ignore source of message when ignoring repeated messages. When this setting 513 | ; is On you will not log errors with repeated messages from different files or 514 | ; source lines. 515 | ; http://php.net/ignore-repeated-source 516 | ignore_repeated_source = Off 517 | 518 | ; If this parameter is set to Off, then memory leaks will not be shown (on 519 | ; stdout or in the log). This has only effect in a debug compile, and if 520 | ; error reporting includes E_WARNING in the allowed list 521 | ; http://php.net/report-memleaks 522 | report_memleaks = On 523 | 524 | ; This setting is on by default. 525 | ;report_zend_debug = 0 526 | 527 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 528 | ; to On can assist in debugging and is appropriate for development servers. It should 529 | ; however be disabled on production servers. 530 | ; Default Value: Off 531 | ; Development Value: On 532 | ; Production Value: Off 533 | ; http://php.net/track-errors 534 | track_errors = Off 535 | 536 | ; Turn off normal error reporting and emit XML-RPC error XML 537 | ; http://php.net/xmlrpc-errors 538 | ;xmlrpc_errors = 0 539 | 540 | ; An XML-RPC faultCode 541 | ;xmlrpc_error_number = 0 542 | 543 | ; When PHP displays or logs an error, it has the capability of formatting the 544 | ; error message as HTML for easier reading. This directive controls whether 545 | ; the error message is formatted as HTML or not. 546 | ; Note: This directive is hardcoded to Off for the CLI SAPI 547 | ; Default Value: On 548 | ; Development Value: On 549 | ; Production value: On 550 | ; http://php.net/html-errors 551 | html_errors = On 552 | 553 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 554 | ; produces clickable error messages that direct to a page describing the error 555 | ; or function causing the error in detail. 556 | ; You can download a copy of the PHP manual from http://php.net/docs 557 | ; and change docref_root to the base URL of your local copy including the 558 | ; leading '/'. You must also specify the file extension being used including 559 | ; the dot. PHP's default behavior is to leave these settings empty, in which 560 | ; case no links to documentation are generated. 561 | ; Note: Never use this feature for production boxes. 562 | ; http://php.net/docref-root 563 | ; Examples 564 | ;docref_root = "/phpmanual/" 565 | 566 | ; http://php.net/docref-ext 567 | ;docref_ext = .html 568 | 569 | ; String to output before an error message. PHP's default behavior is to leave 570 | ; this setting blank. 571 | ; http://php.net/error-prepend-string 572 | ; Example: 573 | ;error_prepend_string = "" 574 | 575 | ; String to output after an error message. PHP's default behavior is to leave 576 | ; this setting blank. 577 | ; http://php.net/error-append-string 578 | ; Example: 579 | ;error_append_string = "" 580 | 581 | ; Log errors to specified file. PHP's default behavior is to leave this value 582 | ; empty. 583 | ; http://php.net/error-log 584 | ; Example: 585 | ;error_log = php_errors.log 586 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95). 587 | ;error_log = syslog 588 | 589 | ;windows.show_crt_warning 590 | ; Default value: 0 591 | ; Development value: 0 592 | ; Production value: 0 593 | 594 | ;;;;;;;;;;;;;;;;; 595 | ; Data Handling ; 596 | ;;;;;;;;;;;;;;;;; 597 | 598 | ; The separator used in PHP generated URLs to separate arguments. 599 | ; PHP's default setting is "&". 600 | ; http://php.net/arg-separator.output 601 | ; Example: 602 | ;arg_separator.output = "&" 603 | 604 | ; List of separator(s) used by PHP to parse input URLs into variables. 605 | ; PHP's default setting is "&". 606 | ; NOTE: Every character in this directive is considered as separator! 607 | ; http://php.net/arg-separator.input 608 | ; Example: 609 | ;arg_separator.input = ";&" 610 | 611 | ; This directive determines which super global arrays are registered when PHP 612 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 613 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 614 | ; paid for the registration of these arrays and because ENV is not as commonly 615 | ; used as the others, ENV is not recommended on productions servers. You 616 | ; can still get access to the environment variables through getenv() should you 617 | ; need to. 618 | ; Default Value: "EGPCS" 619 | ; Development Value: "GPCS" 620 | ; Production Value: "GPCS"; 621 | ; http://php.net/variables-order 622 | variables_order = "GPCS" 623 | 624 | ; This directive determines which super global data (G,P,C,E & S) should 625 | ; be registered into the super global array REQUEST. If so, it also determines 626 | ; the order in which that data is registered. The values for this directive are 627 | ; specified in the same manner as the variables_order directive, EXCEPT one. 628 | ; Leaving this value empty will cause PHP to use the value set in the 629 | ; variables_order directive. It does not mean it will leave the super globals 630 | ; array REQUEST empty. 631 | ; Default Value: None 632 | ; Development Value: "GP" 633 | ; Production Value: "GP" 634 | ; http://php.net/request-order 635 | request_order = "GP" 636 | 637 | ; This directive determines whether PHP registers $argv & $argc each time it 638 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 639 | ; is invoked. $argc contains an integer representing the number of arguments 640 | ; that were passed when the script was invoked. These arrays are extremely 641 | ; useful when running scripts from the command line. When this directive is 642 | ; enabled, registering these variables consumes CPU cycles and memory each time 643 | ; a script is executed. For performance reasons, this feature should be disabled 644 | ; on production servers. 645 | ; Note: This directive is hardcoded to On for the CLI SAPI 646 | ; Default Value: On 647 | ; Development Value: Off 648 | ; Production Value: Off 649 | ; http://php.net/register-argc-argv 650 | register_argc_argv = Off 651 | 652 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 653 | ; first used (Just In Time) instead of when the script starts. If these 654 | ; variables are not used within a script, having this directive on will result 655 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 656 | ; for this directive to have any affect. 657 | ; http://php.net/auto-globals-jit 658 | auto_globals_jit = On 659 | 660 | ; Whether PHP will read the POST data. 661 | ; This option is enabled by default. 662 | ; Most likely, you won't want to disable this option globally. It causes $_POST 663 | ; and $_FILES to always be empty; the only way you will be able to read the 664 | ; POST data will be through the php://input stream wrapper. This can be useful 665 | ; to proxy requests or to process the POST data in a memory efficient fashion. 666 | ; http://php.net/enable-post-data-reading 667 | ;enable_post_data_reading = Off 668 | 669 | ; Maximum size of POST data that PHP will accept. 670 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 671 | ; is disabled through enable_post_data_reading. 672 | ; http://php.net/post-max-size 673 | post_max_size = 8M 674 | 675 | ; Automatically add files before PHP document. 676 | ; http://php.net/auto-prepend-file 677 | auto_prepend_file = 678 | 679 | ; Automatically add files after PHP document. 680 | ; http://php.net/auto-append-file 681 | auto_append_file = 682 | 683 | ; By default, PHP will output a character encoding using 684 | ; the Content-type: header. To disable sending of the charset, simply 685 | ; set it to be empty. 686 | ; 687 | ; PHP's built-in default is text/html 688 | ; http://php.net/default-mimetype 689 | default_mimetype = "text/html" 690 | 691 | ; PHP's default character set is set to empty. 692 | ; http://php.net/default-charset 693 | ;default_charset = "UTF-8" 694 | 695 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 696 | ; to disable this feature. If post reading is disabled through 697 | ; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated. 698 | ; http://php.net/always-populate-raw-post-data 699 | ;always_populate_raw_post_data = On 700 | 701 | ;;;;;;;;;;;;;;;;;;;;;;;;; 702 | ; Paths and Directories ; 703 | ;;;;;;;;;;;;;;;;;;;;;;;;; 704 | 705 | ; UNIX: "/path1:/path2" 706 | ;include_path = ".:/usr/share/php" 707 | ; 708 | ; Windows: "\path1;\path2" 709 | ;include_path = ".;c:\php\includes" 710 | ; 711 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 712 | ; http://php.net/include-path 713 | 714 | ; The root of the PHP pages, used only if nonempty. 715 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 716 | ; if you are running php as a CGI under any web server (other than IIS) 717 | ; see documentation for security issues. The alternate is to use the 718 | ; cgi.force_redirect configuration below 719 | ; http://php.net/doc-root 720 | doc_root = 721 | 722 | ; The directory under which PHP opens the script using /~username used only 723 | ; if nonempty. 724 | ; http://php.net/user-dir 725 | user_dir = 726 | 727 | ; Directory in which the loadable extensions (modules) reside. 728 | ; http://php.net/extension-dir 729 | ; extension_dir = "./" 730 | ; On windows: 731 | ; extension_dir = "ext" 732 | 733 | ; Directory where the temporary files should be placed. 734 | ; Defaults to the system default (see sys_get_temp_dir) 735 | ; sys_temp_dir = "/tmp" 736 | 737 | ; Whether or not to enable the dl() function. The dl() function does NOT work 738 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 739 | ; disabled on them. 740 | ; http://php.net/enable-dl 741 | enable_dl = Off 742 | 743 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 744 | ; most web servers. Left undefined, PHP turns this on by default. You can 745 | ; turn it off here AT YOUR OWN RISK 746 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 747 | ; http://php.net/cgi.force-redirect 748 | ;cgi.force_redirect = 1 749 | 750 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 751 | ; every request. PHP's default behavior is to disable this feature. 752 | ;cgi.nph = 1 753 | 754 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 755 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 756 | ; will look for to know it is OK to continue execution. Setting this variable MAY 757 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 758 | ; http://php.net/cgi.redirect-status-env 759 | ;cgi.redirect_status_env = 760 | 761 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 762 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 763 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 764 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 765 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 766 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 767 | ; http://php.net/cgi.fix-pathinfo 768 | ;cgi.fix_pathinfo=1 769 | 770 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 771 | ; security tokens of the calling client. This allows IIS to define the 772 | ; security context that the request runs under. mod_fastcgi under Apache 773 | ; does not currently support this feature (03/17/2002) 774 | ; Set to 1 if running under IIS. Default is zero. 775 | ; http://php.net/fastcgi.impersonate 776 | ;fastcgi.impersonate = 1 777 | 778 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 779 | ; this feature. 780 | ;fastcgi.logging = 0 781 | 782 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 783 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that 784 | ; is supported by Apache. When this option is set to 1 PHP will send 785 | ; RFC2616 compliant header. 786 | ; Default is zero. 787 | ; http://php.net/cgi.rfc2616-headers 788 | ;cgi.rfc2616_headers = 0 789 | 790 | ;;;;;;;;;;;;;;;; 791 | ; File Uploads ; 792 | ;;;;;;;;;;;;;;;; 793 | 794 | ; Whether to allow HTTP file uploads. 795 | ; http://php.net/file-uploads 796 | file_uploads = On 797 | 798 | ; Temporary directory for HTTP uploaded files (will use system default if not 799 | ; specified). 800 | ; http://php.net/upload-tmp-dir 801 | ;upload_tmp_dir = 802 | 803 | ; Maximum allowed size for uploaded files. 804 | ; http://php.net/upload-max-filesize 805 | upload_max_filesize = 5M 806 | 807 | ; Maximum number of files that can be uploaded via a single request 808 | max_file_uploads = 20 809 | 810 | ;;;;;;;;;;;;;;;;;; 811 | ; Fopen wrappers ; 812 | ;;;;;;;;;;;;;;;;;; 813 | 814 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 815 | ; http://php.net/allow-url-fopen 816 | allow_url_fopen = On 817 | 818 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 819 | ; http://php.net/allow-url-include 820 | allow_url_include = Off 821 | 822 | ; Define the anonymous ftp password (your email address). PHP's default setting 823 | ; for this is empty. 824 | ; http://php.net/from 825 | ;from="john@doe.com" 826 | 827 | ; Define the User-Agent string. PHP's default setting for this is empty. 828 | ; http://php.net/user-agent 829 | ;user_agent="PHP" 830 | 831 | ; Default timeout for socket based streams (seconds) 832 | ; http://php.net/default-socket-timeout 833 | default_socket_timeout = 60 834 | 835 | ; If your scripts have to deal with files from Macintosh systems, 836 | ; or you are running on a Mac and need to deal with files from 837 | ; unix or win32 systems, setting this flag will cause PHP to 838 | ; automatically detect the EOL character in those files so that 839 | ; fgets() and file() will work regardless of the source of the file. 840 | ; http://php.net/auto-detect-line-endings 841 | ;auto_detect_line_endings = Off 842 | 843 | ;;;;;;;;;;;;;;;;;;;;;; 844 | ; Dynamic Extensions ; 845 | ;;;;;;;;;;;;;;;;;;;;;; 846 | 847 | ; If you wish to have an extension loaded automatically, use the following 848 | ; syntax: 849 | ; 850 | ; extension=modulename.extension 851 | ; 852 | ; For example, on Windows: 853 | ; 854 | ; extension=msql.dll 855 | ; 856 | ; ... or under UNIX: 857 | ; 858 | ; extension=msql.so 859 | ; 860 | ; ... or with a path: 861 | ; 862 | ; extension=/path/to/extension/msql.so 863 | ; 864 | ; If you only provide the name of the extension, PHP will look for it in its 865 | ; default extension directory. 866 | ; 867 | 868 | ;;;;;;;;;;;;;;;;;;; 869 | ; Module Settings ; 870 | ;;;;;;;;;;;;;;;;;;; 871 | 872 | [CLI Server] 873 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 874 | cli_server.color = On 875 | 876 | [Date] 877 | ; Defines the default timezone used by the date functions 878 | ; http://php.net/date.timezone 879 | date.timezone = "Asia/Shanghai" 880 | 881 | ; http://php.net/date.default-latitude 882 | ;date.default_latitude = 31.7667 883 | 884 | ; http://php.net/date.default-longitude 885 | ;date.default_longitude = 35.2333 886 | 887 | ; http://php.net/date.sunrise-zenith 888 | ;date.sunrise_zenith = 90.583333 889 | 890 | ; http://php.net/date.sunset-zenith 891 | ;date.sunset_zenith = 90.583333 892 | 893 | [filter] 894 | ; http://php.net/filter.default 895 | ;filter.default = unsafe_raw 896 | 897 | ; http://php.net/filter.default-flags 898 | ;filter.default_flags = 899 | 900 | [iconv] 901 | ;iconv.input_encoding = ISO-8859-1 902 | ;iconv.internal_encoding = ISO-8859-1 903 | ;iconv.output_encoding = ISO-8859-1 904 | 905 | [intl] 906 | ;intl.default_locale = 907 | ; This directive allows you to produce PHP errors when some error 908 | ; happens within intl functions. The value is the level of the error produced. 909 | ; Default is 0, which does not produce any errors. 910 | ;intl.error_level = E_WARNING 911 | 912 | [sqlite] 913 | ; http://php.net/sqlite.assoc-case 914 | ;sqlite.assoc_case = 0 915 | 916 | [sqlite3] 917 | ;sqlite3.extension_dir = 918 | 919 | [Pcre] 920 | ;PCRE library backtracking limit. 921 | ; http://php.net/pcre.backtrack-limit 922 | ;pcre.backtrack_limit=100000 923 | 924 | ;PCRE library recursion limit. 925 | ;Please note that if you set this value to a high number you may consume all 926 | ;the available process stack and eventually crash PHP (due to reaching the 927 | ;stack size limit imposed by the Operating System). 928 | ; http://php.net/pcre.recursion-limit 929 | ;pcre.recursion_limit=100000 930 | 931 | [Pdo] 932 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 933 | ; http://php.net/pdo-odbc.connection-pooling 934 | ;pdo_odbc.connection_pooling=strict 935 | 936 | ;pdo_odbc.db2_instance_name 937 | 938 | [Pdo_mysql] 939 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 940 | ; http://php.net/pdo_mysql.cache_size 941 | pdo_mysql.cache_size = 2000 942 | 943 | ; Default socket name for local MySQL connects. If empty, uses the built-in 944 | ; MySQL defaults. 945 | ; http://php.net/pdo_mysql.default-socket 946 | pdo_mysql.default_socket= 947 | 948 | [Phar] 949 | ; http://php.net/phar.readonly 950 | ;phar.readonly = On 951 | 952 | ; http://php.net/phar.require-hash 953 | ;phar.require_hash = On 954 | 955 | ;phar.cache_list = 956 | 957 | [mail function] 958 | ; For Win32 only. 959 | ; http://php.net/smtp 960 | SMTP = localhost 961 | ; http://php.net/smtp-port 962 | smtp_port = 25 963 | 964 | ; For Win32 only. 965 | ; http://php.net/sendmail-from 966 | ;sendmail_from = me@example.com 967 | 968 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 969 | ; http://php.net/sendmail-path 970 | ;sendmail_path = 971 | 972 | ; Force the addition of the specified parameters to be passed as extra parameters 973 | ; to the sendmail binary. These parameters will always replace the value of 974 | ; the 5th parameter to mail(), even in safe mode. 975 | ;mail.force_extra_parameters = 976 | 977 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 978 | mail.add_x_header = On 979 | 980 | ; The path to a log file that will log all mail() calls. Log entries include 981 | ; the full path of the script, line number, To address and headers. 982 | ;mail.log = 983 | ; Log mail to syslog (Event Log on NT, not valid in Windows 95). 984 | ;mail.log = syslog 985 | 986 | [SQL] 987 | ; http://php.net/sql.safe-mode 988 | sql.safe_mode = Off 989 | 990 | [ODBC] 991 | ; http://php.net/odbc.default-db 992 | ;odbc.default_db = Not yet implemented 993 | 994 | ; http://php.net/odbc.default-user 995 | ;odbc.default_user = Not yet implemented 996 | 997 | ; http://php.net/odbc.default-pw 998 | ;odbc.default_pw = Not yet implemented 999 | 1000 | ; Controls the ODBC cursor model. 1001 | ; Default: SQL_CURSOR_STATIC (default). 1002 | ;odbc.default_cursortype 1003 | 1004 | ; Allow or prevent persistent links. 1005 | ; http://php.net/odbc.allow-persistent 1006 | odbc.allow_persistent = On 1007 | 1008 | ; Check that a connection is still valid before reuse. 1009 | ; http://php.net/odbc.check-persistent 1010 | odbc.check_persistent = On 1011 | 1012 | ; Maximum number of persistent links. -1 means no limit. 1013 | ; http://php.net/odbc.max-persistent 1014 | odbc.max_persistent = -1 1015 | 1016 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1017 | ; http://php.net/odbc.max-links 1018 | odbc.max_links = -1 1019 | 1020 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1021 | ; passthru. 1022 | ; http://php.net/odbc.defaultlrl 1023 | odbc.defaultlrl = 4096 1024 | 1025 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1026 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1027 | ; of odbc.defaultlrl and odbc.defaultbinmode 1028 | ; http://php.net/odbc.defaultbinmode 1029 | odbc.defaultbinmode = 1 1030 | 1031 | ;birdstep.max_links = -1 1032 | 1033 | [Interbase] 1034 | ; Allow or prevent persistent links. 1035 | ibase.allow_persistent = 1 1036 | 1037 | ; Maximum number of persistent links. -1 means no limit. 1038 | ibase.max_persistent = -1 1039 | 1040 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1041 | ibase.max_links = -1 1042 | 1043 | ; Default database name for ibase_connect(). 1044 | ;ibase.default_db = 1045 | 1046 | ; Default username for ibase_connect(). 1047 | ;ibase.default_user = 1048 | 1049 | ; Default password for ibase_connect(). 1050 | ;ibase.default_password = 1051 | 1052 | ; Default charset for ibase_connect(). 1053 | ;ibase.default_charset = 1054 | 1055 | ; Default timestamp format. 1056 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1057 | 1058 | ; Default date format. 1059 | ibase.dateformat = "%Y-%m-%d" 1060 | 1061 | ; Default time format. 1062 | ibase.timeformat = "%H:%M:%S" 1063 | 1064 | [MySQL] 1065 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1066 | ; http://php.net/mysql.allow_local_infile 1067 | mysql.allow_local_infile = On 1068 | 1069 | ; Allow or prevent persistent links. 1070 | ; http://php.net/mysql.allow-persistent 1071 | mysql.allow_persistent = On 1072 | 1073 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1074 | ; http://php.net/mysql.cache_size 1075 | mysql.cache_size = 2000 1076 | 1077 | ; Maximum number of persistent links. -1 means no limit. 1078 | ; http://php.net/mysql.max-persistent 1079 | mysql.max_persistent = -1 1080 | 1081 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1082 | ; http://php.net/mysql.max-links 1083 | mysql.max_links = -1 1084 | 1085 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1086 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1087 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1088 | ; at MYSQL_PORT. 1089 | ; http://php.net/mysql.default-port 1090 | mysql.default_port = 1091 | 1092 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1093 | ; MySQL defaults. 1094 | ; http://php.net/mysql.default-socket 1095 | mysql.default_socket = 1096 | 1097 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1098 | ; http://php.net/mysql.default-host 1099 | mysql.default_host = 1100 | 1101 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1102 | ; http://php.net/mysql.default-user 1103 | mysql.default_user = 1104 | 1105 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1106 | ; Note that this is generally a *bad* idea to store passwords in this file. 1107 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1108 | ; and reveal this password! And of course, any users with read access to this 1109 | ; file will be able to reveal the password as well. 1110 | ; http://php.net/mysql.default-password 1111 | mysql.default_password = 1112 | 1113 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1114 | ; http://php.net/mysql.connect-timeout 1115 | mysql.connect_timeout = 60 1116 | 1117 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1118 | ; SQL-Errors will be displayed. 1119 | ; http://php.net/mysql.trace-mode 1120 | mysql.trace_mode = Off 1121 | 1122 | [MySQLi] 1123 | 1124 | ; Maximum number of persistent links. -1 means no limit. 1125 | ; http://php.net/mysqli.max-persistent 1126 | mysqli.max_persistent = -1 1127 | 1128 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1129 | ; http://php.net/mysqli.allow_local_infile 1130 | ;mysqli.allow_local_infile = On 1131 | 1132 | ; Allow or prevent persistent links. 1133 | ; http://php.net/mysqli.allow-persistent 1134 | mysqli.allow_persistent = On 1135 | 1136 | ; Maximum number of links. -1 means no limit. 1137 | ; http://php.net/mysqli.max-links 1138 | mysqli.max_links = -1 1139 | 1140 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1141 | ; http://php.net/mysqli.cache_size 1142 | mysqli.cache_size = 2000 1143 | 1144 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1145 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1146 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1147 | ; at MYSQL_PORT. 1148 | ; http://php.net/mysqli.default-port 1149 | mysqli.default_port = 3306 1150 | 1151 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1152 | ; MySQL defaults. 1153 | ; http://php.net/mysqli.default-socket 1154 | mysqli.default_socket = 1155 | 1156 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1157 | ; http://php.net/mysqli.default-host 1158 | mysqli.default_host = 1159 | 1160 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1161 | ; http://php.net/mysqli.default-user 1162 | mysqli.default_user = 1163 | 1164 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1165 | ; Note that this is generally a *bad* idea to store passwords in this file. 1166 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1167 | ; and reveal this password! And of course, any users with read access to this 1168 | ; file will be able to reveal the password as well. 1169 | ; http://php.net/mysqli.default-pw 1170 | mysqli.default_pw = 1171 | 1172 | ; Allow or prevent reconnect 1173 | mysqli.reconnect = Off 1174 | 1175 | [mysqlnd] 1176 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1177 | ; used to tune and monitor MySQL operations. 1178 | ; http://php.net/mysqlnd.collect_statistics 1179 | mysqlnd.collect_statistics = On 1180 | 1181 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1182 | ; used to tune and monitor MySQL operations. 1183 | ; http://php.net/mysqlnd.collect_memory_statistics 1184 | mysqlnd.collect_memory_statistics = Off 1185 | 1186 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1187 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1188 | ;mysqlnd.net_cmd_buffer_size = 2048 1189 | 1190 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1191 | ; bytes. 1192 | ; http://php.net/mysqlnd.net_read_buffer_size 1193 | ;mysqlnd.net_read_buffer_size = 32768 1194 | 1195 | [OCI8] 1196 | 1197 | ; Connection: Enables privileged connections using external 1198 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1199 | ; http://php.net/oci8.privileged-connect 1200 | ;oci8.privileged_connect = Off 1201 | 1202 | ; Connection: The maximum number of persistent OCI8 connections per 1203 | ; process. Using -1 means no limit. 1204 | ; http://php.net/oci8.max-persistent 1205 | ;oci8.max_persistent = -1 1206 | 1207 | ; Connection: The maximum number of seconds a process is allowed to 1208 | ; maintain an idle persistent connection. Using -1 means idle 1209 | ; persistent connections will be maintained forever. 1210 | ; http://php.net/oci8.persistent-timeout 1211 | ;oci8.persistent_timeout = -1 1212 | 1213 | ; Connection: The number of seconds that must pass before issuing a 1214 | ; ping during oci_pconnect() to check the connection validity. When 1215 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1216 | ; pings completely. 1217 | ; http://php.net/oci8.ping-interval 1218 | ;oci8.ping_interval = 60 1219 | 1220 | ; Connection: Set this to a user chosen connection class to be used 1221 | ; for all pooled server requests with Oracle 11g Database Resident 1222 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1223 | ; the same string for all web servers running the same application, 1224 | ; the database pool must be configured, and the connection string must 1225 | ; specify to use a pooled server. 1226 | ;oci8.connection_class = 1227 | 1228 | ; High Availability: Using On lets PHP receive Fast Application 1229 | ; Notification (FAN) events generated when a database node fails. The 1230 | ; database must also be configured to post FAN events. 1231 | ;oci8.events = Off 1232 | 1233 | ; Tuning: This option enables statement caching, and specifies how 1234 | ; many statements to cache. Using 0 disables statement caching. 1235 | ; http://php.net/oci8.statement-cache-size 1236 | ;oci8.statement_cache_size = 20 1237 | 1238 | ; Tuning: Enables statement prefetching and sets the default number of 1239 | ; rows that will be fetched automatically after statement execution. 1240 | ; http://php.net/oci8.default-prefetch 1241 | ;oci8.default_prefetch = 100 1242 | 1243 | ; Compatibility. Using On means oci_close() will not close 1244 | ; oci_connect() and oci_new_connect() connections. 1245 | ; http://php.net/oci8.old-oci-close-semantics 1246 | ;oci8.old_oci_close_semantics = Off 1247 | 1248 | [PostgreSQL] 1249 | ; Allow or prevent persistent links. 1250 | ; http://php.net/pgsql.allow-persistent 1251 | pgsql.allow_persistent = On 1252 | 1253 | ; Detect broken persistent links always with pg_pconnect(). 1254 | ; Auto reset feature requires a little overheads. 1255 | ; http://php.net/pgsql.auto-reset-persistent 1256 | pgsql.auto_reset_persistent = Off 1257 | 1258 | ; Maximum number of persistent links. -1 means no limit. 1259 | ; http://php.net/pgsql.max-persistent 1260 | pgsql.max_persistent = -1 1261 | 1262 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1263 | ; http://php.net/pgsql.max-links 1264 | pgsql.max_links = -1 1265 | 1266 | ; Ignore PostgreSQL backends Notice message or not. 1267 | ; Notice message logging require a little overheads. 1268 | ; http://php.net/pgsql.ignore-notice 1269 | pgsql.ignore_notice = 0 1270 | 1271 | ; Log PostgreSQL backends Notice message or not. 1272 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1273 | ; http://php.net/pgsql.log-notice 1274 | pgsql.log_notice = 0 1275 | 1276 | [Sybase-CT] 1277 | ; Allow or prevent persistent links. 1278 | ; http://php.net/sybct.allow-persistent 1279 | sybct.allow_persistent = On 1280 | 1281 | ; Maximum number of persistent links. -1 means no limit. 1282 | ; http://php.net/sybct.max-persistent 1283 | sybct.max_persistent = -1 1284 | 1285 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1286 | ; http://php.net/sybct.max-links 1287 | sybct.max_links = -1 1288 | 1289 | ; Minimum server message severity to display. 1290 | ; http://php.net/sybct.min-server-severity 1291 | sybct.min_server_severity = 10 1292 | 1293 | ; Minimum client message severity to display. 1294 | ; http://php.net/sybct.min-client-severity 1295 | sybct.min_client_severity = 10 1296 | 1297 | ; Set per-context timeout 1298 | ; http://php.net/sybct.timeout 1299 | ;sybct.timeout= 1300 | 1301 | ;sybct.packet_size 1302 | 1303 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1304 | ; Default: one minute 1305 | ;sybct.login_timeout= 1306 | 1307 | ; The name of the host you claim to be connecting from, for display by sp_who. 1308 | ; Default: none 1309 | ;sybct.hostname= 1310 | 1311 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1312 | ; Default: 0 1313 | ;sybct.deadlock_retry_count= 1314 | 1315 | [bcmath] 1316 | ; Number of decimal digits for all bcmath functions. 1317 | ; http://php.net/bcmath.scale 1318 | bcmath.scale = 0 1319 | 1320 | [browscap] 1321 | ; http://php.net/browscap 1322 | ;browscap = extra/browscap.ini 1323 | 1324 | [Session] 1325 | ; Handler used to store/retrieve data. 1326 | ; http://php.net/session.save-handler 1327 | session.save_handler = files 1328 | 1329 | ; Argument passed to save_handler. In the case of files, this is the path 1330 | ; where data files are stored. Note: Windows users have to change this 1331 | ; variable in order to use PHP's session functions. 1332 | ; 1333 | ; The path can be defined as: 1334 | ; 1335 | ; session.save_path = "N;/path" 1336 | ; 1337 | ; where N is an integer. Instead of storing all the session files in 1338 | ; /path, what this will do is use subdirectories N-levels deep, and 1339 | ; store the session data in those directories. This is useful if you 1340 | ; or your OS have problems with lots of files in one directory, and is 1341 | ; a more efficient layout for servers that handle lots of sessions. 1342 | ; 1343 | ; NOTE 1: PHP will not create this directory structure automatically. 1344 | ; You can use the script in the ext/session dir for that purpose. 1345 | ; NOTE 2: See the section on garbage collection below if you choose to 1346 | ; use subdirectories for session storage 1347 | ; 1348 | ; The file storage module creates files using mode 600 by default. 1349 | ; You can change that by using 1350 | ; 1351 | ; session.save_path = "N;MODE;/path" 1352 | ; 1353 | ; where MODE is the octal representation of the mode. Note that this 1354 | ; does not overwrite the process's umask. 1355 | ; http://php.net/session.save-path 1356 | ;session.save_path = "/var/lib/php5" 1357 | 1358 | ; Whether to use strict session mode. 1359 | ; Strict session mode does not accept uninitialized session ID and regenerate 1360 | ; session ID if browser sends uninitialized session ID. Strict mode protects 1361 | ; applications from session fixation via session adoption vulnerability. It is 1362 | ; disabled by default for maximum compatibility, but enabling it is encouraged. 1363 | ; https://wiki.php.net/rfc/strict_sessions 1364 | session.use_strict_mode = 0 1365 | 1366 | ; Whether to use cookies. 1367 | ; http://php.net/session.use-cookies 1368 | session.use_cookies = 1 1369 | 1370 | ; http://php.net/session.cookie-secure 1371 | ;session.cookie_secure = 1 1372 | 1373 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1374 | ; the session id. We encourage this operation as it's very helpful in combating 1375 | ; session hijacking when not specifying and managing your own session id. It is 1376 | ; not the end all be all of session hijacking defense, but it's a good start. 1377 | ; http://php.net/session.use-only-cookies 1378 | session.use_only_cookies = 1 1379 | 1380 | ; Name of the session (used as cookie name). 1381 | ; http://php.net/session.name 1382 | session.name = PHPSESSID 1383 | 1384 | ; Initialize session on request startup. 1385 | ; http://php.net/session.auto-start 1386 | session.auto_start = 0 1387 | 1388 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1389 | ; http://php.net/session.cookie-lifetime 1390 | session.cookie_lifetime = 0 1391 | 1392 | ; The path for which the cookie is valid. 1393 | ; http://php.net/session.cookie-path 1394 | session.cookie_path = / 1395 | 1396 | ; The domain for which the cookie is valid. 1397 | ; http://php.net/session.cookie-domain 1398 | session.cookie_domain = 1399 | 1400 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1401 | ; http://php.net/session.cookie-httponly 1402 | session.cookie_httponly = 1 1403 | 1404 | ; Handler used to serialize data. php is the standard serializer of PHP. 1405 | ; http://php.net/session.serialize-handler 1406 | session.serialize_handler = php 1407 | 1408 | ; Defines the probability that the 'garbage collection' process is started 1409 | ; on every session initialization. The probability is calculated by using 1410 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1411 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1412 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1413 | ; the gc will run on any give request. 1414 | ; Default Value: 1 1415 | ; Development Value: 1 1416 | ; Production Value: 1 1417 | ; http://php.net/session.gc-probability 1418 | session.gc_probability = 0 1419 | 1420 | ; Defines the probability that the 'garbage collection' process is started on every 1421 | ; session initialization. The probability is calculated by using the following equation: 1422 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1423 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1424 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1425 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1426 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1427 | ; this is a more efficient approach. 1428 | ; Default Value: 100 1429 | ; Development Value: 1000 1430 | ; Production Value: 1000 1431 | ; http://php.net/session.gc-divisor 1432 | session.gc_divisor = 1000 1433 | 1434 | ; After this number of seconds, stored data will be seen as 'garbage' and 1435 | ; cleaned up by the garbage collection process. 1436 | ; http://php.net/session.gc-maxlifetime 1437 | session.gc_maxlifetime = 1440 1438 | 1439 | ; NOTE: If you are using the subdirectory option for storing session files 1440 | ; (see session.save_path above), then garbage collection does *not* 1441 | ; happen automatically. You will need to do your own garbage 1442 | ; collection through a shell script, cron entry, or some other method. 1443 | ; For example, the following script would is the equivalent of 1444 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1445 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1446 | 1447 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to 1448 | ; to initialize a session variable in the global scope. 1449 | ; PHP 4.3 and later will warn you, if this feature is used. 1450 | ; You can disable the feature and the warning separately. At this time, 1451 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature 1452 | ; introduces some serious security problems if not handled correctly. It's 1453 | ; recommended that you do not use this feature on production servers. But you 1454 | ; should enable this on development servers and enable the warning as well. If you 1455 | ; do not enable the feature on development servers, you won't be warned when it's 1456 | ; used and debugging errors caused by this can be difficult to track down. 1457 | ; Default Value: On 1458 | ; Development Value: On 1459 | ; Production Value: Off 1460 | ; http://php.net/session.bug-compat-42 1461 | session.bug_compat_42 = Off 1462 | 1463 | ; This setting controls whether or not you are warned by PHP when initializing a 1464 | ; session value into the global space. session.bug_compat_42 must be enabled before 1465 | ; these warnings can be issued by PHP. See the directive above for more information. 1466 | ; Default Value: On 1467 | ; Development Value: On 1468 | ; Production Value: Off 1469 | ; http://php.net/session.bug-compat-warn 1470 | session.bug_compat_warn = Off 1471 | 1472 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1473 | ; HTTP_REFERER has to contain this substring for the session to be 1474 | ; considered as valid. 1475 | ; http://php.net/session.referer-check 1476 | session.referer_check = 1477 | 1478 | ; How many bytes to read from the file. 1479 | ; http://php.net/session.entropy-length 1480 | ;session.entropy_length = 32 1481 | 1482 | ; Specified here to create the session id. 1483 | ; http://php.net/session.entropy-file 1484 | ; Defaults to /dev/urandom 1485 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom 1486 | ; If neither are found at compile time, the default is no entropy file. 1487 | ; On windows, setting the entropy_length setting will activate the 1488 | ; Windows random source (using the CryptoAPI) 1489 | ;session.entropy_file = /dev/urandom 1490 | 1491 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1492 | ; or leave this empty to avoid sending anti-caching headers. 1493 | ; http://php.net/session.cache-limiter 1494 | session.cache_limiter = nocache 1495 | 1496 | ; Document expires after n minutes. 1497 | ; http://php.net/session.cache-expire 1498 | session.cache_expire = 180 1499 | 1500 | ; trans sid support is disabled by default. 1501 | ; Use of trans sid may risk your users security. 1502 | ; Use this option with caution. 1503 | ; - User may send URL contains active session ID 1504 | ; to other person via. email/irc/etc. 1505 | ; - URL that contains active session ID may be stored 1506 | ; in publicly accessible computer. 1507 | ; - User may access your site with the same session ID 1508 | ; always using URL stored in browser's history or bookmarks. 1509 | ; http://php.net/session.use-trans-sid 1510 | session.use_trans_sid = 0 1511 | 1512 | ; Select a hash function for use in generating session ids. 1513 | ; Possible Values 1514 | ; 0 (MD5 128 bits) 1515 | ; 1 (SHA-1 160 bits) 1516 | ; This option may also be set to the name of any hash function supported by 1517 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1518 | ; function. 1519 | ; http://php.net/session.hash-function 1520 | session.hash_function = 0 1521 | 1522 | ; Define how many bits are stored in each character when converting 1523 | ; the binary hash data to something readable. 1524 | ; Possible values: 1525 | ; 4 (4 bits: 0-9, a-f) 1526 | ; 5 (5 bits: 0-9, a-v) 1527 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1528 | ; Default Value: 4 1529 | ; Development Value: 5 1530 | ; Production Value: 5 1531 | ; http://php.net/session.hash-bits-per-character 1532 | session.hash_bits_per_character = 5 1533 | 1534 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1535 | ; form/fieldset are special; if you include them here, the rewriter will 1536 | ; add a hidden field with the info which is otherwise appended 1537 | ; to URLs. If you want XHTML conformity, remove the form entry. 1538 | ; Note that all valid entries require a "=", even if no value follows. 1539 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1540 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1541 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1542 | ; http://php.net/url-rewriter.tags 1543 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1544 | 1545 | ; Enable upload progress tracking in $_SESSION 1546 | ; Default Value: On 1547 | ; Development Value: On 1548 | ; Production Value: On 1549 | ; http://php.net/session.upload-progress.enabled 1550 | ;session.upload_progress.enabled = On 1551 | 1552 | ; Cleanup the progress information as soon as all POST data has been read 1553 | ; (i.e. upload completed). 1554 | ; Default Value: On 1555 | ; Development Value: On 1556 | ; Production Value: On 1557 | ; http://php.net/session.upload-progress.cleanup 1558 | ;session.upload_progress.cleanup = On 1559 | 1560 | ; A prefix used for the upload progress key in $_SESSION 1561 | ; Default Value: "upload_progress_" 1562 | ; Development Value: "upload_progress_" 1563 | ; Production Value: "upload_progress_" 1564 | ; http://php.net/session.upload-progress.prefix 1565 | ;session.upload_progress.prefix = "upload_progress_" 1566 | 1567 | ; The index name (concatenated with the prefix) in $_SESSION 1568 | ; containing the upload progress information 1569 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1570 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1571 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1572 | ; http://php.net/session.upload-progress.name 1573 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1574 | 1575 | ; How frequently the upload progress should be updated. 1576 | ; Given either in percentages (per-file), or in bytes 1577 | ; Default Value: "1%" 1578 | ; Development Value: "1%" 1579 | ; Production Value: "1%" 1580 | ; http://php.net/session.upload-progress.freq 1581 | ;session.upload_progress.freq = "1%" 1582 | 1583 | ; The minimum delay between updates, in seconds 1584 | ; Default Value: 1 1585 | ; Development Value: 1 1586 | ; Production Value: 1 1587 | ; http://php.net/session.upload-progress.min-freq 1588 | ;session.upload_progress.min_freq = "1" 1589 | 1590 | [MSSQL] 1591 | ; Allow or prevent persistent links. 1592 | mssql.allow_persistent = On 1593 | 1594 | ; Maximum number of persistent links. -1 means no limit. 1595 | mssql.max_persistent = -1 1596 | 1597 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1598 | mssql.max_links = -1 1599 | 1600 | ; Minimum error severity to display. 1601 | mssql.min_error_severity = 10 1602 | 1603 | ; Minimum message severity to display. 1604 | mssql.min_message_severity = 10 1605 | 1606 | ; Compatibility mode with old versions of PHP 3.0. 1607 | mssql.compatibility_mode = Off 1608 | 1609 | ; Connect timeout 1610 | ;mssql.connect_timeout = 5 1611 | 1612 | ; Query timeout 1613 | ;mssql.timeout = 60 1614 | 1615 | ; Valid range 0 - 2147483647. Default = 4096. 1616 | ;mssql.textlimit = 4096 1617 | 1618 | ; Valid range 0 - 2147483647. Default = 4096. 1619 | ;mssql.textsize = 4096 1620 | 1621 | ; Limits the number of records in each batch. 0 = all records in one batch. 1622 | ;mssql.batchsize = 0 1623 | 1624 | ; Specify how datetime and datetim4 columns are returned 1625 | ; On => Returns data converted to SQL server settings 1626 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1627 | ;mssql.datetimeconvert = On 1628 | 1629 | ; Use NT authentication when connecting to the server 1630 | mssql.secure_connection = Off 1631 | 1632 | ; Specify max number of processes. -1 = library default 1633 | ; msdlib defaults to 25 1634 | ; FreeTDS defaults to 4096 1635 | ;mssql.max_procs = -1 1636 | 1637 | ; Specify client character set. 1638 | ; If empty or not set the client charset from freetds.conf is used 1639 | ; This is only used when compiled with FreeTDS 1640 | ;mssql.charset = "ISO-8859-1" 1641 | 1642 | [Assertion] 1643 | ; Assert(expr); active by default. 1644 | ; http://php.net/assert.active 1645 | ;assert.active = On 1646 | 1647 | ; Issue a PHP warning for each failed assertion. 1648 | ; http://php.net/assert.warning 1649 | ;assert.warning = On 1650 | 1651 | ; Don't bail out by default. 1652 | ; http://php.net/assert.bail 1653 | ;assert.bail = Off 1654 | 1655 | ; User-function to be called if an assertion fails. 1656 | ; http://php.net/assert.callback 1657 | ;assert.callback = 0 1658 | 1659 | ; Eval the expression with current error_reporting(). Set to true if you want 1660 | ; error_reporting(0) around the eval(). 1661 | ; http://php.net/assert.quiet-eval 1662 | ;assert.quiet_eval = 0 1663 | 1664 | [COM] 1665 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1666 | ; http://php.net/com.typelib-file 1667 | ;com.typelib_file = 1668 | 1669 | ; allow Distributed-COM calls 1670 | ; http://php.net/com.allow-dcom 1671 | ;com.allow_dcom = true 1672 | 1673 | ; autoregister constants of a components typlib on com_load() 1674 | ; http://php.net/com.autoregister-typelib 1675 | ;com.autoregister_typelib = true 1676 | 1677 | ; register constants casesensitive 1678 | ; http://php.net/com.autoregister-casesensitive 1679 | ;com.autoregister_casesensitive = false 1680 | 1681 | ; show warnings on duplicate constant registrations 1682 | ; http://php.net/com.autoregister-verbose 1683 | ;com.autoregister_verbose = true 1684 | 1685 | ; The default character set code-page to use when passing strings to and from COM objects. 1686 | ; Default: system ANSI code page 1687 | ;com.code_page= 1688 | 1689 | [mbstring] 1690 | ; language for internal character representation. 1691 | ; http://php.net/mbstring.language 1692 | ;mbstring.language = Japanese 1693 | 1694 | ; internal/script encoding. 1695 | ; Some encoding cannot work as internal encoding. 1696 | ; (e.g. SJIS, BIG5, ISO-2022-*) 1697 | ; http://php.net/mbstring.internal-encoding 1698 | ;mbstring.internal_encoding = UTF-8 1699 | 1700 | ; http input encoding. 1701 | ; http://php.net/mbstring.http-input 1702 | ;mbstring.http_input = UTF-8 1703 | 1704 | ; http output encoding. mb_output_handler must be 1705 | ; registered as output buffer to function 1706 | ; http://php.net/mbstring.http-output 1707 | ;mbstring.http_output = pass 1708 | 1709 | ; enable automatic encoding translation according to 1710 | ; mbstring.internal_encoding setting. Input chars are 1711 | ; converted to internal encoding by setting this to On. 1712 | ; Note: Do _not_ use automatic encoding translation for 1713 | ; portable libs/applications. 1714 | ; http://php.net/mbstring.encoding-translation 1715 | ;mbstring.encoding_translation = Off 1716 | 1717 | ; automatic encoding detection order. 1718 | ; auto means 1719 | ; http://php.net/mbstring.detect-order 1720 | ;mbstring.detect_order = auto 1721 | 1722 | ; substitute_character used when character cannot be converted 1723 | ; one from another 1724 | ; http://php.net/mbstring.substitute-character 1725 | ;mbstring.substitute_character = none 1726 | 1727 | ; overload(replace) single byte functions by mbstring functions. 1728 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1729 | ; etc. Possible values are 0,1,2,4 or combination of them. 1730 | ; For example, 7 for overload everything. 1731 | ; 0: No overload 1732 | ; 1: Overload mail() function 1733 | ; 2: Overload str*() functions 1734 | ; 4: Overload ereg*() functions 1735 | ; http://php.net/mbstring.func-overload 1736 | ;mbstring.func_overload = 0 1737 | 1738 | ; enable strict encoding detection. 1739 | ;mbstring.strict_detection = On 1740 | 1741 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1742 | ; is activated. 1743 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1744 | ;mbstring.http_output_conv_mimetype= 1745 | 1746 | [gd] 1747 | ; Tell the jpeg decode to ignore warnings and try to create 1748 | ; a gd image. The warning will then be displayed as notices 1749 | ; disabled by default 1750 | ; http://php.net/gd.jpeg-ignore-warning 1751 | ;gd.jpeg_ignore_warning = 0 1752 | 1753 | [exif] 1754 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1755 | ; With mbstring support this will automatically be converted into the encoding 1756 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1757 | ; is used. For the decode settings you can distinguish between motorola and 1758 | ; intel byte order. A decode setting cannot be empty. 1759 | ; http://php.net/exif.encode-unicode 1760 | ;exif.encode_unicode = ISO-8859-15 1761 | 1762 | ; http://php.net/exif.decode-unicode-motorola 1763 | ;exif.decode_unicode_motorola = UCS-2BE 1764 | 1765 | ; http://php.net/exif.decode-unicode-intel 1766 | ;exif.decode_unicode_intel = UCS-2LE 1767 | 1768 | ; http://php.net/exif.encode-jis 1769 | ;exif.encode_jis = 1770 | 1771 | ; http://php.net/exif.decode-jis-motorola 1772 | ;exif.decode_jis_motorola = JIS 1773 | 1774 | ; http://php.net/exif.decode-jis-intel 1775 | ;exif.decode_jis_intel = JIS 1776 | 1777 | [Tidy] 1778 | ; The path to a default tidy configuration file to use when using tidy 1779 | ; http://php.net/tidy.default-config 1780 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1781 | 1782 | ; Should tidy clean and repair output automatically? 1783 | ; WARNING: Do not use this option if you are generating non-html content 1784 | ; such as dynamic images 1785 | ; http://php.net/tidy.clean-output 1786 | tidy.clean_output = Off 1787 | 1788 | [soap] 1789 | ; Enables or disables WSDL caching feature. 1790 | ; http://php.net/soap.wsdl-cache-enabled 1791 | soap.wsdl_cache_enabled=1 1792 | 1793 | ; Sets the directory name where SOAP extension will put cache files. 1794 | ; http://php.net/soap.wsdl-cache-dir 1795 | soap.wsdl_cache_dir="/tmp" 1796 | 1797 | ; (time to live) Sets the number of second while cached file will be used 1798 | ; instead of original one. 1799 | ; http://php.net/soap.wsdl-cache-ttl 1800 | soap.wsdl_cache_ttl=86400 1801 | 1802 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1803 | soap.wsdl_cache_limit = 5 1804 | 1805 | [sysvshm] 1806 | ; A default size of the shared memory segment 1807 | ;sysvshm.init_mem = 10000 1808 | 1809 | [ldap] 1810 | ; Sets the maximum number of open links or -1 for unlimited. 1811 | ldap.max_links = -1 1812 | 1813 | [mcrypt] 1814 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1815 | 1816 | ; Directory where to load mcrypt algorithms 1817 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1818 | ;mcrypt.algorithms_dir= 1819 | 1820 | ; Directory where to load mcrypt modes 1821 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1822 | ;mcrypt.modes_dir= 1823 | 1824 | [dba] 1825 | ;dba.default_handler= 1826 | 1827 | [opcache] 1828 | ; Determines if Zend OPCache is enabled 1829 | opcache.enable=1 1830 | 1831 | ; Determines if Zend OPCache is enabled for the CLI version of PHP 1832 | opcache.enable_cli=1 1833 | 1834 | ; The OPcache shared memory storage size. 1835 | opcache.memory_consumption=512 1836 | 1837 | ; The amount of memory for interned strings in Mbytes. 1838 | opcache.interned_strings_buffer=8 1839 | 1840 | ; The maximum number of keys (scripts) in the OPcache hash table. 1841 | ; Only numbers between 200 and 100000 are allowed. 1842 | opcache.max_accelerated_files=10000 1843 | 1844 | ; The maximum percentage of "wasted" memory until a restart is scheduled. 1845 | ;opcache.max_wasted_percentage=5 1846 | 1847 | ; When this directive is enabled, the OPcache appends the current working 1848 | ; directory to the script key, thus eliminating possible collisions between 1849 | ; files with the same name (basename). Disabling the directive improves 1850 | ; performance, but may break existing applications. 1851 | ;opcache.use_cwd=1 1852 | 1853 | ; When disabled, you must reset the OPcache manually or restart the 1854 | ; webserver for changes to the filesystem to take effect. 1855 | ;opcache.validate_timestamps=1 1856 | 1857 | ; How often (in seconds) to check file timestamps for changes to the shared 1858 | ; memory storage allocation. ("1" means validate once per second, but only 1859 | ; once per request. "0" means always validate) 1860 | opcache.revalidate_freq=1 1861 | 1862 | ; Enables or disables file search in include_path optimization 1863 | ;opcache.revalidate_path=0 1864 | 1865 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the 1866 | ; size of the optimized code. 1867 | ;opcache.save_comments=1 1868 | 1869 | ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" 1870 | ; may be always stored (save_comments=1), but not loaded by applications 1871 | ; that don't need them anyway. 1872 | ;opcache.load_comments=1 1873 | 1874 | ; If enabled, a fast shutdown sequence is used for the accelerated code 1875 | opcache.fast_shutdown=1 1876 | 1877 | ; Allow file existence override (file_exists, etc.) performance feature. 1878 | ;opcache.enable_file_override=0 1879 | 1880 | ; A bitmask, where each bit enables or disables the appropriate OPcache 1881 | ; passes 1882 | ;opcache.optimization_level=0xffffffff 1883 | 1884 | ;opcache.inherited_hack=1 1885 | ;opcache.dups_fix=0 1886 | 1887 | ; The location of the OPcache blacklist file (wildcards allowed). 1888 | ; Each OPcache blacklist file is a text file that holds the names of files 1889 | ; that should not be accelerated. The file format is to add each filename 1890 | ; to a new line. The filename may be a full path or just a file prefix 1891 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www 1892 | ; that start with 'x'). Line starting with a ; are ignored (comments). 1893 | ;opcache.blacklist_filename= 1894 | 1895 | ; Allows exclusion of large files from being cached. By default all files 1896 | ; are cached. 1897 | ;opcache.max_file_size=0 1898 | 1899 | ; Check the cache checksum each N requests. 1900 | ; The default value of "0" means that the checks are disabled. 1901 | ;opcache.consistency_checks=0 1902 | 1903 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache 1904 | ; is not being accessed. 1905 | ;opcache.force_restart_timeout=180 1906 | 1907 | ; OPcache error_log file name. Empty string assumes "stderr". 1908 | ;opcache.error_log= 1909 | 1910 | ; All OPcache errors go to the Web server log. 1911 | ; By default, only fatal errors (level 0) or errors (level 1) are logged. 1912 | ; You can also enable warnings (level 2), info messages (level 3) or 1913 | ; debug messages (level 4). 1914 | ;opcache.log_verbosity_level=1 1915 | 1916 | ; Preferred Shared Memory back-end. Leave empty and let the system decide. 1917 | ;opcache.preferred_memory_model= 1918 | 1919 | ; Protect the shared memory from unexpected writing during script execution. 1920 | ; Useful for internal debugging only. 1921 | ;opcache.protect_memory=0 1922 | 1923 | [curl] 1924 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1925 | ; absolute path. 1926 | ;curl.cainfo = 1927 | 1928 | ; Local Variables: 1929 | ; tab-width: 4 1930 | ; End: --------------------------------------------------------------------------------