├── README.md ├── centos └── Dockerfile ├── docs └── docker-lnmp.png └── lnmp ├── docker-compose.yml ├── mysql ├── Dockerfile ├── config │ └── my.cnf.cnf └── scripts │ ├── build_mysql.sh │ └── container_mysql.sh ├── nginx ├── Dockerfile └── scripts │ ├── build_nginx.sh │ └── container_nginx.sh ├── php7 ├── Dockerfile ├── config │ └── php.ini └── scripts │ ├── build_php7.sh │ └── container_php7.sh ├── start_lnmp.sh └── web └── Dockerfile /README.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker. [Read More...](http://www.jianshu.com/p/fcd0e542a6b2) 4 | 5 | ## How To Use? 6 | 7 | #### Build Image 8 | 9 | ```shell 10 | docker build --tag addcn/mysql -f mysql/Dockerfile . 11 | docker build --tag addcn/php7 -f php7/Dockerfile . 12 | docker build --tag addcn/nginx -f nginx/Dockerfile . 13 | ``` 14 | 15 | #### Run Container 16 | 17 | ```shell 18 | docker run --name mysql -p 3306:3306 -v /root/bo/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -it addcn/mysql 19 | docker run --name php7 -p 9000:9000 -v /var/www/html:/usr/local/nginx/html --link mysql:mysql -it addcn/php7 20 | docker run --name nginx -p 80:80 -v /var/www/html:/usr/local/nginx/html --link php7:php7 -it addcn/nginx 21 | ``` 22 | 23 | #### Test PHP & MySQL 24 | 25 | > vi /var/www/html/test.php 26 | 27 | ```php 28 | \n"; 31 | 32 | //mysql 33 | try { 34 | $conn = new PDO('mysql:host=mysql;port=3306;dbname=mysql;charset=utf8', 'root', '123456'); 35 | } catch (PDOException $e) { 36 | echo 'Connection failed: ' . $e->getMessage(); 37 | } 38 | //$conn->exec('set names utf8'); 39 | $sql = "SELECT * FROM `user` WHERE 1"; 40 | $result = $conn->query($sql); 41 | while($rows = $result->fetch(PDO::FETCH_ASSOC)) { 42 | echo $rows['Host'] . ' ' . $rows['User']."
\n"; 43 | } 44 | 45 | //phpinfo 46 | phpinfo(); 47 | ?> 48 | ``` 49 | 50 | http://192.168.8.36/test.php 51 | 52 | 53 | ![docker-lnmp][1] 54 | 55 | [1]: docs/docker-lnmp.png 56 | 57 | 58 | ## About me 59 | 60 | - 微博 [http://www.weibo.com/addcn](http://www.weibo.com/addcn) -------------------------------------------------------------------------------- /centos/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/addcn/docker-lnmp/b8b1d0d9c57738c29b463e8665f3e4d7b538f417/centos/Dockerfile -------------------------------------------------------------------------------- /docs/docker-lnmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/addcn/docker-lnmp/b8b1d0d9c57738c29b463e8665f3e4d7b538f417/docs/docker-lnmp.png -------------------------------------------------------------------------------- /lnmp/docker-compose.yml: -------------------------------------------------------------------------------- 1 | # mysql 2 | mysql: 3 | build: ./mysql 4 | ports: 5 | - "8306:3306" 6 | environment: 7 | - MYSQL_DATABASE=mysql 8 | - MYSQL_USER=developer 9 | - MYSQL_PASSWORD=root 10 | - MYSQL_ROOT_PASSWORD=123456 11 | volumes: 12 | - /opt/data/mysql:/var/lib/mysql 13 | restart: always 14 | 15 | # php7 16 | php7: 17 | build: ./php7 18 | ports: 19 | - "9009:9000" 20 | links: 21 | - mysql 22 | # volumes: 23 | # - ./php7/config/php.ini:/usr/local/php/lib/php.ini:ro 24 | restart: always 25 | 26 | # web 27 | nginx: 28 | build: ./nginx 29 | ports: 30 | - "8000:80" 31 | - "8430:443" 32 | links: 33 | - php7 34 | volumes: 35 | - /var/www/html:/usr/local/nginx/html 36 | restart: always -------------------------------------------------------------------------------- /lnmp/mysql/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Dockerfile for building MySQL images 3 | # 4 | # https://github.com/addcn/docker-lnmp.git 5 | # 6 | 7 | FROM mysql:5.7 8 | MAINTAINER dodo 9 | 10 | ENV TZ "Asia/Shanghai" 11 | 12 | # COPY config/my.cnf /etc/mysql/my.cnf -------------------------------------------------------------------------------- /lnmp/mysql/config/my.cnf.cnf: -------------------------------------------------------------------------------- 1 | # For advice on how to change settings please see 2 | # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html 3 | # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the 4 | # *** default location during install, and will be replaced if you 5 | # *** upgrade to a newer version of MySQL. 6 | 7 | [mysqld] 8 | 9 | # Remove leading # and set to the amount of RAM for the most important data 10 | # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. 11 | # innodb_buffer_pool_size = 128M 12 | 13 | # Remove leading # to turn on a very important data integrity option: logging 14 | # changes to the binary log between backups. 15 | # log_bin 16 | 17 | # These are commonly set, remove the # and set as required. 18 | # basedir = ..... 19 | # datadir = ..... 20 | # port = ..... 21 | # server_id = ..... 22 | # socket = ..... 23 | 24 | # Remove leading # to set options mainly useful for reporting servers. 25 | # The server defaults are faster for transactions and fast SELECTs. 26 | # Adjust sizes as needed, experiment to find the optimal values. 27 | # join_buffer_size = 128M 28 | # sort_buffer_size = 2M 29 | # read_rnd_buffer_size = 2M 30 | 31 | sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 32 | -------------------------------------------------------------------------------- /lnmp/mysql/scripts/build_mysql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker build --tag addcn/mysql -f mysql/Dockerfile . -------------------------------------------------------------------------------- /lnmp/mysql/scripts/container_mysql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker run --name mysql -p 3306:3306 -v /root/bo/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -it addcn/mysql -------------------------------------------------------------------------------- /lnmp/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Dockerfile for building Nginx images 3 | # 4 | # https://github.com/addcn/docker-lnmp.git 5 | # 6 | 7 | FROM centos:centos7 8 | MAINTAINER dodo 9 | 10 | ENV TZ "Asia/Shanghai" 11 | 12 | #Yum 13 | RUN yum -y update && \ 14 | yum install -y gcc automake autoconf libtool make gcc-c++ vixie-cron wget zlib file openssl-devel sharutils zip bash vim cyrus-sasl-devel libmemcached libmemcached-devel libyaml libyaml-devel unzip libvpx-devel openssl-devel ImageMagick-devel autoconf tar gcc libxml2-devel gd-devel libmcrypt-devel libmcrypt mcrypt mhash libmcrypt libmcrypt-devel libxml2 libxml2-devel bzip2 bzip2-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype-devel bison libtool-ltdl-devel net-tools && \ 15 | yum clean all 16 | 17 | #Nginx 18 | RUN cd /tmp && \ 19 | wget http://nginx.org/download/nginx-1.11.5.tar.gz && \ 20 | tar xzf nginx-1.11.5.tar.gz && \ 21 | cd /tmp/nginx-1.11.5 && \ 22 | ./configure \ 23 | --prefix=/usr/local/nginx \ 24 | --with-http_ssl_module --with-http_sub_module --with-http_dav_module --with-http_flv_module \ 25 | --with-http_gzip_static_module --with-http_stub_status_module --with-debug && \ 26 | make && \ 27 | make install 28 | 29 | #配置nginx 30 | ENV HTTP_PHP_CONFIG \\\n\\\t#php\\\n\\\tlocation ~ \\\\.php$ {\\\n\\\t\\\troot html;\\\n\\\t\\\tfastcgi_pass php7:9000;\\\n\\\t\\\tfastcgi_index index.php;\\\n\\\t\\\tfastcgi_param SCRIPT_FILENAME /usr/local/nginx/html\$fastcgi_script_name;\\\n\\\t\\\tinclude fastcgi_params;\\\n\\\t}\\\n\\\n\\\t 31 | 32 | RUN sed -i -e "s@# deny access to .htaccess files, if Apache@${HTTP_PHP_CONFIG}# deny access to .htaccess files, if Apache@" /usr/local/nginx/conf/nginx.conf 33 | 34 | 35 | EXPOSE 80 443 36 | 37 | #启动nginx 38 | ENTRYPOINT ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"] 39 | -------------------------------------------------------------------------------- /lnmp/nginx/scripts/build_nginx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker build --tag addcn/nginx -f nginx/Dockerfile . -------------------------------------------------------------------------------- /lnmp/nginx/scripts/container_nginx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker run --name nginx -p 80:80 -v /var/www/html:/usr/local/nginx/html --link php7:php7 -it addcn/nginx -------------------------------------------------------------------------------- /lnmp/php7/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Dockerfile for building PHP7 images 3 | # 4 | # https://github.com/addcn/docker-lnmp.git 5 | # 6 | 7 | FROM centos:centos7 8 | MAINTAINER dodo 9 | 10 | ENV TZ "Asia/Shanghai" 11 | 12 | #Dir 13 | RUN mkdir -p /usr/local/nginx/html 14 | 15 | #Yum 16 | RUN yum -y update && \ 17 | yum install -y gcc automake autoconf libtool make gcc-c++ vixie-cron wget zlib file openssl-devel sharutils zip bash vim cyrus-sasl-devel libmemcached libmemcached-devel libyaml libyaml-devel unzip libvpx-devel openssl-devel ImageMagick-devel autoconf tar gcc libxml2-devel gd-devel libmcrypt-devel libmcrypt mcrypt mhash libmcrypt libmcrypt-devel libxml2 libxml2-devel bzip2 bzip2-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype-devel bison libtool-ltdl-devel net-tools && \ 18 | yum clean all 19 | 20 | #Php 21 | #fix error: mcrypt.h not found 22 | RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \ 23 | yum install -y libmcrypt-devel 24 | 25 | RUN cd /tmp && \ 26 | wget http://cn2.php.net/distributions/php-7.0.12.tar.gz && \ 27 | tar xzf php-7.0.12.tar.gz && \ 28 | cd /tmp/php-7.0.12 && \ 29 | ./configure \ 30 | --prefix=/usr/local/php \ 31 | --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-simplexml --enable-xml --disable-rpath --enable-bcmath --enable-soap --enable-zip --with-curl --enable-fpm --with-fpm-user=nobody --with-fpm-group=nobody --enable-mbstring --enable-sockets --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-opcache && \ 32 | make && \ 33 | make install 34 | 35 | #复制文件 36 | RUN cp /tmp/php-7.0.12/php.ini-production /usr/local/php/lib/php.ini && \ 37 | cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf && \ 38 | cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf 39 | 40 | 41 | EXPOSE 9000 42 | 43 | 44 | #配置php 45 | RUN sed -i -e 's/listen = 127.0.0.1:9000/listen = 9000/' /usr/local/php/etc/php-fpm.d/www.conf 46 | 47 | #启动php 48 | ENTRYPOINT ["/usr/local/php/sbin/php-fpm", "-F", "-c", "/usr/local/php/lib/php.ini"] 49 | -------------------------------------------------------------------------------- /lnmp/php7/config/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 is 82 | ; much more verbose when it comes to errors. We recommend using the 83 | ; development version only in development environments, as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is php.ini-production INI file. 87 | 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; Quick Reference ; 90 | ;;;;;;;;;;;;;;;;;;; 91 | ; The following are all the settings which are different in either the production 92 | ; or development versions of the INIs with respect to PHP's default behavior. 93 | ; Please see the actual settings later in the document for more details as to why 94 | ; we recommend these changes in PHP's behavior. 95 | 96 | ; display_errors 97 | ; Default Value: On 98 | ; Development Value: On 99 | ; Production Value: Off 100 | 101 | ; display_startup_errors 102 | ; Default Value: Off 103 | ; Development Value: On 104 | ; Production Value: Off 105 | 106 | ; error_reporting 107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 108 | ; Development Value: E_ALL 109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 110 | 111 | ; html_errors 112 | ; Default Value: On 113 | ; Development Value: On 114 | ; Production value: On 115 | 116 | ; log_errors 117 | ; Default Value: Off 118 | ; Development Value: On 119 | ; Production Value: On 120 | 121 | ; max_input_time 122 | ; Default Value: -1 (Unlimited) 123 | ; Development Value: 60 (60 seconds) 124 | ; Production Value: 60 (60 seconds) 125 | 126 | ; output_buffering 127 | ; Default Value: Off 128 | ; Development Value: 4096 129 | ; Production Value: 4096 130 | 131 | ; register_argc_argv 132 | ; Default Value: On 133 | ; Development Value: Off 134 | ; Production Value: Off 135 | 136 | ; request_order 137 | ; Default Value: None 138 | ; Development Value: "GP" 139 | ; Production Value: "GP" 140 | 141 | ; session.gc_divisor 142 | ; Default Value: 100 143 | ; Development Value: 1000 144 | ; Production Value: 1000 145 | 146 | ; session.hash_bits_per_character 147 | ; Default Value: 4 148 | ; Development Value: 5 149 | ; Production Value: 5 150 | 151 | ; short_open_tag 152 | ; Default Value: On 153 | ; Development Value: Off 154 | ; Production Value: Off 155 | 156 | ; track_errors 157 | ; Default Value: Off 158 | ; Development Value: On 159 | ; Production Value: Off 160 | 161 | ; url_rewriter.tags 162 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 163 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 164 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 165 | 166 | ; variables_order 167 | ; Default Value: "EGPCS" 168 | ; Development Value: "GPCS" 169 | ; Production Value: "GPCS" 170 | 171 | ;;;;;;;;;;;;;;;;;;;; 172 | ; php.ini Options ; 173 | ;;;;;;;;;;;;;;;;;;;; 174 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 175 | ;user_ini.filename = ".user.ini" 176 | 177 | ; To disable this feature set this option to empty value 178 | ;user_ini.filename = 179 | 180 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 181 | ;user_ini.cache_ttl = 300 182 | 183 | ;;;;;;;;;;;;;;;;;;;; 184 | ; Language Options ; 185 | ;;;;;;;;;;;;;;;;;;;; 186 | 187 | ; Enable the PHP scripting language engine under Apache. 188 | ; http://php.net/engine 189 | engine = On 190 | 191 | ; This directive determines whether or not PHP will recognize code between 192 | ; tags as PHP source which should be processed as such. It is 193 | ; generally recommended that should be used and that this feature 194 | ; should be disabled, as enabling it may result in issues when generating XML 195 | ; documents, however this remains supported for backward compatibility reasons. 196 | ; Note that this directive does not control the tags. 205 | ; http://php.net/asp-tags 206 | asp_tags = Off 207 | 208 | ; The number of significant digits displayed in floating point numbers. 209 | ; http://php.net/precision 210 | precision = 14 211 | 212 | ; Output buffering is a mechanism for controlling how much output data 213 | ; (excluding headers and cookies) PHP should keep internally before pushing that 214 | ; data to the client. If your application's output exceeds this setting, PHP 215 | ; will send that data in chunks of roughly the size you specify. 216 | ; Turning on this setting and managing its maximum buffer size can yield some 217 | ; interesting side-effects depending on your application and web server. 218 | ; You may be able to send headers and cookies after you've already sent output 219 | ; through print or echo. You also may see performance benefits if your server is 220 | ; emitting less packets due to buffered output versus PHP streaming the output 221 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 222 | ; reasons. 223 | ; Note: Output buffering can also be controlled via Output Buffering Control 224 | ; functions. 225 | ; Possible Values: 226 | ; On = Enabled and buffer is unlimited. (Use with caution) 227 | ; Off = Disabled 228 | ; Integer = Enables the buffer and sets its maximum size in bytes. 229 | ; Note: This directive is hardcoded to Off for the CLI SAPI 230 | ; Default Value: Off 231 | ; Development Value: 4096 232 | ; Production Value: 4096 233 | ; http://php.net/output-buffering 234 | output_buffering = 4096 235 | 236 | ; You can redirect all of the output of your scripts to a function. For 237 | ; example, if you set output_handler to "mb_output_handler", character 238 | ; encoding will be transparently converted to the specified encoding. 239 | ; Setting any output handler automatically turns on output buffering. 240 | ; Note: People who wrote portable scripts should not depend on this ini 241 | ; directive. Instead, explicitly set the output handler using ob_start(). 242 | ; Using this ini directive may cause problems unless you know what script 243 | ; is doing. 244 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 245 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 246 | ; Note: output_handler must be empty if this is set 'On' !!!! 247 | ; Instead you must use zlib.output_handler. 248 | ; http://php.net/output-handler 249 | ;output_handler = 250 | 251 | ; Transparent output compression using the zlib library 252 | ; Valid values for this option are 'off', 'on', or a specific buffer size 253 | ; to be used for compression (default is 4KB) 254 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 255 | ; outputs chunks that are few hundreds bytes each as a result of 256 | ; compression. If you prefer a larger chunk size for better 257 | ; performance, enable output_buffering in addition. 258 | ; Note: You need to use zlib.output_handler instead of the standard 259 | ; output_handler, or otherwise the output will be corrupted. 260 | ; http://php.net/zlib.output-compression 261 | zlib.output_compression = Off 262 | 263 | ; http://php.net/zlib.output-compression-level 264 | ;zlib.output_compression_level = -1 265 | 266 | ; You cannot specify additional output handlers if zlib.output_compression 267 | ; is activated here. This setting does the same as output_handler but in 268 | ; a different order. 269 | ; http://php.net/zlib.output-handler 270 | ;zlib.output_handler = 271 | 272 | ; Implicit flush tells PHP to tell the output layer to flush itself 273 | ; automatically after every output block. This is equivalent to calling the 274 | ; PHP function flush() after each and every call to print() or echo() and each 275 | ; and every HTML block. Turning this option on has serious performance 276 | ; implications and is generally recommended for debugging purposes only. 277 | ; http://php.net/implicit-flush 278 | ; Note: This directive is hardcoded to On for the CLI SAPI 279 | implicit_flush = Off 280 | 281 | ; The unserialize callback function will be called (with the undefined class' 282 | ; name as parameter), if the unserializer finds an undefined class 283 | ; which should be instantiated. A warning appears if the specified function is 284 | ; not defined, or if the function doesn't include/implement the missing class. 285 | ; So only set this entry, if you really want to implement such a 286 | ; callback-function. 287 | unserialize_callback_func = 288 | 289 | ; When floats & doubles are serialized store serialize_precision significant 290 | ; digits after the floating point. The default value ensures that when floats 291 | ; are decoded with unserialize, the data will remain the same. 292 | serialize_precision = 17 293 | 294 | ; open_basedir, if set, limits all file operations to the defined directory 295 | ; and below. This directive makes most sense if used in a per-directory 296 | ; or per-virtualhost web server configuration file. This directive is 297 | ; *NOT* affected by whether Safe Mode is turned On or Off. 298 | ; http://php.net/open-basedir 299 | ;open_basedir = 300 | 301 | ; This directive allows you to disable certain functions for security reasons. 302 | ; It receives a comma-delimited list of function names. This directive is 303 | ; *NOT* affected by whether Safe Mode is turned On or Off. 304 | ; http://php.net/disable-functions 305 | disable_functions = 306 | 307 | ; This directive allows you to disable certain classes for security reasons. 308 | ; It receives a comma-delimited list of class names. This directive is 309 | ; *NOT* affected by whether Safe Mode is turned On or Off. 310 | ; http://php.net/disable-classes 311 | disable_classes = 312 | 313 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 314 | ; would work. 315 | ; http://php.net/syntax-highlighting 316 | ;highlight.string = #DD0000 317 | ;highlight.comment = #FF9900 318 | ;highlight.keyword = #007700 319 | ;highlight.default = #0000BB 320 | ;highlight.html = #000000 321 | 322 | ; If enabled, the request will be allowed to complete even if the user aborts 323 | ; the request. Consider enabling it if executing long requests, which may end up 324 | ; being interrupted by the user or a browser timing out. PHP's default behavior 325 | ; is to disable this feature. 326 | ; http://php.net/ignore-user-abort 327 | ;ignore_user_abort = On 328 | 329 | ; Determines the size of the realpath cache to be used by PHP. This value should 330 | ; be increased on systems where PHP opens many files to reflect the quantity of 331 | ; the file operations performed. 332 | ; http://php.net/realpath-cache-size 333 | ;realpath_cache_size = 16k 334 | 335 | ; Duration of time, in seconds for which to cache realpath information for a given 336 | ; file or directory. For systems with rarely changing files, consider increasing this 337 | ; value. 338 | ; http://php.net/realpath-cache-ttl 339 | ;realpath_cache_ttl = 120 340 | 341 | ; Enables or disables the circular reference collector. 342 | ; http://php.net/zend.enable-gc 343 | zend.enable_gc = On 344 | 345 | ; If enabled, scripts may be written in encodings that are incompatible with 346 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 347 | ; encodings. To use this feature, mbstring extension must be enabled. 348 | ; Default: Off 349 | ;zend.multibyte = Off 350 | 351 | ; Allows to set the default encoding for the scripts. This value will be used 352 | ; unless "declare(encoding=...)" directive appears at the top of the script. 353 | ; Only affects if zend.multibyte is set. 354 | ; Default: "" 355 | ;zend.script_encoding = 356 | 357 | ;;;;;;;;;;;;;;;;; 358 | ; Miscellaneous ; 359 | ;;;;;;;;;;;;;;;;; 360 | 361 | ; Decides whether PHP may expose the fact that it is installed on the server 362 | ; (e.g. by adding its signature to the Web server header). It is no security 363 | ; threat in any way, but it makes it possible to determine whether you use PHP 364 | ; on your server or not. 365 | ; http://php.net/expose-php 366 | expose_php = On 367 | 368 | ;;;;;;;;;;;;;;;;;;; 369 | ; Resource Limits ; 370 | ;;;;;;;;;;;;;;;;;;; 371 | 372 | ; Maximum execution time of each script, in seconds 373 | ; http://php.net/max-execution-time 374 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 375 | max_execution_time = 30 376 | 377 | ; Maximum amount of time each script may spend parsing request data. It's a good 378 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 379 | ; long running scripts. 380 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 381 | ; Default Value: -1 (Unlimited) 382 | ; Development Value: 60 (60 seconds) 383 | ; Production Value: 60 (60 seconds) 384 | ; http://php.net/max-input-time 385 | max_input_time = 60 386 | 387 | ; Maximum input variable nesting level 388 | ; http://php.net/max-input-nesting-level 389 | ;max_input_nesting_level = 64 390 | 391 | ; How many GET/POST/COOKIE input variables may be accepted 392 | ; max_input_vars = 1000 393 | 394 | ; Maximum amount of memory a script may consume (128MB) 395 | ; http://php.net/memory-limit 396 | memory_limit = 128M 397 | 398 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 399 | ; Error handling and logging ; 400 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 401 | 402 | ; This directive informs PHP of which errors, warnings and notices you would like 403 | ; it to take action for. The recommended way of setting values for this 404 | ; directive is through the use of the error level constants and bitwise 405 | ; operators. The error level constants are below here for convenience as well as 406 | ; some common settings and their meanings. 407 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 408 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 409 | ; recommended coding standards in PHP. For performance reasons, this is the 410 | ; recommend error reporting setting. Your production server shouldn't be wasting 411 | ; resources complaining about best practices and coding standards. That's what 412 | ; development servers and development settings are for. 413 | ; Note: The php.ini-development file has this setting as E_ALL. This 414 | ; means it pretty much reports everything which is exactly what you want during 415 | ; development and early testing. 416 | ; 417 | ; Error Level Constants: 418 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 419 | ; E_ERROR - fatal run-time errors 420 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 421 | ; E_WARNING - run-time warnings (non-fatal errors) 422 | ; E_PARSE - compile-time parse errors 423 | ; E_NOTICE - run-time notices (these are warnings which often result 424 | ; from a bug in your code, but it's possible that it was 425 | ; intentional (e.g., using an uninitialized variable and 426 | ; relying on the fact it is automatically initialized to an 427 | ; empty string) 428 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 429 | ; to your code which will ensure the best interoperability 430 | ; and forward compatibility of your code 431 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 432 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 433 | ; initial startup 434 | ; E_COMPILE_ERROR - fatal compile-time errors 435 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 436 | ; E_USER_ERROR - user-generated error message 437 | ; E_USER_WARNING - user-generated warning message 438 | ; E_USER_NOTICE - user-generated notice message 439 | ; E_DEPRECATED - warn about code that will not work in future versions 440 | ; of PHP 441 | ; E_USER_DEPRECATED - user-generated deprecation warnings 442 | ; 443 | ; Common Values: 444 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 445 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 446 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 447 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 448 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 449 | ; Development Value: E_ALL 450 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 451 | ; http://php.net/error-reporting 452 | error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 453 | 454 | ; This directive controls whether or not and where PHP will output errors, 455 | ; notices and warnings too. Error output is very useful during development, but 456 | ; it could be very dangerous in production environments. Depending on the code 457 | ; which is triggering the error, sensitive information could potentially leak 458 | ; out of your application such as database usernames and passwords or worse. 459 | ; For production environments, we recommend logging errors rather than 460 | ; sending them to STDOUT. 461 | ; Possible Values: 462 | ; Off = Do not display any errors 463 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 464 | ; On or stdout = Display errors to STDOUT 465 | ; Default Value: On 466 | ; Development Value: On 467 | ; Production Value: Off 468 | ; http://php.net/display-errors 469 | display_errors = Off 470 | 471 | ; The display of errors which occur during PHP's startup sequence are handled 472 | ; separately from display_errors. PHP's default behavior is to suppress those 473 | ; errors from clients. Turning the display of startup errors on can be useful in 474 | ; debugging configuration problems. We strongly recommend you 475 | ; set this to 'off' for production servers. 476 | ; Default Value: Off 477 | ; Development Value: On 478 | ; Production Value: Off 479 | ; http://php.net/display-startup-errors 480 | display_startup_errors = Off 481 | 482 | ; Besides displaying errors, PHP can also log errors to locations such as a 483 | ; server-specific log, STDERR, or a location specified by the error_log 484 | ; directive found below. While errors should not be displayed on productions 485 | ; servers they should still be monitored and logging is a great way to do that. 486 | ; Default Value: Off 487 | ; Development Value: On 488 | ; Production Value: On 489 | ; http://php.net/log-errors 490 | log_errors = On 491 | 492 | ; Set maximum length of log_errors. In error_log information about the source is 493 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 494 | ; http://php.net/log-errors-max-len 495 | log_errors_max_len = 1024 496 | 497 | ; Do not log repeated messages. Repeated errors must occur in same file on same 498 | ; line unless ignore_repeated_source is set true. 499 | ; http://php.net/ignore-repeated-errors 500 | ignore_repeated_errors = Off 501 | 502 | ; Ignore source of message when ignoring repeated messages. When this setting 503 | ; is On you will not log errors with repeated messages from different files or 504 | ; source lines. 505 | ; http://php.net/ignore-repeated-source 506 | ignore_repeated_source = Off 507 | 508 | ; If this parameter is set to Off, then memory leaks will not be shown (on 509 | ; stdout or in the log). This has only effect in a debug compile, and if 510 | ; error reporting includes E_WARNING in the allowed list 511 | ; http://php.net/report-memleaks 512 | report_memleaks = On 513 | 514 | ; This setting is on by default. 515 | ;report_zend_debug = 0 516 | 517 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 518 | ; to On can assist in debugging and is appropriate for development servers. It should 519 | ; however be disabled on production servers. 520 | ; Default Value: Off 521 | ; Development Value: On 522 | ; Production Value: Off 523 | ; http://php.net/track-errors 524 | track_errors = Off 525 | 526 | ; Turn off normal error reporting and emit XML-RPC error XML 527 | ; http://php.net/xmlrpc-errors 528 | ;xmlrpc_errors = 0 529 | 530 | ; An XML-RPC faultCode 531 | ;xmlrpc_error_number = 0 532 | 533 | ; When PHP displays or logs an error, it has the capability of formatting the 534 | ; error message as HTML for easier reading. This directive controls whether 535 | ; the error message is formatted as HTML or not. 536 | ; Note: This directive is hardcoded to Off for the CLI SAPI 537 | ; Default Value: On 538 | ; Development Value: On 539 | ; Production value: On 540 | ; http://php.net/html-errors 541 | html_errors = On 542 | 543 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 544 | ; produces clickable error messages that direct to a page describing the error 545 | ; or function causing the error in detail. 546 | ; You can download a copy of the PHP manual from http://php.net/docs 547 | ; and change docref_root to the base URL of your local copy including the 548 | ; leading '/'. You must also specify the file extension being used including 549 | ; the dot. PHP's default behavior is to leave these settings empty, in which 550 | ; case no links to documentation are generated. 551 | ; Note: Never use this feature for production boxes. 552 | ; http://php.net/docref-root 553 | ; Examples 554 | ;docref_root = "/phpmanual/" 555 | 556 | ; http://php.net/docref-ext 557 | ;docref_ext = .html 558 | 559 | ; String to output before an error message. PHP's default behavior is to leave 560 | ; this setting blank. 561 | ; http://php.net/error-prepend-string 562 | ; Example: 563 | ;error_prepend_string = "" 564 | 565 | ; String to output after an error message. PHP's default behavior is to leave 566 | ; this setting blank. 567 | ; http://php.net/error-append-string 568 | ; Example: 569 | ;error_append_string = "" 570 | 571 | ; Log errors to specified file. PHP's default behavior is to leave this value 572 | ; empty. 573 | ; http://php.net/error-log 574 | ; Example: 575 | ;error_log = php_errors.log 576 | ; Log errors to syslog. 577 | ;error_log = syslog 578 | 579 | ;windows.show_crt_warning 580 | ; Default value: 0 581 | ; Development value: 0 582 | ; Production value: 0 583 | 584 | ;;;;;;;;;;;;;;;;; 585 | ; Data Handling ; 586 | ;;;;;;;;;;;;;;;;; 587 | 588 | ; The separator used in PHP generated URLs to separate arguments. 589 | ; PHP's default setting is "&". 590 | ; http://php.net/arg-separator.output 591 | ; Example: 592 | ;arg_separator.output = "&" 593 | 594 | ; List of separator(s) used by PHP to parse input URLs into variables. 595 | ; PHP's default setting is "&". 596 | ; NOTE: Every character in this directive is considered as separator! 597 | ; http://php.net/arg-separator.input 598 | ; Example: 599 | ;arg_separator.input = ";&" 600 | 601 | ; This directive determines which super global arrays are registered when PHP 602 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 603 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 604 | ; paid for the registration of these arrays and because ENV is not as commonly 605 | ; used as the others, ENV is not recommended on productions servers. You 606 | ; can still get access to the environment variables through getenv() should you 607 | ; need to. 608 | ; Default Value: "EGPCS" 609 | ; Development Value: "GPCS" 610 | ; Production Value: "GPCS"; 611 | ; http://php.net/variables-order 612 | variables_order = "GPCS" 613 | 614 | ; This directive determines which super global data (G,P,C,E & S) should 615 | ; be registered into the super global array REQUEST. If so, it also determines 616 | ; the order in which that data is registered. The values for this directive are 617 | ; specified in the same manner as the variables_order directive, EXCEPT one. 618 | ; Leaving this value empty will cause PHP to use the value set in the 619 | ; variables_order directive. It does not mean it will leave the super globals 620 | ; array REQUEST empty. 621 | ; Default Value: None 622 | ; Development Value: "GP" 623 | ; Production Value: "GP" 624 | ; http://php.net/request-order 625 | request_order = "GP" 626 | 627 | ; This directive determines whether PHP registers $argv & $argc each time it 628 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 629 | ; is invoked. $argc contains an integer representing the number of arguments 630 | ; that were passed when the script was invoked. These arrays are extremely 631 | ; useful when running scripts from the command line. When this directive is 632 | ; enabled, registering these variables consumes CPU cycles and memory each time 633 | ; a script is executed. For performance reasons, this feature should be disabled 634 | ; on production servers. 635 | ; Note: This directive is hardcoded to On for the CLI SAPI 636 | ; Default Value: On 637 | ; Development Value: Off 638 | ; Production Value: Off 639 | ; http://php.net/register-argc-argv 640 | register_argc_argv = Off 641 | 642 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 643 | ; first used (Just In Time) instead of when the script starts. If these 644 | ; variables are not used within a script, having this directive on will result 645 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 646 | ; for this directive to have any affect. 647 | ; http://php.net/auto-globals-jit 648 | auto_globals_jit = On 649 | 650 | ; Whether PHP will read the POST data. 651 | ; This option is enabled by default. 652 | ; Most likely, you won't want to disable this option globally. It causes $_POST 653 | ; and $_FILES to always be empty; the only way you will be able to read the 654 | ; POST data will be through the php://input stream wrapper. This can be useful 655 | ; to proxy requests or to process the POST data in a memory efficient fashion. 656 | ; http://php.net/enable-post-data-reading 657 | ;enable_post_data_reading = Off 658 | 659 | ; Maximum size of POST data that PHP will accept. 660 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 661 | ; is disabled through enable_post_data_reading. 662 | ; http://php.net/post-max-size 663 | post_max_size = 8M 664 | 665 | ; Automatically add files before PHP document. 666 | ; http://php.net/auto-prepend-file 667 | auto_prepend_file = 668 | 669 | ; Automatically add files after PHP document. 670 | ; http://php.net/auto-append-file 671 | auto_append_file = 672 | 673 | ; By default, PHP will output a character encoding using 674 | ; the Content-type: header. To disable sending of the charset, simply 675 | ; set it to be empty. 676 | ; 677 | ; PHP's built-in default is text/html 678 | ; http://php.net/default-mimetype 679 | default_mimetype = "text/html" 680 | 681 | ; PHP's default character set is set to empty. 682 | ; http://php.net/default-charset 683 | default_charset = "UTF-8" 684 | 685 | ; PHP internal character encoding is set to empty. 686 | ; If empty, default_charset is used. 687 | ; http://php.net/internal-encoding 688 | ;internal_encoding = 689 | 690 | ; PHP input character encoding is set to empty. 691 | ; http://php.net/input-encoding 692 | ;input_encoding = 693 | 694 | ; PHP output character encoding is set to empty. 695 | ; mbstring or iconv output handler is used. 696 | ; See also output_buffer. 697 | ; http://php.net/output-encoding 698 | ;output_encoding = 699 | 700 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 701 | ; to disable this feature and it will be removed in a future version. 702 | ; If post reading is disabled through enable_post_data_reading, 703 | ; $HTTP_RAW_POST_DATA is *NOT* populated. 704 | ; http://php.net/always-populate-raw-post-data 705 | ;always_populate_raw_post_data = -1 706 | 707 | ;;;;;;;;;;;;;;;;;;;;;;;;; 708 | ; Paths and Directories ; 709 | ;;;;;;;;;;;;;;;;;;;;;;;;; 710 | 711 | ; UNIX: "/path1:/path2" 712 | ;include_path = ".:/php/includes" 713 | ; 714 | ; Windows: "\path1;\path2" 715 | ;include_path = ".;c:\php\includes" 716 | ; 717 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 718 | ; http://php.net/include-path 719 | 720 | ; The root of the PHP pages, used only if nonempty. 721 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 722 | ; if you are running php as a CGI under any web server (other than IIS) 723 | ; see documentation for security issues. The alternate is to use the 724 | ; cgi.force_redirect configuration below 725 | ; http://php.net/doc-root 726 | doc_root = 727 | 728 | ; The directory under which PHP opens the script using /~username used only 729 | ; if nonempty. 730 | ; http://php.net/user-dir 731 | user_dir = 732 | 733 | ; Directory in which the loadable extensions (modules) reside. 734 | ; http://php.net/extension-dir 735 | ; extension_dir = "./" 736 | ; On windows: 737 | ; extension_dir = "ext" 738 | 739 | ; Directory where the temporary files should be placed. 740 | ; Defaults to the system default (see sys_get_temp_dir) 741 | ; sys_temp_dir = "/tmp" 742 | 743 | ; Whether or not to enable the dl() function. The dl() function does NOT work 744 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 745 | ; disabled on them. 746 | ; http://php.net/enable-dl 747 | enable_dl = Off 748 | 749 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 750 | ; most web servers. Left undefined, PHP turns this on by default. You can 751 | ; turn it off here AT YOUR OWN RISK 752 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 753 | ; http://php.net/cgi.force-redirect 754 | ;cgi.force_redirect = 1 755 | 756 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 757 | ; every request. PHP's default behavior is to disable this feature. 758 | ;cgi.nph = 1 759 | 760 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 761 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 762 | ; will look for to know it is OK to continue execution. Setting this variable MAY 763 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 764 | ; http://php.net/cgi.redirect-status-env 765 | ;cgi.redirect_status_env = 766 | 767 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 768 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 769 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 770 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 771 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 772 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 773 | ; http://php.net/cgi.fix-pathinfo 774 | ;cgi.fix_pathinfo=1 775 | 776 | cgi.fix_pathinfo=1 777 | 778 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 779 | ; security tokens of the calling client. This allows IIS to define the 780 | ; security context that the request runs under. mod_fastcgi under Apache 781 | ; does not currently support this feature (03/17/2002) 782 | ; Set to 1 if running under IIS. Default is zero. 783 | ; http://php.net/fastcgi.impersonate 784 | ;fastcgi.impersonate = 1 785 | 786 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 787 | ; this feature. 788 | ;fastcgi.logging = 0 789 | 790 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 791 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 792 | ; is supported by Apache. When this option is set to 1, PHP will send 793 | ; RFC2616 compliant header. 794 | ; Default is zero. 795 | ; http://php.net/cgi.rfc2616-headers 796 | ;cgi.rfc2616_headers = 0 797 | 798 | ;;;;;;;;;;;;;;;; 799 | ; File Uploads ; 800 | ;;;;;;;;;;;;;;;; 801 | 802 | ; Whether to allow HTTP file uploads. 803 | ; http://php.net/file-uploads 804 | file_uploads = On 805 | 806 | ; Temporary directory for HTTP uploaded files (will use system default if not 807 | ; specified). 808 | ; http://php.net/upload-tmp-dir 809 | ;upload_tmp_dir = 810 | 811 | ; Maximum allowed size for uploaded files. 812 | ; http://php.net/upload-max-filesize 813 | upload_max_filesize = 2M 814 | 815 | ; Maximum number of files that can be uploaded via a single request 816 | max_file_uploads = 20 817 | 818 | ;;;;;;;;;;;;;;;;;; 819 | ; Fopen wrappers ; 820 | ;;;;;;;;;;;;;;;;;; 821 | 822 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 823 | ; http://php.net/allow-url-fopen 824 | allow_url_fopen = On 825 | 826 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 827 | ; http://php.net/allow-url-include 828 | allow_url_include = Off 829 | 830 | ; Define the anonymous ftp password (your email address). PHP's default setting 831 | ; for this is empty. 832 | ; http://php.net/from 833 | ;from="john@doe.com" 834 | 835 | ; Define the User-Agent string. PHP's default setting for this is empty. 836 | ; http://php.net/user-agent 837 | ;user_agent="PHP" 838 | 839 | ; Default timeout for socket based streams (seconds) 840 | ; http://php.net/default-socket-timeout 841 | default_socket_timeout = 60 842 | 843 | ; If your scripts have to deal with files from Macintosh systems, 844 | ; or you are running on a Mac and need to deal with files from 845 | ; unix or win32 systems, setting this flag will cause PHP to 846 | ; automatically detect the EOL character in those files so that 847 | ; fgets() and file() will work regardless of the source of the file. 848 | ; http://php.net/auto-detect-line-endings 849 | ;auto_detect_line_endings = Off 850 | 851 | ;;;;;;;;;;;;;;;;;;;;;; 852 | ; Dynamic Extensions ; 853 | ;;;;;;;;;;;;;;;;;;;;;; 854 | 855 | ; If you wish to have an extension loaded automatically, use the following 856 | ; syntax: 857 | ; 858 | ; extension=modulename.extension 859 | ; 860 | ; For example, on Windows: 861 | ; 862 | ; extension=msql.dll 863 | ; 864 | ; ... or under UNIX: 865 | ; 866 | ; extension=msql.so 867 | ; 868 | ; ... or with a path: 869 | ; 870 | ; extension=/path/to/extension/msql.so 871 | ; 872 | ; If you only provide the name of the extension, PHP will look for it in its 873 | ; default extension directory. 874 | 875 | ;;;; 876 | ; Note: packaged extension modules are now loaded via the .ini files 877 | ; found in the directory /etc/php.d; these are loaded by default. 878 | ;;;; 879 | 880 | ;;;;;;;;;;;;;;;;;;; 881 | ; Module Settings ; 882 | ;;;;;;;;;;;;;;;;;;; 883 | 884 | [CLI Server] 885 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 886 | cli_server.color = On 887 | 888 | [Date] 889 | ; Defines the default timezone used by the date functions 890 | ; http://php.net/date.timezone 891 | ;date.timezone = 892 | date.timezone = PRC 893 | 894 | ; http://php.net/date.default-latitude 895 | ;date.default_latitude = 31.7667 896 | 897 | ; http://php.net/date.default-longitude 898 | ;date.default_longitude = 35.2333 899 | 900 | ; http://php.net/date.sunrise-zenith 901 | ;date.sunrise_zenith = 90.583333 902 | 903 | ; http://php.net/date.sunset-zenith 904 | ;date.sunset_zenith = 90.583333 905 | 906 | [filter] 907 | ; http://php.net/filter.default 908 | ;filter.default = unsafe_raw 909 | 910 | ; http://php.net/filter.default-flags 911 | ;filter.default_flags = 912 | 913 | [iconv] 914 | ; Use of this INI entry is deprecated, use global input_encoding instead. 915 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 916 | ; The precedence is: default_charset < intput_encoding < iconv.input_encoding 917 | ;iconv.input_encoding = 918 | 919 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 920 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 921 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 922 | ;iconv.internal_encoding = 923 | 924 | ; Use of this INI entry is deprecated, use global output_encoding instead. 925 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 926 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding 927 | ; To use an output encoding conversion, iconv's output handler must be set 928 | ; otherwise output encoding conversion cannot be performed. 929 | ;iconv.output_encoding = 930 | 931 | [intl] 932 | ;intl.default_locale = 933 | ; This directive allows you to produce PHP errors when some error 934 | ; happens within intl functions. The value is the level of the error produced. 935 | ; Default is 0, which does not produce any errors. 936 | ;intl.error_level = E_WARNING 937 | 938 | [sqlite] 939 | ; http://php.net/sqlite.assoc-case 940 | ;sqlite.assoc_case = 0 941 | 942 | [sqlite3] 943 | ;sqlite3.extension_dir = 944 | 945 | [Pcre] 946 | ;PCRE library backtracking limit. 947 | ; http://php.net/pcre.backtrack-limit 948 | ;pcre.backtrack_limit=100000 949 | 950 | ;PCRE library recursion limit. 951 | ;Please note that if you set this value to a high number you may consume all 952 | ;the available process stack and eventually crash PHP (due to reaching the 953 | ;stack size limit imposed by the Operating System). 954 | ; http://php.net/pcre.recursion-limit 955 | ;pcre.recursion_limit=100000 956 | 957 | [Pdo] 958 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 959 | ; http://php.net/pdo-odbc.connection-pooling 960 | ;pdo_odbc.connection_pooling=strict 961 | 962 | ;pdo_odbc.db2_instance_name 963 | 964 | [Pdo_mysql] 965 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 966 | ; http://php.net/pdo_mysql.cache_size 967 | pdo_mysql.cache_size = 2000 968 | 969 | ; Default socket name for local MySQL connects. If empty, uses the built-in 970 | ; MySQL defaults. 971 | ; http://php.net/pdo_mysql.default-socket 972 | pdo_mysql.default_socket= 973 | 974 | [Phar] 975 | ; http://php.net/phar.readonly 976 | ;phar.readonly = On 977 | 978 | ; http://php.net/phar.require-hash 979 | ;phar.require_hash = On 980 | 981 | ;phar.cache_list = 982 | 983 | [mail function] 984 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 985 | ; http://php.net/sendmail-path 986 | sendmail_path = /usr/sbin/sendmail -t -i 987 | 988 | ; Force the addition of the specified parameters to be passed as extra parameters 989 | ; to the sendmail binary. These parameters will always replace the value of 990 | ; the 5th parameter to mail(), even in safe mode. 991 | ;mail.force_extra_parameters = 992 | 993 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 994 | mail.add_x_header = On 995 | 996 | ; The path to a log file that will log all mail() calls. Log entries include 997 | ; the full path of the script, line number, To address and headers. 998 | ;mail.log = 999 | ; Log mail to syslog; 1000 | ;mail.log = syslog 1001 | 1002 | [SQL] 1003 | ; http://php.net/sql.safe-mode 1004 | sql.safe_mode = Off 1005 | 1006 | [ODBC] 1007 | ; http://php.net/odbc.default-db 1008 | ;odbc.default_db = Not yet implemented 1009 | 1010 | ; http://php.net/odbc.default-user 1011 | ;odbc.default_user = Not yet implemented 1012 | 1013 | ; http://php.net/odbc.default-pw 1014 | ;odbc.default_pw = Not yet implemented 1015 | 1016 | ; Controls the ODBC cursor model. 1017 | ; Default: SQL_CURSOR_STATIC (default). 1018 | ;odbc.default_cursortype 1019 | 1020 | ; Allow or prevent persistent links. 1021 | ; http://php.net/odbc.allow-persistent 1022 | odbc.allow_persistent = On 1023 | 1024 | ; Check that a connection is still valid before reuse. 1025 | ; http://php.net/odbc.check-persistent 1026 | odbc.check_persistent = On 1027 | 1028 | ; Maximum number of persistent links. -1 means no limit. 1029 | ; http://php.net/odbc.max-persistent 1030 | odbc.max_persistent = -1 1031 | 1032 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1033 | ; http://php.net/odbc.max-links 1034 | odbc.max_links = -1 1035 | 1036 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1037 | ; passthru. 1038 | ; http://php.net/odbc.defaultlrl 1039 | odbc.defaultlrl = 4096 1040 | 1041 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1042 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1043 | ; of odbc.defaultlrl and odbc.defaultbinmode 1044 | ; http://php.net/odbc.defaultbinmode 1045 | odbc.defaultbinmode = 1 1046 | 1047 | ;birdstep.max_links = -1 1048 | 1049 | [Interbase] 1050 | ; Allow or prevent persistent links. 1051 | ibase.allow_persistent = 1 1052 | 1053 | ; Maximum number of persistent links. -1 means no limit. 1054 | ibase.max_persistent = -1 1055 | 1056 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1057 | ibase.max_links = -1 1058 | 1059 | ; Default database name for ibase_connect(). 1060 | ;ibase.default_db = 1061 | 1062 | ; Default username for ibase_connect(). 1063 | ;ibase.default_user = 1064 | 1065 | ; Default password for ibase_connect(). 1066 | ;ibase.default_password = 1067 | 1068 | ; Default charset for ibase_connect(). 1069 | ;ibase.default_charset = 1070 | 1071 | ; Default timestamp format. 1072 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1073 | 1074 | ; Default date format. 1075 | ibase.dateformat = "%Y-%m-%d" 1076 | 1077 | ; Default time format. 1078 | ibase.timeformat = "%H:%M:%S" 1079 | 1080 | [MySQL] 1081 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1082 | ; http://php.net/mysql.allow_local_infile 1083 | mysql.allow_local_infile = On 1084 | 1085 | ; Allow or prevent persistent links. 1086 | ; http://php.net/mysql.allow-persistent 1087 | mysql.allow_persistent = On 1088 | 1089 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1090 | ; http://php.net/mysql.cache_size 1091 | mysql.cache_size = 2000 1092 | 1093 | ; Maximum number of persistent links. -1 means no limit. 1094 | ; http://php.net/mysql.max-persistent 1095 | mysql.max_persistent = -1 1096 | 1097 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1098 | ; http://php.net/mysql.max-links 1099 | mysql.max_links = -1 1100 | 1101 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1102 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1103 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1104 | ; at MYSQL_PORT. 1105 | ; http://php.net/mysql.default-port 1106 | mysql.default_port = 1107 | 1108 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1109 | ; MySQL defaults. 1110 | ; http://php.net/mysql.default-socket 1111 | mysql.default_socket = 1112 | 1113 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1114 | ; http://php.net/mysql.default-host 1115 | mysql.default_host = 1116 | 1117 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1118 | ; http://php.net/mysql.default-user 1119 | mysql.default_user = 1120 | 1121 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1122 | ; Note that this is generally a *bad* idea to store passwords in this file. 1123 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1124 | ; and reveal this password! And of course, any users with read access to this 1125 | ; file will be able to reveal the password as well. 1126 | ; http://php.net/mysql.default-password 1127 | mysql.default_password = 1128 | 1129 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1130 | ; http://php.net/mysql.connect-timeout 1131 | mysql.connect_timeout = 60 1132 | 1133 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1134 | ; SQL-Errors will be displayed. 1135 | ; http://php.net/mysql.trace-mode 1136 | mysql.trace_mode = Off 1137 | 1138 | [MySQLi] 1139 | 1140 | ; Maximum number of persistent links. -1 means no limit. 1141 | ; http://php.net/mysqli.max-persistent 1142 | mysqli.max_persistent = -1 1143 | 1144 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1145 | ; http://php.net/mysqli.allow_local_infile 1146 | ;mysqli.allow_local_infile = On 1147 | 1148 | ; Allow or prevent persistent links. 1149 | ; http://php.net/mysqli.allow-persistent 1150 | mysqli.allow_persistent = On 1151 | 1152 | ; Maximum number of links. -1 means no limit. 1153 | ; http://php.net/mysqli.max-links 1154 | mysqli.max_links = -1 1155 | 1156 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1157 | ; http://php.net/mysqli.cache_size 1158 | mysqli.cache_size = 2000 1159 | 1160 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1161 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1162 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1163 | ; at MYSQL_PORT. 1164 | ; http://php.net/mysqli.default-port 1165 | mysqli.default_port = 3306 1166 | 1167 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1168 | ; MySQL defaults. 1169 | ; http://php.net/mysqli.default-socket 1170 | mysqli.default_socket = 1171 | 1172 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1173 | ; http://php.net/mysqli.default-host 1174 | mysqli.default_host = 1175 | 1176 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1177 | ; http://php.net/mysqli.default-user 1178 | mysqli.default_user = 1179 | 1180 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1181 | ; Note that this is generally a *bad* idea to store passwords in this file. 1182 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1183 | ; and reveal this password! And of course, any users with read access to this 1184 | ; file will be able to reveal the password as well. 1185 | ; http://php.net/mysqli.default-pw 1186 | mysqli.default_pw = 1187 | 1188 | ; Allow or prevent reconnect 1189 | mysqli.reconnect = Off 1190 | 1191 | [mysqlnd] 1192 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1193 | ; used to tune and monitor MySQL operations. 1194 | ; http://php.net/mysqlnd.collect_statistics 1195 | mysqlnd.collect_statistics = On 1196 | 1197 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1198 | ; used to tune and monitor MySQL operations. 1199 | ; http://php.net/mysqlnd.collect_memory_statistics 1200 | mysqlnd.collect_memory_statistics = Off 1201 | 1202 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1203 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1204 | ;mysqlnd.net_cmd_buffer_size = 2048 1205 | 1206 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1207 | ; bytes. 1208 | ; http://php.net/mysqlnd.net_read_buffer_size 1209 | ;mysqlnd.net_read_buffer_size = 32768 1210 | 1211 | [OCI8] 1212 | 1213 | ; Connection: Enables privileged connections using external 1214 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1215 | ; http://php.net/oci8.privileged-connect 1216 | ;oci8.privileged_connect = Off 1217 | 1218 | ; Connection: The maximum number of persistent OCI8 connections per 1219 | ; process. Using -1 means no limit. 1220 | ; http://php.net/oci8.max-persistent 1221 | ;oci8.max_persistent = -1 1222 | 1223 | ; Connection: The maximum number of seconds a process is allowed to 1224 | ; maintain an idle persistent connection. Using -1 means idle 1225 | ; persistent connections will be maintained forever. 1226 | ; http://php.net/oci8.persistent-timeout 1227 | ;oci8.persistent_timeout = -1 1228 | 1229 | ; Connection: The number of seconds that must pass before issuing a 1230 | ; ping during oci_pconnect() to check the connection validity. When 1231 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1232 | ; pings completely. 1233 | ; http://php.net/oci8.ping-interval 1234 | ;oci8.ping_interval = 60 1235 | 1236 | ; Connection: Set this to a user chosen connection class to be used 1237 | ; for all pooled server requests with Oracle 11g Database Resident 1238 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1239 | ; the same string for all web servers running the same application, 1240 | ; the database pool must be configured, and the connection string must 1241 | ; specify to use a pooled server. 1242 | ;oci8.connection_class = 1243 | 1244 | ; High Availability: Using On lets PHP receive Fast Application 1245 | ; Notification (FAN) events generated when a database node fails. The 1246 | ; database must also be configured to post FAN events. 1247 | ;oci8.events = Off 1248 | 1249 | ; Tuning: This option enables statement caching, and specifies how 1250 | ; many statements to cache. Using 0 disables statement caching. 1251 | ; http://php.net/oci8.statement-cache-size 1252 | ;oci8.statement_cache_size = 20 1253 | 1254 | ; Tuning: Enables statement prefetching and sets the default number of 1255 | ; rows that will be fetched automatically after statement execution. 1256 | ; http://php.net/oci8.default-prefetch 1257 | ;oci8.default_prefetch = 100 1258 | 1259 | ; Compatibility. Using On means oci_close() will not close 1260 | ; oci_connect() and oci_new_connect() connections. 1261 | ; http://php.net/oci8.old-oci-close-semantics 1262 | ;oci8.old_oci_close_semantics = Off 1263 | 1264 | [PostgreSQL] 1265 | ; Allow or prevent persistent links. 1266 | ; http://php.net/pgsql.allow-persistent 1267 | pgsql.allow_persistent = On 1268 | 1269 | ; Detect broken persistent links always with pg_pconnect(). 1270 | ; Auto reset feature requires a little overheads. 1271 | ; http://php.net/pgsql.auto-reset-persistent 1272 | pgsql.auto_reset_persistent = Off 1273 | 1274 | ; Maximum number of persistent links. -1 means no limit. 1275 | ; http://php.net/pgsql.max-persistent 1276 | pgsql.max_persistent = -1 1277 | 1278 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1279 | ; http://php.net/pgsql.max-links 1280 | pgsql.max_links = -1 1281 | 1282 | ; Ignore PostgreSQL backends Notice message or not. 1283 | ; Notice message logging require a little overheads. 1284 | ; http://php.net/pgsql.ignore-notice 1285 | pgsql.ignore_notice = 0 1286 | 1287 | ; Log PostgreSQL backends Notice message or not. 1288 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1289 | ; http://php.net/pgsql.log-notice 1290 | pgsql.log_notice = 0 1291 | 1292 | [Sybase-CT] 1293 | ; Allow or prevent persistent links. 1294 | ; http://php.net/sybct.allow-persistent 1295 | sybct.allow_persistent = On 1296 | 1297 | ; Maximum number of persistent links. -1 means no limit. 1298 | ; http://php.net/sybct.max-persistent 1299 | sybct.max_persistent = -1 1300 | 1301 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1302 | ; http://php.net/sybct.max-links 1303 | sybct.max_links = -1 1304 | 1305 | ; Minimum server message severity to display. 1306 | ; http://php.net/sybct.min-server-severity 1307 | sybct.min_server_severity = 10 1308 | 1309 | ; Minimum client message severity to display. 1310 | ; http://php.net/sybct.min-client-severity 1311 | sybct.min_client_severity = 10 1312 | 1313 | ; Set per-context timeout 1314 | ; http://php.net/sybct.timeout 1315 | ;sybct.timeout= 1316 | 1317 | ;sybct.packet_size 1318 | 1319 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1320 | ; Default: one minute 1321 | ;sybct.login_timeout= 1322 | 1323 | ; The name of the host you claim to be connecting from, for display by sp_who. 1324 | ; Default: none 1325 | ;sybct.hostname= 1326 | 1327 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1328 | ; Default: 0 1329 | ;sybct.deadlock_retry_count= 1330 | 1331 | [bcmath] 1332 | ; Number of decimal digits for all bcmath functions. 1333 | ; http://php.net/bcmath.scale 1334 | bcmath.scale = 0 1335 | 1336 | [browscap] 1337 | ; http://php.net/browscap 1338 | ;browscap = extra/browscap.ini 1339 | 1340 | [Session] 1341 | ; Handler used to store/retrieve data. 1342 | ; http://php.net/session.save-handler 1343 | session.save_handler = files 1344 | 1345 | ; Argument passed to save_handler. In the case of files, this is the path 1346 | ; where data files are stored. Note: Windows users have to change this 1347 | ; variable in order to use PHP's session functions. 1348 | ; 1349 | ; The path can be defined as: 1350 | ; 1351 | ; session.save_path = "N;/path" 1352 | ; 1353 | ; where N is an integer. Instead of storing all the session files in 1354 | ; /path, what this will do is use subdirectories N-levels deep, and 1355 | ; store the session data in those directories. This is useful if 1356 | ; your OS has problems with many files in one directory, and is 1357 | ; a more efficient layout for servers that handle many sessions. 1358 | ; 1359 | ; NOTE 1: PHP will not create this directory structure automatically. 1360 | ; You can use the script in the ext/session dir for that purpose. 1361 | ; NOTE 2: See the section on garbage collection below if you choose to 1362 | ; use subdirectories for session storage 1363 | ; 1364 | ; The file storage module creates files using mode 600 by default. 1365 | ; You can change that by using 1366 | ; 1367 | ; session.save_path = "N;MODE;/path" 1368 | ; 1369 | ; where MODE is the octal representation of the mode. Note that this 1370 | ; does not overwrite the process's umask. 1371 | ; http://php.net/session.save-path 1372 | 1373 | ; RPM note : session directory must be owned by process owner 1374 | ; for mod_php, see /etc/httpd/conf.d/php.conf 1375 | ; for php-fpm, see /etc/php-fpm.d/*conf 1376 | ;session.save_path = "/tmp" 1377 | 1378 | ; Whether to use strict session mode. 1379 | ; Strict session mode does not accept uninitialized session ID and regenerate 1380 | ; session ID if browser sends uninitialized session ID. Strict mode protects 1381 | ; applications from session fixation via session adoption vulnerability. It is 1382 | ; disabled by default for maximum compatibility, but enabling it is encouraged. 1383 | ; https://wiki.php.net/rfc/strict_sessions 1384 | session.use_strict_mode = 0 1385 | 1386 | ; Whether to use cookies. 1387 | ; http://php.net/session.use-cookies 1388 | session.use_cookies = 1 1389 | 1390 | ; http://php.net/session.cookie-secure 1391 | ;session.cookie_secure = 1392 | 1393 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1394 | ; the session id. We encourage this operation as it's very helpful in combating 1395 | ; session hijacking when not specifying and managing your own session id. It is 1396 | ; not the be-all and end-all of session hijacking defense, but it's a good start. 1397 | ; http://php.net/session.use-only-cookies 1398 | session.use_only_cookies = 1 1399 | 1400 | ; Name of the session (used as cookie name). 1401 | ; http://php.net/session.name 1402 | session.name = PHPSESSID 1403 | 1404 | ; Initialize session on request startup. 1405 | ; http://php.net/session.auto-start 1406 | session.auto_start = 0 1407 | 1408 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1409 | ; http://php.net/session.cookie-lifetime 1410 | session.cookie_lifetime = 0 1411 | 1412 | ; The path for which the cookie is valid. 1413 | ; http://php.net/session.cookie-path 1414 | session.cookie_path = / 1415 | 1416 | ; The domain for which the cookie is valid. 1417 | ; http://php.net/session.cookie-domain 1418 | session.cookie_domain = 1419 | 1420 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1421 | ; http://php.net/session.cookie-httponly 1422 | session.cookie_httponly = 1423 | 1424 | ; Handler used to serialize data. php is the standard serializer of PHP. 1425 | ; http://php.net/session.serialize-handler 1426 | session.serialize_handler = php 1427 | 1428 | ; Defines the probability that the 'garbage collection' process is started 1429 | ; on every session initialization. The probability is calculated by using 1430 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1431 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1432 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1433 | ; the gc will run on any give request. 1434 | ; Default Value: 1 1435 | ; Development Value: 1 1436 | ; Production Value: 1 1437 | ; http://php.net/session.gc-probability 1438 | session.gc_probability = 1 1439 | 1440 | ; Defines the probability that the 'garbage collection' process is started on every 1441 | ; session initialization. The probability is calculated by using the following equation: 1442 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1443 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1444 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1445 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1446 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1447 | ; this is a more efficient approach. 1448 | ; Default Value: 100 1449 | ; Development Value: 1000 1450 | ; Production Value: 1000 1451 | ; http://php.net/session.gc-divisor 1452 | session.gc_divisor = 1000 1453 | 1454 | ; After this number of seconds, stored data will be seen as 'garbage' and 1455 | ; cleaned up by the garbage collection process. 1456 | ; http://php.net/session.gc-maxlifetime 1457 | session.gc_maxlifetime = 1440 1458 | 1459 | ; NOTE: If you are using the subdirectory option for storing session files 1460 | ; (see session.save_path above), then garbage collection does *not* 1461 | ; happen automatically. You will need to do your own garbage 1462 | ; collection through a shell script, cron entry, or some other method. 1463 | ; For example, the following script would is the equivalent of 1464 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1465 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1466 | 1467 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1468 | ; HTTP_REFERER has to contain this substring for the session to be 1469 | ; considered as valid. 1470 | ; http://php.net/session.referer-check 1471 | session.referer_check = 1472 | 1473 | ; How many bytes to read from the file. 1474 | ; http://php.net/session.entropy-length 1475 | ;session.entropy_length = 32 1476 | 1477 | ; Specified here to create the session id. 1478 | ; http://php.net/session.entropy-file 1479 | ; Defaults to /dev/urandom 1480 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom 1481 | ; If neither are found at compile time, the default is no entropy file. 1482 | ; On windows, setting the entropy_length setting will activate the 1483 | ; Windows random source (using the CryptoAPI) 1484 | ;session.entropy_file = /dev/urandom 1485 | 1486 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1487 | ; or leave this empty to avoid sending anti-caching headers. 1488 | ; http://php.net/session.cache-limiter 1489 | session.cache_limiter = nocache 1490 | 1491 | ; Document expires after n minutes. 1492 | ; http://php.net/session.cache-expire 1493 | session.cache_expire = 180 1494 | 1495 | ; trans sid support is disabled by default. 1496 | ; Use of trans sid may risk your users' security. 1497 | ; Use this option with caution. 1498 | ; - User may send URL contains active session ID 1499 | ; to other person via. email/irc/etc. 1500 | ; - URL that contains active session ID may be stored 1501 | ; in publicly accessible computer. 1502 | ; - User may access your site with the same session ID 1503 | ; always using URL stored in browser's history or bookmarks. 1504 | ; http://php.net/session.use-trans-sid 1505 | session.use_trans_sid = 0 1506 | 1507 | ; Select a hash function for use in generating session ids. 1508 | ; Possible Values 1509 | ; 0 (MD5 128 bits) 1510 | ; 1 (SHA-1 160 bits) 1511 | ; This option may also be set to the name of any hash function supported by 1512 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1513 | ; function. 1514 | ; http://php.net/session.hash-function 1515 | session.hash_function = 0 1516 | 1517 | ; Define how many bits are stored in each character when converting 1518 | ; the binary hash data to something readable. 1519 | ; Possible values: 1520 | ; 4 (4 bits: 0-9, a-f) 1521 | ; 5 (5 bits: 0-9, a-v) 1522 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1523 | ; Default Value: 4 1524 | ; Development Value: 5 1525 | ; Production Value: 5 1526 | ; http://php.net/session.hash-bits-per-character 1527 | session.hash_bits_per_character = 5 1528 | 1529 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1530 | ; form/fieldset are special; if you include them here, the rewriter will 1531 | ; add a hidden field with the info which is otherwise appended 1532 | ; to URLs. If you want XHTML conformity, remove the form entry. 1533 | ; Note that all valid entries require a "=", even if no value follows. 1534 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1535 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1536 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1537 | ; http://php.net/url-rewriter.tags 1538 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1539 | 1540 | ; Enable upload progress tracking in $_SESSION 1541 | ; Default Value: On 1542 | ; Development Value: On 1543 | ; Production Value: On 1544 | ; http://php.net/session.upload-progress.enabled 1545 | ;session.upload_progress.enabled = On 1546 | 1547 | ; Cleanup the progress information as soon as all POST data has been read 1548 | ; (i.e. upload completed). 1549 | ; Default Value: On 1550 | ; Development Value: On 1551 | ; Production Value: On 1552 | ; http://php.net/session.upload-progress.cleanup 1553 | ;session.upload_progress.cleanup = On 1554 | 1555 | ; A prefix used for the upload progress key in $_SESSION 1556 | ; Default Value: "upload_progress_" 1557 | ; Development Value: "upload_progress_" 1558 | ; Production Value: "upload_progress_" 1559 | ; http://php.net/session.upload-progress.prefix 1560 | ;session.upload_progress.prefix = "upload_progress_" 1561 | 1562 | ; The index name (concatenated with the prefix) in $_SESSION 1563 | ; containing the upload progress information 1564 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1565 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1566 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1567 | ; http://php.net/session.upload-progress.name 1568 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1569 | 1570 | ; How frequently the upload progress should be updated. 1571 | ; Given either in percentages (per-file), or in bytes 1572 | ; Default Value: "1%" 1573 | ; Development Value: "1%" 1574 | ; Production Value: "1%" 1575 | ; http://php.net/session.upload-progress.freq 1576 | ;session.upload_progress.freq = "1%" 1577 | 1578 | ; The minimum delay between updates, in seconds 1579 | ; Default Value: 1 1580 | ; Development Value: 1 1581 | ; Production Value: 1 1582 | ; http://php.net/session.upload-progress.min-freq 1583 | ;session.upload_progress.min_freq = "1" 1584 | 1585 | [MSSQL] 1586 | ; Allow or prevent persistent links. 1587 | mssql.allow_persistent = On 1588 | 1589 | ; Maximum number of persistent links. -1 means no limit. 1590 | mssql.max_persistent = -1 1591 | 1592 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1593 | mssql.max_links = -1 1594 | 1595 | ; Minimum error severity to display. 1596 | mssql.min_error_severity = 10 1597 | 1598 | ; Minimum message severity to display. 1599 | mssql.min_message_severity = 10 1600 | 1601 | ; Compatibility mode with old versions of PHP 3.0. 1602 | mssql.compatibility_mode = Off 1603 | 1604 | ; Connect timeout 1605 | ;mssql.connect_timeout = 5 1606 | 1607 | ; Query timeout 1608 | ;mssql.timeout = 60 1609 | 1610 | ; Valid range 0 - 2147483647. Default = 4096. 1611 | ;mssql.textlimit = 4096 1612 | 1613 | ; Valid range 0 - 2147483647. Default = 4096. 1614 | ;mssql.textsize = 4096 1615 | 1616 | ; Limits the number of records in each batch. 0 = all records in one batch. 1617 | ;mssql.batchsize = 0 1618 | 1619 | ; Specify how datetime and datetim4 columns are returned 1620 | ; On => Returns data converted to SQL server settings 1621 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1622 | ;mssql.datetimeconvert = On 1623 | 1624 | ; Use NT authentication when connecting to the server 1625 | mssql.secure_connection = Off 1626 | 1627 | ; Specify max number of processes. -1 = library default 1628 | ; msdlib defaults to 25 1629 | ; FreeTDS defaults to 4096 1630 | ;mssql.max_procs = -1 1631 | 1632 | ; Specify client character set. 1633 | ; If empty or not set the client charset from freetds.conf is used 1634 | ; This is only used when compiled with FreeTDS 1635 | ;mssql.charset = "ISO-8859-1" 1636 | 1637 | [Assertion] 1638 | ; Assert(expr); active by default. 1639 | ; http://php.net/assert.active 1640 | ;assert.active = On 1641 | 1642 | ; Issue a PHP warning for each failed assertion. 1643 | ; http://php.net/assert.warning 1644 | ;assert.warning = On 1645 | 1646 | ; Don't bail out by default. 1647 | ; http://php.net/assert.bail 1648 | ;assert.bail = Off 1649 | 1650 | ; User-function to be called if an assertion fails. 1651 | ; http://php.net/assert.callback 1652 | ;assert.callback = 0 1653 | 1654 | ; Eval the expression with current error_reporting(). Set to true if you want 1655 | ; error_reporting(0) around the eval(). 1656 | ; http://php.net/assert.quiet-eval 1657 | ;assert.quiet_eval = 0 1658 | 1659 | [mbstring] 1660 | ; language for internal character representation. 1661 | ; This affects mb_send_mail() and mbstrig.detect_order. 1662 | ; http://php.net/mbstring.language 1663 | ;mbstring.language = Japanese 1664 | 1665 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 1666 | ; internal/script encoding. 1667 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1668 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1669 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1670 | ;mbstring.internal_encoding = 1671 | 1672 | ; Use of this INI entry is deprecated, use global input_encoding instead. 1673 | ; http input encoding. 1674 | ; mbstring.encoding_traslation = On is needed to use this setting. 1675 | ; If empty, default_charset or input_encoding or mbstring.input is used. 1676 | ; The precedence is: default_charset < intput_encoding < mbsting.http_input 1677 | ; http://php.net/mbstring.http-input 1678 | ;mbstring.http_input = 1679 | 1680 | ; Use of this INI entry is deprecated, use global output_encoding instead. 1681 | ; http output encoding. 1682 | ; mb_output_handler must be registered as output buffer to function. 1683 | ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1684 | ; The precedence is: default_charset < output_encoding < mbstring.http_output 1685 | ; To use an output encoding conversion, mbstring's output handler must be set 1686 | ; otherwise output encoding conversion cannot be performed. 1687 | ; http://php.net/mbstring.http-output 1688 | ;mbstring.http_output = 1689 | 1690 | ; enable automatic encoding translation according to 1691 | ; mbstring.internal_encoding setting. Input chars are 1692 | ; converted to internal encoding by setting this to On. 1693 | ; Note: Do _not_ use automatic encoding translation for 1694 | ; portable libs/applications. 1695 | ; http://php.net/mbstring.encoding-translation 1696 | ;mbstring.encoding_translation = Off 1697 | 1698 | ; automatic encoding detection order. 1699 | ; "auto" detect order is changed according to mbstring.language 1700 | ; http://php.net/mbstring.detect-order 1701 | ;mbstring.detect_order = auto 1702 | 1703 | ; substitute_character used when character cannot be converted 1704 | ; one from another 1705 | ; http://php.net/mbstring.substitute-character 1706 | ;mbstring.substitute_character = none 1707 | 1708 | ; overload(replace) single byte functions by mbstring functions. 1709 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1710 | ; etc. Possible values are 0,1,2,4 or combination of them. 1711 | ; For example, 7 for overload everything. 1712 | ; 0: No overload 1713 | ; 1: Overload mail() function 1714 | ; 2: Overload str*() functions 1715 | ; 4: Overload ereg*() functions 1716 | ; http://php.net/mbstring.func-overload 1717 | ;mbstring.func_overload = 0 1718 | 1719 | ; enable strict encoding detection. 1720 | ; Default: Off 1721 | ;mbstring.strict_detection = On 1722 | 1723 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1724 | ; is activated. 1725 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1726 | ;mbstring.http_output_conv_mimetype= 1727 | 1728 | [gd] 1729 | ; Tell the jpeg decode to ignore warnings and try to create 1730 | ; a gd image. The warning will then be displayed as notices 1731 | ; disabled by default 1732 | ; http://php.net/gd.jpeg-ignore-warning 1733 | ;gd.jpeg_ignore_warning = 0 1734 | 1735 | [exif] 1736 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1737 | ; With mbstring support this will automatically be converted into the encoding 1738 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1739 | ; is used. For the decode settings you can distinguish between motorola and 1740 | ; intel byte order. A decode setting cannot be empty. 1741 | ; http://php.net/exif.encode-unicode 1742 | ;exif.encode_unicode = ISO-8859-15 1743 | 1744 | ; http://php.net/exif.decode-unicode-motorola 1745 | ;exif.decode_unicode_motorola = UCS-2BE 1746 | 1747 | ; http://php.net/exif.decode-unicode-intel 1748 | ;exif.decode_unicode_intel = UCS-2LE 1749 | 1750 | ; http://php.net/exif.encode-jis 1751 | ;exif.encode_jis = 1752 | 1753 | ; http://php.net/exif.decode-jis-motorola 1754 | ;exif.decode_jis_motorola = JIS 1755 | 1756 | ; http://php.net/exif.decode-jis-intel 1757 | ;exif.decode_jis_intel = JIS 1758 | 1759 | [Tidy] 1760 | ; The path to a default tidy configuration file to use when using tidy 1761 | ; http://php.net/tidy.default-config 1762 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1763 | 1764 | ; Should tidy clean and repair output automatically? 1765 | ; WARNING: Do not use this option if you are generating non-html content 1766 | ; such as dynamic images 1767 | ; http://php.net/tidy.clean-output 1768 | tidy.clean_output = Off 1769 | 1770 | [soap] 1771 | ; Enables or disables WSDL caching feature. 1772 | ; http://php.net/soap.wsdl-cache-enabled 1773 | soap.wsdl_cache_enabled=1 1774 | 1775 | ; Sets the directory name where SOAP extension will put cache files. 1776 | ; http://php.net/soap.wsdl-cache-dir 1777 | 1778 | ; RPM note : cache directory must be owned by process owner 1779 | ; for mod_php, see /etc/httpd/conf.d/php.conf 1780 | ; for php-fpm, see /etc/php-fpm.d/*conf 1781 | soap.wsdl_cache_dir="/tmp" 1782 | 1783 | ; (time to live) Sets the number of second while cached file will be used 1784 | ; instead of original one. 1785 | ; http://php.net/soap.wsdl-cache-ttl 1786 | soap.wsdl_cache_ttl=86400 1787 | 1788 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1789 | soap.wsdl_cache_limit = 5 1790 | 1791 | [sysvshm] 1792 | ; A default size of the shared memory segment 1793 | ;sysvshm.init_mem = 10000 1794 | 1795 | [ldap] 1796 | ; Sets the maximum number of open links or -1 for unlimited. 1797 | ldap.max_links = -1 1798 | 1799 | [mcrypt] 1800 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1801 | 1802 | ; Directory where to load mcrypt algorithms 1803 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1804 | ;mcrypt.algorithms_dir= 1805 | 1806 | ; Directory where to load mcrypt modes 1807 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1808 | ;mcrypt.modes_dir= 1809 | 1810 | [dba] 1811 | ;dba.default_handler= 1812 | 1813 | [curl] 1814 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1815 | ; absolute path. 1816 | ;curl.cainfo = 1817 | 1818 | [openssl] 1819 | ; The location of a Certificate Authority (CA) file on the local filesystem 1820 | ; to use when verifying the identity of SSL/TLS peers. Most users should 1821 | ; not specify a value for this directive as PHP will attempt to use the 1822 | ; OS-managed cert stores in its absence. If specified, this value may still 1823 | ; be overridden on a per-stream basis via the "cafile" SSL stream context 1824 | ; option. 1825 | ;openssl.cafile= 1826 | 1827 | ; If openssl.cafile is not specified or if the CA file is not found, the 1828 | ; directory pointed to by openssl.capath is searched for a suitable 1829 | ; certificate. This value must be a correctly hashed certificate directory. 1830 | ; Most users should not specify a value for this directive as PHP will 1831 | ; attempt to use the OS-managed cert stores in its absence. If specified, 1832 | ; this value may still be overridden on a per-stream basis via the "capath" 1833 | ; SSL stream context option. 1834 | ;openssl.capath= 1835 | 1836 | ; Local Variables: 1837 | ; tab-width: 4 1838 | ; End: 1839 | -------------------------------------------------------------------------------- /lnmp/php7/scripts/build_php7.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker build --tag addcn/php7 -f php7/Dockerfile . -------------------------------------------------------------------------------- /lnmp/php7/scripts/container_php7.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | docker run --name php7 -p 9000:9000 -v /var/www/html:/usr/local/nginx/html --link mysql:mysql -it addcn/php7 -------------------------------------------------------------------------------- /lnmp/start_lnmp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/addcn/docker-lnmp/b8b1d0d9c57738c29b463e8665f3e4d7b538f417/lnmp/start_lnmp.sh -------------------------------------------------------------------------------- /lnmp/web/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/addcn/docker-lnmp/b8b1d0d9c57738c29b463e8665f3e4d7b538f417/lnmp/web/Dockerfile --------------------------------------------------------------------------------