├── .gitignore ├── README.md ├── docker-compose.yaml ├── example.env ├── nginx ├── Dockerfile ├── ca │ └── .gitignore ├── conf.d │ ├── .gitignore │ ├── demo.cfg │ └── nginx.default ├── docker-make-ssl.sh └── my_modules │ └── ngx_http_upload_module.so ├── php ├── Dockerfile ├── ext │ ├── ini │ │ ├── molten.ini │ │ └── seaslog.ini │ └── so │ │ └── molten.so ├── php.ini └── supervisord.conf ├── supervisor ├── conf │ ├── laravals.conf │ └── php.conf └── supervisord.conf └── www ├── index.html └── index.php /.gitignore: -------------------------------------------------------------------------------- 1 | /.env 2 | /.vagrant 3 | /.idea 4 | .git 5 | dump.rdb 6 | /www 7 | /web.config 8 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 手牵手一起使用 docker 搭建 PHP 环境,并使用 supervisor 管理你的 swoole 进程 2 | 3 | ## 使用本环境的一些基本说明 4 | 5 | - 请配置docker的Registry mirrors为中国大陆的 daocloud.io(加速器) 6 | - 使用 **docker-compose up -d** 快速搭建php环境 7 | 8 | 9 | ## 使用方法 10 | 11 | ### 基础配置 12 | 1. 安装Docker(官方默认会自带docker-compose 工具), 已经安装过的可以跳过此步 13 | 2. 对Docker Machine 设置里,配置`Setting->Daemon->Registry mirrors`,增加加速器URL,比如http://xxxx.m.daocloud.io 14 | 3. 对Docker Machine 设置里,配置`Setting->Shared Drives(Windows)/File Sharing(Mac)`, 15 | 16 | 17 | ### Docker-php使用 18 | - 复制example.env到同级目录下,并重命名.env,命令操作 19 | ```shell 20 | cp ./example.env ./.env 21 | ``` 22 | - 【必】修改.env文件的配置。`LOCAL_STOARGE_PATH`=设置为此github clone的根目录。 比如/var/www/html/docker-php 23 | - 【必】修改.env文件的配置。`LOCAL_WEB_PATH`=设置为你开发项目的基础根目录, 比如/var/www/html/docker-php/www 24 | - 【必】启动所有命令行执行 25 | ```shell 26 | docker-compose up -d 27 | ``` 28 | 29 | ### Nginx使用 30 | - 多个虚拟站点的配置,直接参考nginx/conf.d/demo.cfg, 复制粘贴demo.cfg在同目录下并重名为site1.conf, 并根据注释修改目录路径(以容器目录为准),重命名文件必须以`conf`扩展名结尾, 举例命令行 31 | ```shell 32 | cp ./nginx/conf.d/demo.cfg ./nginx/conf.d/site1.conf 33 | ``` 34 | - 开启HTTPS支持。 第一次进入nginx容器,命令行 35 | ```shell 36 | docker-compose exec nginx bash 37 | # 自动化生成相关证书,生成目录在容器目录/etc/nginx/ssl 38 | sh /usr/local/bin/docker-make-ssl.sh 39 | # 拷贝容器的所有证书到宿主机nginx/ca目录下 40 | cp -R /etc/nginx/ssl /etc/nginx/ca 41 | ``` 42 | 然后配置你的nginx虚拟站点conf,取消相关ssl_注释即可,默认开放443:443映射 43 | - 使用动态扩展库方法,复制nginx/my_modules/xxxx.so 文件到nginx容器里/etc/nginx/module/内,并修改nginx.conf文件,在worker_processes下一行追加 `load_module modules/xxxx.so;`,可以参考conf.d/nginx.default配置. 44 | 45 | ### PHP配置 46 | - 【Seaslog】的配置范本文件在宿主机php/ext/ini/seaslog.ini里,根据注释复制一下,然后进入PHP容器修改容器内的文件`/usr/local/etc/php/conf.d/docker-php-ext-seaslog.ini` 即可, 命令如下 47 | ```shell 48 | # 进入PHP容器 49 | docker-compose exec php bash 50 | # 修改容器内的seaslog扩展配置 51 | vi /usr/local/etc/php/conf.d/docker-php-ext-seaslog.ini 52 | ``` 53 | 54 | 55 | ## 环境构成 56 | 57 | 将 `php-fpm` 和 `nginx` 容器分开,通过 `php:9000` 端口通信 58 | 59 | ### php 60 | 61 | php镜像来自官方 `php:fpm`,目前最新稳定版本是 `7.2.8` 62 | 63 | 在此基础上添加了以下等扩展: 64 | 65 | - swoole-4.0.3 66 | - redis/hiredis 67 | - mysqli 68 | - pdo_mysql 69 | - mongodb 70 | - bz2 71 | - dba 72 | - GD 73 | - zip 74 | - pdo_sqlite 75 | - memcached 76 | - bcmath 77 | - openssl 78 | - mbstring 79 | - sockets 80 | - event 81 | - posix 82 | - pcntl 83 | - intl 84 | - xml 85 | - tidy 86 | - json 87 | - ldap 88 | - calendar 89 | - soap 90 | - gmp 91 | - msgpack 92 | - inotify 93 | - grpc 94 | - seaslog 95 | - molten 96 | - zlib 97 | - apcu (可选) 98 | - ... 99 | 100 | 101 | 手动添加了 `composer` 并替换了国内源,修改了时区(`Asia/Shanghai`) 102 | 103 | ### nginx 104 | 105 | 直接使用的 `nginx:latest` 镜像,需要挂载自己的PHP项目工作目录,并配置nginx/conf.d里各个站点 106 | 可以支持HTTPS 加密协议访问(单向、双向) 107 | 108 | ### supervisor 109 | 配置文件:/docker-php/supervisord.conf 110 | 启动项目进程:/docker-php/supervisor/conf 111 | 启动日志: /docker/log/supervisor 112 | 113 | 114 | ## 常用运行 115 | 116 | ```sh 117 | $ cd docker-php/ 118 | // 后台运行 119 | $ docker-compose up -d 120 | // 进入php容器bash环境 121 | $ docker-compose exec php bash 122 | ``` 123 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | # 注意这里的vertion是docker-compose yaml格式的version 不同的version支持不同的语法 2 | version: '3' 3 | services: 4 | nginx: 5 | # 依赖关系 先跑php 6 | depends_on: 7 | - php 8 | #image: nginx:${NGINX_VERSION} 9 | build: nginx/ 10 | # 数据卷 11 | volumes: 12 | - ${LOCAL_STOARGE_PATH}/nginx/conf.d:/etc/nginx/conf.d:ro 13 | # 证书挂载保存,需要用的时候,进容器执行 sh /usr/local/bin/docker-make-ssl.sh,然后cp -R /etc/nginx/ssl /etc/nginx/ca 14 | - ${LOCAL_STOARGE_PATH}/nginx/ca:/etc/nginx/ca 15 | - ${LOCAL_STOARGE_PATH}/nginx/my_modules:/etc/nginx/my_modules:ro 16 | - ${LOCAL_STOARGE_PATH}/log/nginx:/var/log/nginx 17 | - ${LOCAL_WEB_PATH}:/var/www/html 18 | # 端口映射 19 | ports: 20 | - 80:80 21 | 22 | # 容器名称 23 | container_name: compose-nginx 24 | #restart: always 25 | php: 26 | build: php/ 27 | working_dir: /var/www/html 28 | volumes: 29 | - ${LOCAL_WEB_PATH}:/var/www/html 30 | - ${LOCAL_STOARGE_PATH}/php/ext:/etc/php/my_ext 31 | - ${LOCAL_STOARGE_PATH}/supervisor/supervisord.conf:/etc/supervisord.conf 32 | - ${LOCAL_STOARGE_PATH}/supervisor/conf:/etc/supervisord.d/conf 33 | - ${LOCAL_STOARGE_PATH}/log/supervisor:/etc/supervisord.d/log 34 | - ${LOCAL_STOARGE_PATH}/php/php.ini:/usr/local/etc/php/php.ini:ro 35 | container_name: compose-php 36 | # 端口映射 37 | ports: 38 | - 9001:9000 39 | - 5200:5200 40 | #restart: always 41 | -------------------------------------------------------------------------------- /example.env: -------------------------------------------------------------------------------- 1 | OPS_VERSION=1.0.2 2 | LOCAL_STOARGE_PATH=/mnt/var/www/nginx/docker-php 3 | LOCAL_WEB_PATH=/mnt/var/www/nginx/html 4 | NGINX_VERSION=1.15.3 5 | PHP_VERSION=7.2-fpm 6 | MYSQL_VERSION=5.7.23 7 | REDIS_VERSION=4.0.11-alpine 8 | MONGO_VERSION=3.4.11 9 | SERVER_TIMEZONE=Asia/Shanghai 10 | MYSQL_ROOT_PASSWORD=mysql2018 11 | ELASTIC_VERSION=5.5.2 12 | BEANSTALKD_VERSION=1.10 13 | BEANSTALKD_PORT=11300 14 | BEANSTALKD_ADDR=0.0.0.0 15 | BEANSTALKD_MAX_JOB_SIZE=65535 -------------------------------------------------------------------------------- /nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:1.15.3 2 | 3 | LABEL maintainer="bossaiguo<1058349313@qq.com>" 4 | 5 | ENV TIMEZONE Asia/Shanghai 6 | 7 | # replace sources.list 8 | RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ 9 | && sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ 10 | && cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \ 11 | && echo "${TIMEZONE}" > /etc/timezone 12 | # init 13 | RUN apt-get update && \ 14 | apt-get install -y --no-install-recommends \ 15 | openssl \ 16 | vim \ 17 | locales \ 18 | expect \ 19 | && rm -rf /var/lib/apt/lists/* 20 | 21 | # 替换VIM鼠标状态为非可视状态 22 | RUN sed -i 's/mouse\=a/mouse=v/g' /usr/share/vim/vim80/defaults.vim 23 | 24 | RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen 25 | 26 | ENV LANG=en_US.UTF-8 \ 27 | LC_ALL=en_US.UTF-8 28 | 29 | COPY docker-make-ssl.sh /usr/local/bin/ 30 | 31 | #RUN ln -s /usr/local/bin/docker-make-ssl.sh /docker-make-ssl.sh 32 | #ENTRYPOINT ["docker-make-ssl.sh"] 33 | 34 | 35 | EXPOSE 80 36 | EXPOSE 443 37 | 38 | STOPSIGNAL SIGTERM 39 | 40 | CMD ["nginx", "-g", "daemon off;"] -------------------------------------------------------------------------------- /nginx/ca/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /nginx/conf.d/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !*.cfg 4 | !nginx.default -------------------------------------------------------------------------------- /nginx/conf.d/demo.cfg: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | client_max_body_size 20M; 4 | 5 | # 如果要开启443,请先生成你的服务器证书,若双向认证,请导入证书到你的电脑里 6 | # listen 443 ssl; 7 | # ssl_certificate /etc/nginx/ca/ssl/certs/server.cer; 8 | # ssl_certificate_key /etc/nginx/ca/ssl/private/server.key; 9 | # ssl_client_certificate /etc/nginx/ca/ssl/certs/ca.cer; 10 | # ssl_verify_client off; 11 | # ssl_prefer_server_ciphers on; 12 | # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 13 | # ssl_ciphers HIGH:!aNULL:!MD5; 14 | 15 | #多个域名用空格分割,第一个为默认 16 | server_name www.dev.local.cn; 17 | 18 | charset UTF-8; 19 | index default.html default.htm default.php index.html index.htm index.php; 20 | 21 | # 定义根目录 22 | set $root /works/project/laravel/public; 23 | 24 | # 设置站点路径 25 | root $root; 26 | 27 | # 防止目录浏览 28 | autoindex off; 29 | 30 | #sendfile off; 31 | 32 | # 防止.htaccess文件被请求 33 | location ~ /\.ht { 34 | deny all; 35 | } 36 | location / { 37 | try_files $uri $uri/ /index.php?$query_string; 38 | } 39 | 40 | #error_page 404 /err/404.htm; 41 | 42 | # 将php类型的请求转交给fastcgi 43 | location ~ \.php$ { 44 | fastcgi_pass php:9000; 45 | try_files $uri =404; 46 | fastcgi_split_path_info ^(.+\.php)(.*)$; 47 | fastcgi_index index.php; 48 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 49 | fastcgi_param PHP_VALUE "open_basedir=/works/:/tmp/:/var/log/"; 50 | include fastcgi_params; 51 | #include fastcgi.conf; 52 | } 53 | 54 | #缓存图片周期30天 55 | #location ~* \.(jpg|jpeg|gif|png)$ { 56 | # access_log off; 57 | # expires 30d; 58 | #} 59 | #缓存js和css7天 60 | #location ~* \.(js|css)$ { 61 | # access_log off; 62 | # expires 7d; 63 | #} 64 | 65 | # 访问日志: 66 | #access_log /var/log/nginx/local.cn.access.log; 67 | } 68 | 69 | 70 | -------------------------------------------------------------------------------- /nginx/conf.d/nginx.default: -------------------------------------------------------------------------------- 1 | user nginx; 2 | worker_processes 1; 3 | 4 | # 加载动态库进去 5 | load_module modules/ngx_http_upload_module.so; 6 | 7 | error_log /var/log/nginx/error.log warn; 8 | pid /var/run/nginx.pid; 9 | 10 | 11 | events { 12 | worker_connections 1024; 13 | } 14 | 15 | http { 16 | include /etc/nginx/mime.types; 17 | default_type application/octet-stream; 18 | 19 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 20 | '$status $body_bytes_sent "$http_referer" ' 21 | '"$http_user_agent" "$http_x_forwarded_for"'; 22 | 23 | access_log /var/log/nginx/access.log main; 24 | 25 | sendfile on; 26 | #tcp_nopush on; 27 | 28 | keepalive_timeout 65; 29 | 30 | #gzip on; 31 | 32 | include /etc/nginx/conf.d/*.conf; 33 | } -------------------------------------------------------------------------------- /nginx/docker-make-ssl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # set -e 4 | 5 | # 生成CA证书 6 | # 替换opensll 证书生成目录 7 | sed -i 's/\.\/demoCA/\/etc\/nginx\/ssl/g' /etc/ssl/openssl.cnf 8 | 9 | cd /etc/nginx/ 10 | 11 | rm -rf /etc/nginx/ssl/ 12 | mkdir -p /etc/nginx/ssl/certs/ 13 | mkdir -p /etc/nginx/ssl/crl/ 14 | mkdir -p /etc/nginx/ssl/private/ 15 | 16 | /usr/bin/openssl genrsa -out /etc/nginx/ssl/private/ca.pem 2048 17 | /usr/bin/openssl rsa -in /etc/nginx/ssl/private/ca.pem -out /etc/nginx/ssl/private/ca.key 18 | /usr/bin/openssl req -new -key /etc/nginx/ssl/private/ca.pem -out /etc/nginx/ssl/private/ca.csr -subj "/C=CN/ST=myprovince/L=mycity/O=myorganization/OU=mygroup/CN=myCA" 19 | /usr/bin/openssl x509 -req -days 365 -sha1 -extensions v3_req -signkey /etc/nginx/ssl/private/ca.pem -in /etc/nginx/ssl/private/ca.csr -out /etc/nginx/ssl/certs/ca.cer 20 | 21 | 22 | # 生成服务端证书 23 | /usr/bin/openssl genrsa -out /etc/nginx/ssl/private/server.pem 2048 24 | /usr/bin/openssl rsa -in /etc/nginx/ssl/private/server.pem -out /etc/nginx/ssl/private/server.key 25 | /usr/bin/openssl req -new -key /etc/nginx/ssl/private/server.pem -out /etc/nginx/ssl/private/server.csr -subj "/C=CN/ST=myprovince/L=mycity/O=myorganization/OU=mygroup/CN=myServer" 26 | /usr/bin/openssl x509 -req -days 365 -sha1 -CA /etc/nginx/ssl/certs/ca.cer -CAkey /etc/nginx/ssl/private/ca.pem -CAserial /etc/nginx/ssl/ca.srl -CAcreateserial -in /etc/nginx/ssl/private/server.csr -out /etc/nginx/ssl/certs/server.cer 27 | 28 | #生成客户端证书 29 | /usr/bin/openssl genrsa -out /etc/nginx/ssl/private/client.pem 2048 30 | /usr/bin/openssl rsa -in /etc/nginx/ssl/private/client.pem -out /etc/nginx/ssl/private/client.key 31 | /usr/bin/openssl req -new -key /etc/nginx/ssl/private/client.pem -out /etc/nginx/ssl/private/client.csr -subj "/C=CN/ST=myprovince/L=mycity/O=myorganization/OU=mygroup/CN=myClient" 32 | /usr/bin/openssl x509 -req -days 365 -sha1 -CA /etc/nginx/ssl/certs/ca.cer -CAkey /etc/nginx/ssl/private/ca.pem -CAserial /etc/nginx/ssl/ca.srl -in /etc/nginx/ssl/private/client.csr -out /etc/nginx/ssl/certs/client.cer 33 | 34 | # 导出证书 35 | password='8888' 36 | /usr/bin/expect <<-EOF 37 | set timeout 30 38 | spawn /usr/bin/openssl pkcs12 -export -clcerts -inkey /etc/nginx/ssl/private/client.pem -in /etc/nginx/ssl/certs/client.cer -out /etc/nginx/ssl/certs/client.p12 39 | expect "*Password*" 40 | send "$password\r" 41 | sleep 1 42 | expect "*Password*" 43 | send "$password\r" 44 | sleep 1 45 | spawn /usr/bin/openssl pkcs12 -export -clcerts -inkey /etc/nginx/ssl/private/server.pem -in /etc/nginx/ssl/certs/server.cer -out /etc/nginx/ssl/certs/server.p12 46 | expect "*Password*" 47 | send "$password\r" 48 | sleep 1 49 | expect "*Password*" 50 | send "$password\r" 51 | interact 52 | expect eof 53 | EOF 54 | -------------------------------------------------------------------------------- /nginx/my_modules/ngx_http_upload_module.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bossaiguo/docker-php/1c34c072c35c4695ae1e083b3e1b968dc2d4b4f5/nginx/my_modules/ngx_http_upload_module.so -------------------------------------------------------------------------------- /php/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2-fpm 2 | 3 | LABEL maintainer="bossaiguo<1058349313@qq.com>" 4 | 5 | ENV TIMEZONE Asia/Shanghai 6 | ENV SWOOLE_VERSION 4.0.3 7 | ENV PHALCON_VERSION 3.4.1 8 | 9 | # replace sources.list 10 | RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ 11 | && sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ 12 | && cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \ 13 | && echo "${TIMEZONE}" > /etc/timezone 14 | # init 15 | RUN apt-get update -y && \ 16 | apt-get install -y --no-install-recommends \ 17 | curl \ 18 | wget \ 19 | zip \ 20 | unzip \ 21 | vim \ 22 | git \ 23 | locales \ 24 | procps \ 25 | libz-dev \ 26 | libpq-dev \ 27 | libjpeg-dev \ 28 | libpng-dev \ 29 | libfreetype6-dev \ 30 | libssl-dev \ 31 | libmcrypt-dev \ 32 | libmemcached-dev \ 33 | libtool \ 34 | libicu-dev \ 35 | libxml2 \ 36 | libxml2-dev \ 37 | libgmp3-dev \ 38 | libevent-dev \ 39 | libzip-dev \ 40 | zlib1g-dev \ 41 | libldap2-dev \ 42 | libbz2-dev \ 43 | libjpeg62-turbo-dev \ 44 | libtidy-dev \ 45 | libsqlite3-dev \ 46 | libsqlite3-0 \ 47 | tmux \ 48 | keychain \ 49 | supervisor \ 50 | && mkdir -p /etc/supervisord.d/log \ 51 | && mkdir -p /etc/supervisord.d/conf \ 52 | && rm -rf /var/lib/apt/lists/* 53 | 54 | # 替换VIM鼠标状态为非可视状态 55 | RUN sed -i 's/mouse\=a/mouse=v/g' /usr/share/vim/vim80/defaults.vim 56 | 57 | RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen 58 | 59 | ENV LANG=en_US.UTF-8 \ 60 | LC_ALL=en_US.UTF-8 61 | 62 | # install hiredis 63 | RUN wget --no-check-certificate https://gitee.com/oschina/hiredis/repository/archive/v0.13.3.zip -O hiredis.zip \ 64 | && mkdir -p hiredis \ 65 | && unzip hiredis.zip \ 66 | && rm hiredis.zip \ 67 | && ( \ 68 | cd hiredis \ 69 | && make -j$(nproc) \ 70 | && make install \ 71 | && ldconfig \ 72 | ) \ 73 | && rm -r hiredis 74 | 75 | # install php extentions 76 | RUN pecl channel-update pecl.php.net \ 77 | && docker-php-ext-configure gd \ 78 | --with-jpeg-dir=/usr/lib \ 79 | --with-freetype-dir=/usr/include/freetype2 \ 80 | --with-zlib-dir=/usr \ 81 | && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \ 82 | && docker-php-ext-install -j$(nproc) dba bz2 calendar ldap zip json tidy xml pdo_sqlite bcmath mysqli pdo_mysql gd sockets pcntl intl soap gmp \ 83 | && pecl install msgpack \ 84 | && docker-php-ext-enable msgpack \ 85 | && pecl install seaslog \ 86 | && docker-php-ext-enable seaslog \ 87 | # 一般情况,不需要用户变量缓存,所以注释掉安装apcu 88 | # && printf "\n" | pecl install apcu \ 89 | # && docker-php-ext-enable apcu \ 90 | # && pecl install mongodb \ 91 | # && docker-php-ext-enable mongodb \ 92 | # && pecl install memcached \ 93 | # && docker-php-ext-enable memcached \ 94 | && pecl install redis \ 95 | && docker-php-ext-enable redis \ 96 | && pecl install inotify \ 97 | && docker-php-ext-enable inotify \ 98 | && pecl install grpc \ 99 | && docker-php-ext-enable grpc \ 100 | && echo "no\r\/usr/local/php-event/\ryes"|pecl install event \ 101 | && docker-php-ext-enable event \ 102 | && pecl clear-cache 103 | 104 | # install swoole extention 105 | RUN wget --no-check-certificate https://gitee.com/swoole/swoole/repository/archive/v${SWOOLE_VERSION}.zip -O swoole.zip \ 106 | && mkdir -p swoole \ 107 | && unzip swoole.zip \ 108 | && rm swoole.zip \ 109 | && ( \ 110 | cd swoole \ 111 | && phpize \ 112 | && ./configure --enable-async-redis --enable-mysqlnd --enable-openssl \ 113 | && make -j$(nproc) \ 114 | && make install \ 115 | ) \ 116 | && rm -r swoole \ 117 | && docker-php-ext-enable swoole 118 | 119 | 120 | # install composer 121 | RUN curl -sS https://install.phpcomposer.com/installer | php \ 122 | && mv composer.phar /usr/local/bin/composer \ 123 | && composer self-update --clean-backups \ 124 | && composer config -g repo.packagist composer https://packagist.laravel-china.org 125 | 126 | # install supervior 127 | COPY supervisord.conf /etc/supervisord.conf 128 | 129 | # 对Seaslog默认存储目录增加www-data owner && 对Php默认bash登陆目录赋予www-data:www-data owner 130 | RUN chown -R www-data:www-data /var/log/www && chown -R www-data:www-data /var/www 131 | 132 | EXPOSE 9000 5200 133 | ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"] -------------------------------------------------------------------------------- /php/ext/ini/molten.ini: -------------------------------------------------------------------------------- 1 | [Molten] 2 | ;extension = molten.so 3 | 4 | ;1开启,0关闭, 默认 1 5 | molten.enable = 0 6 | 7 | ;设置应用服务名, 默认default 8 | molten.service_name = "default" 9 | 10 | ; 追踪cli模式下信息, 1开启,0关闭, 默认0 11 | molten.tracing_cli = 0 12 | 13 | ;类型类型, 1采样率控制, 2通过每分钟request数, 默认是1 14 | molten.sampling_type = 1 15 | 16 | ;采样类型是请求数采样,每分钟的采样请求数, 默认是10 17 | molten.sampling_request = 10 18 | 19 | ;采样类型是采样率时,每个请求的采样几率, 默认是256 20 | molten.sampling_rate_base = 256 21 | 22 | ;通知管理中心的uri 23 | molten.notify_uri = "" 24 | 25 | ;数据模块调用间隔, 默认 60 26 | molten.report_interval = 60 27 | 28 | ;数据上报请求上限, 默认 100 29 | molten.report_limit = 100 30 | 31 | ;数据落地类型, 1 写入文件, 文件地址依赖molten.sink_log_path, 2 写入到标准输出, 3 写入到syslog中, 4 通过curl发送, 发送地址依赖 molten.sink_http_uri. 32 | molten.sink_type = 1 33 | 34 | ;输出全部追踪块(span)(1) 或者一行输出一个块(2)。 35 | molten.output_type = 1 36 | 37 | ;写入文件地址 38 | molten.sink_log_path = "/var/log/www/molten.log" 39 | 40 | ;发送http地址 41 | molten.sink_http_uri = "" 42 | 43 | ;发送日志到syslog udp unixdomain日志收集源中。 44 | molten.sink_syslog_unix_socket = "" 45 | 46 | ;追踪块格式(span), 不同的追踪系统选择zipkin 或者 zipkin_v2或者 opentracing。 47 | molten.span_format = "zipkin_v2" -------------------------------------------------------------------------------- /php/ext/ini/seaslog.ini: -------------------------------------------------------------------------------- 1 | [SeasLog] 2 | ;configuration for php SeasLog module 3 | ;extension = seaslog.so 4 | 5 | ;默认log根目录 6 | seaslog.default_basepath = "/var/log/www" 7 | 8 | ;默认logger目录 9 | seaslog.default_logger = "default" 10 | 11 | ;日期格式配置 默认"Y-m-d H:i:s" 12 | seaslog.default_datetime_format = "Y-m-d H:i:s" 13 | 14 | ;日志格式模板 默认"%T | %L | %P | %Q | %t | %M" 15 | seaslog.default_template = "%T | %L | %P | %Q | %t | %M" 16 | 17 | ;是否以目录区分Logger 1是(默认) 0否 18 | seaslog.disting_folder = 1 19 | 20 | ;是否以type分文件 1是 0否(默认) 21 | seaslog.disting_type = 0 22 | 23 | ;是否每小时划分一个文件 1是 0否(默认) 24 | seaslog.disting_by_hour = 0 25 | 26 | ;是否启用buffer 1是 0否(默认) 27 | seaslog.use_buffer = 0 28 | 29 | ;buffer中缓冲数量 默认0(不使用buffer_size) 30 | seaslog.buffer_size = 100 31 | 32 | ;cli运行时关闭buffer 33 | ;1是 0否(默认) 34 | seaslog.buffer_disabled_in_cli = 0 35 | 36 | ;记录日志级别,数字越大,根据级别记的日志越多。 37 | ;0-EMERGENCY 1-ALERT 2-CRITICAL 3-ERROR 4-WARNING 5-NOTICE 6-INFO 7-DEBUG 8-ALL 38 | ;默认8(所有日志) 39 | ; 40 | ; 注意, 该配置项自1.7.0版本开始有变动。 41 | ; 在1.7.0版本之前, 该值数字越小,根据级别记的日志越多: 42 | ; 0-all 1-debug 2-info 3-notice 4-warning 5-error 6-critical 7-alert 8-emergency 43 | ; 1.7.0 之前的版本,该值默认为0(所有日志); 44 | seaslog.level = 8 45 | 46 | ;日志函数调用回溯层级 47 | ;影响预定义变量 %F 中的行数 48 | ;默认0 49 | seaslog.recall_depth = 0 50 | 51 | ;自动记录notice 默认0(关闭) 52 | seaslog.trace_notice = 0 53 | 54 | ;自动记录warning 默认0(开启) 55 | seaslog.trace_warning = 0 56 | 57 | ;自动记录错误 默认1(开启) 58 | seaslog.trace_error = 1 59 | 60 | ;自动记录异常信息 默认0(关闭) 61 | seaslog.trace_exception = 0 62 | 63 | ;日志存储介质 1File 2TCP 3UDP (默认为1) 64 | seaslog.appender = 1 65 | 66 | ;写入重试次数 67 | ;默认0(不重试) 68 | seaslog.appender_retry = 0 69 | 70 | ;接收ip 默认127.0.0.1 (当使用TCP或UDP时必填) 71 | seaslog.remote_host = "127.0.0.1" 72 | 73 | ;接收端口 默认514 (当使用TCP或UDP时必填) 74 | seaslog.remote_port = 514 75 | 76 | ;接收端口的超时时间 默认1秒 77 | seaslog.remote_timeout = 1 78 | 79 | ;过滤日志中的回车和换行符 (默认为0) 80 | seaslog.trim_wrap = 0 81 | 82 | ;是否开启抛出SeasLog自身异常 1开启(默认) 0否 83 | seaslog.throw_exception = 1 84 | 85 | ;是否开启忽略SeasLog自身warning 1开启(默认) 0否 86 | seaslog.ignore_warning = 1 -------------------------------------------------------------------------------- /php/ext/so/molten.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bossaiguo/docker-php/1c34c072c35c4695ae1e083b3e1b968dc2d4b4f5/php/ext/so/molten.so -------------------------------------------------------------------------------- /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 (usually C:\windows) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it is 82 | ; much more verbose when it comes to errors. We recommend using the 83 | ; development version only in development environments, as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ; This is the php.ini-development INI file. 87 | 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; Quick Reference ; 90 | ;;;;;;;;;;;;;;;;;;; 91 | ; The following are all the settings which are different in either the production 92 | ; or development versions of the INIs with respect to PHP's default behavior. 93 | ; Please see the actual settings later in the document for more details as to why 94 | ; we recommend these changes in PHP's behavior. 95 | 96 | ; display_errors 97 | ; Default Value: On 98 | ; Development Value: On 99 | ; Production Value: Off 100 | 101 | ; display_startup_errors 102 | ; Default Value: Off 103 | ; Development Value: On 104 | ; Production Value: Off 105 | 106 | ; error_reporting 107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 108 | ; Development Value: E_ALL 109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 110 | 111 | ; html_errors 112 | ; Default Value: On 113 | ; Development Value: On 114 | ; Production value: On 115 | 116 | ; log_errors 117 | ; Default Value: Off 118 | ; Development Value: On 119 | ; Production Value: On 120 | 121 | ; max_input_time 122 | ; Default Value: -1 (Unlimited) 123 | ; Development Value: 60 (60 seconds) 124 | ; Production Value: 60 (60 seconds) 125 | 126 | ; output_buffering 127 | ; Default Value: Off 128 | ; Development Value: 4096 129 | ; Production Value: 4096 130 | 131 | ; register_argc_argv 132 | ; Default Value: On 133 | ; Development Value: Off 134 | ; Production Value: Off 135 | 136 | ; request_order 137 | ; Default Value: None 138 | ; Development Value: "GP" 139 | ; Production Value: "GP" 140 | 141 | ; session.gc_divisor 142 | ; Default Value: 100 143 | ; Development Value: 1000 144 | ; Production Value: 1000 145 | 146 | ; session.sid_bits_per_character 147 | ; Default Value: 4 148 | ; Development Value: 5 149 | ; Production Value: 5 150 | 151 | ; short_open_tag 152 | ; Default Value: On 153 | ; Development Value: Off 154 | ; Production Value: Off 155 | 156 | ; variables_order 157 | ; Default Value: "EGPCS" 158 | ; Development Value: "GPCS" 159 | ; Production Value: "GPCS" 160 | 161 | ;;;;;;;;;;;;;;;;;;;; 162 | ; php.ini Options ; 163 | ;;;;;;;;;;;;;;;;;;;; 164 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 165 | ;user_ini.filename = ".user.ini" 166 | 167 | ; To disable this feature set this option to an empty value 168 | ;user_ini.filename = 169 | 170 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 171 | ;user_ini.cache_ttl = 300 172 | 173 | ;;;;;;;;;;;;;;;;;;;; 174 | ; Language Options ; 175 | ;;;;;;;;;;;;;;;;;;;; 176 | 177 | ; Enable the PHP scripting language engine under Apache. 178 | ; http://php.net/engine 179 | engine = On 180 | 181 | ; This directive determines whether or not PHP will recognize code between 182 | ; tags as PHP source which should be processed as such. It is 183 | ; generally recommended that should be used and that this feature 184 | ; should be disabled, as enabling it may result in issues when generating XML 185 | ; documents, however this remains supported for backward compatibility reasons. 186 | ; Note that this directive does not control the would work. 318 | ; http://php.net/syntax-highlighting 319 | ;highlight.string = #DD0000 320 | ;highlight.comment = #FF9900 321 | ;highlight.keyword = #007700 322 | ;highlight.default = #0000BB 323 | ;highlight.html = #000000 324 | 325 | ; If enabled, the request will be allowed to complete even if the user aborts 326 | ; the request. Consider enabling it if executing long requests, which may end up 327 | ; being interrupted by the user or a browser timing out. PHP's default behavior 328 | ; is to disable this feature. 329 | ; http://php.net/ignore-user-abort 330 | ;ignore_user_abort = On 331 | 332 | ; Determines the size of the realpath cache to be used by PHP. This value should 333 | ; be increased on systems where PHP opens many files to reflect the quantity of 334 | ; the file operations performed. 335 | ; http://php.net/realpath-cache-size 336 | ;realpath_cache_size = 4096k 337 | 338 | ; Duration of time, in seconds for which to cache realpath information for a given 339 | ; file or directory. For systems with rarely changing files, consider increasing this 340 | ; value. 341 | ; http://php.net/realpath-cache-ttl 342 | ;realpath_cache_ttl = 120 343 | 344 | ; Enables or disables the circular reference collector. 345 | ; http://php.net/zend.enable-gc 346 | zend.enable_gc = On 347 | 348 | ; If enabled, scripts may be written in encodings that are incompatible with 349 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such 350 | ; encodings. To use this feature, mbstring extension must be enabled. 351 | ; Default: Off 352 | ;zend.multibyte = Off 353 | 354 | ; Allows to set the default encoding for the scripts. This value will be used 355 | ; unless "declare(encoding=...)" directive appears at the top of the script. 356 | ; Only affects if zend.multibyte is set. 357 | ; Default: "" 358 | ;zend.script_encoding = 359 | 360 | ;;;;;;;;;;;;;;;;; 361 | ; Miscellaneous ; 362 | ;;;;;;;;;;;;;;;;; 363 | 364 | ; Decides whether PHP may expose the fact that it is installed on the server 365 | ; (e.g. by adding its signature to the Web server header). It is no security 366 | ; threat in any way, but it makes it possible to determine whether you use PHP 367 | ; on your server or not. 368 | ; http://php.net/expose-php 369 | expose_php = On 370 | 371 | ;;;;;;;;;;;;;;;;;;; 372 | ; Resource Limits ; 373 | ;;;;;;;;;;;;;;;;;;; 374 | 375 | ; Maximum execution time of each script, in seconds 376 | ; http://php.net/max-execution-time 377 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 378 | max_execution_time = 60 379 | 380 | ; Maximum amount of time each script may spend parsing request data. It's a good 381 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 382 | ; long running scripts. 383 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 384 | ; Default Value: -1 (Unlimited) 385 | ; Development Value: 60 (60 seconds) 386 | ; Production Value: 60 (60 seconds) 387 | ; http://php.net/max-input-time 388 | max_input_time = 60 389 | 390 | ; Maximum input variable nesting level 391 | ; http://php.net/max-input-nesting-level 392 | ;max_input_nesting_level = 64 393 | 394 | ; How many GET/POST/COOKIE input variables may be accepted 395 | ;max_input_vars = 1000 396 | 397 | ; Maximum amount of memory a script may consume (128MB) 398 | ; http://php.net/memory-limit 399 | memory_limit = 256M 400 | 401 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 402 | ; Error handling and logging ; 403 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 404 | 405 | ; This directive informs PHP of which errors, warnings and notices you would like 406 | ; it to take action for. The recommended way of setting values for this 407 | ; directive is through the use of the error level constants and bitwise 408 | ; operators. The error level constants are below here for convenience as well as 409 | ; some common settings and their meanings. 410 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 411 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 412 | ; recommended coding standards in PHP. For performance reasons, this is the 413 | ; recommend error reporting setting. Your production server shouldn't be wasting 414 | ; resources complaining about best practices and coding standards. That's what 415 | ; development servers and development settings are for. 416 | ; Note: The php.ini-development file has this setting as E_ALL. This 417 | ; means it pretty much reports everything which is exactly what you want during 418 | ; development and early testing. 419 | ; 420 | ; Error Level Constants: 421 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) 422 | ; E_ERROR - fatal run-time errors 423 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 424 | ; E_WARNING - run-time warnings (non-fatal errors) 425 | ; E_PARSE - compile-time parse errors 426 | ; E_NOTICE - run-time notices (these are warnings which often result 427 | ; from a bug in your code, but it's possible that it was 428 | ; intentional (e.g., using an uninitialized variable and 429 | ; relying on the fact it is automatically initialized to an 430 | ; empty string) 431 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 432 | ; to your code which will ensure the best interoperability 433 | ; and forward compatibility of your code 434 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 435 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 436 | ; initial startup 437 | ; E_COMPILE_ERROR - fatal compile-time errors 438 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 439 | ; E_USER_ERROR - user-generated error message 440 | ; E_USER_WARNING - user-generated warning message 441 | ; E_USER_NOTICE - user-generated notice message 442 | ; E_DEPRECATED - warn about code that will not work in future versions 443 | ; of PHP 444 | ; E_USER_DEPRECATED - user-generated deprecation warnings 445 | ; 446 | ; Common Values: 447 | ; E_ALL (Show all errors, warnings and notices including coding standards.) 448 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices) 449 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) 450 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 451 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED 452 | ; Development Value: E_ALL 453 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT 454 | ; http://php.net/error-reporting 455 | error_reporting = E_ALL 456 | 457 | ; This directive controls whether or not and where PHP will output errors, 458 | ; notices and warnings too. Error output is very useful during development, but 459 | ; it could be very dangerous in production environments. Depending on the code 460 | ; which is triggering the error, sensitive information could potentially leak 461 | ; out of your application such as database usernames and passwords or worse. 462 | ; For production environments, we recommend logging errors rather than 463 | ; sending them to STDOUT. 464 | ; Possible Values: 465 | ; Off = Do not display any errors 466 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 467 | ; On or stdout = Display errors to STDOUT 468 | ; Default Value: On 469 | ; Development Value: On 470 | ; Production Value: Off 471 | ; http://php.net/display-errors 472 | display_errors = On 473 | 474 | ; The display of errors which occur during PHP's startup sequence are handled 475 | ; separately from display_errors. PHP's default behavior is to suppress those 476 | ; errors from clients. Turning the display of startup errors on can be useful in 477 | ; debugging configuration problems. We strongly recommend you 478 | ; set this to 'off' for production servers. 479 | ; Default Value: Off 480 | ; Development Value: On 481 | ; Production Value: Off 482 | ; http://php.net/display-startup-errors 483 | display_startup_errors = On 484 | 485 | ; Besides displaying errors, PHP can also log errors to locations such as a 486 | ; server-specific log, STDERR, or a location specified by the error_log 487 | ; directive found below. While errors should not be displayed on productions 488 | ; servers they should still be monitored and logging is a great way to do that. 489 | ; Default Value: Off 490 | ; Development Value: On 491 | ; Production Value: On 492 | ; http://php.net/log-errors 493 | log_errors = On 494 | 495 | ; Set maximum length of log_errors. In error_log information about the source is 496 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 497 | ; http://php.net/log-errors-max-len 498 | log_errors_max_len = 1024 499 | 500 | ; Do not log repeated messages. Repeated errors must occur in same file on same 501 | ; line unless ignore_repeated_source is set true. 502 | ; http://php.net/ignore-repeated-errors 503 | ignore_repeated_errors = Off 504 | 505 | ; Ignore source of message when ignoring repeated messages. When this setting 506 | ; is On you will not log errors with repeated messages from different files or 507 | ; source lines. 508 | ; http://php.net/ignore-repeated-source 509 | ignore_repeated_source = Off 510 | 511 | ; If this parameter is set to Off, then memory leaks will not be shown (on 512 | ; stdout or in the log). This is only effective in a debug compile, and if 513 | ; error reporting includes E_WARNING in the allowed list 514 | ; http://php.net/report-memleaks 515 | report_memleaks = On 516 | 517 | ; This setting is on by default. 518 | ;report_zend_debug = 0 519 | 520 | ; Store the last error/warning message in $php_errormsg (boolean). 521 | ; This directive is DEPRECATED. 522 | ; Default Value: Off 523 | ; Development Value: Off 524 | ; Production Value: Off 525 | ; http://php.net/track-errors 526 | ;track_errors = Off 527 | 528 | ; Turn off normal error reporting and emit XML-RPC error XML 529 | ; http://php.net/xmlrpc-errors 530 | ;xmlrpc_errors = 0 531 | 532 | ; An XML-RPC faultCode 533 | ;xmlrpc_error_number = 0 534 | 535 | ; When PHP displays or logs an error, it has the capability of formatting the 536 | ; error message as HTML for easier reading. This directive controls whether 537 | ; the error message is formatted as HTML or not. 538 | ; Note: This directive is hardcoded to Off for the CLI SAPI 539 | ; Default Value: On 540 | ; Development Value: On 541 | ; Production value: On 542 | ; http://php.net/html-errors 543 | html_errors = On 544 | 545 | ; If html_errors is set to On *and* docref_root is not empty, then PHP 546 | ; produces clickable error messages that direct to a page describing the error 547 | ; or function causing the error in detail. 548 | ; You can download a copy of the PHP manual from http://php.net/docs 549 | ; and change docref_root to the base URL of your local copy including the 550 | ; leading '/'. You must also specify the file extension being used including 551 | ; the dot. PHP's default behavior is to leave these settings empty, in which 552 | ; case no links to documentation are generated. 553 | ; Note: Never use this feature for production boxes. 554 | ; http://php.net/docref-root 555 | ; Examples 556 | ;docref_root = "/phpmanual/" 557 | 558 | ; http://php.net/docref-ext 559 | ;docref_ext = .html 560 | 561 | ; String to output before an error message. PHP's default behavior is to leave 562 | ; this setting blank. 563 | ; http://php.net/error-prepend-string 564 | ; Example: 565 | ;error_prepend_string = "" 566 | 567 | ; String to output after an error message. PHP's default behavior is to leave 568 | ; this setting blank. 569 | ; http://php.net/error-append-string 570 | ; Example: 571 | ;error_append_string = "" 572 | 573 | ; Log errors to specified file. PHP's default behavior is to leave this value 574 | ; empty. 575 | ; http://php.net/error-log 576 | ; Example: 577 | ;error_log = php_errors.log 578 | ; Log errors to syslog (Event Log on Windows). 579 | ;error_log = syslog 580 | 581 | ; The syslog ident is a string which is prepended to every message logged 582 | ; to syslog. Only used when error_log is set to syslog. 583 | ;syslog.ident = php 584 | 585 | ; The syslog facility is used to specify what type of program is logging 586 | ; the message. Only used when error_log is set to syslog. 587 | ;syslog.facility = user 588 | 589 | ; Set this to disable filtering control characters (the default). 590 | ; Some loggers only accept NVT-ASCII, others accept anything that's not 591 | ; control characters. If your logger accepts everything, then no filtering 592 | ; is needed at all. 593 | ; Allowed values are: 594 | ; ascii (only base ASCII characters) 595 | ; no_ctrl (all characters except control characters) 596 | ; all (all characters) 597 | ;syslog.filter = ascii 598 | 599 | ;windows.show_crt_warning 600 | ; Default value: 0 601 | ; Development value: 0 602 | ; Production value: 0 603 | 604 | ;;;;;;;;;;;;;;;;; 605 | ; Data Handling ; 606 | ;;;;;;;;;;;;;;;;; 607 | 608 | ; The separator used in PHP generated URLs to separate arguments. 609 | ; PHP's default setting is "&". 610 | ; http://php.net/arg-separator.output 611 | ; Example: 612 | ;arg_separator.output = "&" 613 | 614 | ; List of separator(s) used by PHP to parse input URLs into variables. 615 | ; PHP's default setting is "&". 616 | ; NOTE: Every character in this directive is considered as separator! 617 | ; http://php.net/arg-separator.input 618 | ; Example: 619 | ;arg_separator.input = ";&" 620 | 621 | ; This directive determines which super global arrays are registered when PHP 622 | ; starts up. G,P,C,E & S are abbreviations for the following respective super 623 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty 624 | ; paid for the registration of these arrays and because ENV is not as commonly 625 | ; used as the others, ENV is not recommended on productions servers. You 626 | ; can still get access to the environment variables through getenv() should you 627 | ; need to. 628 | ; Default Value: "EGPCS" 629 | ; Development Value: "GPCS" 630 | ; Production Value: "GPCS"; 631 | ; http://php.net/variables-order 632 | variables_order = "GPCS" 633 | 634 | ; This directive determines which super global data (G,P & C) should be 635 | ; registered into the super global array REQUEST. If so, it also determines 636 | ; the order in which that data is registered. The values for this directive 637 | ; are specified in the same manner as the variables_order directive, 638 | ; EXCEPT one. Leaving this value empty will cause PHP to use the value set 639 | ; in the variables_order directive. It does not mean it will leave the super 640 | ; globals array REQUEST empty. 641 | ; Default Value: None 642 | ; Development Value: "GP" 643 | ; Production Value: "GP" 644 | ; http://php.net/request-order 645 | request_order = "GP" 646 | 647 | ; This directive determines whether PHP registers $argv & $argc each time it 648 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 649 | ; is invoked. $argc contains an integer representing the number of arguments 650 | ; that were passed when the script was invoked. These arrays are extremely 651 | ; useful when running scripts from the command line. When this directive is 652 | ; enabled, registering these variables consumes CPU cycles and memory each time 653 | ; a script is executed. For performance reasons, this feature should be disabled 654 | ; on production servers. 655 | ; Note: This directive is hardcoded to On for the CLI SAPI 656 | ; Default Value: On 657 | ; Development Value: Off 658 | ; Production Value: Off 659 | ; http://php.net/register-argc-argv 660 | register_argc_argv = Off 661 | 662 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're 663 | ; first used (Just In Time) instead of when the script starts. If these 664 | ; variables are not used within a script, having this directive on will result 665 | ; in a performance gain. The PHP directive register_argc_argv must be disabled 666 | ; for this directive to have any effect. 667 | ; http://php.net/auto-globals-jit 668 | auto_globals_jit = On 669 | 670 | ; Whether PHP will read the POST data. 671 | ; This option is enabled by default. 672 | ; Most likely, you won't want to disable this option globally. It causes $_POST 673 | ; and $_FILES to always be empty; the only way you will be able to read the 674 | ; POST data will be through the php://input stream wrapper. This can be useful 675 | ; to proxy requests or to process the POST data in a memory efficient fashion. 676 | ; http://php.net/enable-post-data-reading 677 | ;enable_post_data_reading = Off 678 | 679 | ; Maximum size of POST data that PHP will accept. 680 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading 681 | ; is disabled through enable_post_data_reading. 682 | ; http://php.net/post-max-size 683 | post_max_size = 20M 684 | 685 | ; Automatically add files before PHP document. 686 | ; http://php.net/auto-prepend-file 687 | auto_prepend_file = 688 | 689 | ; Automatically add files after PHP document. 690 | ; http://php.net/auto-append-file 691 | auto_append_file = 692 | 693 | ; By default, PHP will output a media type using the Content-Type header. To 694 | ; disable this, simply set it to be empty. 695 | ; 696 | ; PHP's built-in default media type is set to text/html. 697 | ; http://php.net/default-mimetype 698 | default_mimetype = "text/html" 699 | 700 | ; PHP's default character set is set to UTF-8. 701 | ; http://php.net/default-charset 702 | default_charset = "UTF-8" 703 | 704 | ; PHP internal character encoding is set to empty. 705 | ; If empty, default_charset is used. 706 | ; http://php.net/internal-encoding 707 | ;internal_encoding = 708 | 709 | ; PHP input character encoding is set to empty. 710 | ; If empty, default_charset is used. 711 | ; http://php.net/input-encoding 712 | ;input_encoding = 713 | 714 | ; PHP output character encoding is set to empty. 715 | ; If empty, default_charset is used. 716 | ; See also output_buffer. 717 | ; http://php.net/output-encoding 718 | ;output_encoding = 719 | 720 | ;;;;;;;;;;;;;;;;;;;;;;;;; 721 | ; Paths and Directories ; 722 | ;;;;;;;;;;;;;;;;;;;;;;;;; 723 | 724 | ; UNIX: "/path1:/path2" 725 | ;include_path = ".:/php/includes" 726 | ; 727 | ; Windows: "\path1;\path2" 728 | ;include_path = ".;c:\php\includes" 729 | ; 730 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 731 | ; http://php.net/include-path 732 | 733 | ; The root of the PHP pages, used only if nonempty. 734 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 735 | ; if you are running php as a CGI under any web server (other than IIS) 736 | ; see documentation for security issues. The alternate is to use the 737 | ; cgi.force_redirect configuration below 738 | ; http://php.net/doc-root 739 | doc_root = 740 | 741 | ; The directory under which PHP opens the script using /~username used only 742 | ; if nonempty. 743 | ; http://php.net/user-dir 744 | user_dir = 745 | 746 | ; Directory in which the loadable extensions (modules) reside. 747 | ; http://php.net/extension-dir 748 | ;extension_dir = "./" 749 | ; On windows: 750 | ;extension_dir = "ext" 751 | 752 | ; Directory where the temporary files should be placed. 753 | ; Defaults to the system default (see sys_get_temp_dir) 754 | ;sys_temp_dir = "/tmp" 755 | 756 | ; Whether or not to enable the dl() function. The dl() function does NOT work 757 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 758 | ; disabled on them. 759 | ; http://php.net/enable-dl 760 | enable_dl = Off 761 | 762 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 763 | ; most web servers. Left undefined, PHP turns this on by default. You can 764 | ; turn it off here AT YOUR OWN RISK 765 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 766 | ; http://php.net/cgi.force-redirect 767 | ;cgi.force_redirect = 1 768 | 769 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 770 | ; every request. PHP's default behavior is to disable this feature. 771 | ;cgi.nph = 1 772 | 773 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 774 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 775 | ; will look for to know it is OK to continue execution. Setting this variable MAY 776 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 777 | ; http://php.net/cgi.redirect-status-env 778 | ;cgi.redirect_status_env = 779 | 780 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 781 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 782 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 783 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 784 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 785 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 786 | ; http://php.net/cgi.fix-pathinfo 787 | ;cgi.fix_pathinfo=1 788 | 789 | ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside 790 | ; of the web tree and people will not be able to circumvent .htaccess security. 791 | ;cgi.discard_path=1 792 | 793 | ; FastCGI under IIS supports the ability to impersonate 794 | ; security tokens of the calling client. This allows IIS to define the 795 | ; security context that the request runs under. mod_fastcgi under Apache 796 | ; does not currently support this feature (03/17/2002) 797 | ; Set to 1 if running under IIS. Default is zero. 798 | ; http://php.net/fastcgi.impersonate 799 | ;fastcgi.impersonate = 1 800 | 801 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 802 | ; this feature. 803 | ;fastcgi.logging = 0 804 | 805 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 806 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that 807 | ; is supported by Apache. When this option is set to 1, PHP will send 808 | ; RFC2616 compliant header. 809 | ; Default is zero. 810 | ; http://php.net/cgi.rfc2616-headers 811 | ;cgi.rfc2616_headers = 0 812 | 813 | ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! 814 | ; (shebang) at the top of the running script. This line might be needed if the 815 | ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI 816 | ; mode skips this line and ignores its content if this directive is turned on. 817 | ; http://php.net/cgi.check-shebang-line 818 | ;cgi.check_shebang_line=1 819 | 820 | ;;;;;;;;;;;;;;;; 821 | ; File Uploads ; 822 | ;;;;;;;;;;;;;;;; 823 | 824 | ; Whether to allow HTTP file uploads. 825 | ; http://php.net/file-uploads 826 | file_uploads = On 827 | 828 | ; Temporary directory for HTTP uploaded files (will use system default if not 829 | ; specified). 830 | ; http://php.net/upload-tmp-dir 831 | upload_tmp_dir = "/tmp" 832 | 833 | ; Maximum allowed size for uploaded files. 834 | ; http://php.net/upload-max-filesize 835 | upload_max_filesize = 20M 836 | 837 | ; Maximum number of files that can be uploaded via a single request 838 | max_file_uploads = 20 839 | 840 | ;;;;;;;;;;;;;;;;;; 841 | ; Fopen wrappers ; 842 | ;;;;;;;;;;;;;;;;;; 843 | 844 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 845 | ; http://php.net/allow-url-fopen 846 | allow_url_fopen = On 847 | 848 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 849 | ; http://php.net/allow-url-include 850 | allow_url_include = Off 851 | 852 | ; Define the anonymous ftp password (your email address). PHP's default setting 853 | ; for this is empty. 854 | ; http://php.net/from 855 | ;from="john@doe.com" 856 | 857 | ; Define the User-Agent string. PHP's default setting for this is empty. 858 | ; http://php.net/user-agent 859 | ;user_agent="PHP" 860 | 861 | ; Default timeout for socket based streams (seconds) 862 | ; http://php.net/default-socket-timeout 863 | default_socket_timeout = 60 864 | 865 | ; If your scripts have to deal with files from Macintosh systems, 866 | ; or you are running on a Mac and need to deal with files from 867 | ; unix or win32 systems, setting this flag will cause PHP to 868 | ; automatically detect the EOL character in those files so that 869 | ; fgets() and file() will work regardless of the source of the file. 870 | ; http://php.net/auto-detect-line-endings 871 | ;auto_detect_line_endings = Off 872 | 873 | ;;;;;;;;;;;;;;;;;;;;;; 874 | ; Dynamic Extensions ; 875 | ;;;;;;;;;;;;;;;;;;;;;; 876 | 877 | ; If you wish to have an extension loaded automatically, use the following 878 | ; syntax: 879 | ; 880 | ; extension=modulename 881 | ; 882 | ; For example: 883 | ; 884 | ; extension=mysqli 885 | ; 886 | ; When the extension library to load is not located in the default extension 887 | ; directory, You may specify an absolute path to the library file: 888 | ; 889 | ; extension=/path/to/extension/mysqli.so 890 | ; 891 | ; Note : The syntax used in previous PHP versions ('extension=.so' and 892 | ; 'extension='php_.dll') is supported for legacy reasons and may be 893 | ; deprecated in a future PHP major version. So, when it is possible, please 894 | ; move to the new ('extension=) syntax. 895 | ; 896 | ; Notes for Windows environments : 897 | ; 898 | ; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) 899 | ; extension folders as well as the separate PECL DLL download (PHP 5+). 900 | ; Be sure to appropriately set the extension_dir directive. 901 | ; 902 | ;extension=bz2 903 | ;extension=curl 904 | ;extension=fileinfo 905 | ;extension=gd2 906 | ;extension=gettext 907 | ;extension=gmp 908 | ;extension=intl 909 | ;extension=imap 910 | ;extension=interbase 911 | ;extension=ldap 912 | ;extension=mbstring 913 | ;extension=exif ; Must be after mbstring as it depends on it 914 | ;extension=mysqli 915 | ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client 916 | ;extension=odbc 917 | ;extension=openssl 918 | ;extension=pdo_firebird 919 | ;extension=pdo_mysql 920 | ;extension=pdo_oci 921 | ;extension=pdo_odbc 922 | ;extension=pdo_pgsql 923 | ;extension=pdo_sqlite 924 | ;extension=pgsql 925 | ;extension=shmop 926 | 927 | ; The MIBS data available in the PHP distribution must be installed. 928 | ; See http://www.php.net/manual/en/snmp.installation.php 929 | ;extension=snmp 930 | 931 | ;extension=soap 932 | ;extension=sockets 933 | ;extension=sodium 934 | ;extension=sqlite3 935 | ;extension=tidy 936 | ;extension=xmlrpc 937 | ;extension=xsl 938 | 939 | ;;;;;;;;;;;;;;;;;;; 940 | ; Module Settings ; 941 | ;;;;;;;;;;;;;;;;;;; 942 | 943 | [CLI Server] 944 | ; Whether the CLI web server uses ANSI color coding in its terminal output. 945 | cli_server.color = On 946 | 947 | [Date] 948 | ; Defines the default timezone used by the date functions 949 | ; http://php.net/date.timezone 950 | date.timezone = "Asia/Shanghai" 951 | 952 | ; http://php.net/date.default-latitude 953 | ;date.default_latitude = 31.7667 954 | 955 | ; http://php.net/date.default-longitude 956 | ;date.default_longitude = 35.2333 957 | 958 | ; http://php.net/date.sunrise-zenith 959 | ;date.sunrise_zenith = 90.583333 960 | 961 | ; http://php.net/date.sunset-zenith 962 | ;date.sunset_zenith = 90.583333 963 | 964 | [filter] 965 | ; http://php.net/filter.default 966 | ;filter.default = unsafe_raw 967 | 968 | ; http://php.net/filter.default-flags 969 | ;filter.default_flags = 970 | 971 | [iconv] 972 | ; Use of this INI entry is deprecated, use global input_encoding instead. 973 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used. 974 | ; The precedence is: default_charset < input_encoding < iconv.input_encoding 975 | ;iconv.input_encoding = 976 | 977 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 978 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 979 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 980 | ;iconv.internal_encoding = 981 | 982 | ; Use of this INI entry is deprecated, use global output_encoding instead. 983 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used. 984 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding 985 | ; To use an output encoding conversion, iconv's output handler must be set 986 | ; otherwise output encoding conversion cannot be performed. 987 | ;iconv.output_encoding = 988 | 989 | [imap] 990 | ; rsh/ssh logins are disabled by default. Use this INI entry if you want to 991 | ; enable them. Note that the IMAP library does not filter mailbox names before 992 | ; passing them to rsh/ssh command, thus passing untrusted data to this function 993 | ; with rsh/ssh enabled is insecure. 994 | ;imap.enable_insecure_rsh=0 995 | 996 | [intl] 997 | ;intl.default_locale = 998 | ; This directive allows you to produce PHP errors when some error 999 | ; happens within intl functions. The value is the level of the error produced. 1000 | ; Default is 0, which does not produce any errors. 1001 | ;intl.error_level = E_WARNING 1002 | ;intl.use_exceptions = 0 1003 | 1004 | [sqlite3] 1005 | ;sqlite3.extension_dir = 1006 | 1007 | [Pcre] 1008 | ; PCRE library backtracking limit. 1009 | ; http://php.net/pcre.backtrack-limit 1010 | ;pcre.backtrack_limit=100000 1011 | 1012 | ; PCRE library recursion limit. 1013 | ; Please note that if you set this value to a high number you may consume all 1014 | ; the available process stack and eventually crash PHP (due to reaching the 1015 | ; stack size limit imposed by the Operating System). 1016 | ; http://php.net/pcre.recursion-limit 1017 | ;pcre.recursion_limit=100000 1018 | 1019 | ; Enables or disables JIT compilation of patterns. This requires the PCRE 1020 | ; library to be compiled with JIT support. 1021 | ;pcre.jit=1 1022 | 1023 | [Pdo] 1024 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1025 | ; http://php.net/pdo-odbc.connection-pooling 1026 | ;pdo_odbc.connection_pooling=strict 1027 | 1028 | ;pdo_odbc.db2_instance_name 1029 | 1030 | [Pdo_mysql] 1031 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1032 | ; MySQL defaults. 1033 | pdo_mysql.default_socket= 1034 | 1035 | [Phar] 1036 | ; http://php.net/phar.readonly 1037 | ;phar.readonly = On 1038 | 1039 | ; http://php.net/phar.require-hash 1040 | ;phar.require_hash = On 1041 | 1042 | ;phar.cache_list = 1043 | 1044 | [mail function] 1045 | ; For Win32 only. 1046 | ; http://php.net/smtp 1047 | SMTP = localhost 1048 | ; http://php.net/smtp-port 1049 | smtp_port = 25 1050 | 1051 | ; For Win32 only. 1052 | ; http://php.net/sendmail-from 1053 | ;sendmail_from = me@example.com 1054 | 1055 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1056 | ; http://php.net/sendmail-path 1057 | ;sendmail_path = 1058 | 1059 | ; Force the addition of the specified parameters to be passed as extra parameters 1060 | ; to the sendmail binary. These parameters will always replace the value of 1061 | ; the 5th parameter to mail(). 1062 | ;mail.force_extra_parameters = 1063 | 1064 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1065 | mail.add_x_header = Off 1066 | 1067 | ; The path to a log file that will log all mail() calls. Log entries include 1068 | ; the full path of the script, line number, To address and headers. 1069 | ;mail.log = 1070 | ; Log mail to syslog (Event Log on Windows). 1071 | ;mail.log = syslog 1072 | 1073 | [ODBC] 1074 | ; http://php.net/odbc.default-db 1075 | ;odbc.default_db = Not yet implemented 1076 | 1077 | ; http://php.net/odbc.default-user 1078 | ;odbc.default_user = Not yet implemented 1079 | 1080 | ; http://php.net/odbc.default-pw 1081 | ;odbc.default_pw = Not yet implemented 1082 | 1083 | ; Controls the ODBC cursor model. 1084 | ; Default: SQL_CURSOR_STATIC (default). 1085 | ;odbc.default_cursortype 1086 | 1087 | ; Allow or prevent persistent links. 1088 | ; http://php.net/odbc.allow-persistent 1089 | odbc.allow_persistent = On 1090 | 1091 | ; Check that a connection is still valid before reuse. 1092 | ; http://php.net/odbc.check-persistent 1093 | odbc.check_persistent = On 1094 | 1095 | ; Maximum number of persistent links. -1 means no limit. 1096 | ; http://php.net/odbc.max-persistent 1097 | odbc.max_persistent = -1 1098 | 1099 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1100 | ; http://php.net/odbc.max-links 1101 | odbc.max_links = -1 1102 | 1103 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1104 | ; passthru. 1105 | ; http://php.net/odbc.defaultlrl 1106 | odbc.defaultlrl = 4096 1107 | 1108 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1109 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1110 | ; of odbc.defaultlrl and odbc.defaultbinmode 1111 | ; http://php.net/odbc.defaultbinmode 1112 | odbc.defaultbinmode = 1 1113 | 1114 | [Interbase] 1115 | ; Allow or prevent persistent links. 1116 | ibase.allow_persistent = 1 1117 | 1118 | ; Maximum number of persistent links. -1 means no limit. 1119 | ibase.max_persistent = -1 1120 | 1121 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1122 | ibase.max_links = -1 1123 | 1124 | ; Default database name for ibase_connect(). 1125 | ;ibase.default_db = 1126 | 1127 | ; Default username for ibase_connect(). 1128 | ;ibase.default_user = 1129 | 1130 | ; Default password for ibase_connect(). 1131 | ;ibase.default_password = 1132 | 1133 | ; Default charset for ibase_connect(). 1134 | ;ibase.default_charset = 1135 | 1136 | ; Default timestamp format. 1137 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1138 | 1139 | ; Default date format. 1140 | ibase.dateformat = "%Y-%m-%d" 1141 | 1142 | ; Default time format. 1143 | ibase.timeformat = "%H:%M:%S" 1144 | 1145 | [MySQLi] 1146 | 1147 | ; Maximum number of persistent links. -1 means no limit. 1148 | ; http://php.net/mysqli.max-persistent 1149 | mysqli.max_persistent = -1 1150 | 1151 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1152 | ; http://php.net/mysqli.allow_local_infile 1153 | ;mysqli.allow_local_infile = On 1154 | 1155 | ; Allow or prevent persistent links. 1156 | ; http://php.net/mysqli.allow-persistent 1157 | mysqli.allow_persistent = On 1158 | 1159 | ; Maximum number of links. -1 means no limit. 1160 | ; http://php.net/mysqli.max-links 1161 | mysqli.max_links = -1 1162 | 1163 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1164 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1165 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1166 | ; at MYSQL_PORT. 1167 | ; http://php.net/mysqli.default-port 1168 | mysqli.default_port = 3306 1169 | 1170 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1171 | ; MySQL defaults. 1172 | ; http://php.net/mysqli.default-socket 1173 | mysqli.default_socket = 1174 | 1175 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1176 | ; http://php.net/mysqli.default-host 1177 | mysqli.default_host = 1178 | 1179 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1180 | ; http://php.net/mysqli.default-user 1181 | mysqli.default_user = 1182 | 1183 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1184 | ; Note that this is generally a *bad* idea to store passwords in this file. 1185 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1186 | ; and reveal this password! And of course, any users with read access to this 1187 | ; file will be able to reveal the password as well. 1188 | ; http://php.net/mysqli.default-pw 1189 | mysqli.default_pw = 1190 | 1191 | ; Allow or prevent reconnect 1192 | mysqli.reconnect = Off 1193 | 1194 | [mysqlnd] 1195 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1196 | ; used to tune and monitor MySQL operations. 1197 | mysqlnd.collect_statistics = On 1198 | 1199 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1200 | ; used to tune and monitor MySQL operations. 1201 | mysqlnd.collect_memory_statistics = On 1202 | 1203 | ; Records communication from all extensions using mysqlnd to the specified log 1204 | ; file. 1205 | ; http://php.net/mysqlnd.debug 1206 | ;mysqlnd.debug = 1207 | 1208 | ; Defines which queries will be logged. 1209 | ;mysqlnd.log_mask = 0 1210 | 1211 | ; Default size of the mysqlnd memory pool, which is used by result sets. 1212 | ;mysqlnd.mempool_default_size = 16000 1213 | 1214 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1215 | ;mysqlnd.net_cmd_buffer_size = 2048 1216 | 1217 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1218 | ; bytes. 1219 | ;mysqlnd.net_read_buffer_size = 32768 1220 | 1221 | ; Timeout for network requests in seconds. 1222 | ;mysqlnd.net_read_timeout = 31536000 1223 | 1224 | ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA 1225 | ; key. 1226 | ;mysqlnd.sha256_server_public_key = 1227 | 1228 | [OCI8] 1229 | 1230 | ; Connection: Enables privileged connections using external 1231 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1232 | ; http://php.net/oci8.privileged-connect 1233 | ;oci8.privileged_connect = Off 1234 | 1235 | ; Connection: The maximum number of persistent OCI8 connections per 1236 | ; process. Using -1 means no limit. 1237 | ; http://php.net/oci8.max-persistent 1238 | ;oci8.max_persistent = -1 1239 | 1240 | ; Connection: The maximum number of seconds a process is allowed to 1241 | ; maintain an idle persistent connection. Using -1 means idle 1242 | ; persistent connections will be maintained forever. 1243 | ; http://php.net/oci8.persistent-timeout 1244 | ;oci8.persistent_timeout = -1 1245 | 1246 | ; Connection: The number of seconds that must pass before issuing a 1247 | ; ping during oci_pconnect() to check the connection validity. When 1248 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1249 | ; pings completely. 1250 | ; http://php.net/oci8.ping-interval 1251 | ;oci8.ping_interval = 60 1252 | 1253 | ; Connection: Set this to a user chosen connection class to be used 1254 | ; for all pooled server requests with Oracle 11g Database Resident 1255 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1256 | ; the same string for all web servers running the same application, 1257 | ; the database pool must be configured, and the connection string must 1258 | ; specify to use a pooled server. 1259 | ;oci8.connection_class = 1260 | 1261 | ; High Availability: Using On lets PHP receive Fast Application 1262 | ; Notification (FAN) events generated when a database node fails. The 1263 | ; database must also be configured to post FAN events. 1264 | ;oci8.events = Off 1265 | 1266 | ; Tuning: This option enables statement caching, and specifies how 1267 | ; many statements to cache. Using 0 disables statement caching. 1268 | ; http://php.net/oci8.statement-cache-size 1269 | ;oci8.statement_cache_size = 20 1270 | 1271 | ; Tuning: Enables statement prefetching and sets the default number of 1272 | ; rows that will be fetched automatically after statement execution. 1273 | ; http://php.net/oci8.default-prefetch 1274 | ;oci8.default_prefetch = 100 1275 | 1276 | ; Compatibility. Using On means oci_close() will not close 1277 | ; oci_connect() and oci_new_connect() connections. 1278 | ; http://php.net/oci8.old-oci-close-semantics 1279 | ;oci8.old_oci_close_semantics = Off 1280 | 1281 | [PostgreSQL] 1282 | ; Allow or prevent persistent links. 1283 | ; http://php.net/pgsql.allow-persistent 1284 | pgsql.allow_persistent = On 1285 | 1286 | ; Detect broken persistent links always with pg_pconnect(). 1287 | ; Auto reset feature requires a little overheads. 1288 | ; http://php.net/pgsql.auto-reset-persistent 1289 | pgsql.auto_reset_persistent = Off 1290 | 1291 | ; Maximum number of persistent links. -1 means no limit. 1292 | ; http://php.net/pgsql.max-persistent 1293 | pgsql.max_persistent = -1 1294 | 1295 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1296 | ; http://php.net/pgsql.max-links 1297 | pgsql.max_links = -1 1298 | 1299 | ; Ignore PostgreSQL backends Notice message or not. 1300 | ; Notice message logging require a little overheads. 1301 | ; http://php.net/pgsql.ignore-notice 1302 | pgsql.ignore_notice = 0 1303 | 1304 | ; Log PostgreSQL backends Notice message or not. 1305 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1306 | ; http://php.net/pgsql.log-notice 1307 | pgsql.log_notice = 0 1308 | 1309 | [bcmath] 1310 | ; Number of decimal digits for all bcmath functions. 1311 | ; http://php.net/bcmath.scale 1312 | bcmath.scale = 0 1313 | 1314 | [browscap] 1315 | ; http://php.net/browscap 1316 | ;browscap = extra/browscap.ini 1317 | 1318 | [Session] 1319 | ; Handler used to store/retrieve data. 1320 | ; http://php.net/session.save-handler 1321 | session.save_handler = files 1322 | 1323 | ; Argument passed to save_handler. In the case of files, this is the path 1324 | ; where data files are stored. Note: Windows users have to change this 1325 | ; variable in order to use PHP's session functions. 1326 | ; 1327 | ; The path can be defined as: 1328 | ; 1329 | ; session.save_path = "N;/path" 1330 | ; 1331 | ; where N is an integer. Instead of storing all the session files in 1332 | ; /path, what this will do is use subdirectories N-levels deep, and 1333 | ; store the session data in those directories. This is useful if 1334 | ; your OS has problems with many files in one directory, and is 1335 | ; a more efficient layout for servers that handle many sessions. 1336 | ; 1337 | ; NOTE 1: PHP will not create this directory structure automatically. 1338 | ; You can use the script in the ext/session dir for that purpose. 1339 | ; NOTE 2: See the section on garbage collection below if you choose to 1340 | ; use subdirectories for session storage 1341 | ; 1342 | ; The file storage module creates files using mode 600 by default. 1343 | ; You can change that by using 1344 | ; 1345 | ; session.save_path = "N;MODE;/path" 1346 | ; 1347 | ; where MODE is the octal representation of the mode. Note that this 1348 | ; does not overwrite the process's umask. 1349 | ; http://php.net/session.save-path 1350 | session.save_path = "/tmp" 1351 | 1352 | ; Whether to use strict session mode. 1353 | ; Strict session mode does not accept an uninitialized session ID, and 1354 | ; regenerates the session ID if the browser sends an uninitialized session ID. 1355 | ; Strict mode protects applications from session fixation via a session adoption 1356 | ; vulnerability. It is disabled by default for maximum compatibility, but 1357 | ; enabling it is encouraged. 1358 | ; https://wiki.php.net/rfc/strict_sessions 1359 | session.use_strict_mode = 0 1360 | 1361 | ; Whether to use cookies. 1362 | ; http://php.net/session.use-cookies 1363 | session.use_cookies = 1 1364 | 1365 | ; http://php.net/session.cookie-secure 1366 | ;session.cookie_secure = 1367 | 1368 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1369 | ; the session id. We encourage this operation as it's very helpful in combating 1370 | ; session hijacking when not specifying and managing your own session id. It is 1371 | ; not the be-all and end-all of session hijacking defense, but it's a good start. 1372 | ; http://php.net/session.use-only-cookies 1373 | session.use_only_cookies = 1 1374 | 1375 | ; Name of the session (used as cookie name). 1376 | ; http://php.net/session.name 1377 | session.name = PHPSESSID 1378 | 1379 | ; Initialize session on request startup. 1380 | ; http://php.net/session.auto-start 1381 | session.auto_start = 0 1382 | 1383 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1384 | ; http://php.net/session.cookie-lifetime 1385 | session.cookie_lifetime = 0 1386 | 1387 | ; The path for which the cookie is valid. 1388 | ; http://php.net/session.cookie-path 1389 | session.cookie_path = / 1390 | 1391 | ; The domain for which the cookie is valid. 1392 | ; http://php.net/session.cookie-domain 1393 | session.cookie_domain = 1394 | 1395 | ; Whether or not to add the httpOnly flag to the cookie, which makes it 1396 | ; inaccessible to browser scripting languages such as JavaScript. 1397 | ; http://php.net/session.cookie-httponly 1398 | session.cookie_httponly = 1399 | 1400 | ; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) 1401 | ; Current valid values are "Lax" or "Strict" 1402 | ; https://tools.ietf.org/html/draft-west-first-party-cookies-07 1403 | session.cookie_samesite = 1404 | 1405 | ; Handler used to serialize data. php is the standard serializer of PHP. 1406 | ; http://php.net/session.serialize-handler 1407 | session.serialize_handler = php 1408 | 1409 | ; Defines the probability that the 'garbage collection' process is started 1410 | ; on every session initialization. The probability is calculated by using 1411 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1412 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1413 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1414 | ; the gc will run on any given request. 1415 | ; Default Value: 1 1416 | ; Development Value: 1 1417 | ; Production Value: 1 1418 | ; http://php.net/session.gc-probability 1419 | session.gc_probability = 1 1420 | 1421 | ; Defines the probability that the 'garbage collection' process is started on every 1422 | ; session initialization. The probability is calculated by using the following equation: 1423 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1424 | ; session.gc_divisor is the denominator in the equation. Setting this value to 100 1425 | ; when the session.gc_probability value is 1 will give you approximately a 1% chance 1426 | ; the gc will run on any given request. Increasing this value to 1000 will give you 1427 | ; a 0.1% chance the gc will run on any given request. For high volume production servers, 1428 | ; this is a more efficient approach. 1429 | ; Default Value: 100 1430 | ; Development Value: 1000 1431 | ; Production Value: 1000 1432 | ; http://php.net/session.gc-divisor 1433 | session.gc_divisor = 1000 1434 | 1435 | ; After this number of seconds, stored data will be seen as 'garbage' and 1436 | ; cleaned up by the garbage collection process. 1437 | ; http://php.net/session.gc-maxlifetime 1438 | session.gc_maxlifetime = 1440 1439 | 1440 | ; NOTE: If you are using the subdirectory option for storing session files 1441 | ; (see session.save_path above), then garbage collection does *not* 1442 | ; happen automatically. You will need to do your own garbage 1443 | ; collection through a shell script, cron entry, or some other method. 1444 | ; For example, the following script would is the equivalent of 1445 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1446 | ; find /path/to/sessions -cmin +24 -type f | xargs rm 1447 | 1448 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1449 | ; HTTP_REFERER has to contain this substring for the session to be 1450 | ; considered as valid. 1451 | ; http://php.net/session.referer-check 1452 | session.referer_check = 1453 | 1454 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1455 | ; or leave this empty to avoid sending anti-caching headers. 1456 | ; http://php.net/session.cache-limiter 1457 | session.cache_limiter = nocache 1458 | 1459 | ; Document expires after n minutes. 1460 | ; http://php.net/session.cache-expire 1461 | session.cache_expire = 180 1462 | 1463 | ; trans sid support is disabled by default. 1464 | ; Use of trans sid may risk your users' security. 1465 | ; Use this option with caution. 1466 | ; - User may send URL contains active session ID 1467 | ; to other person via. email/irc/etc. 1468 | ; - URL that contains active session ID may be stored 1469 | ; in publicly accessible computer. 1470 | ; - User may access your site with the same session ID 1471 | ; always using URL stored in browser's history or bookmarks. 1472 | ; http://php.net/session.use-trans-sid 1473 | session.use_trans_sid = 0 1474 | 1475 | ; Set session ID character length. This value could be between 22 to 256. 1476 | ; Shorter length than default is supported only for compatibility reason. 1477 | ; Users should use 32 or more chars. 1478 | ; http://php.net/session.sid-length 1479 | ; Default Value: 32 1480 | ; Development Value: 26 1481 | ; Production Value: 26 1482 | session.sid_length = 26 1483 | 1484 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1485 | ;
is special; if you include them here, the rewriter will 1486 | ; add a hidden field with the info which is otherwise appended 1487 | ; to URLs. tag's action attribute URL will not be modified 1488 | ; unless it is specified. 1489 | ; Note that all valid entries require a "=", even if no value follows. 1490 | ; Default Value: "a=href,area=href,frame=src,form=" 1491 | ; Development Value: "a=href,area=href,frame=src,form=" 1492 | ; Production Value: "a=href,area=href,frame=src,form=" 1493 | ; http://php.net/url-rewriter.tags 1494 | session.trans_sid_tags = "a=href,area=href,frame=src,form=" 1495 | 1496 | ; URL rewriter does not rewrite absolute URLs by default. 1497 | ; To enable rewrites for absolute paths, target hosts must be specified 1498 | ; at RUNTIME. i.e. use ini_set() 1499 | ; tags is special. PHP will check action attribute's URL regardless 1500 | ; of session.trans_sid_tags setting. 1501 | ; If no host is defined, HTTP_HOST will be used for allowed host. 1502 | ; Example value: php.net,www.php.net,wiki.php.net 1503 | ; Use "," for multiple hosts. No spaces are allowed. 1504 | ; Default Value: "" 1505 | ; Development Value: "" 1506 | ; Production Value: "" 1507 | ;session.trans_sid_hosts="" 1508 | 1509 | ; Define how many bits are stored in each character when converting 1510 | ; the binary hash data to something readable. 1511 | ; Possible values: 1512 | ; 4 (4 bits: 0-9, a-f) 1513 | ; 5 (5 bits: 0-9, a-v) 1514 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1515 | ; Default Value: 4 1516 | ; Development Value: 5 1517 | ; Production Value: 5 1518 | ; http://php.net/session.hash-bits-per-character 1519 | session.sid_bits_per_character = 5 1520 | 1521 | ; Enable upload progress tracking in $_SESSION 1522 | ; Default Value: On 1523 | ; Development Value: On 1524 | ; Production Value: On 1525 | ; http://php.net/session.upload-progress.enabled 1526 | ;session.upload_progress.enabled = On 1527 | 1528 | ; Cleanup the progress information as soon as all POST data has been read 1529 | ; (i.e. upload completed). 1530 | ; Default Value: On 1531 | ; Development Value: On 1532 | ; Production Value: On 1533 | ; http://php.net/session.upload-progress.cleanup 1534 | ;session.upload_progress.cleanup = On 1535 | 1536 | ; A prefix used for the upload progress key in $_SESSION 1537 | ; Default Value: "upload_progress_" 1538 | ; Development Value: "upload_progress_" 1539 | ; Production Value: "upload_progress_" 1540 | ; http://php.net/session.upload-progress.prefix 1541 | ;session.upload_progress.prefix = "upload_progress_" 1542 | 1543 | ; The index name (concatenated with the prefix) in $_SESSION 1544 | ; containing the upload progress information 1545 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" 1546 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" 1547 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" 1548 | ; http://php.net/session.upload-progress.name 1549 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" 1550 | 1551 | ; How frequently the upload progress should be updated. 1552 | ; Given either in percentages (per-file), or in bytes 1553 | ; Default Value: "1%" 1554 | ; Development Value: "1%" 1555 | ; Production Value: "1%" 1556 | ; http://php.net/session.upload-progress.freq 1557 | ;session.upload_progress.freq = "1%" 1558 | 1559 | ; The minimum delay between updates, in seconds 1560 | ; Default Value: 1 1561 | ; Development Value: 1 1562 | ; Production Value: 1 1563 | ; http://php.net/session.upload-progress.min-freq 1564 | ;session.upload_progress.min_freq = "1" 1565 | 1566 | ; Only write session data when session data is changed. Enabled by default. 1567 | ; http://php.net/session.lazy-write 1568 | ;session.lazy_write = On 1569 | 1570 | [Assertion] 1571 | ; Switch whether to compile assertions at all (to have no overhead at run-time) 1572 | ; -1: Do not compile at all 1573 | ; 0: Jump over assertion at run-time 1574 | ; 1: Execute assertions 1575 | ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1) 1576 | ; Default Value: 1 1577 | ; Development Value: 1 1578 | ; Production Value: -1 1579 | ; http://php.net/zend.assertions 1580 | zend.assertions = 1 1581 | 1582 | ; Assert(expr); active by default. 1583 | ; http://php.net/assert.active 1584 | ;assert.active = On 1585 | 1586 | ; Throw an AssertionError on failed assertions 1587 | ; http://php.net/assert.exception 1588 | ;assert.exception = On 1589 | 1590 | ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) 1591 | ; http://php.net/assert.warning 1592 | ;assert.warning = On 1593 | 1594 | ; Don't bail out by default. 1595 | ; http://php.net/assert.bail 1596 | ;assert.bail = Off 1597 | 1598 | ; User-function to be called if an assertion fails. 1599 | ; http://php.net/assert.callback 1600 | ;assert.callback = 0 1601 | 1602 | ; Eval the expression with current error_reporting(). Set to true if you want 1603 | ; error_reporting(0) around the eval(). 1604 | ; http://php.net/assert.quiet-eval 1605 | ;assert.quiet_eval = 0 1606 | 1607 | [COM] 1608 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1609 | ; http://php.net/com.typelib-file 1610 | ;com.typelib_file = 1611 | 1612 | ; allow Distributed-COM calls 1613 | ; http://php.net/com.allow-dcom 1614 | ;com.allow_dcom = true 1615 | 1616 | ; autoregister constants of a component's typlib on com_load() 1617 | ; http://php.net/com.autoregister-typelib 1618 | ;com.autoregister_typelib = true 1619 | 1620 | ; register constants casesensitive 1621 | ; http://php.net/com.autoregister-casesensitive 1622 | ;com.autoregister_casesensitive = false 1623 | 1624 | ; show warnings on duplicate constant registrations 1625 | ; http://php.net/com.autoregister-verbose 1626 | ;com.autoregister_verbose = true 1627 | 1628 | ; The default character set code-page to use when passing strings to and from COM objects. 1629 | ; Default: system ANSI code page 1630 | ;com.code_page= 1631 | 1632 | [mbstring] 1633 | ; language for internal character representation. 1634 | ; This affects mb_send_mail() and mbstring.detect_order. 1635 | ; http://php.net/mbstring.language 1636 | ;mbstring.language = Japanese 1637 | 1638 | ; Use of this INI entry is deprecated, use global internal_encoding instead. 1639 | ; internal/script encoding. 1640 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) 1641 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. 1642 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding 1643 | ;mbstring.internal_encoding = 1644 | 1645 | ; Use of this INI entry is deprecated, use global input_encoding instead. 1646 | ; http input encoding. 1647 | ; mbstring.encoding_translation = On is needed to use this setting. 1648 | ; If empty, default_charset or input_encoding or mbstring.input is used. 1649 | ; The precedence is: default_charset < input_encoding < mbsting.http_input 1650 | ; http://php.net/mbstring.http-input 1651 | ;mbstring.http_input = 1652 | 1653 | ; Use of this INI entry is deprecated, use global output_encoding instead. 1654 | ; http output encoding. 1655 | ; mb_output_handler must be registered as output buffer to function. 1656 | ; If empty, default_charset or output_encoding or mbstring.http_output is used. 1657 | ; The precedence is: default_charset < output_encoding < mbstring.http_output 1658 | ; To use an output encoding conversion, mbstring's output handler must be set 1659 | ; otherwise output encoding conversion cannot be performed. 1660 | ; http://php.net/mbstring.http-output 1661 | ;mbstring.http_output = 1662 | 1663 | ; enable automatic encoding translation according to 1664 | ; mbstring.internal_encoding setting. Input chars are 1665 | ; converted to internal encoding by setting this to On. 1666 | ; Note: Do _not_ use automatic encoding translation for 1667 | ; portable libs/applications. 1668 | ; http://php.net/mbstring.encoding-translation 1669 | ;mbstring.encoding_translation = Off 1670 | 1671 | ; automatic encoding detection order. 1672 | ; "auto" detect order is changed according to mbstring.language 1673 | ; http://php.net/mbstring.detect-order 1674 | ;mbstring.detect_order = auto 1675 | 1676 | ; substitute_character used when character cannot be converted 1677 | ; one from another 1678 | ; http://php.net/mbstring.substitute-character 1679 | ;mbstring.substitute_character = none 1680 | 1681 | ; overload(replace) single byte functions by mbstring functions. 1682 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1683 | ; etc. Possible values are 0,1,2,4 or combination of them. 1684 | ; For example, 7 for overload everything. 1685 | ; 0: No overload 1686 | ; 1: Overload mail() function 1687 | ; 2: Overload str*() functions 1688 | ; 4: Overload ereg*() functions 1689 | ; http://php.net/mbstring.func-overload 1690 | ;mbstring.func_overload = 0 1691 | 1692 | ; enable strict encoding detection. 1693 | ; Default: Off 1694 | ;mbstring.strict_detection = On 1695 | 1696 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1697 | ; is activated. 1698 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1699 | ;mbstring.http_output_conv_mimetype= 1700 | 1701 | [gd] 1702 | ; Tell the jpeg decode to ignore warnings and try to create 1703 | ; a gd image. The warning will then be displayed as notices 1704 | ; disabled by default 1705 | ; http://php.net/gd.jpeg-ignore-warning 1706 | ;gd.jpeg_ignore_warning = 1 1707 | 1708 | [exif] 1709 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1710 | ; With mbstring support this will automatically be converted into the encoding 1711 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1712 | ; is used. For the decode settings you can distinguish between motorola and 1713 | ; intel byte order. A decode setting cannot be empty. 1714 | ; http://php.net/exif.encode-unicode 1715 | ;exif.encode_unicode = ISO-8859-15 1716 | 1717 | ; http://php.net/exif.decode-unicode-motorola 1718 | ;exif.decode_unicode_motorola = UCS-2BE 1719 | 1720 | ; http://php.net/exif.decode-unicode-intel 1721 | ;exif.decode_unicode_intel = UCS-2LE 1722 | 1723 | ; http://php.net/exif.encode-jis 1724 | ;exif.encode_jis = 1725 | 1726 | ; http://php.net/exif.decode-jis-motorola 1727 | ;exif.decode_jis_motorola = JIS 1728 | 1729 | ; http://php.net/exif.decode-jis-intel 1730 | ;exif.decode_jis_intel = JIS 1731 | 1732 | [Tidy] 1733 | ; The path to a default tidy configuration file to use when using tidy 1734 | ; http://php.net/tidy.default-config 1735 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1736 | 1737 | ; Should tidy clean and repair output automatically? 1738 | ; WARNING: Do not use this option if you are generating non-html content 1739 | ; such as dynamic images 1740 | ; http://php.net/tidy.clean-output 1741 | tidy.clean_output = Off 1742 | 1743 | [soap] 1744 | ; Enables or disables WSDL caching feature. 1745 | ; http://php.net/soap.wsdl-cache-enabled 1746 | soap.wsdl_cache_enabled=1 1747 | 1748 | ; Sets the directory name where SOAP extension will put cache files. 1749 | ; http://php.net/soap.wsdl-cache-dir 1750 | soap.wsdl_cache_dir="/tmp" 1751 | 1752 | ; (time to live) Sets the number of second while cached file will be used 1753 | ; instead of original one. 1754 | ; http://php.net/soap.wsdl-cache-ttl 1755 | soap.wsdl_cache_ttl=86400 1756 | 1757 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1758 | soap.wsdl_cache_limit = 5 1759 | 1760 | [sysvshm] 1761 | ; A default size of the shared memory segment 1762 | ;sysvshm.init_mem = 10000 1763 | 1764 | [ldap] 1765 | ; Sets the maximum number of open links or -1 for unlimited. 1766 | ldap.max_links = -1 1767 | 1768 | [dba] 1769 | ;dba.default_handler= 1770 | 1771 | [opcache] 1772 | ; Determines if Zend OPCache is enabled 1773 | ;opcache.enable=1 1774 | 1775 | ; Determines if Zend OPCache is enabled for the CLI version of PHP 1776 | ;opcache.enable_cli=0 1777 | 1778 | ; The OPcache shared memory storage size. 1779 | ;opcache.memory_consumption=128 1780 | 1781 | ; The amount of memory for interned strings in Mbytes. 1782 | ;opcache.interned_strings_buffer=8 1783 | 1784 | ; The maximum number of keys (scripts) in the OPcache hash table. 1785 | ; Only numbers between 200 and 1000000 are allowed. 1786 | ;opcache.max_accelerated_files=10000 1787 | 1788 | ; The maximum percentage of "wasted" memory until a restart is scheduled. 1789 | ;opcache.max_wasted_percentage=5 1790 | 1791 | ; When this directive is enabled, the OPcache appends the current working 1792 | ; directory to the script key, thus eliminating possible collisions between 1793 | ; files with the same name (basename). Disabling the directive improves 1794 | ; performance, but may break existing applications. 1795 | ;opcache.use_cwd=1 1796 | 1797 | ; When disabled, you must reset the OPcache manually or restart the 1798 | ; webserver for changes to the filesystem to take effect. 1799 | ;opcache.validate_timestamps=1 1800 | 1801 | ; How often (in seconds) to check file timestamps for changes to the shared 1802 | ; memory storage allocation. ("1" means validate once per second, but only 1803 | ; once per request. "0" means always validate) 1804 | ;opcache.revalidate_freq=2 1805 | 1806 | ; Enables or disables file search in include_path optimization 1807 | ;opcache.revalidate_path=0 1808 | 1809 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the 1810 | ; size of the optimized code. 1811 | ;opcache.save_comments=1 1812 | 1813 | ; Allow file existence override (file_exists, etc.) performance feature. 1814 | ;opcache.enable_file_override=0 1815 | 1816 | ; A bitmask, where each bit enables or disables the appropriate OPcache 1817 | ; passes 1818 | ;opcache.optimization_level=0x7FFFBFFF 1819 | 1820 | ;opcache.dups_fix=0 1821 | 1822 | ; The location of the OPcache blacklist file (wildcards allowed). 1823 | ; Each OPcache blacklist file is a text file that holds the names of files 1824 | ; that should not be accelerated. The file format is to add each filename 1825 | ; to a new line. The filename may be a full path or just a file prefix 1826 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www 1827 | ; that start with 'x'). Line starting with a ; are ignored (comments). 1828 | ;opcache.blacklist_filename= 1829 | 1830 | ; Allows exclusion of large files from being cached. By default all files 1831 | ; are cached. 1832 | ;opcache.max_file_size=0 1833 | 1834 | ; Check the cache checksum each N requests. 1835 | ; The default value of "0" means that the checks are disabled. 1836 | ;opcache.consistency_checks=0 1837 | 1838 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache 1839 | ; is not being accessed. 1840 | ;opcache.force_restart_timeout=180 1841 | 1842 | ; OPcache error_log file name. Empty string assumes "stderr". 1843 | ;opcache.error_log= 1844 | 1845 | ; All OPcache errors go to the Web server log. 1846 | ; By default, only fatal errors (level 0) or errors (level 1) are logged. 1847 | ; You can also enable warnings (level 2), info messages (level 3) or 1848 | ; debug messages (level 4). 1849 | ;opcache.log_verbosity_level=1 1850 | 1851 | ; Preferred Shared Memory back-end. Leave empty and let the system decide. 1852 | ;opcache.preferred_memory_model= 1853 | 1854 | ; Protect the shared memory from unexpected writing during script execution. 1855 | ; Useful for internal debugging only. 1856 | ;opcache.protect_memory=0 1857 | 1858 | ; Allows calling OPcache API functions only from PHP scripts which path is 1859 | ; started from specified string. The default "" means no restriction 1860 | ;opcache.restrict_api= 1861 | 1862 | ; Mapping base of shared memory segments (for Windows only). All the PHP 1863 | ; processes have to map shared memory into the same address space. This 1864 | ; directive allows to manually fix the "Unable to reattach to base address" 1865 | ; errors. 1866 | ;opcache.mmap_base= 1867 | 1868 | ; Enables and sets the second level cache directory. 1869 | ; It should improve performance when SHM memory is full, at server restart or 1870 | ; SHM reset. The default "" disables file based caching. 1871 | ;opcache.file_cache= 1872 | 1873 | ; Enables or disables opcode caching in shared memory. 1874 | ;opcache.file_cache_only=0 1875 | 1876 | ; Enables or disables checksum validation when script loaded from file cache. 1877 | ;opcache.file_cache_consistency_checks=1 1878 | 1879 | ; Implies opcache.file_cache_only=1 for a certain process that failed to 1880 | ; reattach to the shared memory (for Windows only). Explicitly enabled file 1881 | ; cache is required. 1882 | ;opcache.file_cache_fallback=1 1883 | 1884 | ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. 1885 | ; This should improve performance, but requires appropriate OS configuration. 1886 | ;opcache.huge_code_pages=0 1887 | 1888 | ; Validate cached file permissions. 1889 | ;opcache.validate_permission=0 1890 | 1891 | ; Prevent name collisions in chroot'ed environment. 1892 | ;opcache.validate_root=0 1893 | 1894 | ; If specified, it produces opcode dumps for debugging different stages of 1895 | ; optimizations. 1896 | ;opcache.opt_debug_level=0 1897 | 1898 | [curl] 1899 | ; A default value for the CURLOPT_CAINFO option. This is required to be an 1900 | ; absolute path. 1901 | ;curl.cainfo = 1902 | 1903 | [openssl] 1904 | ; The location of a Certificate Authority (CA) file on the local filesystem 1905 | ; to use when verifying the identity of SSL/TLS peers. Most users should 1906 | ; not specify a value for this directive as PHP will attempt to use the 1907 | ; OS-managed cert stores in its absence. If specified, this value may still 1908 | ; be overridden on a per-stream basis via the "cafile" SSL stream context 1909 | ; option. 1910 | ;openssl.cafile= 1911 | 1912 | ; If openssl.cafile is not specified or if the CA file is not found, the 1913 | ; directory pointed to by openssl.capath is searched for a suitable 1914 | ; certificate. This value must be a correctly hashed certificate directory. 1915 | ; Most users should not specify a value for this directive as PHP will 1916 | ; attempt to use the OS-managed cert stores in its absence. If specified, 1917 | ; this value may still be overridden on a per-stream basis via the "capath" 1918 | ; SSL stream context option. 1919 | ;openssl.capath= 1920 | 1921 | ; Local Variables: 1922 | ; tab-width: 4 1923 | ; End: -------------------------------------------------------------------------------- /php/supervisord.conf: -------------------------------------------------------------------------------- 1 | ; Sample supervisor config file. 2 | ; 3 | ; For more information on the config file, please see: 4 | ; http://supervisord.org/configuration.html 5 | ; 6 | ; Notes: 7 | ; - Shell expansion ("~" or "$HOME") is not supported. Environment 8 | ; variables can be expanded using this syntax: "%(ENV_HOME)s". 9 | ; - Quotes around values are not supported, except in the case of 10 | ; the environment= options as shown below. 11 | ; - Comments must have a leading space: "a=b ;comment" not "a=b;comment". 12 | ; - Command will be truncated if it looks like a config file comment, e.g. 13 | ; "command=bash -c 'foo ; bar'" will truncate to "command=bash -c 'foo ". 14 | 15 | [unix_http_server] 16 | file=/tmp/supervisor.sock ; the path to the socket file 17 | ;chmod=0700 ; socket file mode (default 0700) 18 | ;chown=nobody:nogroup ; socket file uid:gid owner 19 | ;username=user ; default is no username (open server) 20 | ;password=123 ; default is no password (open server) 21 | 22 | ;[inet_http_server] ; inet (TCP) server disabled by default 23 | ;port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface 24 | ;username=user ; default is no username (open server) 25 | ;password=123 ; default is no password (open server) 26 | 27 | [supervisord] 28 | logfile=/etc/supervisord.d/log/supervisord.log ; main log file; default $CWD/supervisord.log 29 | logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB 30 | logfile_backups=10 ; # of main logfile backups; 0 means none, default 10 31 | loglevel=info ; log level; default info; others: debug,warn,trace 32 | pidfile=/var/run/supervisord.pid ; supervisord pidfile; default supervisord.pid 33 | nodaemon=false ; start in foreground if true; default false 34 | minfds=1024 ; min. avail startup file descriptors; default 1024 35 | minprocs=200 ; min. avail process descriptors;default 200 36 | ;umask=022 ; process file creation umask; default 022 37 | ;user=supervisord ; setuid to this UNIX account at startup; recommended if root 38 | ;identifier=supervisor ; supervisord identifier, default is 'supervisor' 39 | ;directory=/tmp ; default is not to cd during start 40 | ;nocleanup=true ; don't clean up tempfiles at start; default false 41 | ;childlogdir=/tmp ; 'AUTO' child log dir, default $TEMP 42 | ;environment=KEY="value" ; key value pairs to add to environment 43 | ;strip_ansi=false ; strip ansi escape codes in logs; def. false 44 | 45 | ; The rpcinterface:supervisor section must remain in the config file for 46 | ; RPC (supervisorctl/web interface) to work. Additional interfaces may be 47 | ; added by defining them in separate [rpcinterface:x] sections. 48 | 49 | [rpcinterface:supervisor] 50 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 51 | 52 | ; The supervisorctl section configures how supervisorctl will connect to 53 | ; supervisord. configure it match the settings in either the unix_http_server 54 | ; or inet_http_server section. 55 | 56 | [supervisorctl] 57 | serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket 58 | ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket 59 | ;username=chris ; should be same as in [*_http_server] if set 60 | ;password=123 ; should be same as in [*_http_server] if set 61 | ;prompt=mysupervisor ; cmd line prompt (default "supervisor") 62 | ;history_file=~/.sc_history ; use readline history if available 63 | 64 | ; The sample program section below shows all possible program subsection values. 65 | ; Create one or more 'real' program: sections to be able to control them under 66 | ; supervisor. 67 | 68 | ;[program:theprogramname] 69 | ;command=/bin/cat ; the program (relative uses PATH, can take args) 70 | ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) 71 | ;numprocs=1 ; number of processes copies to start (def 1) 72 | ;directory=/tmp ; directory to cwd to before exec (def no cwd) 73 | ;umask=022 ; umask for process (default None) 74 | ;priority=999 ; the relative start priority (default 999) 75 | ;autostart=true ; start at supervisord start (default: true) 76 | ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) 77 | ;startretries=3 ; max # of serial start failures when starting (default 3) 78 | ;autorestart=unexpected ; when to restart if exited after running (def: unexpected) 79 | ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) 80 | ;stopsignal=QUIT ; signal used to kill process (default TERM) 81 | ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) 82 | ;stopasgroup=false ; send stop signal to the UNIX process group (default false) 83 | ;killasgroup=false ; SIGKILL the UNIX process group (def false) 84 | ;user=chrism ; setuid to this UNIX account to run the program 85 | ;redirect_stderr=true ; redirect proc stderr to stdout (default false) 86 | ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO 87 | ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 88 | ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) 89 | ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) 90 | ;stdout_events_enabled=false ; emit events on stdout writes (default false) 91 | ;stdout_syslog=false ; send stdout to syslog with process name (default false) 92 | ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO 93 | ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 94 | ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) 95 | ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) 96 | ;stderr_events_enabled=false ; emit events on stderr writes (default false) 97 | ;stderr_syslog=false ; send stderr to syslog with process name (default false) 98 | ;environment=A="1",B="2" ; process environment additions (def no adds) 99 | ;serverurl=AUTO ; override serverurl computation (childutils) 100 | 101 | ; The sample eventlistener section below shows all possible eventlistener 102 | ; subsection values. Create one or more 'real' eventlistener: sections to be 103 | ; able to handle event notifications sent by supervisord. 104 | 105 | ;[eventlistener:theeventlistenername] 106 | ;command=/bin/eventlistener ; the program (relative uses PATH, can take args) 107 | ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) 108 | ;numprocs=1 ; number of processes copies to start (def 1) 109 | ;events=EVENT ; event notif. types to subscribe to (req'd) 110 | ;buffer_size=10 ; event buffer queue size (default 10) 111 | ;directory=/tmp ; directory to cwd to before exec (def no cwd) 112 | ;umask=022 ; umask for process (default None) 113 | ;priority=-1 ; the relative start priority (default -1) 114 | ;autostart=true ; start at supervisord start (default: true) 115 | ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) 116 | ;startretries=3 ; max # of serial start failures when starting (default 3) 117 | ;autorestart=unexpected ; autorestart if exited after running (def: unexpected) 118 | ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) 119 | ;stopsignal=QUIT ; signal used to kill process (default TERM) 120 | ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) 121 | ;stopasgroup=false ; send stop signal to the UNIX process group (default false) 122 | ;killasgroup=false ; SIGKILL the UNIX process group (def false) 123 | ;user=chrism ; setuid to this UNIX account to run the program 124 | ;redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners 125 | ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO 126 | ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 127 | ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) 128 | ;stdout_events_enabled=false ; emit events on stdout writes (default false) 129 | ;stdout_syslog=false ; send stdout to syslog with process name (default false) 130 | ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO 131 | ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 132 | ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) 133 | ;stderr_events_enabled=false ; emit events on stderr writes (default false) 134 | ;stderr_syslog=false ; send stderr to syslog with process name (default false) 135 | ;environment=A="1",B="2" ; process environment additions 136 | ;serverurl=AUTO ; override serverurl computation (childutils) 137 | 138 | ; The sample group section below shows all possible group values. Create one 139 | ; or more 'real' group: sections to create "heterogeneous" process groups. 140 | 141 | ;[group:thegroupname] 142 | ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions 143 | ;priority=999 ; the relative start priority (default 999) 144 | 145 | ; The [include] section can just contain the "files" setting. This 146 | ; setting can list multiple files (separated by whitespace or 147 | ; newlines). It can also contain wildcards. The filenames are 148 | ; interpreted as relative to this file. Included files *cannot* 149 | ; include files themselves. 150 | 151 | ;[include] 152 | files = /etc/supervisord.d/conf/*.conf 153 | -------------------------------------------------------------------------------- /supervisor/conf/laravals.conf: -------------------------------------------------------------------------------- 1 | [program:laravels] 2 | command=/usr/local/bin/php /var/www/html/lawApi/bin/laravels start -i 3 | numprocs=1 4 | autostart=true 5 | autorestart=true 6 | startretries=3 7 | redirect_stderr=true 8 | stdout_logfile=/var/www/html/lawApi/storage/logs/supervisord-stdout.log -------------------------------------------------------------------------------- /supervisor/conf/php.conf: -------------------------------------------------------------------------------- 1 | [program:php] 2 | command=/usr/local/sbin/php-fpm -c /usr/local/etc/php/php.ini -y /usr/local/etc/php-fpm.conf 3 | numprocs=1 4 | autostart=true 5 | autorestart=true 6 | startretries=3 7 | redirect_stderr=true 8 | stdout_logfile=/var/www/html/lawApi/storage/logs/supervisord-php.log -------------------------------------------------------------------------------- /supervisor/supervisord.conf: -------------------------------------------------------------------------------- 1 | ; Sample supervisor config file. 2 | ; 3 | ; For more information on the config file, please see: 4 | ; http://supervisord.org/configuration.html 5 | ; 6 | ; Notes: 7 | ; - Shell expansion ("~" or "$HOME") is not supported. Environment 8 | ; variables can be expanded using this syntax: "%(ENV_HOME)s". 9 | ; - Quotes around values are not supported, except in the case of 10 | ; the environment= options as shown below. 11 | ; - Comments must have a leading space: "a=b ;comment" not "a=b;comment". 12 | ; - Command will be truncated if it looks like a config file comment, e.g. 13 | ; "command=bash -c 'foo ; bar'" will truncate to "command=bash -c 'foo ". 14 | 15 | [unix_http_server] 16 | file=/tmp/supervisor.sock ; the path to the socket file 17 | ;chmod=0700 ; socket file mode (default 0700) 18 | ;chown=nobody:nogroup ; socket file uid:gid owner 19 | ;username=user ; default is no username (open server) 20 | ;password=123 ; default is no password (open server) 21 | 22 | ;[inet_http_server] ; inet (TCP) server disabled by default 23 | ;port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface 24 | ;username=user ; default is no username (open server) 25 | ;password=123 ; default is no password (open server) 26 | 27 | [supervisord] 28 | logfile=/var/log/supervisor/supervisord.log ; main log file; default $CWD/supervisord.log 29 | logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB 30 | logfile_backups=10 ; # of main logfile backups; 0 means none, default 10 31 | loglevel=info ; log level; default info; others: debug,warn,trace 32 | pidfile=/var/run/supervisord.pid ; supervisord pidfile; default supervisord.pid 33 | nodaemon=false ; start in foreground if true; default false 34 | minfds=1024 ; min. avail startup file descriptors; default 1024 35 | minprocs=200 ; min. avail process descriptors;default 200 36 | ;umask=022 ; process file creation umask; default 022 37 | ;user=supervisord ; setuid to this UNIX account at startup; recommended if root 38 | ;identifier=supervisor ; supervisord identifier, default is 'supervisor' 39 | ;directory=/tmp ; default is not to cd during start 40 | ;nocleanup=true ; don't clean up tempfiles at start; default false 41 | ;childlogdir=/tmp ; 'AUTO' child log dir, default $TEMP 42 | ;environment=KEY="value" ; key value pairs to add to environment 43 | ;strip_ansi=false ; strip ansi escape codes in logs; def. false 44 | 45 | ; The rpcinterface:supervisor section must remain in the config file for 46 | ; RPC (supervisorctl/web interface) to work. Additional interfaces may be 47 | ; added by defining them in separate [rpcinterface:x] sections. 48 | 49 | [rpcinterface:supervisor] 50 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 51 | 52 | ; The supervisorctl section configures how supervisorctl will connect to 53 | ; supervisord. configure it match the settings in either the unix_http_server 54 | ; or inet_http_server section. 55 | 56 | [supervisorctl] 57 | serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket 58 | ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket 59 | ;username=chris ; should be same as in [*_http_server] if set 60 | ;password=123 ; should be same as in [*_http_server] if set 61 | ;prompt=mysupervisor ; cmd line prompt (default "supervisor") 62 | ;history_file=~/.sc_history ; use readline history if available 63 | 64 | ; The sample program section below shows all possible program subsection values. 65 | ; Create one or more 'real' program: sections to be able to control them under 66 | ; supervisor. 67 | 68 | ;[program:theprogramname] 69 | ;command=/bin/cat ; the program (relative uses PATH, can take args) 70 | ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) 71 | ;numprocs=1 ; number of processes copies to start (def 1) 72 | ;directory=/tmp ; directory to cwd to before exec (def no cwd) 73 | ;umask=022 ; umask for process (default None) 74 | ;priority=999 ; the relative start priority (default 999) 75 | ;autostart=true ; start at supervisord start (default: true) 76 | ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) 77 | ;startretries=3 ; max # of serial start failures when starting (default 3) 78 | ;autorestart=unexpected ; when to restart if exited after running (def: unexpected) 79 | ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) 80 | ;stopsignal=QUIT ; signal used to kill process (default TERM) 81 | ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) 82 | ;stopasgroup=false ; send stop signal to the UNIX process group (default false) 83 | ;killasgroup=false ; SIGKILL the UNIX process group (def false) 84 | ;user=chrism ; setuid to this UNIX account to run the program 85 | ;redirect_stderr=true ; redirect proc stderr to stdout (default false) 86 | ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO 87 | ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 88 | ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) 89 | ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) 90 | ;stdout_events_enabled=false ; emit events on stdout writes (default false) 91 | ;stdout_syslog=false ; send stdout to syslog with process name (default false) 92 | ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO 93 | ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 94 | ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) 95 | ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) 96 | ;stderr_events_enabled=false ; emit events on stderr writes (default false) 97 | ;stderr_syslog=false ; send stderr to syslog with process name (default false) 98 | ;environment=A="1",B="2" ; process environment additions (def no adds) 99 | ;serverurl=AUTO ; override serverurl computation (childutils) 100 | 101 | ; The sample eventlistener section below shows all possible eventlistener 102 | ; subsection values. Create one or more 'real' eventlistener: sections to be 103 | ; able to handle event notifications sent by supervisord. 104 | 105 | ;[eventlistener:theeventlistenername] 106 | ;command=/bin/eventlistener ; the program (relative uses PATH, can take args) 107 | ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) 108 | ;numprocs=1 ; number of processes copies to start (def 1) 109 | ;events=EVENT ; event notif. types to subscribe to (req'd) 110 | ;buffer_size=10 ; event buffer queue size (default 10) 111 | ;directory=/tmp ; directory to cwd to before exec (def no cwd) 112 | ;umask=022 ; umask for process (default None) 113 | ;priority=-1 ; the relative start priority (default -1) 114 | ;autostart=true ; start at supervisord start (default: true) 115 | ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) 116 | ;startretries=3 ; max # of serial start failures when starting (default 3) 117 | ;autorestart=unexpected ; autorestart if exited after running (def: unexpected) 118 | ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) 119 | ;stopsignal=QUIT ; signal used to kill process (default TERM) 120 | ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) 121 | ;stopasgroup=false ; send stop signal to the UNIX process group (default false) 122 | ;killasgroup=false ; SIGKILL the UNIX process group (def false) 123 | ;user=chrism ; setuid to this UNIX account to run the program 124 | ;redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners 125 | ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO 126 | ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 127 | ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) 128 | ;stdout_events_enabled=false ; emit events on stdout writes (default false) 129 | ;stdout_syslog=false ; send stdout to syslog with process name (default false) 130 | ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO 131 | ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) 132 | ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) 133 | ;stderr_events_enabled=false ; emit events on stderr writes (default false) 134 | ;stderr_syslog=false ; send stderr to syslog with process name (default false) 135 | ;environment=A="1",B="2" ; process environment additions 136 | ;serverurl=AUTO ; override serverurl computation (childutils) 137 | 138 | ; The sample group section below shows all possible group values. Create one 139 | ; or more 'real' group: sections to create "heterogeneous" process groups. 140 | 141 | ;[group:thegroupname] 142 | ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions 143 | ;priority=999 ; the relative start priority (default 999) 144 | 145 | ; The [include] section can just contain the "files" setting. This 146 | ; setting can list multiple files (separated by whitespace or 147 | ; newlines). It can also contain wildcards. The filenames are 148 | ; interpreted as relative to this file. Included files *cannot* 149 | ; include files themselves. 150 | 151 | ;[include] 152 | files = /etc/supervisor/*.conf 153 | -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 |

11111111111

3 | -------------------------------------------------------------------------------- /www/index.php: -------------------------------------------------------------------------------- 1 |