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