diff --git a/.base-php b/.base-php new file mode 100644 index 00000000..fd4804ed --- /dev/null +++ b/.base-php @@ -0,0 +1,3 @@ +7.4.5#2020-04-17T18:36:31.016606Z +7.3.3#2020-04-17T18:36:53.477668Z +7.2.16#2020-04-17T18:36:17.094345Z \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 115d82ac..0034c35e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,48 +1,37 @@ language: bash -sudo: required - services: - docker env: global: - - DOCKER_COMPOSE_VERSION=1.14.0 - - DOCKER_VERSION=17.06.2 - - LATEST_PHP_VER=7.1 + - PHP74=7.4.5 + - PHP73=7.3.17 + - PHP72=7.2.29 matrix: - - PHP_VER=7.1 PHP_DEBUG=0 - - PHP_VER=7.0 PHP_DEBUG=0 - - PHP_VER=5.6 PHP_DEBUG=0 - - PHP_VER=5.3 PHP_DEBUG=0 - - PHP_VER=7.1 PHP_DEBUG=1 - - PHP_VER=7.0 PHP_DEBUG=1 - - PHP_VER=5.6 PHP_DEBUG=1 - -install: - - sudo apt-get update - - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce="${DOCKER_VERSION}~ce-0~ubuntu" - - sudo rm /usr/local/bin/docker-compose - - curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > docker-compose - - chmod +x docker-compose - - sudo mv docker-compose /usr/local/bin + - PHP_VER="${PHP74}" TAGS=7.4,7,latest + - PHP_VER="${PHP73}" TAGS=7.3 + - PHP_VER="${PHP72}" TAGS=7.2 + - PHP_VER="${PHP74}" PHP_DEV=1 TAGS=7.4-dev,7-dev,dev + - PHP_VER="${PHP73}" PHP_DEV=1 TAGS=7.3-dev + - PHP_VER="${PHP72}" PHP_DEV=1 TAGS=7.2-dev + - PHP_VER="${PHP74}" PHP_DEV=1 WODBY_USER_ID=501 WODBY_GROUP_ID=20 TAGS=7.4-dev-macos,7-dev-macos,dev-macos + - PHP_VER="${PHP73}" PHP_DEV=1 WODBY_USER_ID=501 WODBY_GROUP_ID=20 TAGS=7.3-dev-macos + - PHP_VER="${PHP72}" PHP_DEV=1 WODBY_USER_ID=501 WODBY_GROUP_ID=20 TAGS=7.2-dev-macos script: - - cd ./"${PHP_VER}" - - travis_retry make && make test - -after_success: | - if [[ "${TRAVIS_PULL_REQUEST}" == "false" && ("${TRAVIS_BRANCH}" == "master" || -n "${TRAVIS_TAG}") ]]; then - docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" - make release +- set -e +- cd "${PHP_VER:0:1}" || cd "${PHP_VER:0:3}" +- make check-configs +- travis_retry make +- make test - if [[ -n "${TRAVIS_TAG}" ]]; then - make release TAG="${DRUPAL}-${PHP_VER}-${TRAVIS_TAG}" - elif [[ "${PHP_VER}" == "${LATEST_PHP_VER}" && "${PHP_DEBUG}" == 0 ]]; then - make release TAG="latest" - fi - fi +after_success: +- . "${TRAVIS_BUILD_DIR}/release.sh" notifications: - slack: - secure: "Z/uc2jwlK/Kf6WJRyWIcofKgq9kCau+/RMe0NZYbLTVY0cwqIIOfQvVqWwjIZZNly5wUx0w+XlXDVWD0JVeTJFr/TZxpCObUaMzC0hEj4D59LsDkZ509i07QvuSVBNCqXuHoiXM5Ea7UvJkRRNpVohwqUpoVQ18hQ5++kuTMHW//wtHfbM7k/tkI5S/lWm/RulIdA2/txIFB0UiRGlIcLNJCVVSDELAnyC7sugbMw02Gq6epnTtjjMJKWN/5PyCe3YtTo7mut9xIaRMkrSNtA/24HdzY1OjOjw5YTtgfIzq5vHipQtf49tqMj74BOUjq3y7noFwxHxhwtmK8UnzKgrDnBFO8A7d4yWnErHgmEga/LNoKY3TvtIvsv4lfRh0LKqXv4B48DTJXTxmUIEHsVpBBG+ec5LZqYcCq+aM8QdvB+9gCrE8e+5vJKAJfd+za0jCLqY+ooxslPblntNsWIbvYyvvMKdzUfjAs/F1TIynR7gXU58QykJo/i+3KjFN+JHfLF5wJ/E8jbZXhbrmFZOVTn0IOqP5jPzxVsR0X5YSHIBD2iOujUFwklQYnWFBFMtZtKaNkHF+/KE5SyKlcjr4+qmeD2+mjHnzN1pPzq8dHwyqugQt7kkOgLptrHp2a9nfuVDWYeL/cuhkosDvY4NaESOi25/+qhv2wVNL7LBs=" \ No newline at end of file + email: + recipients: + - travisci@wodby.com + on_success: never + on_failure: always diff --git a/5.3/Dockerfile b/5.3/Dockerfile deleted file mode 100644 index 2bb298d3..00000000 --- a/5.3/Dockerfile +++ /dev/null @@ -1,386 +0,0 @@ -FROM wodby/alpine:3.4 - -# persistent / runtime deps -ENV PHPIZE_DEPS \ - autoconf \ - file \ - g++ \ - gcc \ - libc-dev \ - make \ - pkgconf \ - re2c -RUN apk add --no-cache --virtual .persistent-deps \ - ca-certificates \ - curl \ - tar \ - xz - -# ensure www-data user exists -RUN set -x \ - && addgroup -g 82 -S www-data \ - && adduser -u 82 -D -S -s /bin/bash -G www-data www-data \ - && sed -i '/^www-data/s/!/*/' /etc/shadow \ - && echo "PS1='\w\$ '" >> /home/www-data/.bashrc -# 82 is the standard uid/gid for "www-data" in Alpine -# http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2 -# http://git.alpinelinux.org/cgit/aports/tree/main/lighttpd/lighttpd.pre-install?h=v3.3.2 -# http://git.alpinelinux.org/cgit/aports/tree/main/nginx-initscripts/nginx-initscripts.pre-install?h=v3.3.2 - -ENV PHP_INI_DIR /usr/local/etc/php -RUN mkdir -p $PHP_INI_DIR/conf.d - -#### -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data -#### - -# Apply stack smash protection to functions using local buffers and alloca() -# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) -# Enable optimization (-O2) -# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) -# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) -# https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" -ENV PHP_CPPFLAGS="$PHP_CFLAGS" -ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" - -ENV GPG_KEYS 0B96609E270F565C13292B24C13C70B87267B52D 0A95E9A026542D53835E3F3A7DEC4E69FC9C83D7 0E604491 - -ENV PHP_VERSION 5.3.29 -ENV PHP_URL="https://secure.php.net/get/php-5.3.29.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-5.3.29.tar.xz.asc/from/this/mirror" -ENV PHP_SHA256="8438c2f14ab8f3d6cd2495aa37de7b559e33b610f9ab264f0c61b531bf0c262d" PHP_MD5="dcff9c881fe436708c141cfc56358075" - -RUN set -xe; \ - \ - apk add --no-cache --virtual .fetch-deps \ - gnupg \ - openssl \ - ; \ - \ - mkdir -p /usr/src; \ - cd /usr/src; \ - \ - wget -O php.tar.xz "$PHP_URL"; \ - \ - if [ -n "$PHP_SHA256" ]; then \ - echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; \ - fi; \ - if [ -n "$PHP_MD5" ]; then \ - echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; \ - fi; \ - \ - if [ -n "$PHP_ASC_URL" ]; then \ - wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ - export GNUPGHOME="$(mktemp -d)"; \ - for key in $GPG_KEYS; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ - done; \ - gpg --batch --verify php.tar.xz.asc php.tar.xz; \ - rm -r "$GNUPGHOME"; \ - fi; \ - \ - apk del .fetch-deps - -COPY docker-php-source /usr/local/bin/ - -RUN set -xe \ - && apk add --no-cache --virtual .build-deps \ - $PHPIZE_DEPS \ - curl-dev \ - libedit-dev \ - libxml2-dev \ - openssl-dev \ - sqlite-dev \ - \ - && export CFLAGS="$PHP_CFLAGS" \ - CPPFLAGS="$PHP_CPPFLAGS" \ - LDFLAGS="$PHP_LDFLAGS" \ - && docker-php-source extract \ - && cd /usr/src/php \ - && ./configure \ - --with-config-file-path="$PHP_INI_DIR" \ - --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ - \ - --disable-cgi \ - \ -# --enable-ftp is included here because ftp_ssl_connect() needs ftp to be compiled statically (see https://github.com/docker-library/php/issues/236) - --enable-ftp \ -# --enable-mbstring is included here because otherwise there's no way to get pecl to use it properly (see https://github.com/docker-library/php/issues/195) - --enable-mbstring \ -# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself) - --enable-mysqlnd \ - \ - --with-curl \ - --with-libedit \ - --with-openssl \ - --with-zlib \ - \ - $PHP_EXTRA_CONFIGURE_ARGS \ - && make -j "$(getconf _NPROCESSORS_ONLN)" \ - && make install \ - && { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \ - && make clean \ - && docker-php-source delete \ - \ - && runDeps="$( \ - scanelf --needed --nobanner --recursive /usr/local \ - | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ - | sort -u \ - | xargs -r apk info --installed \ - | sort -u \ - )" \ - && apk add --no-cache --virtual .php-rundeps $runDeps \ - \ - && apk del .build-deps - -COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ - -RUN set -ex \ - && cd /usr/local/etc \ - && if [ -d php-fpm.d ]; then \ - # for some reason, upstream's php-fpm.conf.default has "include=NONE/etc/php-fpm.d/*.conf" - sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; \ - cp php-fpm.d/www.conf.default php-fpm.d/www.conf; \ - else \ - # PHP 5.x doesn't use "include=" by default, so we'll create our own simple config that mimics PHP 7+ for consistency - mkdir php-fpm.d; \ - cp php-fpm.conf.default php-fpm.d/www.conf; \ - { \ - echo '[global]'; \ - echo 'include=etc/php-fpm.d/*.conf'; \ - } | tee php-fpm.conf; \ - fi \ - && { \ - echo '[global]'; \ - echo 'error_log = /proc/self/fd/2'; \ - echo; \ - echo '[www]'; \ - echo '; if we send this to /proc/self/fd/1, it never appears'; \ - echo 'access.log = /proc/self/fd/2'; \ - echo; \ - echo '; Ensure worker stdout and stderr are sent to the main error log.'; \ - echo 'catch_workers_output = yes'; \ - } | tee php-fpm.d/docker.conf \ - && { \ - echo '[global]'; \ - echo 'daemonize = no'; \ - echo; \ - echo '[www]'; \ - echo 'listen = 0.0.0.0:9000'; \ - } | tee php-fpm.d/zz-docker.conf \ - && sed -i '/listen = 127.0.0.1:9000/d' php-fpm.d/www.conf - -# INSTALLING EXTENSIONS - -ENV SSHD_PERMIT_USER_ENV="yes" \ - PHP_UNIT_VER="4.8" \ - RABBITMQ_C_VER="0.8.0" \ - WALTER_VER="1.3.0" \ - - # Imagick missing because of bug in imagemagick library. - EXT_AMQP_VER="1.8.0" \ - EXT_APCU_VER="4.0.11" \ - EXT_MEMCACHED_VER="2.2.0" \ - EXT_MONGO_VER="1.6.16" \ - EXT_OAUTH_VER="1.2.3" \ - EXT_UPLOADPROGRESS_VER="1.0.3.1" \ - EXT_XDEBUG_VER="2.2.7" \ - EXT_YAML_VER="1.3.1" \ - EXT_OPCACHE_VER="7.0.5" - -ENV WALTER_URL="https://github.com/walter-cd/walter/releases/download/v${WALTER_VER}/walter_${WALTER_VER}_linux_amd64.tar.gz" \ - RABBITMQ_C_URL="https://github.com/alanxz/rabbitmq-c/releases/download/v${RABBITMQ_C_VER}/rabbitmq-c-${RABBITMQ_C_VER}.tar.gz" \ - - APP_ROOT="/var/www/html" \ - PATH="/home/www-data/.composer/vendor/bin:${PATH}" - -RUN set -xe && \ - - apk add --update --no-cache --virtual .php-rundeps \ - bzip2 \ - c-client \ - fcgi \ - freetype \ - git \ - icu-libs \ - imap \ - less \ - libbz2 \ - libjpeg-turbo \ - libltdl \ - libmemcached-libs \ - libmcrypt \ - libpng \ - libxslt \ - make \ - mariadb-client \ - mariadb-client-libs \ - nano \ - openssh \ - openssh-client \ - openssl \ - patch \ - postgresql-client \ - rsync \ - su-exec \ - sudo \ - tig \ - tmux \ - yaml && \ - - apk add --update --no-cache --virtual .build-deps \ - autoconf \ - cmake \ - build-base \ - bzip2-dev \ - freetype-dev \ - icu-dev \ - imap-dev \ - jpeg-dev \ - libjpeg-turbo-dev \ - libmemcached-dev \ - libmcrypt-dev \ - libpng-dev \ - libtool \ - libxslt-dev \ - mariadb-dev \ - openldap-dev \ - pcre-dev \ - postgresql-dev \ - yaml-dev && \ - - docker-php-source extract && \ - - docker-php-ext-install \ - bcmath \ - bz2 \ - calendar \ - exif \ - imap \ - intl \ - ldap \ - mcrypt \ - mysql \ - mysqli \ - pcntl \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - phar \ - soap \ - sockets \ - xmlrpc \ - xsl \ - zip && \ - - # GD - docker-php-ext-configure gd \ - --with-gd \ - --with-freetype-dir=/usr/include/ \ - --with-png-dir=/usr/include/ \ - --with-jpeg-dir=/usr/include/ && \ - NPROC=$(getconf _NPROCESSORS_ONLN) && \ - docker-php-ext-install -j${NPROC} gd && \ - - # RabbitMQ C client - wget -qO- ${RABBITMQ_C_URL} | tar xz -C /tmp/ && \ - cd /tmp/rabbitmq-c-${RABBITMQ_C_VER} && \ - mkdir -p build && cd build && \ - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_C_FLAGS="${CFLAGS}" && \ - cmake --build . --target install && \ - - # PECL extensions - pecl config-set php_ini "${PHP_INI_DIR}/php.ini" && \ - - pecl install \ - amqp-${EXT_AMQP_VER} \ - apcu-${EXT_APCU_VER} \ - memcached-${EXT_MEMCACHED_VER} \ - mongo-${EXT_MONGO_VER} \ - oauth-${EXT_OAUTH_VER} \ - uploadprogress-${EXT_UPLOADPROGRESS_VER} \ - xdebug-${EXT_XDEBUG_VER} \ - yaml-${EXT_YAML_VER} \ - ZendOpcache-${EXT_OPCACHE_VER} && \ - - docker-php-ext-enable \ - amqp \ - apcu \ - memcached \ - mongo \ - oauth \ - opcache \ - uploadprogress \ - xdebug \ - yaml && \ - - # Install composer - wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ - - # Install PHPUnit - wget -qO- https://phar.phpunit.de/phpunit-${PHP_UNIT_VER}.phar > /usr/local/bin/phpunit && \ - chmod +x /usr/local/bin/phpunit && \ - - # Install Walter tool - wget -qO- ${WALTER_URL} | tar xz -C /tmp/ && \ - mv /tmp/walter_linux_amd64/walter /usr/local/bin && \ - - # Add composer bins to $PATH - su-exec www-data echo "export PATH=/home/www-data/.composer/vendor/bin:${PATH}" > /home/www-data/.profile && \ - - # Configure sudoers - { \ - echo -n 'www-data ALL=(root) NOPASSWD:SETENV: ' ; \ - echo -n '/usr/local/bin/sshd-generate-keys.sh, ' ; \ - echo -n '/usr/local/bin/fix-permissions.sh, ' ; \ - echo -n '/usr/sbin/sshd, ' ; \ - echo "/usr/sbin/crond" ; \ - } | tee /etc/sudoers.d/www-data && \ - - # Configure ldap - echo "TLS_CACERTDIR /etc/ssl/certs/" >> /etc/openldap/ldap.conf && \ - - # We run php-fpm as non root - sed -i '/^user = www-data/d;/^group = www-data/d' /usr/local/etc/php-fpm.d/www.conf* && \ - - # Create required directories and fix permissions - mkdir -p ${APP_ROOT} && \ - su-exec www-data mkdir /home/www-data/.ssh && \ - - touch /etc/ssh/sshd_config && \ - chown www-data: /etc/ssh/sshd_config && \ - - rm /etc/crontabs/root && \ - touch /etc/crontabs/www-data && \ - chown root:www-data /etc/crontabs/www-data && \ - chmod 660 /etc/crontabs/www-data && \ - - chown -R www-data:www-data /var/www "${PHP_INI_DIR}/conf.d" /usr/local/etc/php-fpm.d/ /home/www-data/.profile && \ - - # Cleanup - docker-php-source delete && \ - apk del .build-deps && \ - pecl clear-cache && \ - - rm -rf \ - /usr/src/php.tar.xz \ - /usr/include/php \ - /usr/lib/php/build \ - /tmp/* \ - /root/.composer - -USER www-data - -WORKDIR ${APP_ROOT} -EXPOSE 9000 - -COPY templates /etc/gotpl/ -COPY docker-entrypoint.sh / -COPY actions /usr/local/bin/ -COPY php.ini ${PHP_INI_DIR} - -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["php-fpm"] diff --git a/5.3/Makefile b/5.3/Makefile deleted file mode 100644 index a9744962..00000000 --- a/5.3/Makefile +++ /dev/null @@ -1,40 +0,0 @@ --include env_make - -PHP_VER ?= 5.3 -TAG ?= $(PHP_VER) - -REPO = wodby/php -NAME = php-$(PHP_VER) - -.PHONY: build test push shell run start stop logs clean release - -default: build - -build: - docker build -t $(REPO):$(TAG) ./ - -test: - IMAGE=$(REPO):$(TAG) ./test.sh - -push: - docker push $(REPO):$(TAG) - -shell: - docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) /bin/bash - -run: - docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) $(CMD) - -start: - docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) - -stop: - docker stop $(NAME) - -logs: - docker logs $(NAME) - -clean: - -docker rm -f $(NAME) - -release: build push diff --git a/5.3/actions/actions.mk b/5.3/actions/actions.mk deleted file mode 100644 index 73a9c9f6..00000000 --- a/5.3/actions/actions.mk +++ /dev/null @@ -1,37 +0,0 @@ -.PHONY: git-clone git-checkout walter check-ready check-live - -check_defined = \ - $(strip $(foreach 1,$1, \ - $(call __check_defined,$1,$(strip $(value 2))))) -__check_defined = \ - $(if $(value $1),, \ - $(error Required parameter is missing: $1$(if $2, ($2)))) - -host ?= localhost -max_try ?= 1 -wait_seconds ?= 1 -delay_seconds ?= 0 -is_hash ?= 0 -branch = "" -# Some symbols in env vars break cgi-fcgi -command ?= env -i SCRIPT_NAME="/ping" SCRIPT_FILENAME="/ping" REQUEST_METHOD=GET cgi-fcgi -bind -connect "${host}":9001 | grep -q "pong" -service = PHP-FPM - -default: check-ready - -git-clone: - $(call check_defined, url) - git-clone.sh $(url) $(branch) - -git-checkout: - $(call check_defined, target) - git-checkout.sh $(target) $(is_hash) - -walter: - walter.sh - -check-ready: - wait-for.sh "$(command)" $(service) $(host) $(max_try) $(wait_seconds) $(delay_seconds) - -check-live: - @echo "OK" diff --git a/5.3/actions/sshd-generate-keys.sh b/5.3/actions/sshd-generate-keys.sh deleted file mode 100755 index 5c0e79d4..00000000 --- a/5.3/actions/sshd-generate-keys.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -dir="${1:-/etc/ssh}" - -mkdir -p "${dir}" -ssh-keygen -qb 2048 -t rsa -N "" -f "${dir}/ssh_host_rsa_key" -chmod 0600 "${dir}/ssh_host_rsa_key" -chmod 0644 "${dir}/ssh_host_rsa_key.pub" diff --git a/5.3/actions/walter.sh b/5.3/actions/walter.sh deleted file mode 100755 index e928d759..00000000 --- a/5.3/actions/walter.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -if [[ -f "${APP_ROOT}/wodby.yml" ]]; then - walter -c "${APP_ROOT}/wodby.yml" -fi \ No newline at end of file diff --git a/5.3/docker-entrypoint.sh b/5.3/docker-entrypoint.sh deleted file mode 100755 index 7f968607..00000000 --- a/5.3/docker-entrypoint.sh +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -SSH_DIR=/home/www-data/.ssh - -_backwards_compatibility() { - declare -A vars - vars[PHP_APCU_ENABLE]="PHP_APCU_ENABLED" - vars[PHP_FPM_SLOWLOG_TIMEOUT]="PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" - vars[PHP_FPM_MAX_CHILDREN]="PHP_FPM_PM_MAX_CHILDREN" - vars[PHP_FPM_START_SERVERS]="PHP_FPM_PM_START_SERVERS" - vars[PHP_FPM_MIN_SPARE_SERVERS]="PHP_FPM_PM_MIN_SPARE_SERVERS" - vars[PHP_FPM_MAX_SPARE_SERVERS]="PHP_FPM_PM_MAX_SPARE_SERVERS" - vars[PHP_FPM_MAX_REQUESTS]="PHP_FPM_PM_MAX_REQUESTS" - vars[PHP_FPM_STATUS_PATH]="PHP_FPM_PM_STATUS_PATH" - - for i in "${!vars[@]}"; do - export "$i"="${!vars[$i]}" - done -} - -exec_tpl() { - if [[ -f "/etc/gotpl/$1" ]]; then - gotpl "/etc/gotpl/$1" > "$2" - fi -} - -validate_dirs() { - if [[ -n "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" - fi - - if [[ -n "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" - fi -} - -init_ssh_client() { - exec_tpl "ssh_config.tpl" "${SSH_DIR}/config" - - if [[ -n "${SSH_PRIVATE_KEY}" ]]; then - exec_tpl "id_rsa.tpl" "${SSH_DIR}/id_rsa" - chmod -f 600 "${SSH_DIR}/id_rsa" - unset SSH_PRIVATE_KEY - fi -} - -init_sshd() { - exec_tpl "sshd_config.tpl" "/etc/ssh/sshd_config" - - if [[ -n "${SSH_PUBLIC_KEYS}" ]]; then - exec_tpl "authorized_keys.tpl" "${SSH_DIR}/authorized_keys" - unset SSH_PUBLIC_KEYS - fi - - printenv | xargs -I{} echo {} | awk ' \ - BEGIN { FS = "=" }; { \ - if ($1 != "HOME" \ - && $1 != "PWD" \ - && $1 != "PATH" \ - && $1 != "SHLVL") { \ - \ - print ""$1"="$2"" \ - } \ - }' > "${SSH_DIR}/environment" - - sudo sshd-generate-keys.sh "${SSHD_HOST_KEYS_DIR}" -} - -init_crond() { - exec_tpl "crontab.tpl" "/etc/crontabs/www-data" -} - -process_templates() { - _backwards_compatibility - - exec_tpl "docker-php.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php.ini" - exec_tpl "docker-php-ext-opcache.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini" - exec_tpl "docker-php-ext-xdebug.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" - exec_tpl "zz-www.conf.tpl" "/usr/local/etc/php-fpm.d/zz-www.conf" - - sed -i '/^$/d' "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" -} - -init_git() { - git config --global user.email "${GIT_USER_EMAIL:-www-data@example.com}" - git config --global user.name "${GIT_USER_NAME:-www-data}" -} - -sudo fix-permissions.sh www-data www-data "${APP_ROOT}" -validate_dirs -init_ssh_client -init_git -process_templates - -if [[ "${@:1:2}" == "sudo /usr/sbin/sshd" ]]; then - init_sshd -elif [[ "${@:1:3}" == "sudo -E crond" ]]; then - init_crond -fi - -exec-init-scripts.sh - -if [[ $1 == "make" ]]; then - exec "${@}" -f /usr/local/bin/actions.mk -else - exec /usr/local/bin/docker-php-entrypoint "${@}" -fi diff --git a/5.3/docker-php-entrypoint b/5.3/docker-php-entrypoint deleted file mode 100755 index 86343d80..00000000 --- a/5.3/docker-php-entrypoint +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -e - -# first arg is `-f` or `--some-option` -if [ "${1#-}" != "$1" ]; then - set -- php-fpm "$@" -fi - -exec "$@" diff --git a/5.3/docker-php-ext-configure b/5.3/docker-php-ext-configure deleted file mode 100755 index 93d31601..00000000 --- a/5.3/docker-php-ext-configure +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -set -e - -# prefer user supplied CFLAGS, but default to our PHP_CFLAGS -: ${CFLAGS:=$PHP_CFLAGS} -: ${CPPFLAGS:=$PHP_CPPFLAGS} -: ${LDFLAGS:=$PHP_LDFLAGS} -export CFLAGS CPPFLAGS LDFLAGS - -srcExists= -if [ -d /usr/src/php ]; then - srcExists=1 -fi -docker-php-source extract -if [ -z "$srcExists" ]; then - touch /usr/src/php/.docker-delete-me -fi - -cd /usr/src/php/ext - -ext="$1" -if [ -z "$ext" ] || [ ! -d "$ext" ]; then - echo >&2 "usage: $0 ext-name [configure flags]" - echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something" - echo >&2 - echo >&2 'Possible values for ext-name:' - find /usr/src/php/ext \ - -mindepth 2 \ - -maxdepth 2 \ - -type f \ - -name 'config.m4' \ - | xargs -n1 dirname \ - | xargs -n1 basename \ - | sort \ - | xargs - exit 1 -fi -shift - -pm='unknown' -if [ -e /lib/apk/db/installed ]; then - pm='apk' -fi - -if [ "$pm" = 'apk' ]; then - if \ - [ -n "$PHPIZE_DEPS" ] \ - && ! apk info --installed .phpize-deps > /dev/null \ - && ! apk info --installed .phpize-deps-configure > /dev/null \ - ; then - apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS - fi -fi - -set -x -cd "$ext" -phpize -./configure "$@" diff --git a/5.3/docker-php-ext-enable b/5.3/docker-php-ext-enable deleted file mode 100755 index 367aaf2b..00000000 --- a/5.3/docker-php-ext-enable +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/sh -set -e - -cd "$(php -r 'echo ini_get("extension_dir");')" - -usage() { - echo "usage: $0 [options] module-name [module-name ...]" - echo " ie: $0 gd mysqli" - echo " $0 pdo pdo_mysql" - echo " $0 --ini-name 0-apc.ini apcu apc" - echo - echo 'Possible values for module-name:' - echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort) -} - -opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })" -eval set -- "$opts" - -iniName= -while true; do - flag="$1" - shift - case "$flag" in - --help|-h|'-?') usage && exit 0 ;; - --ini-name) iniName="$1" && shift ;; - --) break ;; - *) - { - echo "error: unknown flag: $flag" - usage - } >&2 - exit 1 - ;; - esac -done - -modules= -for module; do - if [ -z "$module" ]; then - continue - fi - if [ -f "$module.so" ] && ! [ -f "$module" ]; then - # allow ".so" to be optional - module="$module.so" - fi - if ! [ -f "$module" ]; then - echo >&2 "error: $(readlink -f "$module") does not exist" - echo >&2 - usage >&2 - exit 1 - fi - modules="$modules $module" -done - -if [ -z "$modules" ]; then - usage >&2 - exit 1 -fi - -for module in $modules; do - if nm -g "$module" | grep -q ' zend_extension_entry$'; then - # https://wiki.php.net/internals/extensions#loading_zend_extensions - line="zend_extension=$(readlink -f "$module")" - else - line="extension=$module" - fi - - ext="$(basename "$module")" - ext="${ext%.*}" - if php -r 'exit(extension_loaded("'"$ext"'") ? 0 : 1);'; then - # this isn't perfect, but it's better than nothing - # (for example, 'opcache.so' presents inside PHP as 'Zend OPcache', not 'opcache') - echo >&2 - echo >&2 "warning: $ext ($module) is already loaded!" - echo >&2 - continue - fi - - ini="/usr/local/etc/php/conf.d/${iniName:-"docker-php-ext-$ext.ini"}" - if ! grep -q "$line" "$ini" 2>/dev/null; then - echo "$line" >> "$ini" - fi -done diff --git a/5.3/docker-php-ext-install b/5.3/docker-php-ext-install deleted file mode 100755 index c0660230..00000000 --- a/5.3/docker-php-ext-install +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/sh -set -e - -# prefer user supplied CFLAGS, but default to our PHP_CFLAGS -: ${CFLAGS:=$PHP_CFLAGS} -: ${CPPFLAGS:=$PHP_CPPFLAGS} -: ${LDFLAGS:=$PHP_LDFLAGS} -export CFLAGS CPPFLAGS LDFLAGS - -srcExists= -if [ -d /usr/src/php ]; then - srcExists=1 -fi -docker-php-source extract -if [ -z "$srcExists" ]; then - touch /usr/src/php/.docker-delete-me -fi - -cd /usr/src/php/ext - -usage() { - echo "usage: $0 [-jN] ext-name [ext-name ...]" - echo " ie: $0 gd mysqli" - echo " $0 pdo pdo_mysql" - echo " $0 -j5 gd mbstring mysqli pdo pdo_mysql shmop" - echo - echo 'if custom ./configure arguments are necessary, see docker-php-ext-configure' - echo - echo 'Possible values for ext-name:' - find . \ - -mindepth 2 \ - -maxdepth 2 \ - -type f \ - -name 'config.m4' \ - | xargs -n1 dirname \ - | xargs -n1 basename \ - | sort \ - | xargs -} - -opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })" -eval set -- "$opts" - -j=1 -while true; do - flag="$1" - shift - case "$flag" in - --help|-h|'-?') usage && exit 0 ;; - --jobs|-j) j="$1" && shift ;; - --) break ;; - *) - { - echo "error: unknown flag: $flag" - usage - } >&2 - exit 1 - ;; - esac -done - -exts= -for ext; do - if [ -z "$ext" ]; then - continue - fi - if [ ! -d "$ext" ]; then - echo >&2 "error: $PWD/$ext does not exist" - echo >&2 - usage >&2 - exit 1 - fi - exts="$exts $ext" -done - -if [ -z "$exts" ]; then - usage >&2 - exit 1 -fi - -pm='unknown' -if [ -e /lib/apk/db/installed ]; then - pm='apk' -fi - -apkDel= -if [ "$pm" = 'apk' ]; then - if [ -n "$PHPIZE_DEPS" ]; then - if apk info --installed .phpize-deps-configure > /dev/null; then - apkDel='.phpize-deps-configure' - elif ! apk info --installed .phpize-deps > /dev/null; then - apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS - apkDel='.phpize-deps' - fi - fi -fi - -popDir="$PWD" -for ext in $exts; do - cd "$ext" - [ -e Makefile ] || docker-php-ext-configure "$ext" - make -j"$j" - make -j"$j" install - find modules \ - -maxdepth 1 \ - -name '*.so' \ - -exec basename '{}' ';' \ - | xargs -r docker-php-ext-enable - make -j"$j" clean - cd "$popDir" -done - -if [ "$pm" = 'apk' ] && [ -n "$apkDel" ]; then - apk del $apkDel -fi - -if [ -e /usr/src/php/.docker-delete-me ]; then - docker-php-source delete -fi diff --git a/5.3/docker-php-source b/5.3/docker-php-source deleted file mode 100755 index 9033d243..00000000 --- a/5.3/docker-php-source +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -set -e - -dir=/usr/src/php - -usage() { - echo "usage: $0 COMMAND" - echo - echo "Manage php source tarball lifecycle." - echo - echo "Commands:" - echo " extract extract php source tarball into directory $dir if not already done." - echo " delete delete extracted php source located into $dir if not already done." - echo -} - -case "$1" in - extract) - mkdir -p "$dir" - if [ ! -f "$dir/.docker-extracted" ]; then - tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 - touch "$dir/.docker-extracted" - fi - ;; - - delete) - rm -rf "$dir" - ;; - - *) - usage - exit 1 - ;; -esac diff --git a/5.3/templates/authorized_keys.tpl b/5.3/templates/authorized_keys.tpl deleted file mode 100644 index 13d7e16c..00000000 --- a/5.3/templates/authorized_keys.tpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ range jsonArray (getenv "SSH_PUBLIC_KEYS" "[]" ) }}{{ . }} -{{ end }} \ No newline at end of file diff --git a/5.3/templates/crontab.tpl b/5.3/templates/crontab.tpl deleted file mode 100644 index 6850ee4c..00000000 --- a/5.3/templates/crontab.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "CRONTAB" "" }} \ No newline at end of file diff --git a/5.3/templates/docker-php-ext-opcache.ini.tpl b/5.3/templates/docker-php-ext-opcache.ini.tpl deleted file mode 100644 index 50959dd0..00000000 --- a/5.3/templates/docker-php-ext-opcache.ini.tpl +++ /dev/null @@ -1,10 +0,0 @@ -[opcache] -zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/opcache.so -opcache.enable = {{ getenv "PHP_OPCACHE_ENABLE" "1" }} -opcache.validate_timestamps = {{ getenv "PHP_OPCACHE_VALIDATE_TIMESTAMPS" "1" }} -opcache.revalidate_freq = {{ getenv "PHP_OPCACHE_REVALIDATE_FREQ" "2" }} -opcache.max_accelerated_files = {{ getenv "PHP_OPCACHE_MAX_ACCELERATED_FILES" "4000" }} -opcache.memory_consumption = {{ getenv "PHP_OPCACHE_MEMORY_CONSUMPTION" "128" }} -opcache.interned_strings_buffer = {{ getenv "PHP_OPCACHE_INTERNED_STRINGS_BUFFER" "8" }} -opcache.fast_shutdown = {{ getenv "PHP_OPCACHE_FAST_SHUTDOWN" "1" }} -opcache.enable_cli = {{ getenv "PHP_OPCACHE_ENABLE_CLI" "1" }} \ No newline at end of file diff --git a/5.3/templates/docker-php-ext-xdebug.ini.tpl b/5.3/templates/docker-php-ext-xdebug.ini.tpl deleted file mode 100644 index 3f32e300..00000000 --- a/5.3/templates/docker-php-ext-xdebug.ini.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{{ if getenv "PHP_XDEBUG" }} -[xdebug] -zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so -xdebug.default_enable = {{ getenv "PHP_XDEBUG_DEFAULT_ENABLE" "0" }} -xdebug.remote_enable = {{ getenv "PHP_XDEBUG_REMOTE_ENABLE" "1" }} -xdebug.remote_handler = dbgp -xdebug.remote_port = {{ getenv "PHP_XDEBUG_REMOTE_PORT" "9000" }} -xdebug.remote_autostart = {{ getenv "PHP_XDEBUG_REMOTE_AUTOSTART" "1" }} -xdebug.remote_connect_back = {{ getenv "PHP_XDEBUG_REMOTE_CONNECT_BACK" "1" }} -xdebug.remote_host = {{ getenv "PHP_XDEBUG_REMOTE_HOST" "localhost" }} -xdebug.max_nesting_level = {{ getenv "PHP_XDEBUG_MAX_NESTING_LEVEL" "256" }} -{{ end }} diff --git a/5.3/templates/docker-php.ini.tpl b/5.3/templates/docker-php.ini.tpl deleted file mode 100644 index ae9f9844..00000000 --- a/5.3/templates/docker-php.ini.tpl +++ /dev/null @@ -1,35 +0,0 @@ -; This file user only to override default php.ini values -; BASIC SETTINGS: $PHP_INI_DIR/php.ini -; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf - -[PHP] -realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "16k" }} -realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} -memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} -error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} -log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "1024" }} -track_errors = {{ getenv "PHP_TRACK_ERRORS" "On" }} -error_log = /proc/self/fd/2 - -[Date] -date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} - -[Pdo_mysql] -pdo_mysql.cache_size = {{ getenv "PHP_PDO_MYSQL_CACHE_SIZE" "2000" }} - -[mail function] -sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} - -[MySQL] -mysql.cache_size = {{ getenv "PHP_MYSQL_CACHE_SIZE" "2000" }} - -[MySQLi] -mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} - -[Assertion] -assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} - -[mbstring] -mbstring.http_input = {{ getenv "PHP_MBSTRING_HTTP_INPUT" "" }} -mbstring.http_output = {{ getenv "PHP_MBSTRING_HTTP_OUTPUT" "" }} -mbstring.encoding_translation = {{ getenv "PHP_MBSTRING_ENCODING_TRANSLATION" "Off" }} \ No newline at end of file diff --git a/5.3/templates/env.tpl b/5.3/templates/env.tpl deleted file mode 100644 index f9b70c73..00000000 --- a/5.3/templates/env.tpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ range jsonArray (getenv "FPM_ENV_VARS" "[]") }}{{ if getenv . }}env[{{ . }}] = {{ getenv . }} -{{ end }}{{ end }} \ No newline at end of file diff --git a/5.3/templates/id_rsa.tpl b/5.3/templates/id_rsa.tpl deleted file mode 100644 index 5d3f525c..00000000 --- a/5.3/templates/id_rsa.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "SSH_PRIVATE_KEY" "" }} \ No newline at end of file diff --git a/5.3/templates/sshd_config.tpl b/5.3/templates/sshd_config.tpl deleted file mode 100644 index ed4b4a99..00000000 --- a/5.3/templates/sshd_config.tpl +++ /dev/null @@ -1,121 +0,0 @@ -# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/bin:/usr/bin:/sbin:/usr/sbin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -{{ $keys_dir := (getenv "SSHD_HOST_KEYS_DIR" "/etc/ssh") }} -HostKey {{ $keys_dir }}/ssh_host_rsa_key -HostKey {{ $keys_dir }}/ssh_host_dsa_key -HostKey {{ $keys_dir }}/ssh_host_ecdsa_key -HostKey {{ $keys_dir }}/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -LogLevel {{ getenv "SSHD_LOG_LEVEL" "INFO" }} - -# Authentication: - -#LoginGraceTime 2m -#PermitRootLogin prohibit-password -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -PasswordAuthentication {{ getenv "SSHD_PASSWORD_AUTHENTICATION" "no" }} -#PermitEmptyPasswords no - -# Change to no to disable s/key passwords -#ChallengeResponseAuthentication yes - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no - -# GSSAPI options -#GSSAPIAuthentication no -#GSSAPICleanupCredentials yes - -# UsePAM NOT SUPPORTED - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -GatewayPorts {{ getenv "SSHD_GATEWAY_PORTS" "no" }} -#X11Forwarding no -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -#PrintMotd yes -#PrintLastLog yes -#TCPKeepAlive yes -#UseLogin no -PermitUserEnvironment {{ getenv "SSHD_PERMIT_USER_ENV" "no" }} -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -UseDNS {{ getenv "SSHD_USE_DNS" "yes" }} -#PidFile /run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# override default of no subsystems -Subsystem sftp /usr/lib/ssh/sftp-server - -# the following are HPN related configuration options -# tcp receive buffer polling. disable in non autotuning kernels -#TcpRcvBufPoll yes - -# disable hpn performance boosts -#HPNDisabled no - -# buffer size for hpn to non-hpn connections -#HPNBufferSize 2048 - - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/5.3/templates/zz-www.conf.tpl b/5.3/templates/zz-www.conf.tpl deleted file mode 100644 index 5f8ab20a..00000000 --- a/5.3/templates/zz-www.conf.tpl +++ /dev/null @@ -1,49 +0,0 @@ -[global] -log_level = {{ getenv "PHP_FPM_LOG_LEVEL" "notice" }} - -[www] -pm = {{ getenv "PHP_FPM_PM" "dynamic" }} -pm.max_children = {{ getenv "PHP_FPM_PM_MAX_CHILDREN" "8" }} -pm.start_servers = {{ getenv "PHP_FPM_PM_START_SERVERS" "2" }} -pm.min_spare_servers = {{ getenv "PHP_FPM_PM_MIN_SPARE_SERVERS" "1" }} -pm.max_spare_servers = {{ getenv "PHP_FPM_PM_MAX_SPARE_SERVERS" "3" }} -pm.max_requests = {{ getenv "PHP_FPM_PM_MAX_REQUESTS" "500" }} -{{ if getenv "PHP_FPM_PM_STATUS_PATH" }} -pm.status_path = {{ getenv "PHP_FPM_PM_STATUS_PATH" }} -{{ end }} -{{ if getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -slowlog = /proc/self/fd/2 -request_slowlog_timeout = {{ getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -{{ end }} - -php_value[display_errors] = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} -php_value[display_startup_errors] = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} -php_value[expose_php] = {{ getenv "PHP_EXPOSE" "Off" }} -php_value[max_execution_time] = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} -php_value[max_input_time] = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} -php_value[max_input_vars] = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} -php_value[memory_limit] = {{ getenv "PHP_MEMORY_LIMIT" "512M" }} -php_value[post_max_size] = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} -php_value[upload_max_filesize] = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} -php_value[max_file_uploads] = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} -php_value[output_buffering] = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} -php_value[always_populate_raw_post_data] = {{ getenv "PHP_ALWAYS_POPULATE_RAW_POST_DATA" "0" }} -php_value[session.auto_start] = {{ getenv "PHP_SESSION_AUTO_START" "0" }} -php_value[session.bug_compat_42] = {{ getenv "PHP_SESSION_BUG_COMPAT_42" "On" }} -php_value[session.bug_compat_warn] = {{ getenv "PHP_SESSION_BUG_COMPAT_WARN" "On" }} - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} - -{{ if getenv "PHP_FPM_ENV_VARS" }}{{ range jsonArray (getenv "PHP_FPM_ENV_VARS") }}{{ if getenv . }} -env[{{.}}] = {{ getenv . }}{{ end }}{{ end }}{{ end }} - -; Pool for health-check pings to avoid spam in access log. -[ping] -pm = static -pm.max_children = 1 -listen = 0.0.0.0:9001 -ping.path = "/ping" - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} diff --git a/5.3/test.sh b/5.3/test.sh deleted file mode 100755 index 8bd14fb9..00000000 --- a/5.3/test.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -git_url=git@bitbucket.org:wodby/php-git-test.git - -wait_for_cron() { - executed=0 - - for i in $(seq 1 13); do - if docker_exec crond cat /home/www-data/cron | grep -q "test"; then - executed=1 - break - fi - echo 'Waiting for cron execution...' - sleep 5 - done - - if [[ "${executed}" -eq '0' ]]; then - echo >&2 'Cron failed.' - exit 1 - fi - - echo 'Cron has been executed!' -} - -docker_exec() { - docker-compose -f test/docker-compose.yml exec "${@}" -} - -run_action() { - docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk -} - -docker-compose -f test/docker-compose.yml up -d -run_action nginx check-ready max_try=10 -run_action php check-ready max_try=10 - -# PHP tools -docker_exec php tests.sh - -# SSH -echo -n "Testing ssh... " -docker_exec php touch /home/www-data/.ssh/known_hosts -docker_exec php ssh www-data@sshd cat /home/www-data/.ssh/authorized_keys | grep -q admin@wodby.com -echo "OK" - -# Git actions -echo -n "Running git actions... " -docker_exec php bash -c 'echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config' -run_action php git-clone url="${git_url}" branch=master -run_action php git-checkout target=develop -echo "OK" - -# PHP-FPM -echo -n "Checking PHP-FPM... " -docker_exec php curl nginx | grep -q "Hello World!" -echo "OK" - -# Walter CD -echo -n "Running walter scripts... " -run_action php walter -docker_exec php cat ./walter-shell-stage -docker_exec php cat ./walter-command-stage -echo "OK" - -# Crond -wait_for_cron - -docker-compose -f test/docker-compose.yml down diff --git a/5.3/test/docker-compose.yml b/5.3/test/docker-compose.yml deleted file mode 100644 index 55d6ad72..00000000 --- a/5.3/test/docker-compose.yml +++ /dev/null @@ -1,93 +0,0 @@ -version: "2" - -services: - nginx: - image: wodby/nginx:1.13 - environment: - NGINX_BACKEND_HOST: php - volumes: - - ./nginx.conf:/etc/gotpl/default-vhost.conf.tpl - depends_on: - - php - - sshd: - image: $IMAGE - command: sudo /usr/sbin/sshd -De - environment: - DEBUG: 1 - SSH_PUBLIC_KEYS: |- - ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4mQ9wfvufRcDQ4LsoCYEyDL4LNsvP8dWKWMQKrnJ8k09IQm7mnvyzid8zxNJpQYxX12foC0+BttjejWVj67vf1if7rDHb\/e0oX7yQp4ji3QTjDNPDaOR\/eTOCNv1C5Lfj3n7D1G7O2dOiw8lAoSalGy6nltuTYY9EXbkl1dXaCG7qbQRVJEJdZ6x2oJ8FubJO6wjZvj9P759ziLVmWAqtzUgIQVlbv0nqSoq16Ug381sfnRvsHO1fXGhdgHGQ0WP720p5cBHxG+62HJROah5b7gahXidC2Lo6kdnLb5FOzZjRJO1aDiKgry\/GoNNijs6D5xwLtn44HoHMe0eyUw7lQCrWZwvNmdfvIecr+ZJNwT8cbZ2Cf5y0SqD4JZpcolR5FKuQluaVMdOvJCa8A\/BzvRqIeNLmZuHFRvruu2VTIHHZFR2CFgH9F+G\/KyBnmQwV\/FgqN6sy1MAuFmyizL7sJHVL3tSaMPSs423A+SLWYkXLxpUPjo2J5W2ImZYq97AQaHcArvrhKS2MwbBFGwaxglcq5t8Ss6Df3fEZUWGLHJSdOv\/fn\/+CNOiI7hjj3v5mHaxxnC27MOHmJlrqmCA3OXuQ9mZG\/hSfj2vPKF+xFUarqqsp4zVsDH71bY2Q+zHpyncIFnyhaiEba9gbvmUVOfUyYglkJ6TGF5xAhpDFpQ== admin@wodby.com"] - - php: - image: $IMAGE - environment: - SSH_DISABLE_STRICT_KEY_CHECKING: 1 - PHP_XDEBUG: 1 - SSH_PRIVATE_KEY: |- - -----BEGIN RSA PRIVATE KEY----- - MIIJKQIBAAKCAgEAuJkPcH77n0XA0OC7KAmBMgy+CzbLz/HViljECq5yfJNPSEJu - 5p78s4nfM8TSaUGMV9dn6AtPgbbY3o1lY+u739Yn+6wx2/3tKF+8kKeI4t0E4wzT - w2jkf3kzgjb9QuS3495+w9RuztnTosPJQKEmpRsup5bbk2GPRF25JdXV2ghu6m0E - VSRCXWesdqCfBbmyTusI2b4/T++fc4i1ZlgKrc1ICEFZW79J6kqKtelIN/NbH50b - 7BztX1xoXYBxkNFj+9tKeXAR8RvuthyUTmoeW+4GoV4nQti6OpHZy2+RTs2Y0STt - Wg4ioK8vxqDTYo7Og+ccC7Z+OB6BzHtHslMO5UAq1mcLzZnX7yHnK/mSTcE/HG2d - gn+ctEqg+CWaXKJUeRSrkJbmlTHTryQmvAPwc70aiHjS5mbhxUb67rtlUyBx2RUd - ghYB/RfhvysgZ5kMFfxYKjerMtTALhZsosy+7CR1S97UmjD0rONtwPki1mJFy8aV - D46NieVtiJmWKvewEGh3AK764SktjMGwRRsGsYJXKubfErOg393xGVFhixyUnTr/ - 35//gjToiO4Y497+Zh2scZwtuzDh5iZa6pggNzl7kPZmRv4Un49rzyhfsRVGq6qr - KeM1bAx+9W2NkPsx6cp3CBZ8oWohG2vYG75lFTn1MmIJZCekxhecQIaQxaUCAwEA - AQKCAgBe5+J2NfLr2hLd0Qyn8usHbmGupkd266Cb9jMkQrf9sEbMocseqpLFQ5cL - qJ99GgQrjUWQmXARAo7RLOT50FLRK+t2ivs/XXe2kDIENP49lOBUU130U1NW7ls7 - EUZ4Q9r/Pn7x85/cnUUfo4Uuwyt5K1Z7NyZAyaG8xmrQNvYxmLBduhrGI1QzbX/P - pZjcerJfvJraR+OJF2tlHN4WdiFXZfkotWBZuSkpWZWjHQLSMT2iLUYTyHOJ2ZqW - p9i7WcwLypypfqLa0T+TRXJCNnDRVrj18dBBn+dvAVl2LDAK0c1FibS13hqTfj4T - 4s+LFly6l/FlXDfcZmLZXHBqECXReoyY02mo6jNOdzwYHKElPQeAnzc8IRIBG3s4 - EU+OA2EFZzQp2qSNlVAfTe/masQZkBOYTU/cpWg5yfIReFEWc1FzILTyXESJu0U2 - GmAYu1b7miFWsglIapUxCdlfdoEer+yDpjG4T151CYB11sUfpgcfOhAsStNfykmc - AaxRzklKFnjD5R8Au0BqZLyHu7FApV0BQqwZkevomsAAVWfVSxVGobnSzhW2mIIV - 4FyAKWHG8pm0By/eJkgKjJK3rIAjeAq/bJpNoUeKwjdvuysfMM9Q/LEjUQ5RRU09 - r/kAquTDUHne5d4yEjzmDmlaBN/zrMYuY1bG5H9Qs05p86W/aQKCAQEA82TOCRys - XCud62XTyHYxOqQbG/vDa1qdiamiE4iGBJgFUG0Xvqzy3YeSvqdifRxzst2auj7p - OSHk6w5/4Q2iezew/UCzRcG+INwtNwOUJ7wvHPyqskbp3w7e4OkrcN6lzReFZqls - pB5a9U8yn3qK/qrpHtyyBds951qI0olDyiPdW0M+8IKrIa70cUb6PYpk5enGVgyI - h+fBK9PTCzr9Gsk5XTpkNRcvgF1Czig+ZXk4KpD19W/JtqHSpCOu5XZx1RpCBBtY - +1BJcTzE0jgOAywFuUHVdYaSXZa+Nlyc+mgjqZoeNfgy8rvcGrM7VYAt+wlPpSeI - eiQBgeltfDWD7wKCAQEAwiisBfaSvN+odjs05vYEYPH43Vs2pp76ZxjUqTU0H2hL - Cmun2ogh/QgDy1wIUQBeZznm4mSQWn5vZNBmz786Fh2tPFi4QQaYCvtJmGfeV5aR - wOnb+cpCVeI2MG9iBnUPlWp7Zdj7Lwdt2EG5QNIMfF4zKuScuY2E05eIZCuWPdwA - 9/9zaWH3QR9luCEcHzLuspmu56uH5CvMBtsDdqs42BAm/DRn5FjAAWIHunIjoRrt - 8WaHe1/jPPcOHAvVLeK1iq/Ahe9f48JQqh5PeMtWFyUqRB68D5RcqCgHlVpfFk84 - UFMvgVLo2Sv1LtZAWlop168Io6YTsbXpt9HAxl+rqwKCAQEAs3EFSch+9nEdu1fW - XLturfohFm918qba8IxEtrv3elmNyW60i9o8L8DtGmyTewPH9P3WPit1jK6FdBq7 - gvOnb8puTTgvM2WUQ+uv1hhoWScvYOKTAl6vu8jd3tlpMoyjlmIZ8sdEFndeve6G - tvcElJ7ywdMZ2KF7sR6ZMwcKGHR6lPct5umfO3UeOImIomhu3OaOWBBjdDcTvrkr - peL2iZIDHc2X5WBToAKh5xXacrt9AjzfaPTitSf3ARZhskCxydfTBe4XmyjlDHwt - 64JyKjqBecSkmEH/lMo3MCL1hNPUPw0l6soy3axMqM6tFusqeyKxOmS8BLiY9+td - 0a4utwKCAQBIXrigEGRpmkRErZTuccz4BblpaNJaEO/s9chuubIP8uPlonMSdaOV - mSMw7cD70FNfzqlMwYc889u5jCSGUxTnoXAtCjTDqB2MGlY4RJ8PrsPtUD36QXWw - ZX0lWJ8FISUJ4ILWV6ZoxTAgZ38RtjmJMeOInWX9k85qwBTKoaSCsjp6NfFi2m07 - DOTxWQYOawGl+LrFB57DYb/O3lvQI8owXvTpFO+UobAP0+ZljJ3TMyJ11G2zgu5E - jyHnOlHfpJ1ecFwmkC8ByjAe+OVOdRxFzEiQ05PtirNuylzpQqImwqiO6DLQ1YKN - UGE3cAzUoL7v8gIaXZEBsHjJV5mvV4G5AoIBAQCd89YTMEVVHr2HPxWmQb1BJ+4D - u0u9Aj9Gb6f3qxfQPa9+A081rdnb2DEXCRrjPAguxP/JxXmBMQjs/PfcCnHRHFWU - nEnXfUAprudh2xX6j3tgNyOwJT3fBlRg8TRQ5HorpzaCxzCIoMgbwBmB05VzxDAq - y7zXXF+i0+QLHdAKMIQmps0S+qn+ji3ViooJyrAGuZTmeIXQP7b8wgft5m16C5Nc - Hl/7LjnsiAiu6HMNqIjrJmHNmdYlmfqFBepvWpnykUgvEMSigyy0K7858Lcl+FH3 - 62fhFpwtP7IE2/o+6+JybuQRrUqHvAPM0/RTn8//rZmkmq3mrAYc+MslXAt+ - -----END RSA PRIVATE KEY----- - volumes: - - ./tests.sh:/usr/local/bin/tests.sh - - ./php_modules:/home/www-data/php_modules - depends_on: - - sshd - - crond: - image: $IMAGE - command: sudo -E crond -f -d 0 - environment: - CRONTAB_ENV: test - CRONTAB: |- - # min hour day month weekday command - */1 * * * * echo "$${CRONTAB_ENV}" > /home/www-data/cron - depends_on: - - sshd diff --git a/5.3/test/nginx.conf b/5.3/test/nginx.conf deleted file mode 100644 index a89ce5ba..00000000 --- a/5.3/test/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - server_name default; - listen 80; - - root /var/www/html/; - index index.php; - - fastcgi_param REQUEST_METHOD $request_method; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_index index.php; - - location / { - fastcgi_pass php:9000; - } -} diff --git a/5.3/test/php_modules b/5.3/test/php_modules deleted file mode 100644 index f676791b..00000000 --- a/5.3/test/php_modules +++ /dev/null @@ -1,70 +0,0 @@ -[PHP Modules] -amqp -apc -apcu -bcmath -bz2 -calendar -Core -ctype -curl -date -dom -ereg -exif -fileinfo -filter -ftp -gd -hash -iconv -imap -intl -json -ldap -libxml -mbstring -mcrypt -memcached -mongo -mysql -mysqli -mysqlnd -OAuth -openssl -pcntl -pcre -PDO -pdo_mysql -pdo_pgsql -pdo_sqlite -pgsql -Phar -posix -readline -Reflection -session -SimpleXML -soap -sockets -SPL -SQLite -sqlite3 -standard -tokenizer -uploadprogress -xdebug -xml -xmlreader -xmlrpc -xmlwriter -xsl -yaml -Zend OPcache -zip -zlib - -[Zend Modules] -Xdebug -Zend OPcache - diff --git a/5.3/test/tests.sh b/5.3/test/tests.sh deleted file mode 100755 index 282e8d21..00000000 --- a/5.3/test/tests.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -php -m > ~/php_modules.tmp -echo -n "Checking PHP modules... " - -# Modify copy, keep the mounted version untouched. -cp ~/php_modules ~/expected_modules - -if [[ "${PHP_DEBUG}" == 1 ]]; then - sed -i '/blackfire/d' ~/expected_modules -fi - -if ! cmp -s ~/php_modules.tmp ~/expected_modules; then - echo "Error. PHP modules are not identical." - diff ~/php_modules.tmp ~/expected_modules - exit 1 -fi - -echo "OK" - -echo -n "Checking composer... " -composer --version | grep -q 'Composer version' -echo "OK" - -echo -n "Checking walter... " -walter -v | grep -q 'Walter version' -echo "OK" - -echo -n "Checking PHPUnit... " -phpunit -version | grep -q 'PHPUnit' -echo "OK" diff --git a/5.6/Dockerfile b/5.6/Dockerfile deleted file mode 100644 index cf7156af..00000000 --- a/5.6/Dockerfile +++ /dev/null @@ -1,256 +0,0 @@ -ARG FROM_TAG - -FROM wodby/base-php:${FROM_TAG} - -ARG PHP_DEBUG - -ENV PHP_DEBUG="${PHP_DEBUG:-0}" \ - SSHD_PERMIT_USER_ENV="yes" \ - PHP_PRESTISSIMO_VER="0.3" \ - PHP_UNIT_VER="5.7" \ - WALTER_VER="1.3.0" \ - - EXT_AMQP_VER="1.9.1" \ - EXT_APCU_VER="4.0.11" \ - EXT_GEOIP_VER="1.1.1" \ - EXT_IMAGICK_VER="3.4.3" \ - EXT_MEMCACHED_VER="2.2.0" \ - EXT_MONGODB_VER="1.3.2" \ - EXT_OAUTH_VER="1.2.3" \ - EXT_REDIS_VER="3.1.4" \ - EXT_UPLOADPROGRESS_VER="1.0.3.1" \ - EXT_XDEBUG_VER="2.5.5" \ - EXT_YAML_VER="1.3.1" \ - - C_CLIENT_VER="2007f-r6" \ - FREETYPE_VER="2.7.1-r1" \ - GEOIP_VER="1.6.10-r0" \ - ICU_LIBS_VER="58.2-r2" \ - IMAGEMAGICK_VER="7.0.5.10-r0" \ - LIBBZ2_VER="1.0.6-r5" \ - LIBJPEG_TURBO_VER="1.5.1-r0" \ - LIBLDAP_VER="2.4.44-r5" \ - LIBLTDL_VER="2.4.6-r1" \ - LIBMEMCACHED_LIBS_VER="1.0.18-r1" \ - LIBMCRYPT_VER="2.5.8-r7" \ - LIBPNG_VER="1.6.29-r1" \ - LIBXSLT_VER="1.1.29-r3" \ - MARIADB_CLIENT_VER="10.1.26-r0" \ - POSTGRESQL_CLIENT_VER="9.6.5-r0" \ - RABBITMQ_C_VER="0.8.0-r2" \ - YAML_VER="0.1.7-r0" - -ENV WALTER_URL="https://github.com/walter-cd/walter/releases/download/v${WALTER_VER}/walter_${WALTER_VER}_linux_amd64.tar.gz" \ - BLACKFIRE_URL="https://blackfire.io/api/v1/releases/probe/php/alpine/amd64" \ - - APP_ROOT="/var/www/html" \ - PATH="/home/www-data/.composer/vendor/bin:${PATH}" - -RUN set -xe && \ - - # Recreate user with correct params - deluser www-data && \ - addgroup -g 82 -S www-data && \ - adduser -u 82 -D -S -s /bin/bash -G www-data www-data && \ - sed -i '/^www-data/s/!/*/' /etc/shadow && \ - echo "PS1='\w\$ '" >> /home/www-data/.bashrc && \ - - apk add --update --no-cache --virtual .php-rundeps \ - c-client=${C_CLIENT_VER} \ - fcgi \ - freetype=${FREETYPE_VER} \ - geoip=${GEOIP_VER} \ - git \ - icu-libs=${ICU_LIBS_VER} \ - imagemagick=${IMAGEMAGICK_VER} \ - less \ - libbz2=${LIBBZ2_VER} \ - libjpeg-turbo=${LIBJPEG_TURBO_VER} \ - libldap=${LIBLDAP_VER} \ - libltdl=${LIBLTDL_VER} \ - libmemcached-libs=${LIBMEMCACHED_LIBS_VER} \ - libmcrypt=${LIBMCRYPT_VER} \ - libpng=${LIBPNG_VER} \ - libxslt=${LIBXSLT_VER} \ - make \ - mariadb-client=${MARIADB_CLIENT_VER} \ - nano \ - openssh \ - openssh-client \ - patch \ - postgresql-client=${POSTGRESQL_CLIENT_VER} \ - rabbitmq-c=${RABBITMQ_C_VER} \ - rsync \ - su-exec \ - sudo \ - tig \ - tmux \ - yaml=${YAML_VER} && \ - - apk add --update --no-cache --virtual .build-deps \ - autoconf \ - cmake \ - build-base \ - bzip2-dev \ - freetype-dev \ - geoip-dev \ - icu-dev \ - imagemagick-dev \ - imap-dev \ - jpeg-dev \ - libjpeg-turbo-dev \ - libmemcached-dev \ - libmcrypt-dev \ - libpng-dev \ - libtool \ - libxslt-dev \ - openldap-dev \ - pcre-dev \ - postgresql-dev \ - rabbitmq-c-dev \ - yaml-dev && \ - - if [[ $PHP_DEBUG == 1 ]]; then \ - apk add --update --no-cache --virtual .debug-tools gdb; \ - fi && \ - - docker-php-source extract && \ - - docker-php-ext-install \ - bcmath \ - bz2 \ - calendar \ - exif \ - imap \ - intl \ - ldap \ - mcrypt \ - mysql \ - mysqli \ - opcache \ - pcntl \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - phar \ - soap \ - sockets \ - xmlrpc \ - xsl \ - zip && \ - - # GD - docker-php-ext-configure gd \ - --with-gd \ - --with-freetype-dir=/usr/include/ \ - --with-png-dir=/usr/include/ \ - --with-jpeg-dir=/usr/include/ && \ - NPROC=$(getconf _NPROCESSORS_ONLN) && \ - docker-php-ext-install -j${NPROC} gd && \ - - # PECL extensions - pecl config-set php_ini "${PHP_INI_DIR}/php.ini" && \ - - pecl install \ - amqp-${EXT_AMQP_VER} \ - apcu-${EXT_APCU_VER} \ - geoip-${EXT_GEOIP_VER} \ - imagick-${EXT_IMAGICK_VER} \ - memcached-${EXT_MEMCACHED_VER} \ - mongodb-${EXT_MONGODB_VER} \ - oauth-${EXT_OAUTH_VER} \ - redis-${EXT_REDIS_VER} \ - uploadprogress-${EXT_UPLOADPROGRESS_VER} \ - xdebug-${EXT_XDEBUG_VER} \ - yaml-${EXT_YAML_VER} && \ - - docker-php-ext-enable \ - amqp \ - apcu \ - imagick \ - geoip \ - memcached \ - mongodb \ - oauth \ - redis \ - uploadprogress \ - xdebug \ - yaml && \ - - # Blackfire extension - mkdir -p /tmp/blackfire && \ - version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") && \ - wget -qO- "${BLACKFIRE_URL}/${version}" | tar xz --no-same-owner -C /tmp/blackfire && \ - mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so && \ - - # Install composer - wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ - - # Install composer parallel install plugin - su-exec www-data composer global require hirak/prestissimo:^${PHP_PRESTISSIMO_VER} && \ - - # Install PHPUnit - wget -qO- https://phar.phpunit.de/phpunit-${PHP_UNIT_VER}.phar > /usr/local/bin/phpunit && \ - chmod +x /usr/local/bin/phpunit && \ - - # Install Walter - wget -qO- ${WALTER_URL} | tar xz -C /tmp/ && \ - mv /tmp/walter_linux_amd64/walter /usr/local/bin && \ - - # Add composer bins to $PATH - su-exec www-data echo "export PATH=/home/www-data/.composer/vendor/bin:${PATH}" > /home/www-data/.profile && \ - - # Configure sudoers - { \ - echo -n 'www-data ALL=(root) NOPASSWD:SETENV: ' ; \ - echo -n '/usr/local/bin/sshd-generate-keys.sh, ' ; \ - echo -n '/usr/local/bin/fix-permissions.sh, ' ; \ - echo -n '/usr/sbin/sshd, ' ; \ - echo '/usr/sbin/crond' ; \ - } | tee /etc/sudoers.d/www-data && \ - - # Configure ldap - echo "TLS_CACERTDIR /etc/ssl/certs/" >> /etc/openldap/ldap.conf && \ - - # We run php-fpm as non root - sed -i '/^user = www-data/d;/^group = www-data/d' /usr/local/etc/php-fpm.d/www.conf* && \ - - # Create required directories and fix permissions - mkdir -p ${APP_ROOT} && \ - su-exec www-data mkdir /home/www-data/.ssh && \ - - touch /etc/ssh/sshd_config && \ - chown www-data: /etc/ssh/sshd_config && \ - - rm /etc/crontabs/root && \ - touch /etc/crontabs/www-data && \ - chown root:www-data /etc/crontabs/www-data && \ - chmod 660 /etc/crontabs/www-data && \ - - chown -R www-data:www-data /var/www "${PHP_INI_DIR}/conf.d" /usr/local/etc/php-fpm.d/ /home/www-data/.profile && \ - - # Cleanup - su-exec www-data composer clear-cache && \ - docker-php-source delete && \ - apk del .build-deps && \ - pecl clear-cache && \ - - rm -rf \ - /usr/src/php.tar.xz \ - /usr/include/php \ - /usr/lib/php/build \ - /tmp/* \ - /root/.composer - -USER www-data - -WORKDIR ${APP_ROOT} -EXPOSE 9000 - -COPY templates /etc/gotpl/ -COPY docker-entrypoint.sh / -COPY actions /usr/local/bin/ -COPY php.ini ${PHP_INI_DIR} - -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["php-fpm"] diff --git a/5.6/Makefile b/5.6/Makefile deleted file mode 100644 index 4c5f4796..00000000 --- a/5.6/Makefile +++ /dev/null @@ -1,49 +0,0 @@ --include env_make - -PHP_VER ?= 5.6 -TAG ?= $(PHP_VER) - -REPO = wodby/php -NAME = php-$(PHP_VER) -FROM_TAG = 5.6.32 - -PHP_DEBUG ?= 0 - -ifneq ($(PHP_DEBUG), 0) - override TAG := $(TAG)-debug - FROM_TAG := $(FROM_TAG)-debug - NAME := $(NAME)-debug -endif - -.PHONY: build test push shell run start stop logs clean release - -default: build - -build: - docker build -t $(REPO):$(TAG) --build-arg FROM_TAG=$(FROM_TAG) --build-arg PHP_DEBUG=$(PHP_DEBUG) ./ - -test: - IMAGE=$(REPO):$(TAG) ./test.sh - -push: - docker push $(REPO):$(TAG) - -shell: - docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) /bin/bash - -run: - docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) $(CMD) - -start: - docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) - -stop: - docker stop $(NAME) - -logs: - docker logs $(NAME) - -clean: - -docker rm -f $(NAME) - -release: build push diff --git a/5.6/actions/git-checkout.sh b/5.6/actions/git-checkout.sh deleted file mode 100755 index a3f6865e..00000000 --- a/5.6/actions/git-checkout.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -target=$1 -is_hash=$2 - -cd "${APP_ROOT}" -git stash -git fetch --all -git checkout "${target}" - -if [[ "${is_hash}" -eq '0' ]]; then - git pull origin "${target}" -fi diff --git a/5.6/actions/git-clone.sh b/5.6/actions/git-clone.sh deleted file mode 100755 index 63cbf83d..00000000 --- a/5.6/actions/git-clone.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -url=$1 -branch=$2 - -if [[ -n "${branch}" ]]; then - git clone -b "${branch}" "${url}" "${APP_ROOT}" -else - git clone "${url}" "${APP_ROOT}" -fi diff --git a/5.6/actions/sshd-generate-keys.sh b/5.6/actions/sshd-generate-keys.sh deleted file mode 100755 index 5c0e79d4..00000000 --- a/5.6/actions/sshd-generate-keys.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -dir="${1:-/etc/ssh}" - -mkdir -p "${dir}" -ssh-keygen -qb 2048 -t rsa -N "" -f "${dir}/ssh_host_rsa_key" -chmod 0600 "${dir}/ssh_host_rsa_key" -chmod 0644 "${dir}/ssh_host_rsa_key.pub" diff --git a/5.6/actions/walter.sh b/5.6/actions/walter.sh deleted file mode 100755 index e928d759..00000000 --- a/5.6/actions/walter.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -if [[ -f "${APP_ROOT}/wodby.yml" ]]; then - walter -c "${APP_ROOT}/wodby.yml" -fi \ No newline at end of file diff --git a/5.6/docker-entrypoint.sh b/5.6/docker-entrypoint.sh deleted file mode 100755 index 3f5707f4..00000000 --- a/5.6/docker-entrypoint.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -SSH_DIR=/home/www-data/.ssh - -_backwards_compatibility() { - declare -A vars - vars[PHP_APCU_ENABLE]="PHP_APCU_ENABLED" - vars[PHP_FPM_SLOWLOG_TIMEOUT]="PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" - vars[PHP_FPM_MAX_CHILDREN]="PHP_FPM_PM_MAX_CHILDREN" - vars[PHP_FPM_START_SERVERS]="PHP_FPM_PM_START_SERVERS" - vars[PHP_FPM_MIN_SPARE_SERVERS]="PHP_FPM_PM_MIN_SPARE_SERVERS" - vars[PHP_FPM_MAX_SPARE_SERVERS]="PHP_FPM_PM_MAX_SPARE_SERVERS" - vars[PHP_FPM_MAX_REQUESTS]="PHP_FPM_PM_MAX_REQUESTS" - vars[PHP_FPM_STATUS_PATH]="PHP_FPM_PM_STATUS_PATH" - - for i in "${!vars[@]}"; do - export "$i"="${!vars[$i]}" - done -} - -exec_tpl() { - if [[ -f "/etc/gotpl/$1" ]]; then - gotpl "/etc/gotpl/$1" > "$2" - fi -} - -validate_dirs() { - if [[ -n "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" - fi - - if [[ -n "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" - fi -} - -init_ssh_client() { - exec_tpl "ssh_config.tpl" "${SSH_DIR}/config" - - if [[ -n "${SSH_PRIVATE_KEY}" ]]; then - exec_tpl "id_rsa.tpl" "${SSH_DIR}/id_rsa" - chmod -f 600 "${SSH_DIR}/id_rsa" - unset SSH_PRIVATE_KEY - fi -} - -init_sshd() { - exec_tpl "sshd_config.tpl" "/etc/ssh/sshd_config" - - if [[ -n "${SSH_PUBLIC_KEYS}" ]]; then - exec_tpl "authorized_keys.tpl" "${SSH_DIR}/authorized_keys" - unset SSH_PUBLIC_KEYS - fi - - printenv | xargs -I{} echo {} | awk ' \ - BEGIN { FS = "=" }; { \ - if ($1 != "HOME" \ - && $1 != "PWD" \ - && $1 != "PATH" \ - && $1 != "SHLVL") { \ - \ - print ""$1"="$2"" \ - } \ - }' > "${SSH_DIR}/environment" - - sudo sshd-generate-keys.sh "${SSHD_HOST_KEYS_DIR}" -} - -init_crond() { - exec_tpl "crontab.tpl" "/etc/crontabs/www-data" -} - -process_templates() { - _backwards_compatibility - - exec_tpl "docker-php.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php.ini" - exec_tpl "docker-php-ext-apcu.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini" - exec_tpl "docker-php-ext-geoip.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-geoip.ini" - exec_tpl "docker-php-ext-opcache.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini" - exec_tpl "docker-php-ext-xdebug.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" - exec_tpl "zz-www.conf.tpl" "/usr/local/etc/php-fpm.d/zz-www.conf" - - if [[ "${PHP_DEBUG}" == 0 ]]; then - exec_tpl "docker-php-ext-blackfire.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-blackfire.ini" - fi - - sed -i '/^$/d' "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" -} - -init_git() { - git config --global user.email "${GIT_USER_EMAIL:-www-data@example.com}" - git config --global user.name "${GIT_USER_NAME:-www-data}" -} - -sudo fix-permissions.sh www-data www-data "${APP_ROOT}" -validate_dirs -init_ssh_client -init_git -process_templates - -if [[ "${@:1:2}" == "sudo /usr/sbin/sshd" ]]; then - init_sshd -elif [[ "${@:1:3}" == "sudo -E crond" ]]; then - init_crond -fi - -exec-init-scripts.sh - -if [[ $1 == "make" ]]; then - exec "${@}" -f /usr/local/bin/actions.mk -else - exec /usr/local/bin/docker-php-entrypoint "${@}" -fi diff --git a/5.6/templates/docker-php-ext-geoip.ini.tpl b/5.6/templates/docker-php-ext-geoip.ini.tpl deleted file mode 100644 index fdebfe33..00000000 --- a/5.6/templates/docker-php-ext-geoip.ini.tpl +++ /dev/null @@ -1,3 +0,0 @@ -[geoip] -extension=geoip.so -geoip.custom_directory = {{ getenv "PHP_GEOIP_CUSTOM_DIR" "" }} \ No newline at end of file diff --git a/5.6/templates/docker-php-ext-opcache.ini.tpl b/5.6/templates/docker-php-ext-opcache.ini.tpl deleted file mode 100644 index 518b7d02..00000000 --- a/5.6/templates/docker-php-ext-opcache.ini.tpl +++ /dev/null @@ -1,10 +0,0 @@ -[opcache] -zend_extension = opcache.so -opcache.enable = {{ getenv "PHP_OPCACHE_ENABLE" "1" }} -opcache.validate_timestamps = {{ getenv "PHP_OPCACHE_VALIDATE_TIMESTAMPS" "1" }} -opcache.revalidate_freq = {{ getenv "PHP_OPCACHE_REVALIDATE_FREQ" "2" }} -opcache.max_accelerated_files = {{ getenv "PHP_OPCACHE_MAX_ACCELERATED_FILES" "4000" }} -opcache.memory_consumption = {{ getenv "PHP_OPCACHE_MEMORY_CONSUMPTION" "128" }} -opcache.interned_strings_buffer = {{ getenv "PHP_OPCACHE_INTERNED_STRINGS_BUFFER" "8" }} -opcache.fast_shutdown = {{ getenv "PHP_OPCACHE_FAST_SHUTDOWN" "1" }} -opcache.enable_cli = {{ getenv "PHP_OPCACHE_ENABLE_CLI" "1" }} \ No newline at end of file diff --git a/5.6/templates/docker-php-ext-xdebug.ini.tpl b/5.6/templates/docker-php-ext-xdebug.ini.tpl deleted file mode 100644 index 9e5e67b9..00000000 --- a/5.6/templates/docker-php-ext-xdebug.ini.tpl +++ /dev/null @@ -1,80 +0,0 @@ -{{ if getenv "PHP_XDEBUG" }} -[xdebug] -zend_extension = xdebug.so -xdebug.auto_trace = {{ getenv "PHP_XDEBUG_AUTO_TRACE" "0" }} -xdebug.cli_color = {{ getenv "PHP_XDEBUG_CLI_COLOR" "0" }} -xdebug.collect_assignments = {{ getenv "PHP_XDEBUG_COLLECT_ASSIGNMENTS" "0" }} -xdebug.collect_includes = {{ getenv "PHP_XDEBUG_COLLECT_INCLUDES" "1" }} -xdebug.collect_params = {{ getenv "PHP_XDEBUG_COLLECT_PARAMS" "0" }} -xdebug.collect_return = {{ getenv "PHP_XDEBUG_COLLECT_RETURN" "0" }} -xdebug.collect_vars = {{ getenv "PHP_XDEBUG_COLLECT_VARS" "0" }} -xdebug.coverage_enable = {{ getenv "PHP_XDEBUG_COVERAGE_ENABLE" "1" }} -xdebug.default_enable = {{ getenv "PHP_XDEBUG_DEFAULT_ENABLE" "0" }} -xdebug.dump_globals = {{ getenv "PHP_XDEBUG_DUMP_GLOBALS" "1" }} -xdebug.dump_once = {{ getenv "PHP_XDEBUG_DUMP_ONCE" "1" }} -xdebug.dump_undefined = {{ getenv "PHP_XDEBUG_DUMP_UNDEFINED" "0" }} -xdebug.extended_info = {{ getenv "PHP_XDEBUG_EXTENDED_INFO" "1" }} -xdebug.file_link_format = "{{ getenv "PHP_XDEBUG_FILE_LINK_FORMAT" "" }}" -xdebug.force_display_errors = {{ getenv "PHP_XDEBUG_FORCE_DISPLAY_ERRORS" "0" }} -xdebug.force_error_reporting = {{ getenv "PHP_XDEBUG_FORCE_ERROR_REPORTING" "0" }} -xdebug.halt_level = {{ getenv "PHP_XDEBUG_HALT_LEVEL" "0" }} -xdebug.manual_url = {{ getenv "PHP_XDEBUG_MANUAL_URL" "http://www.php.net" }} -xdebug.max_nesting_level = {{ getenv "PHP_XDEBUG_MAX_NESTING_LEVEL" "256" }} -xdebug.max_stack_frames = {{ getenv "PHP_XDEBUG_MAX_STACK_FRAMES" "-1" }} -xdebug.overload_var_dump = {{ getenv "PHP_XDEBUG_OVERLOAD_VAR_DUMP" "2" }} -xdebug.profiler_aggregate = {{ getenv "PHP_XDEBUG_PROFILER_AGGREGATE" "0" }} -xdebug.profiler_append = {{ getenv "PHP_XDEBUG_PROFILER_APPEND" "0" }} -xdebug.profiler_enable = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE" "0" }} -xdebug.profiler_enable_trigger = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER" "0" }} -xdebug.profiler_enable_trigger_value = "{{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE" "" }}" -xdebug.profiler_output_dir = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_DIR" "/tmp" }} -xdebug.profiler_output_name = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_NAME" "cachegrind.out.%p" }} -xdebug.remote_addr_header = "{{ getenv "PHP_XDEBUG_REMOTE_ADDR_HEADER" "" }}" -xdebug.remote_autostart = {{ getenv "PHP_XDEBUG_REMOTE_AUTOSTART" "1" }} -xdebug.remote_connect_back = {{ getenv "PHP_XDEBUG_REMOTE_CONNECT_BACK" "1" }} -xdebug.remote_cookie_expire_time = {{ getenv "PHP_XDEBUG_REMOTE_COOKIE_EXPIRE_TIME" "3600" }} -xdebug.remote_enable = {{ getenv "PHP_XDEBUG_REMOTE_ENABLE" "1" }} -xdebug.remote_handler = {{ getenv "PHP_XDEBUG_REMOTE_HANDLER" "dbgp" }} -xdebug.remote_host = {{ getenv "PHP_XDEBUG_REMOTE_HOST" "localhost" }} -xdebug.remote_log = "{{ getenv "PHP_XDEBUG_REMOTE_LOG" "" }}" -xdebug.remote_mode = {{ getenv "PHP_XDEBUG_REMOTE_MODE" "req" }} -xdebug.remote_port = {{ getenv "PHP_XDEBUG_REMOTE_PORT" "9000" }} -xdebug.scream = {{ getenv "PHP_XDEBUG_SCREAM" "0" }} -xdebug.show_error_trace = {{ getenv "PHP_XDEBUG_SHOW_ERROR_TRACE" "0" }} -xdebug.show_exception_trace = {{ getenv "PHP_XDEBUG_SHOW_EXCEPTION_TRACE" "0" }} -xdebug.show_local_vars = {{ getenv "PHP_XDEBUG_SHOW_LOCAL_VARS" "0" }} -xdebug.show_mem_delta = {{ getenv "PHP_XDEBUG_SHOW_MEM_DELTA" "0" }} -xdebug.trace_enable_trigger = {{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER" "0" }} -xdebug.trace_enable_trigger_value = "{{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER_VALUE" "" }}" -xdebug.trace_format = {{ getenv "PHP_XDEBUG_TRACE_FORMAT" "0" }} -xdebug.trace_options = {{ getenv "PHP_XDEBUG_TRACE_OPTIONS" "0" }} -xdebug.trace_output_dir = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_DIR" "/tmp" }} -xdebug.trace_output_name = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_NAME" "trace.%c" }} -xdebug.var_display_max_children = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_CHILDREN" "128" }} -xdebug.var_display_max_data = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_DATA" "512" }} -xdebug.var_display_max_depth = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_DEPTH" "3" }} -{{ if getenv "PHP_XDEBUG_DUMP_COOKIE" }} -xdebug.dump.COOKIE = {{ getenv "PHP_XDEBUG_DUMP_COOKIE" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_FILES" }} -xdebug.dump.FILES = {{ getenv "PHP_XDEBUG_DUMP_FILES" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_GET" }} -xdebug.dump.GET = {{ getenv "PHP_XDEBUG_DUMP_GET" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_POST" }} -xdebug.dump.POST = {{ getenv "PHP_XDEBUG_DUMP_POST" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_REQUEST" }} -xdebug.dump.REQUEST = {{ getenv "PHP_XDEBUG_DUMP_REQUEST" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_SERVER" }} -xdebug.dump.SERVER = {{ getenv "PHP_XDEBUG_DUMP_SERVER" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_SESSION" }} -xdebug.dump.SESSION = {{ getenv "PHP_XDEBUG_DUMP_SESSION" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_IDEKEY" }} -xdebug.idekey = {{ getenv "PHP_XDEBUG_IDEKEY" }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/5.6/templates/docker-php.ini.tpl b/5.6/templates/docker-php.ini.tpl deleted file mode 100644 index c944dc10..00000000 --- a/5.6/templates/docker-php.ini.tpl +++ /dev/null @@ -1,36 +0,0 @@ -; This file user only to override default php.ini values -; BASIC SETTINGS: $PHP_INI_DIR/php.ini -; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf - -[PHP] -realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "16k" }} -realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} -memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} -error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} -log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "1024" }} -track_errors = {{ getenv "PHP_TRACK_ERRORS" "On" }} -error_log = /proc/self/fd/2 - -[Date] -date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} - -[Pdo_mysql] -pdo_mysql.cache_size = {{ getenv "PHP_PDO_MYSQL_CACHE_SIZE" "2000" }} - -[mail function] -sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} - -[MySQL] -mysql.cache_size = {{ getenv "PHP_MYSQL_CACHE_SIZE" "2000" }} - -[MySQLi] -mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} - -[Assertion] -zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} -assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} - -[mbstring] -mbstring.http_input = {{ getenv "PHP_MBSTRING_HTTP_INPUT" "" }} -mbstring.http_output = {{ getenv "PHP_MBSTRING_HTTP_OUTPUT" "" }} -mbstring.encoding_translation = {{ getenv "PHP_MBSTRING_ENCODING_TRANSLATION" "Off" }} diff --git a/5.6/templates/ssh_config.tpl b/5.6/templates/ssh_config.tpl deleted file mode 100644 index 69bc5a2b..00000000 --- a/5.6/templates/ssh_config.tpl +++ /dev/null @@ -1,55 +0,0 @@ -# $OpenBSD: ssh_config,v 1.30 2016/02/20 23:06:23 sobrado Exp $ - -# This is the ssh client system-wide configuration file. See -# ssh_config(5) for more information. This file provides defaults for -# users, and the values can be changed in per-user configuration files -# or on the command line. - -# Configuration data is parsed as follows: -# 1. command line options -# 2. user-specific file -# 3. system-wide file -# Any configuration value is only changed the first time it is set. -# Thus, host-specific definitions should be at the beginning of the -# configuration file, and defaults at the end. - -# Site-wide defaults for some commonly used options. For a comprehensive -# list of available options, their meanings and defaults, please see the -# ssh_config(5) man page. - -# Host * -# ForwardAgent no -# ForwardX11 no -# RhostsRSAAuthentication no -# RSAAuthentication yes -# PasswordAuthentication yes -# HostbasedAuthentication no -# GSSAPIAuthentication no -# GSSAPIDelegateCredentials no -# BatchMode no -# CheckHostIP yes -# AddressFamily any -# ConnectTimeout 0 -# StrictHostKeyChecking ask -# IdentityFile ~/.ssh/identity -# IdentityFile ~/.ssh/id_rsa -# IdentityFile ~/.ssh/id_dsa -# IdentityFile ~/.ssh/id_ecdsa -# IdentityFile ~/.ssh/id_ed25519 -# Port 22 -# Protocol 2 -# Cipher 3des -# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc -# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 -# EscapeChar ~ -# Tunnel no -# TunnelDevice any:any -# PermitLocalCommand no -# VisualHostKey no -# ProxyCommand ssh -q -W %h:%p gateway.example.com -# RekeyLimit 1G 1h - -{{ if getenv "SSH_DISABLE_STRICT_KEY_CHECKING" }} -Host * - StrictHostKeyChecking no -{{ end }} \ No newline at end of file diff --git a/5.6/templates/sshd_config.tpl b/5.6/templates/sshd_config.tpl deleted file mode 100644 index ed4b4a99..00000000 --- a/5.6/templates/sshd_config.tpl +++ /dev/null @@ -1,121 +0,0 @@ -# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/bin:/usr/bin:/sbin:/usr/sbin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -{{ $keys_dir := (getenv "SSHD_HOST_KEYS_DIR" "/etc/ssh") }} -HostKey {{ $keys_dir }}/ssh_host_rsa_key -HostKey {{ $keys_dir }}/ssh_host_dsa_key -HostKey {{ $keys_dir }}/ssh_host_ecdsa_key -HostKey {{ $keys_dir }}/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -LogLevel {{ getenv "SSHD_LOG_LEVEL" "INFO" }} - -# Authentication: - -#LoginGraceTime 2m -#PermitRootLogin prohibit-password -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -PasswordAuthentication {{ getenv "SSHD_PASSWORD_AUTHENTICATION" "no" }} -#PermitEmptyPasswords no - -# Change to no to disable s/key passwords -#ChallengeResponseAuthentication yes - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no - -# GSSAPI options -#GSSAPIAuthentication no -#GSSAPICleanupCredentials yes - -# UsePAM NOT SUPPORTED - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -GatewayPorts {{ getenv "SSHD_GATEWAY_PORTS" "no" }} -#X11Forwarding no -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -#PrintMotd yes -#PrintLastLog yes -#TCPKeepAlive yes -#UseLogin no -PermitUserEnvironment {{ getenv "SSHD_PERMIT_USER_ENV" "no" }} -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -UseDNS {{ getenv "SSHD_USE_DNS" "yes" }} -#PidFile /run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# override default of no subsystems -Subsystem sftp /usr/lib/ssh/sftp-server - -# the following are HPN related configuration options -# tcp receive buffer polling. disable in non autotuning kernels -#TcpRcvBufPoll yes - -# disable hpn performance boosts -#HPNDisabled no - -# buffer size for hpn to non-hpn connections -#HPNBufferSize 2048 - - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/5.6/templates/zz-www.conf.tpl b/5.6/templates/zz-www.conf.tpl deleted file mode 100644 index ba0e7edb..00000000 --- a/5.6/templates/zz-www.conf.tpl +++ /dev/null @@ -1,48 +0,0 @@ -[global] -log_level = {{ getenv "PHP_FPM_LOG_LEVEL" "notice" }} - -[www] -clear_env = {{ getenv "PHP_FPM_CLEAR_ENV" "yes" }} -pm = {{ getenv "PHP_FPM_PM" "dynamic" }} -pm.max_children = {{ getenv "PHP_FPM_PM_MAX_CHILDREN" "8" }} -pm.start_servers = {{ getenv "PHP_FPM_PM_START_SERVERS" "2" }} -pm.min_spare_servers = {{ getenv "PHP_FPM_PM_MIN_SPARE_SERVERS" "1" }} -pm.max_spare_servers = {{ getenv "PHP_FPM_PM_MAX_SPARE_SERVERS" "3" }} -pm.max_requests = {{ getenv "PHP_FPM_PM_MAX_REQUESTS" "500" }} -{{ if getenv "PHP_FPM_PM_STATUS_PATH" }} -pm.status_path = {{ getenv "PHP_FPM_PM_STATUS_PATH" }} -{{ end }} -{{ if getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -slowlog = /proc/self/fd/2 -request_slowlog_timeout = {{ getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -{{ end }} - -php_value[display_errors] = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} -php_value[display_startup_errors] = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} -php_value[expose_php] = {{ getenv "PHP_EXPOSE" "Off" }} -php_value[max_execution_time] = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} -php_value[max_input_time] = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} -php_value[max_input_vars] = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} -php_value[memory_limit] = {{ getenv "PHP_MEMORY_LIMIT" "512M" }} -php_value[post_max_size] = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} -php_value[upload_max_filesize] = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} -php_value[max_file_uploads] = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} -php_value[output_buffering] = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} -php_value[always_populate_raw_post_data] = {{ getenv "PHP_ALWAYS_POPULATE_RAW_POST_DATA" "0" }} -php_value[session.auto_start] = {{ getenv "PHP_SESSION_AUTO_START" "0" }} - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} - -{{ if getenv "PHP_FPM_ENV_VARS" }}{{ range jsonArray (getenv "PHP_FPM_ENV_VARS") }}{{ if getenv . }} -env[{{.}}] = {{ getenv . }}{{ end }}{{ end }}{{ end }} - -; Pool for health-check pings to avoid spam in access log. -[ping] -pm = static -pm.max_children = 1 -listen = [::]:9001 -ping.path = "/ping" - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} diff --git a/5.6/test.sh b/5.6/test.sh deleted file mode 100755 index 8bd14fb9..00000000 --- a/5.6/test.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -git_url=git@bitbucket.org:wodby/php-git-test.git - -wait_for_cron() { - executed=0 - - for i in $(seq 1 13); do - if docker_exec crond cat /home/www-data/cron | grep -q "test"; then - executed=1 - break - fi - echo 'Waiting for cron execution...' - sleep 5 - done - - if [[ "${executed}" -eq '0' ]]; then - echo >&2 'Cron failed.' - exit 1 - fi - - echo 'Cron has been executed!' -} - -docker_exec() { - docker-compose -f test/docker-compose.yml exec "${@}" -} - -run_action() { - docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk -} - -docker-compose -f test/docker-compose.yml up -d -run_action nginx check-ready max_try=10 -run_action php check-ready max_try=10 - -# PHP tools -docker_exec php tests.sh - -# SSH -echo -n "Testing ssh... " -docker_exec php touch /home/www-data/.ssh/known_hosts -docker_exec php ssh www-data@sshd cat /home/www-data/.ssh/authorized_keys | grep -q admin@wodby.com -echo "OK" - -# Git actions -echo -n "Running git actions... " -docker_exec php bash -c 'echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config' -run_action php git-clone url="${git_url}" branch=master -run_action php git-checkout target=develop -echo "OK" - -# PHP-FPM -echo -n "Checking PHP-FPM... " -docker_exec php curl nginx | grep -q "Hello World!" -echo "OK" - -# Walter CD -echo -n "Running walter scripts... " -run_action php walter -docker_exec php cat ./walter-shell-stage -docker_exec php cat ./walter-command-stage -echo "OK" - -# Crond -wait_for_cron - -docker-compose -f test/docker-compose.yml down diff --git a/5.6/test/docker-compose.yml b/5.6/test/docker-compose.yml deleted file mode 100644 index 0792fc08..00000000 --- a/5.6/test/docker-compose.yml +++ /dev/null @@ -1,93 +0,0 @@ -version: "2" - -services: - nginx: - image: wodby/nginx:1.13 - environment: - NGINX_BACKEND_HOST: php - volumes: - - ./nginx.conf:/etc/gotpl/default-vhost.conf.tpl - depends_on: - - php - - sshd: - image: $IMAGE - command: sudo /usr/sbin/sshd -De - environment: - SSH_PUBLIC_KEYS: |- - ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4mQ9wfvufRcDQ4LsoCYEyDL4LNsvP8dWKWMQKrnJ8k09IQm7mnvyzid8zxNJpQYxX12foC0+BttjejWVj67vf1if7rDHb\/e0oX7yQp4ji3QTjDNPDaOR\/eTOCNv1C5Lfj3n7D1G7O2dOiw8lAoSalGy6nltuTYY9EXbkl1dXaCG7qbQRVJEJdZ6x2oJ8FubJO6wjZvj9P759ziLVmWAqtzUgIQVlbv0nqSoq16Ug381sfnRvsHO1fXGhdgHGQ0WP720p5cBHxG+62HJROah5b7gahXidC2Lo6kdnLb5FOzZjRJO1aDiKgry\/GoNNijs6D5xwLtn44HoHMe0eyUw7lQCrWZwvNmdfvIecr+ZJNwT8cbZ2Cf5y0SqD4JZpcolR5FKuQluaVMdOvJCa8A\/BzvRqIeNLmZuHFRvruu2VTIHHZFR2CFgH9F+G\/KyBnmQwV\/FgqN6sy1MAuFmyizL7sJHVL3tSaMPSs423A+SLWYkXLxpUPjo2J5W2ImZYq97AQaHcArvrhKS2MwbBFGwaxglcq5t8Ss6Df3fEZUWGLHJSdOv\/fn\/+CNOiI7hjj3v5mHaxxnC27MOHmJlrqmCA3OXuQ9mZG\/hSfj2vPKF+xFUarqqsp4zVsDH71bY2Q+zHpyncIFnyhaiEba9gbvmUVOfUyYglkJ6TGF5xAhpDFpQ== admin@wodby.com"] - - php: - image: $IMAGE - environment: - SSH_DISABLE_STRICT_KEY_CHECKING: 1 - PHP_XDEBUG: 1 - PHP_BLACKFIRE: 1 - SSH_PRIVATE_KEY: |- - -----BEGIN RSA PRIVATE KEY----- - MIIJKQIBAAKCAgEAuJkPcH77n0XA0OC7KAmBMgy+CzbLz/HViljECq5yfJNPSEJu - 5p78s4nfM8TSaUGMV9dn6AtPgbbY3o1lY+u739Yn+6wx2/3tKF+8kKeI4t0E4wzT - w2jkf3kzgjb9QuS3495+w9RuztnTosPJQKEmpRsup5bbk2GPRF25JdXV2ghu6m0E - VSRCXWesdqCfBbmyTusI2b4/T++fc4i1ZlgKrc1ICEFZW79J6kqKtelIN/NbH50b - 7BztX1xoXYBxkNFj+9tKeXAR8RvuthyUTmoeW+4GoV4nQti6OpHZy2+RTs2Y0STt - Wg4ioK8vxqDTYo7Og+ccC7Z+OB6BzHtHslMO5UAq1mcLzZnX7yHnK/mSTcE/HG2d - gn+ctEqg+CWaXKJUeRSrkJbmlTHTryQmvAPwc70aiHjS5mbhxUb67rtlUyBx2RUd - ghYB/RfhvysgZ5kMFfxYKjerMtTALhZsosy+7CR1S97UmjD0rONtwPki1mJFy8aV - D46NieVtiJmWKvewEGh3AK764SktjMGwRRsGsYJXKubfErOg393xGVFhixyUnTr/ - 35//gjToiO4Y497+Zh2scZwtuzDh5iZa6pggNzl7kPZmRv4Un49rzyhfsRVGq6qr - KeM1bAx+9W2NkPsx6cp3CBZ8oWohG2vYG75lFTn1MmIJZCekxhecQIaQxaUCAwEA - AQKCAgBe5+J2NfLr2hLd0Qyn8usHbmGupkd266Cb9jMkQrf9sEbMocseqpLFQ5cL - qJ99GgQrjUWQmXARAo7RLOT50FLRK+t2ivs/XXe2kDIENP49lOBUU130U1NW7ls7 - EUZ4Q9r/Pn7x85/cnUUfo4Uuwyt5K1Z7NyZAyaG8xmrQNvYxmLBduhrGI1QzbX/P - pZjcerJfvJraR+OJF2tlHN4WdiFXZfkotWBZuSkpWZWjHQLSMT2iLUYTyHOJ2ZqW - p9i7WcwLypypfqLa0T+TRXJCNnDRVrj18dBBn+dvAVl2LDAK0c1FibS13hqTfj4T - 4s+LFly6l/FlXDfcZmLZXHBqECXReoyY02mo6jNOdzwYHKElPQeAnzc8IRIBG3s4 - EU+OA2EFZzQp2qSNlVAfTe/masQZkBOYTU/cpWg5yfIReFEWc1FzILTyXESJu0U2 - GmAYu1b7miFWsglIapUxCdlfdoEer+yDpjG4T151CYB11sUfpgcfOhAsStNfykmc - AaxRzklKFnjD5R8Au0BqZLyHu7FApV0BQqwZkevomsAAVWfVSxVGobnSzhW2mIIV - 4FyAKWHG8pm0By/eJkgKjJK3rIAjeAq/bJpNoUeKwjdvuysfMM9Q/LEjUQ5RRU09 - r/kAquTDUHne5d4yEjzmDmlaBN/zrMYuY1bG5H9Qs05p86W/aQKCAQEA82TOCRys - XCud62XTyHYxOqQbG/vDa1qdiamiE4iGBJgFUG0Xvqzy3YeSvqdifRxzst2auj7p - OSHk6w5/4Q2iezew/UCzRcG+INwtNwOUJ7wvHPyqskbp3w7e4OkrcN6lzReFZqls - pB5a9U8yn3qK/qrpHtyyBds951qI0olDyiPdW0M+8IKrIa70cUb6PYpk5enGVgyI - h+fBK9PTCzr9Gsk5XTpkNRcvgF1Czig+ZXk4KpD19W/JtqHSpCOu5XZx1RpCBBtY - +1BJcTzE0jgOAywFuUHVdYaSXZa+Nlyc+mgjqZoeNfgy8rvcGrM7VYAt+wlPpSeI - eiQBgeltfDWD7wKCAQEAwiisBfaSvN+odjs05vYEYPH43Vs2pp76ZxjUqTU0H2hL - Cmun2ogh/QgDy1wIUQBeZznm4mSQWn5vZNBmz786Fh2tPFi4QQaYCvtJmGfeV5aR - wOnb+cpCVeI2MG9iBnUPlWp7Zdj7Lwdt2EG5QNIMfF4zKuScuY2E05eIZCuWPdwA - 9/9zaWH3QR9luCEcHzLuspmu56uH5CvMBtsDdqs42BAm/DRn5FjAAWIHunIjoRrt - 8WaHe1/jPPcOHAvVLeK1iq/Ahe9f48JQqh5PeMtWFyUqRB68D5RcqCgHlVpfFk84 - UFMvgVLo2Sv1LtZAWlop168Io6YTsbXpt9HAxl+rqwKCAQEAs3EFSch+9nEdu1fW - XLturfohFm918qba8IxEtrv3elmNyW60i9o8L8DtGmyTewPH9P3WPit1jK6FdBq7 - gvOnb8puTTgvM2WUQ+uv1hhoWScvYOKTAl6vu8jd3tlpMoyjlmIZ8sdEFndeve6G - tvcElJ7ywdMZ2KF7sR6ZMwcKGHR6lPct5umfO3UeOImIomhu3OaOWBBjdDcTvrkr - peL2iZIDHc2X5WBToAKh5xXacrt9AjzfaPTitSf3ARZhskCxydfTBe4XmyjlDHwt - 64JyKjqBecSkmEH/lMo3MCL1hNPUPw0l6soy3axMqM6tFusqeyKxOmS8BLiY9+td - 0a4utwKCAQBIXrigEGRpmkRErZTuccz4BblpaNJaEO/s9chuubIP8uPlonMSdaOV - mSMw7cD70FNfzqlMwYc889u5jCSGUxTnoXAtCjTDqB2MGlY4RJ8PrsPtUD36QXWw - ZX0lWJ8FISUJ4ILWV6ZoxTAgZ38RtjmJMeOInWX9k85qwBTKoaSCsjp6NfFi2m07 - DOTxWQYOawGl+LrFB57DYb/O3lvQI8owXvTpFO+UobAP0+ZljJ3TMyJ11G2zgu5E - jyHnOlHfpJ1ecFwmkC8ByjAe+OVOdRxFzEiQ05PtirNuylzpQqImwqiO6DLQ1YKN - UGE3cAzUoL7v8gIaXZEBsHjJV5mvV4G5AoIBAQCd89YTMEVVHr2HPxWmQb1BJ+4D - u0u9Aj9Gb6f3qxfQPa9+A081rdnb2DEXCRrjPAguxP/JxXmBMQjs/PfcCnHRHFWU - nEnXfUAprudh2xX6j3tgNyOwJT3fBlRg8TRQ5HorpzaCxzCIoMgbwBmB05VzxDAq - y7zXXF+i0+QLHdAKMIQmps0S+qn+ji3ViooJyrAGuZTmeIXQP7b8wgft5m16C5Nc - Hl/7LjnsiAiu6HMNqIjrJmHNmdYlmfqFBepvWpnykUgvEMSigyy0K7858Lcl+FH3 - 62fhFpwtP7IE2/o+6+JybuQRrUqHvAPM0/RTn8//rZmkmq3mrAYc+MslXAt+ - -----END RSA PRIVATE KEY----- - volumes: - - ./tests.sh:/usr/local/bin/tests.sh - - ./php_modules:/home/www-data/php_modules - depends_on: - - sshd - - crond: - image: $IMAGE - command: sudo -E crond -f -d 0 - environment: - CRONTAB_ENV: test - CRONTAB: |- - # min hour day month weekday command - */1 * * * * echo "$${CRONTAB_ENV}" > /home/www-data/cron - depends_on: - - sshd diff --git a/5.6/test/nginx.conf b/5.6/test/nginx.conf deleted file mode 100644 index a89ce5ba..00000000 --- a/5.6/test/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - server_name default; - listen 80; - - root /var/www/html/; - index index.php; - - fastcgi_param REQUEST_METHOD $request_method; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_index index.php; - - location / { - fastcgi_pass php:9000; - } -} diff --git a/5.6/test/tests.sh b/5.6/test/tests.sh deleted file mode 100755 index 282e8d21..00000000 --- a/5.6/test/tests.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -php -m > ~/php_modules.tmp -echo -n "Checking PHP modules... " - -# Modify copy, keep the mounted version untouched. -cp ~/php_modules ~/expected_modules - -if [[ "${PHP_DEBUG}" == 1 ]]; then - sed -i '/blackfire/d' ~/expected_modules -fi - -if ! cmp -s ~/php_modules.tmp ~/expected_modules; then - echo "Error. PHP modules are not identical." - diff ~/php_modules.tmp ~/expected_modules - exit 1 -fi - -echo "OK" - -echo -n "Checking composer... " -composer --version | grep -q 'Composer version' -echo "OK" - -echo -n "Checking walter... " -walter -v | grep -q 'Walter version' -echo "OK" - -echo -n "Checking PHPUnit... " -phpunit -version | grep -q 'PHPUnit' -echo "OK" diff --git a/7.0/Dockerfile b/7.0/Dockerfile deleted file mode 100644 index fc484c76..00000000 --- a/7.0/Dockerfile +++ /dev/null @@ -1,269 +0,0 @@ -ARG FROM_TAG - -FROM wodby/base-php:${FROM_TAG} - -ARG PHP_DEBUG - -ENV PHP_DEBUG="${PHP_DEBUG:-0}" \ - SSHD_PERMIT_USER_ENV="yes" \ - PHP_PRESTISSIMO_VER="0.3" \ - PHP_UNIT_VER="6.4" \ - WALTER_VER="1.3.0" \ - - EXT_AMQP_VER="1.9.1" \ - EXT_APCU_VER="5.1.8" \ - EXT_AST_VER="0.1.6" \ - EXT_GEOIP_VER="1.1.1" \ - EXT_IMAGICK_VER="3.4.3" \ - EXT_MEMCACHED_VER="3.0.3" \ - EXT_MONGODB_VER="1.3.2" \ - EXT_OAUTH_VER="2.0.2" \ - EXT_REDIS_VER="3.1.4" \ - EXT_XDEBUG_VER="2.5.5" \ - EXT_YAML_VER="2.0.2" \ - - C_CLIENT_VER="2007f-r6" \ - FREETYPE_VER="2.7.1-r1" \ - GEOIP_VER="1.6.10-r0" \ - ICU_LIBS_VER="58.2-r2" \ - IMAGEMAGICK_VER="7.0.5.10-r0" \ - LIBBZ2_VER="1.0.6-r5" \ - LIBJPEG_TURBO_VER="1.5.1-r0" \ - LIBLDAP_VER="2.4.44-r5" \ - LIBLTDL_VER="2.4.6-r1" \ - LIBMEMCACHED_LIBS_VER="1.0.18-r1" \ - LIBMCRYPT_VER="2.5.8-r7" \ - LIBPNG_VER="1.6.29-r1" \ - LIBXSLT_VER="1.1.29-r3" \ - MARIADB_CLIENT_VER="10.1.26-r0" \ - POSTGRESQL_CLIENT_VER="9.6.5-r0" \ - RABBITMQ_C_VER="0.8.0-r2" \ - YAML_VER="0.1.7-r0" - -ENV EXT_AST_URL="https://github.com/nikic/php-ast/archive/v${EXT_AST_VER}.tar.gz" \ - EXT_UPLOADPROGRESS_URL="https://github.com/wodby/pecl-php-uploadprogress/archive/latest.tar.gz" \ - WALTER_URL="https://github.com/walter-cd/walter/releases/download/v${WALTER_VER}/walter_${WALTER_VER}_linux_amd64.tar.gz" \ - BLACKFIRE_URL="https://blackfire.io/api/v1/releases/probe/php/alpine/amd64" \ - - APP_ROOT="/var/www/html" \ - PATH="/home/www-data/.composer/vendor/bin:${PATH}" - -RUN set -xe && \ - - # Recreate user with correct params - deluser www-data && \ - addgroup -g 82 -S www-data && \ - adduser -u 82 -D -S -s /bin/bash -G www-data www-data && \ - sed -i '/^www-data/s/!/*/' /etc/shadow && \ - echo "PS1='\w\$ '" >> /home/www-data/.bashrc && \ - - apk add --update --no-cache --virtual .php-rundeps \ - c-client=${C_CLIENT_VER} \ - fcgi \ - freetype=${FREETYPE_VER} \ - geoip=${GEOIP_VER} \ - git \ - icu-libs=${ICU_LIBS_VER} \ - imagemagick=${IMAGEMAGICK_VER} \ - less \ - libbz2=${LIBBZ2_VER} \ - libjpeg-turbo=${LIBJPEG_TURBO_VER} \ - libldap=${LIBLDAP_VER} \ - libltdl=${LIBLTDL_VER} \ - libmemcached-libs=${LIBMEMCACHED_LIBS_VER} \ - libmcrypt=${LIBMCRYPT_VER} \ - libpng=${LIBPNG_VER} \ - libxslt=${LIBXSLT_VER} \ - make \ - mariadb-client=${MARIADB_CLIENT_VER} \ - nano \ - openssh \ - openssh-client \ - patch \ - postgresql-client=${POSTGRESQL_CLIENT_VER} \ - rabbitmq-c=${RABBITMQ_C_VER} \ - rsync \ - su-exec \ - sudo \ - tig \ - tmux \ - yaml=${YAML_VER} && \ - - apk add --update --no-cache --virtual .build-deps \ - autoconf \ - cmake \ - build-base \ - bzip2-dev \ - freetype-dev \ - geoip-dev \ - icu-dev \ - imagemagick-dev \ - imap-dev \ - jpeg-dev \ - libjpeg-turbo-dev \ - libmemcached-dev \ - libmcrypt-dev \ - libpng-dev \ - libtool \ - libxslt-dev \ - openldap-dev \ - pcre-dev \ - postgresql-dev \ - rabbitmq-c-dev \ - yaml-dev && \ - - if [[ $PHP_DEBUG == 1 ]]; then \ - apk add --update --no-cache --virtual .debug-tools gdb; \ - fi && \ - - docker-php-source extract && \ - - docker-php-ext-install \ - bcmath \ - bz2 \ - calendar \ - exif \ - imap \ - intl \ - ldap \ - mcrypt \ - mysqli \ - opcache \ - pcntl \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - phar \ - soap \ - sockets \ - xmlrpc \ - xsl \ - zip && \ - - # GD - docker-php-ext-configure gd \ - --with-gd \ - --with-freetype-dir=/usr/include/ \ - --with-png-dir=/usr/include/ \ - --with-jpeg-dir=/usr/include/ && \ - NPROC=$(getconf _NPROCESSORS_ONLN) && \ - docker-php-ext-install -j${NPROC} gd && \ - - # PECL extensions - pecl config-set php_ini "${PHP_INI_DIR}/php.ini" && \ - - pecl install \ - amqp-${EXT_AMQP_VER} \ - apcu-${EXT_APCU_VER} \ - geoip-${EXT_GEOIP_VER} \ - imagick-${EXT_IMAGICK_VER} \ - memcached-${EXT_MEMCACHED_VER} \ - mongodb-${EXT_MONGODB_VER} \ - oauth-${EXT_OAUTH_VER} \ - redis-${EXT_REDIS_VER} \ - xdebug-${EXT_XDEBUG_VER} \ - yaml-${EXT_YAML_VER} && \ - - docker-php-ext-enable \ - amqp \ - apcu \ - imagick \ - geoip \ - memcached \ - mongodb \ - oauth \ - redis \ - xdebug \ - yaml && \ - - # Blackfire extension - mkdir -p /tmp/blackfire && \ - version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") && \ - wget -qO- "${BLACKFIRE_URL}/${version}" | tar xz --no-same-owner -C /tmp/blackfire && \ - mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so && \ - - # Uploadprogress - mkdir -p /usr/src/php/ext/uploadprogress && \ - wget -qO- ${EXT_UPLOADPROGRESS_URL} | tar xz --strip-components=1 -C /usr/src/php/ext/uploadprogress && \ - docker-php-ext-configure uploadprogress && \ - docker-php-ext-install uploadprogress && \ - - # AST - mkdir -p /usr/src/php/ext/ast && \ - wget -qO- ${EXT_AST_URL} | tar xz --strip-components=1 -C /usr/src/php/ext/ast && \ - docker-php-ext-configure ast && \ - docker-php-ext-install ast && \ - - # Install composer - wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ - - # Plugin for parallel install - su-exec www-data composer global require hirak/prestissimo:^${PHP_PRESTISSIMO_VER} && \ - - # Install PHPUnit - wget -qO- https://phar.phpunit.de/phpunit-${PHP_UNIT_VER}.phar > /usr/local/bin/phpunit && \ - chmod +x /usr/local/bin/phpunit && \ - - # Install Walter - wget -qO- ${WALTER_URL} | tar xz -C /tmp/ && \ - mv /tmp/walter_linux_amd64/walter /usr/local/bin && \ - - # Add composer bins to $PATH - su-exec www-data echo "export PATH=/home/www-data/.composer/vendor/bin:${PATH}" > /home/www-data/.profile && \ - - # Configure sudoers - { \ - echo -n 'www-data ALL=(root) NOPASSWD:SETENV: ' ; \ - echo -n '/usr/local/bin/sshd-generate-keys.sh, ' ; \ - echo -n '/usr/local/bin/fix-permissions.sh, ' ; \ - echo -n '/usr/sbin/sshd, ' ; \ - echo '/usr/sbin/crond' ; \ - } | tee /etc/sudoers.d/www-data && \ - - # Configure ldap - echo "TLS_CACERTDIR /etc/ssl/certs/" >> /etc/openldap/ldap.conf && \ - - # We run php-fpm as non root - sed -i '/^user = www-data/d;/^group = www-data/d' /usr/local/etc/php-fpm.d/www.conf* && \ - - # Create required directories and fix permissions - mkdir -p ${APP_ROOT} && \ - su-exec www-data mkdir /home/www-data/.ssh && \ - - touch /etc/ssh/sshd_config && \ - chown www-data: /etc/ssh/sshd_config && \ - - rm /etc/crontabs/root && \ - touch /etc/crontabs/www-data && \ - chown root:www-data /etc/crontabs/www-data && \ - chmod 660 /etc/crontabs/www-data && \ - - chown -R www-data:www-data /var/www "${PHP_INI_DIR}/conf.d" /usr/local/etc/php-fpm.d/ /home/www-data/.profile && \ - - # Cleanup - su-exec www-data composer clear-cache && \ - docker-php-source delete && \ - apk del .build-deps && \ - pecl clear-cache && \ - - rm -rf \ - /usr/src/php.tar.xz \ - /usr/src/php/ext/ast \ - /usr/src/php/ext/uploadprogress \ - /usr/include/php \ - /usr/lib/php/build \ - /tmp/* \ - /root/.composer - -USER www-data - -WORKDIR ${APP_ROOT} -EXPOSE 9000 - -COPY templates /etc/gotpl/ -COPY docker-entrypoint.sh / -COPY actions /usr/local/bin/ -COPY php.ini ${PHP_INI_DIR} - -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["php-fpm"] diff --git a/7.0/Makefile b/7.0/Makefile deleted file mode 100644 index 30c481e0..00000000 --- a/7.0/Makefile +++ /dev/null @@ -1,49 +0,0 @@ --include env_make - -PHP_VER ?= 7.0 -TAG ?= $(PHP_VER) - -REPO = wodby/php -NAME = php-$(PHP_VER) -FROM_TAG = 7.0.25 - -PHP_DEBUG ?= 0 - -ifneq ($(PHP_DEBUG), 0) - override TAG := $(TAG)-debug - FROM_TAG := $(FROM_TAG)-debug - NAME := $(NAME)-debug -endif - -.PHONY: build test push shell run start stop logs clean release - -default: build - -build: - docker build -t $(REPO):$(TAG) --build-arg FROM_TAG=$(FROM_TAG) --build-arg PHP_DEBUG=$(PHP_DEBUG) ./ - -test: - IMAGE=$(REPO):$(TAG) ./test.sh - -push: - docker push $(REPO):$(TAG) - -shell: - docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) /bin/bash - -run: - docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) $(CMD) - -start: - docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) - -stop: - docker stop $(NAME) - -logs: - docker logs $(NAME) - -clean: - -docker rm -f $(NAME) - -release: build push diff --git a/7.0/actions/actions.mk b/7.0/actions/actions.mk deleted file mode 100644 index 73a9c9f6..00000000 --- a/7.0/actions/actions.mk +++ /dev/null @@ -1,37 +0,0 @@ -.PHONY: git-clone git-checkout walter check-ready check-live - -check_defined = \ - $(strip $(foreach 1,$1, \ - $(call __check_defined,$1,$(strip $(value 2))))) -__check_defined = \ - $(if $(value $1),, \ - $(error Required parameter is missing: $1$(if $2, ($2)))) - -host ?= localhost -max_try ?= 1 -wait_seconds ?= 1 -delay_seconds ?= 0 -is_hash ?= 0 -branch = "" -# Some symbols in env vars break cgi-fcgi -command ?= env -i SCRIPT_NAME="/ping" SCRIPT_FILENAME="/ping" REQUEST_METHOD=GET cgi-fcgi -bind -connect "${host}":9001 | grep -q "pong" -service = PHP-FPM - -default: check-ready - -git-clone: - $(call check_defined, url) - git-clone.sh $(url) $(branch) - -git-checkout: - $(call check_defined, target) - git-checkout.sh $(target) $(is_hash) - -walter: - walter.sh - -check-ready: - wait-for.sh "$(command)" $(service) $(host) $(max_try) $(wait_seconds) $(delay_seconds) - -check-live: - @echo "OK" diff --git a/7.0/actions/git-checkout.sh b/7.0/actions/git-checkout.sh deleted file mode 100755 index a3f6865e..00000000 --- a/7.0/actions/git-checkout.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -target=$1 -is_hash=$2 - -cd "${APP_ROOT}" -git stash -git fetch --all -git checkout "${target}" - -if [[ "${is_hash}" -eq '0' ]]; then - git pull origin "${target}" -fi diff --git a/7.0/actions/git-clone.sh b/7.0/actions/git-clone.sh deleted file mode 100755 index 63cbf83d..00000000 --- a/7.0/actions/git-clone.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -url=$1 -branch=$2 - -if [[ -n "${branch}" ]]; then - git clone -b "${branch}" "${url}" "${APP_ROOT}" -else - git clone "${url}" "${APP_ROOT}" -fi diff --git a/7.0/actions/sshd-generate-keys.sh b/7.0/actions/sshd-generate-keys.sh deleted file mode 100755 index 5c0e79d4..00000000 --- a/7.0/actions/sshd-generate-keys.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -dir="${1:-/etc/ssh}" - -mkdir -p "${dir}" -ssh-keygen -qb 2048 -t rsa -N "" -f "${dir}/ssh_host_rsa_key" -chmod 0600 "${dir}/ssh_host_rsa_key" -chmod 0644 "${dir}/ssh_host_rsa_key.pub" diff --git a/7.0/actions/walter.sh b/7.0/actions/walter.sh deleted file mode 100755 index e928d759..00000000 --- a/7.0/actions/walter.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -if [[ -f "${APP_ROOT}/wodby.yml" ]]; then - walter -c "${APP_ROOT}/wodby.yml" -fi \ No newline at end of file diff --git a/7.0/docker-entrypoint.sh b/7.0/docker-entrypoint.sh deleted file mode 100755 index 3f5707f4..00000000 --- a/7.0/docker-entrypoint.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -SSH_DIR=/home/www-data/.ssh - -_backwards_compatibility() { - declare -A vars - vars[PHP_APCU_ENABLE]="PHP_APCU_ENABLED" - vars[PHP_FPM_SLOWLOG_TIMEOUT]="PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" - vars[PHP_FPM_MAX_CHILDREN]="PHP_FPM_PM_MAX_CHILDREN" - vars[PHP_FPM_START_SERVERS]="PHP_FPM_PM_START_SERVERS" - vars[PHP_FPM_MIN_SPARE_SERVERS]="PHP_FPM_PM_MIN_SPARE_SERVERS" - vars[PHP_FPM_MAX_SPARE_SERVERS]="PHP_FPM_PM_MAX_SPARE_SERVERS" - vars[PHP_FPM_MAX_REQUESTS]="PHP_FPM_PM_MAX_REQUESTS" - vars[PHP_FPM_STATUS_PATH]="PHP_FPM_PM_STATUS_PATH" - - for i in "${!vars[@]}"; do - export "$i"="${!vars[$i]}" - done -} - -exec_tpl() { - if [[ -f "/etc/gotpl/$1" ]]; then - gotpl "/etc/gotpl/$1" > "$2" - fi -} - -validate_dirs() { - if [[ -n "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" - fi - - if [[ -n "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" - fi -} - -init_ssh_client() { - exec_tpl "ssh_config.tpl" "${SSH_DIR}/config" - - if [[ -n "${SSH_PRIVATE_KEY}" ]]; then - exec_tpl "id_rsa.tpl" "${SSH_DIR}/id_rsa" - chmod -f 600 "${SSH_DIR}/id_rsa" - unset SSH_PRIVATE_KEY - fi -} - -init_sshd() { - exec_tpl "sshd_config.tpl" "/etc/ssh/sshd_config" - - if [[ -n "${SSH_PUBLIC_KEYS}" ]]; then - exec_tpl "authorized_keys.tpl" "${SSH_DIR}/authorized_keys" - unset SSH_PUBLIC_KEYS - fi - - printenv | xargs -I{} echo {} | awk ' \ - BEGIN { FS = "=" }; { \ - if ($1 != "HOME" \ - && $1 != "PWD" \ - && $1 != "PATH" \ - && $1 != "SHLVL") { \ - \ - print ""$1"="$2"" \ - } \ - }' > "${SSH_DIR}/environment" - - sudo sshd-generate-keys.sh "${SSHD_HOST_KEYS_DIR}" -} - -init_crond() { - exec_tpl "crontab.tpl" "/etc/crontabs/www-data" -} - -process_templates() { - _backwards_compatibility - - exec_tpl "docker-php.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php.ini" - exec_tpl "docker-php-ext-apcu.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini" - exec_tpl "docker-php-ext-geoip.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-geoip.ini" - exec_tpl "docker-php-ext-opcache.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini" - exec_tpl "docker-php-ext-xdebug.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" - exec_tpl "zz-www.conf.tpl" "/usr/local/etc/php-fpm.d/zz-www.conf" - - if [[ "${PHP_DEBUG}" == 0 ]]; then - exec_tpl "docker-php-ext-blackfire.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-blackfire.ini" - fi - - sed -i '/^$/d' "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" -} - -init_git() { - git config --global user.email "${GIT_USER_EMAIL:-www-data@example.com}" - git config --global user.name "${GIT_USER_NAME:-www-data}" -} - -sudo fix-permissions.sh www-data www-data "${APP_ROOT}" -validate_dirs -init_ssh_client -init_git -process_templates - -if [[ "${@:1:2}" == "sudo /usr/sbin/sshd" ]]; then - init_sshd -elif [[ "${@:1:3}" == "sudo -E crond" ]]; then - init_crond -fi - -exec-init-scripts.sh - -if [[ $1 == "make" ]]; then - exec "${@}" -f /usr/local/bin/actions.mk -else - exec /usr/local/bin/docker-php-entrypoint "${@}" -fi diff --git a/7.0/templates/authorized_keys.tpl b/7.0/templates/authorized_keys.tpl deleted file mode 100644 index cd58124a..00000000 --- a/7.0/templates/authorized_keys.tpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ range jsonArray (getenv "SSH_PUBLIC_KEYS") }}{{ . }} -{{ end }} \ No newline at end of file diff --git a/7.0/templates/crontab.tpl b/7.0/templates/crontab.tpl deleted file mode 100644 index 537bc190..00000000 --- a/7.0/templates/crontab.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "CRONTAB" }} \ No newline at end of file diff --git a/7.0/templates/docker-php-ext-apcu.ini.tpl b/7.0/templates/docker-php-ext-apcu.ini.tpl deleted file mode 100644 index 4f9eeb0f..00000000 --- a/7.0/templates/docker-php-ext-apcu.ini.tpl +++ /dev/null @@ -1,13 +0,0 @@ -[apcu] -extension=apcu.so -apc.enabled = {{ getenv "PHP_APCU_ENABLED" "1" }} -apc.shm_segments = {{ getenv "PHP_APCU_SHM_SEGMENTS" "1" }} -apc.shm_size = {{ getenv "PHP_APCU_SHM_SIZE" "32M" }} -apc.entries_hint = {{ getenv "PHP_APCU_ENTRIES_HINT" "4096" }} -apc.ttl = {{ getenv "PHP_APCU_TTL" "0" }} -apc.gc_ttl = {{ getenv "PHP_APCU_GC_TTL" "3600" }} -apc.slam_defense = {{ getenv "PHP_APCU_SLAM_DEFENSE" "1" }} -apc.enable_cli = {{ getenv "PHP_APCU_ENABLE_CLI" "0" }} -apc.use_request_time = {{ getenv "PHP_APCU_USE_REQUEST_TIME" "1" }} -apc.coredump_unmap = {{ getenv "PHP_APCU_COREDUMP_UNMAP" "0" }} -apc.preload_path = {{ getenv "PHP_APCU_PRELOAD_PATH" "NULL" }} diff --git a/7.0/templates/docker-php-ext-blackfire.ini.tpl b/7.0/templates/docker-php-ext-blackfire.ini.tpl deleted file mode 100644 index e8387eaa..00000000 --- a/7.0/templates/docker-php-ext-blackfire.ini.tpl +++ /dev/null @@ -1,4 +0,0 @@ -{{ if getenv "PHP_BLACKFIRE" }} -extension=blackfire.so -blackfire.agent_socket=tcp://{{ getenv "PHP_BLACKFIRE_AGENT_HOST" "blackfire" }}:{{ getenv "PHP_BLACKFIRE_AGENT_PORT" "8707" }} -{{ end }} \ No newline at end of file diff --git a/7.0/templates/docker-php-ext-geoip.ini.tpl b/7.0/templates/docker-php-ext-geoip.ini.tpl deleted file mode 100644 index fdebfe33..00000000 --- a/7.0/templates/docker-php-ext-geoip.ini.tpl +++ /dev/null @@ -1,3 +0,0 @@ -[geoip] -extension=geoip.so -geoip.custom_directory = {{ getenv "PHP_GEOIP_CUSTOM_DIR" "" }} \ No newline at end of file diff --git a/7.0/templates/docker-php.ini.tpl b/7.0/templates/docker-php.ini.tpl deleted file mode 100644 index 871c1755..00000000 --- a/7.0/templates/docker-php.ini.tpl +++ /dev/null @@ -1,28 +0,0 @@ -; This file user only to override default php.ini values -; BASIC SETTINGS: $PHP_INI_DIR/php.ini -; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf - -[PHP] -realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "4096k" }} -realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} -memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} -error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} -log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "1024" }} -track_errors = {{ getenv "PHP_TRACK_ERRORS" "On" }} -error_log = /proc/self/fd/2 - -[Date] -date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} - -[Pdo_mysql] -pdo_mysql.cache_size = {{ getenv "PHP_PDO_MYSQL_CACHE_SIZE" "2000" }} - -[mail function] -sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} - -[MySQLi] -mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} - -[Assertion] -zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} -assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} diff --git a/7.0/templates/id_rsa.tpl b/7.0/templates/id_rsa.tpl deleted file mode 100644 index 3fee5f15..00000000 --- a/7.0/templates/id_rsa.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "SSH_PRIVATE_KEY" }} \ No newline at end of file diff --git a/7.0/templates/ssh_config.tpl b/7.0/templates/ssh_config.tpl deleted file mode 100644 index 69bc5a2b..00000000 --- a/7.0/templates/ssh_config.tpl +++ /dev/null @@ -1,55 +0,0 @@ -# $OpenBSD: ssh_config,v 1.30 2016/02/20 23:06:23 sobrado Exp $ - -# This is the ssh client system-wide configuration file. See -# ssh_config(5) for more information. This file provides defaults for -# users, and the values can be changed in per-user configuration files -# or on the command line. - -# Configuration data is parsed as follows: -# 1. command line options -# 2. user-specific file -# 3. system-wide file -# Any configuration value is only changed the first time it is set. -# Thus, host-specific definitions should be at the beginning of the -# configuration file, and defaults at the end. - -# Site-wide defaults for some commonly used options. For a comprehensive -# list of available options, their meanings and defaults, please see the -# ssh_config(5) man page. - -# Host * -# ForwardAgent no -# ForwardX11 no -# RhostsRSAAuthentication no -# RSAAuthentication yes -# PasswordAuthentication yes -# HostbasedAuthentication no -# GSSAPIAuthentication no -# GSSAPIDelegateCredentials no -# BatchMode no -# CheckHostIP yes -# AddressFamily any -# ConnectTimeout 0 -# StrictHostKeyChecking ask -# IdentityFile ~/.ssh/identity -# IdentityFile ~/.ssh/id_rsa -# IdentityFile ~/.ssh/id_dsa -# IdentityFile ~/.ssh/id_ecdsa -# IdentityFile ~/.ssh/id_ed25519 -# Port 22 -# Protocol 2 -# Cipher 3des -# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc -# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 -# EscapeChar ~ -# Tunnel no -# TunnelDevice any:any -# PermitLocalCommand no -# VisualHostKey no -# ProxyCommand ssh -q -W %h:%p gateway.example.com -# RekeyLimit 1G 1h - -{{ if getenv "SSH_DISABLE_STRICT_KEY_CHECKING" }} -Host * - StrictHostKeyChecking no -{{ end }} \ No newline at end of file diff --git a/7.0/templates/sshd_config.tpl b/7.0/templates/sshd_config.tpl deleted file mode 100644 index ed4b4a99..00000000 --- a/7.0/templates/sshd_config.tpl +++ /dev/null @@ -1,121 +0,0 @@ -# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/bin:/usr/bin:/sbin:/usr/sbin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -{{ $keys_dir := (getenv "SSHD_HOST_KEYS_DIR" "/etc/ssh") }} -HostKey {{ $keys_dir }}/ssh_host_rsa_key -HostKey {{ $keys_dir }}/ssh_host_dsa_key -HostKey {{ $keys_dir }}/ssh_host_ecdsa_key -HostKey {{ $keys_dir }}/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -LogLevel {{ getenv "SSHD_LOG_LEVEL" "INFO" }} - -# Authentication: - -#LoginGraceTime 2m -#PermitRootLogin prohibit-password -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -PasswordAuthentication {{ getenv "SSHD_PASSWORD_AUTHENTICATION" "no" }} -#PermitEmptyPasswords no - -# Change to no to disable s/key passwords -#ChallengeResponseAuthentication yes - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no - -# GSSAPI options -#GSSAPIAuthentication no -#GSSAPICleanupCredentials yes - -# UsePAM NOT SUPPORTED - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -GatewayPorts {{ getenv "SSHD_GATEWAY_PORTS" "no" }} -#X11Forwarding no -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -#PrintMotd yes -#PrintLastLog yes -#TCPKeepAlive yes -#UseLogin no -PermitUserEnvironment {{ getenv "SSHD_PERMIT_USER_ENV" "no" }} -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -UseDNS {{ getenv "SSHD_USE_DNS" "yes" }} -#PidFile /run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# override default of no subsystems -Subsystem sftp /usr/lib/ssh/sftp-server - -# the following are HPN related configuration options -# tcp receive buffer polling. disable in non autotuning kernels -#TcpRcvBufPoll yes - -# disable hpn performance boosts -#HPNDisabled no - -# buffer size for hpn to non-hpn connections -#HPNBufferSize 2048 - - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/7.0/templates/zz-www.conf.tpl b/7.0/templates/zz-www.conf.tpl deleted file mode 100644 index a35888b8..00000000 --- a/7.0/templates/zz-www.conf.tpl +++ /dev/null @@ -1,47 +0,0 @@ -[global] -log_level = {{ getenv "PHP_FPM_LOG_LEVEL" "notice" }} - -[www] -clear_env = {{ getenv "PHP_FPM_CLEAR_ENV" "yes" }} -pm = {{ getenv "PHP_FPM_PM" "dynamic" }} -pm.max_children = {{ getenv "PHP_FPM_PM_MAX_CHILDREN" "8" }} -pm.start_servers = {{ getenv "PHP_FPM_PM_START_SERVERS" "2" }} -pm.min_spare_servers = {{ getenv "PHP_FPM_PM_MIN_SPARE_SERVERS" "1" }} -pm.max_spare_servers = {{ getenv "PHP_FPM_PM_MAX_SPARE_SERVERS" "3" }} -pm.max_requests = {{ getenv "PHP_FPM_PM_MAX_REQUESTS" "500" }} -{{ if getenv "PHP_FPM_PM_STATUS_PATH" }} -pm.status_path = {{ getenv "PHP_FPM_PM_STATUS_PATH" }} -{{ end }} -{{ if getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -slowlog = /proc/self/fd/2 -request_slowlog_timeout = {{ getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -{{ end }} - -php_value[display_errors] = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} -php_value[display_startup_errors] = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} -php_value[expose_php] = {{ getenv "PHP_EXPOSE" "Off" }} -php_value[max_execution_time] = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} -php_value[max_input_time] = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} -php_value[max_input_vars] = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} -php_value[memory_limit] = {{ getenv "PHP_MEMORY_LIMIT" "512M" }} -php_value[post_max_size] = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} -php_value[upload_max_filesize] = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} -php_value[max_file_uploads] = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} -php_value[output_buffering] = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} -php_value[session.auto_start] = {{ getenv "PHP_SESSION_AUTO_START" "0" }} - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} - -{{ if getenv "PHP_FPM_ENV_VARS" }}{{ range jsonArray (getenv "PHP_FPM_ENV_VARS") }}{{ if getenv . }} -env[{{.}}] = {{ getenv . }}{{ end }}{{ end }}{{ end }} - -; Pool for health-check pings to avoid spam in access log. -[ping] -pm = static -pm.max_children = 1 -listen = [::]:9001 -ping.path = "/ping" - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} diff --git a/7.0/test/docker-compose.yml b/7.0/test/docker-compose.yml deleted file mode 100644 index 0792fc08..00000000 --- a/7.0/test/docker-compose.yml +++ /dev/null @@ -1,93 +0,0 @@ -version: "2" - -services: - nginx: - image: wodby/nginx:1.13 - environment: - NGINX_BACKEND_HOST: php - volumes: - - ./nginx.conf:/etc/gotpl/default-vhost.conf.tpl - depends_on: - - php - - sshd: - image: $IMAGE - command: sudo /usr/sbin/sshd -De - environment: - SSH_PUBLIC_KEYS: |- - ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4mQ9wfvufRcDQ4LsoCYEyDL4LNsvP8dWKWMQKrnJ8k09IQm7mnvyzid8zxNJpQYxX12foC0+BttjejWVj67vf1if7rDHb\/e0oX7yQp4ji3QTjDNPDaOR\/eTOCNv1C5Lfj3n7D1G7O2dOiw8lAoSalGy6nltuTYY9EXbkl1dXaCG7qbQRVJEJdZ6x2oJ8FubJO6wjZvj9P759ziLVmWAqtzUgIQVlbv0nqSoq16Ug381sfnRvsHO1fXGhdgHGQ0WP720p5cBHxG+62HJROah5b7gahXidC2Lo6kdnLb5FOzZjRJO1aDiKgry\/GoNNijs6D5xwLtn44HoHMe0eyUw7lQCrWZwvNmdfvIecr+ZJNwT8cbZ2Cf5y0SqD4JZpcolR5FKuQluaVMdOvJCa8A\/BzvRqIeNLmZuHFRvruu2VTIHHZFR2CFgH9F+G\/KyBnmQwV\/FgqN6sy1MAuFmyizL7sJHVL3tSaMPSs423A+SLWYkXLxpUPjo2J5W2ImZYq97AQaHcArvrhKS2MwbBFGwaxglcq5t8Ss6Df3fEZUWGLHJSdOv\/fn\/+CNOiI7hjj3v5mHaxxnC27MOHmJlrqmCA3OXuQ9mZG\/hSfj2vPKF+xFUarqqsp4zVsDH71bY2Q+zHpyncIFnyhaiEba9gbvmUVOfUyYglkJ6TGF5xAhpDFpQ== admin@wodby.com"] - - php: - image: $IMAGE - environment: - SSH_DISABLE_STRICT_KEY_CHECKING: 1 - PHP_XDEBUG: 1 - PHP_BLACKFIRE: 1 - SSH_PRIVATE_KEY: |- - -----BEGIN RSA PRIVATE KEY----- - MIIJKQIBAAKCAgEAuJkPcH77n0XA0OC7KAmBMgy+CzbLz/HViljECq5yfJNPSEJu - 5p78s4nfM8TSaUGMV9dn6AtPgbbY3o1lY+u739Yn+6wx2/3tKF+8kKeI4t0E4wzT - w2jkf3kzgjb9QuS3495+w9RuztnTosPJQKEmpRsup5bbk2GPRF25JdXV2ghu6m0E - VSRCXWesdqCfBbmyTusI2b4/T++fc4i1ZlgKrc1ICEFZW79J6kqKtelIN/NbH50b - 7BztX1xoXYBxkNFj+9tKeXAR8RvuthyUTmoeW+4GoV4nQti6OpHZy2+RTs2Y0STt - Wg4ioK8vxqDTYo7Og+ccC7Z+OB6BzHtHslMO5UAq1mcLzZnX7yHnK/mSTcE/HG2d - gn+ctEqg+CWaXKJUeRSrkJbmlTHTryQmvAPwc70aiHjS5mbhxUb67rtlUyBx2RUd - ghYB/RfhvysgZ5kMFfxYKjerMtTALhZsosy+7CR1S97UmjD0rONtwPki1mJFy8aV - D46NieVtiJmWKvewEGh3AK764SktjMGwRRsGsYJXKubfErOg393xGVFhixyUnTr/ - 35//gjToiO4Y497+Zh2scZwtuzDh5iZa6pggNzl7kPZmRv4Un49rzyhfsRVGq6qr - KeM1bAx+9W2NkPsx6cp3CBZ8oWohG2vYG75lFTn1MmIJZCekxhecQIaQxaUCAwEA - AQKCAgBe5+J2NfLr2hLd0Qyn8usHbmGupkd266Cb9jMkQrf9sEbMocseqpLFQ5cL - qJ99GgQrjUWQmXARAo7RLOT50FLRK+t2ivs/XXe2kDIENP49lOBUU130U1NW7ls7 - EUZ4Q9r/Pn7x85/cnUUfo4Uuwyt5K1Z7NyZAyaG8xmrQNvYxmLBduhrGI1QzbX/P - pZjcerJfvJraR+OJF2tlHN4WdiFXZfkotWBZuSkpWZWjHQLSMT2iLUYTyHOJ2ZqW - p9i7WcwLypypfqLa0T+TRXJCNnDRVrj18dBBn+dvAVl2LDAK0c1FibS13hqTfj4T - 4s+LFly6l/FlXDfcZmLZXHBqECXReoyY02mo6jNOdzwYHKElPQeAnzc8IRIBG3s4 - EU+OA2EFZzQp2qSNlVAfTe/masQZkBOYTU/cpWg5yfIReFEWc1FzILTyXESJu0U2 - GmAYu1b7miFWsglIapUxCdlfdoEer+yDpjG4T151CYB11sUfpgcfOhAsStNfykmc - AaxRzklKFnjD5R8Au0BqZLyHu7FApV0BQqwZkevomsAAVWfVSxVGobnSzhW2mIIV - 4FyAKWHG8pm0By/eJkgKjJK3rIAjeAq/bJpNoUeKwjdvuysfMM9Q/LEjUQ5RRU09 - r/kAquTDUHne5d4yEjzmDmlaBN/zrMYuY1bG5H9Qs05p86W/aQKCAQEA82TOCRys - XCud62XTyHYxOqQbG/vDa1qdiamiE4iGBJgFUG0Xvqzy3YeSvqdifRxzst2auj7p - OSHk6w5/4Q2iezew/UCzRcG+INwtNwOUJ7wvHPyqskbp3w7e4OkrcN6lzReFZqls - pB5a9U8yn3qK/qrpHtyyBds951qI0olDyiPdW0M+8IKrIa70cUb6PYpk5enGVgyI - h+fBK9PTCzr9Gsk5XTpkNRcvgF1Czig+ZXk4KpD19W/JtqHSpCOu5XZx1RpCBBtY - +1BJcTzE0jgOAywFuUHVdYaSXZa+Nlyc+mgjqZoeNfgy8rvcGrM7VYAt+wlPpSeI - eiQBgeltfDWD7wKCAQEAwiisBfaSvN+odjs05vYEYPH43Vs2pp76ZxjUqTU0H2hL - Cmun2ogh/QgDy1wIUQBeZznm4mSQWn5vZNBmz786Fh2tPFi4QQaYCvtJmGfeV5aR - wOnb+cpCVeI2MG9iBnUPlWp7Zdj7Lwdt2EG5QNIMfF4zKuScuY2E05eIZCuWPdwA - 9/9zaWH3QR9luCEcHzLuspmu56uH5CvMBtsDdqs42BAm/DRn5FjAAWIHunIjoRrt - 8WaHe1/jPPcOHAvVLeK1iq/Ahe9f48JQqh5PeMtWFyUqRB68D5RcqCgHlVpfFk84 - UFMvgVLo2Sv1LtZAWlop168Io6YTsbXpt9HAxl+rqwKCAQEAs3EFSch+9nEdu1fW - XLturfohFm918qba8IxEtrv3elmNyW60i9o8L8DtGmyTewPH9P3WPit1jK6FdBq7 - gvOnb8puTTgvM2WUQ+uv1hhoWScvYOKTAl6vu8jd3tlpMoyjlmIZ8sdEFndeve6G - tvcElJ7ywdMZ2KF7sR6ZMwcKGHR6lPct5umfO3UeOImIomhu3OaOWBBjdDcTvrkr - peL2iZIDHc2X5WBToAKh5xXacrt9AjzfaPTitSf3ARZhskCxydfTBe4XmyjlDHwt - 64JyKjqBecSkmEH/lMo3MCL1hNPUPw0l6soy3axMqM6tFusqeyKxOmS8BLiY9+td - 0a4utwKCAQBIXrigEGRpmkRErZTuccz4BblpaNJaEO/s9chuubIP8uPlonMSdaOV - mSMw7cD70FNfzqlMwYc889u5jCSGUxTnoXAtCjTDqB2MGlY4RJ8PrsPtUD36QXWw - ZX0lWJ8FISUJ4ILWV6ZoxTAgZ38RtjmJMeOInWX9k85qwBTKoaSCsjp6NfFi2m07 - DOTxWQYOawGl+LrFB57DYb/O3lvQI8owXvTpFO+UobAP0+ZljJ3TMyJ11G2zgu5E - jyHnOlHfpJ1ecFwmkC8ByjAe+OVOdRxFzEiQ05PtirNuylzpQqImwqiO6DLQ1YKN - UGE3cAzUoL7v8gIaXZEBsHjJV5mvV4G5AoIBAQCd89YTMEVVHr2HPxWmQb1BJ+4D - u0u9Aj9Gb6f3qxfQPa9+A081rdnb2DEXCRrjPAguxP/JxXmBMQjs/PfcCnHRHFWU - nEnXfUAprudh2xX6j3tgNyOwJT3fBlRg8TRQ5HorpzaCxzCIoMgbwBmB05VzxDAq - y7zXXF+i0+QLHdAKMIQmps0S+qn+ji3ViooJyrAGuZTmeIXQP7b8wgft5m16C5Nc - Hl/7LjnsiAiu6HMNqIjrJmHNmdYlmfqFBepvWpnykUgvEMSigyy0K7858Lcl+FH3 - 62fhFpwtP7IE2/o+6+JybuQRrUqHvAPM0/RTn8//rZmkmq3mrAYc+MslXAt+ - -----END RSA PRIVATE KEY----- - volumes: - - ./tests.sh:/usr/local/bin/tests.sh - - ./php_modules:/home/www-data/php_modules - depends_on: - - sshd - - crond: - image: $IMAGE - command: sudo -E crond -f -d 0 - environment: - CRONTAB_ENV: test - CRONTAB: |- - # min hour day month weekday command - */1 * * * * echo "$${CRONTAB_ENV}" > /home/www-data/cron - depends_on: - - sshd diff --git a/7.0/test/nginx.conf b/7.0/test/nginx.conf deleted file mode 100644 index a89ce5ba..00000000 --- a/7.0/test/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - server_name default; - listen 80; - - root /var/www/html/; - index index.php; - - fastcgi_param REQUEST_METHOD $request_method; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_index index.php; - - location / { - fastcgi_pass php:9000; - } -} diff --git a/7.0/test/tests.sh b/7.0/test/tests.sh deleted file mode 100755 index 282e8d21..00000000 --- a/7.0/test/tests.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -php -m > ~/php_modules.tmp -echo -n "Checking PHP modules... " - -# Modify copy, keep the mounted version untouched. -cp ~/php_modules ~/expected_modules - -if [[ "${PHP_DEBUG}" == 1 ]]; then - sed -i '/blackfire/d' ~/expected_modules -fi - -if ! cmp -s ~/php_modules.tmp ~/expected_modules; then - echo "Error. PHP modules are not identical." - diff ~/php_modules.tmp ~/expected_modules - exit 1 -fi - -echo "OK" - -echo -n "Checking composer... " -composer --version | grep -q 'Composer version' -echo "OK" - -echo -n "Checking walter... " -walter -v | grep -q 'Walter version' -echo "OK" - -echo -n "Checking PHPUnit... " -phpunit -version | grep -q 'PHPUnit' -echo "OK" diff --git a/7.1/Dockerfile b/7.1/Dockerfile deleted file mode 100644 index fc484c76..00000000 --- a/7.1/Dockerfile +++ /dev/null @@ -1,269 +0,0 @@ -ARG FROM_TAG - -FROM wodby/base-php:${FROM_TAG} - -ARG PHP_DEBUG - -ENV PHP_DEBUG="${PHP_DEBUG:-0}" \ - SSHD_PERMIT_USER_ENV="yes" \ - PHP_PRESTISSIMO_VER="0.3" \ - PHP_UNIT_VER="6.4" \ - WALTER_VER="1.3.0" \ - - EXT_AMQP_VER="1.9.1" \ - EXT_APCU_VER="5.1.8" \ - EXT_AST_VER="0.1.6" \ - EXT_GEOIP_VER="1.1.1" \ - EXT_IMAGICK_VER="3.4.3" \ - EXT_MEMCACHED_VER="3.0.3" \ - EXT_MONGODB_VER="1.3.2" \ - EXT_OAUTH_VER="2.0.2" \ - EXT_REDIS_VER="3.1.4" \ - EXT_XDEBUG_VER="2.5.5" \ - EXT_YAML_VER="2.0.2" \ - - C_CLIENT_VER="2007f-r6" \ - FREETYPE_VER="2.7.1-r1" \ - GEOIP_VER="1.6.10-r0" \ - ICU_LIBS_VER="58.2-r2" \ - IMAGEMAGICK_VER="7.0.5.10-r0" \ - LIBBZ2_VER="1.0.6-r5" \ - LIBJPEG_TURBO_VER="1.5.1-r0" \ - LIBLDAP_VER="2.4.44-r5" \ - LIBLTDL_VER="2.4.6-r1" \ - LIBMEMCACHED_LIBS_VER="1.0.18-r1" \ - LIBMCRYPT_VER="2.5.8-r7" \ - LIBPNG_VER="1.6.29-r1" \ - LIBXSLT_VER="1.1.29-r3" \ - MARIADB_CLIENT_VER="10.1.26-r0" \ - POSTGRESQL_CLIENT_VER="9.6.5-r0" \ - RABBITMQ_C_VER="0.8.0-r2" \ - YAML_VER="0.1.7-r0" - -ENV EXT_AST_URL="https://github.com/nikic/php-ast/archive/v${EXT_AST_VER}.tar.gz" \ - EXT_UPLOADPROGRESS_URL="https://github.com/wodby/pecl-php-uploadprogress/archive/latest.tar.gz" \ - WALTER_URL="https://github.com/walter-cd/walter/releases/download/v${WALTER_VER}/walter_${WALTER_VER}_linux_amd64.tar.gz" \ - BLACKFIRE_URL="https://blackfire.io/api/v1/releases/probe/php/alpine/amd64" \ - - APP_ROOT="/var/www/html" \ - PATH="/home/www-data/.composer/vendor/bin:${PATH}" - -RUN set -xe && \ - - # Recreate user with correct params - deluser www-data && \ - addgroup -g 82 -S www-data && \ - adduser -u 82 -D -S -s /bin/bash -G www-data www-data && \ - sed -i '/^www-data/s/!/*/' /etc/shadow && \ - echo "PS1='\w\$ '" >> /home/www-data/.bashrc && \ - - apk add --update --no-cache --virtual .php-rundeps \ - c-client=${C_CLIENT_VER} \ - fcgi \ - freetype=${FREETYPE_VER} \ - geoip=${GEOIP_VER} \ - git \ - icu-libs=${ICU_LIBS_VER} \ - imagemagick=${IMAGEMAGICK_VER} \ - less \ - libbz2=${LIBBZ2_VER} \ - libjpeg-turbo=${LIBJPEG_TURBO_VER} \ - libldap=${LIBLDAP_VER} \ - libltdl=${LIBLTDL_VER} \ - libmemcached-libs=${LIBMEMCACHED_LIBS_VER} \ - libmcrypt=${LIBMCRYPT_VER} \ - libpng=${LIBPNG_VER} \ - libxslt=${LIBXSLT_VER} \ - make \ - mariadb-client=${MARIADB_CLIENT_VER} \ - nano \ - openssh \ - openssh-client \ - patch \ - postgresql-client=${POSTGRESQL_CLIENT_VER} \ - rabbitmq-c=${RABBITMQ_C_VER} \ - rsync \ - su-exec \ - sudo \ - tig \ - tmux \ - yaml=${YAML_VER} && \ - - apk add --update --no-cache --virtual .build-deps \ - autoconf \ - cmake \ - build-base \ - bzip2-dev \ - freetype-dev \ - geoip-dev \ - icu-dev \ - imagemagick-dev \ - imap-dev \ - jpeg-dev \ - libjpeg-turbo-dev \ - libmemcached-dev \ - libmcrypt-dev \ - libpng-dev \ - libtool \ - libxslt-dev \ - openldap-dev \ - pcre-dev \ - postgresql-dev \ - rabbitmq-c-dev \ - yaml-dev && \ - - if [[ $PHP_DEBUG == 1 ]]; then \ - apk add --update --no-cache --virtual .debug-tools gdb; \ - fi && \ - - docker-php-source extract && \ - - docker-php-ext-install \ - bcmath \ - bz2 \ - calendar \ - exif \ - imap \ - intl \ - ldap \ - mcrypt \ - mysqli \ - opcache \ - pcntl \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - phar \ - soap \ - sockets \ - xmlrpc \ - xsl \ - zip && \ - - # GD - docker-php-ext-configure gd \ - --with-gd \ - --with-freetype-dir=/usr/include/ \ - --with-png-dir=/usr/include/ \ - --with-jpeg-dir=/usr/include/ && \ - NPROC=$(getconf _NPROCESSORS_ONLN) && \ - docker-php-ext-install -j${NPROC} gd && \ - - # PECL extensions - pecl config-set php_ini "${PHP_INI_DIR}/php.ini" && \ - - pecl install \ - amqp-${EXT_AMQP_VER} \ - apcu-${EXT_APCU_VER} \ - geoip-${EXT_GEOIP_VER} \ - imagick-${EXT_IMAGICK_VER} \ - memcached-${EXT_MEMCACHED_VER} \ - mongodb-${EXT_MONGODB_VER} \ - oauth-${EXT_OAUTH_VER} \ - redis-${EXT_REDIS_VER} \ - xdebug-${EXT_XDEBUG_VER} \ - yaml-${EXT_YAML_VER} && \ - - docker-php-ext-enable \ - amqp \ - apcu \ - imagick \ - geoip \ - memcached \ - mongodb \ - oauth \ - redis \ - xdebug \ - yaml && \ - - # Blackfire extension - mkdir -p /tmp/blackfire && \ - version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") && \ - wget -qO- "${BLACKFIRE_URL}/${version}" | tar xz --no-same-owner -C /tmp/blackfire && \ - mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so && \ - - # Uploadprogress - mkdir -p /usr/src/php/ext/uploadprogress && \ - wget -qO- ${EXT_UPLOADPROGRESS_URL} | tar xz --strip-components=1 -C /usr/src/php/ext/uploadprogress && \ - docker-php-ext-configure uploadprogress && \ - docker-php-ext-install uploadprogress && \ - - # AST - mkdir -p /usr/src/php/ext/ast && \ - wget -qO- ${EXT_AST_URL} | tar xz --strip-components=1 -C /usr/src/php/ext/ast && \ - docker-php-ext-configure ast && \ - docker-php-ext-install ast && \ - - # Install composer - wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ - - # Plugin for parallel install - su-exec www-data composer global require hirak/prestissimo:^${PHP_PRESTISSIMO_VER} && \ - - # Install PHPUnit - wget -qO- https://phar.phpunit.de/phpunit-${PHP_UNIT_VER}.phar > /usr/local/bin/phpunit && \ - chmod +x /usr/local/bin/phpunit && \ - - # Install Walter - wget -qO- ${WALTER_URL} | tar xz -C /tmp/ && \ - mv /tmp/walter_linux_amd64/walter /usr/local/bin && \ - - # Add composer bins to $PATH - su-exec www-data echo "export PATH=/home/www-data/.composer/vendor/bin:${PATH}" > /home/www-data/.profile && \ - - # Configure sudoers - { \ - echo -n 'www-data ALL=(root) NOPASSWD:SETENV: ' ; \ - echo -n '/usr/local/bin/sshd-generate-keys.sh, ' ; \ - echo -n '/usr/local/bin/fix-permissions.sh, ' ; \ - echo -n '/usr/sbin/sshd, ' ; \ - echo '/usr/sbin/crond' ; \ - } | tee /etc/sudoers.d/www-data && \ - - # Configure ldap - echo "TLS_CACERTDIR /etc/ssl/certs/" >> /etc/openldap/ldap.conf && \ - - # We run php-fpm as non root - sed -i '/^user = www-data/d;/^group = www-data/d' /usr/local/etc/php-fpm.d/www.conf* && \ - - # Create required directories and fix permissions - mkdir -p ${APP_ROOT} && \ - su-exec www-data mkdir /home/www-data/.ssh && \ - - touch /etc/ssh/sshd_config && \ - chown www-data: /etc/ssh/sshd_config && \ - - rm /etc/crontabs/root && \ - touch /etc/crontabs/www-data && \ - chown root:www-data /etc/crontabs/www-data && \ - chmod 660 /etc/crontabs/www-data && \ - - chown -R www-data:www-data /var/www "${PHP_INI_DIR}/conf.d" /usr/local/etc/php-fpm.d/ /home/www-data/.profile && \ - - # Cleanup - su-exec www-data composer clear-cache && \ - docker-php-source delete && \ - apk del .build-deps && \ - pecl clear-cache && \ - - rm -rf \ - /usr/src/php.tar.xz \ - /usr/src/php/ext/ast \ - /usr/src/php/ext/uploadprogress \ - /usr/include/php \ - /usr/lib/php/build \ - /tmp/* \ - /root/.composer - -USER www-data - -WORKDIR ${APP_ROOT} -EXPOSE 9000 - -COPY templates /etc/gotpl/ -COPY docker-entrypoint.sh / -COPY actions /usr/local/bin/ -COPY php.ini ${PHP_INI_DIR} - -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["php-fpm"] diff --git a/7.1/Makefile b/7.1/Makefile deleted file mode 100644 index c6fb7300..00000000 --- a/7.1/Makefile +++ /dev/null @@ -1,49 +0,0 @@ --include env_make - -PHP_VER ?= 7.1 -TAG ?= $(PHP_VER) - -REPO = wodby/php -NAME = php-$(PHP_VER) -FROM_TAG = 7.1.11 - -PHP_DEBUG ?= 0 - -ifneq ($(PHP_DEBUG), 0) - override TAG := $(TAG)-debug - FROM_TAG := $(FROM_TAG)-debug - NAME := $(NAME)-debug -endif - -.PHONY: build test push shell run start stop logs clean release - -default: build - -build: - docker build -t $(REPO):$(TAG) --build-arg FROM_TAG=$(FROM_TAG) --build-arg PHP_DEBUG=$(PHP_DEBUG) ./ - -test: - IMAGE=$(REPO):$(TAG) ./test.sh - -push: - docker push $(REPO):$(TAG) - -shell: - docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) /bin/bash - -run: - docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) $(CMD) - -start: - docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) - -stop: - docker stop $(NAME) - -logs: - docker logs $(NAME) - -clean: - -docker rm -f $(NAME) - -release: build push diff --git a/7.1/actions/actions.mk b/7.1/actions/actions.mk deleted file mode 100644 index 73a9c9f6..00000000 --- a/7.1/actions/actions.mk +++ /dev/null @@ -1,37 +0,0 @@ -.PHONY: git-clone git-checkout walter check-ready check-live - -check_defined = \ - $(strip $(foreach 1,$1, \ - $(call __check_defined,$1,$(strip $(value 2))))) -__check_defined = \ - $(if $(value $1),, \ - $(error Required parameter is missing: $1$(if $2, ($2)))) - -host ?= localhost -max_try ?= 1 -wait_seconds ?= 1 -delay_seconds ?= 0 -is_hash ?= 0 -branch = "" -# Some symbols in env vars break cgi-fcgi -command ?= env -i SCRIPT_NAME="/ping" SCRIPT_FILENAME="/ping" REQUEST_METHOD=GET cgi-fcgi -bind -connect "${host}":9001 | grep -q "pong" -service = PHP-FPM - -default: check-ready - -git-clone: - $(call check_defined, url) - git-clone.sh $(url) $(branch) - -git-checkout: - $(call check_defined, target) - git-checkout.sh $(target) $(is_hash) - -walter: - walter.sh - -check-ready: - wait-for.sh "$(command)" $(service) $(host) $(max_try) $(wait_seconds) $(delay_seconds) - -check-live: - @echo "OK" diff --git a/7.1/actions/git-checkout.sh b/7.1/actions/git-checkout.sh deleted file mode 100755 index a3f6865e..00000000 --- a/7.1/actions/git-checkout.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -target=$1 -is_hash=$2 - -cd "${APP_ROOT}" -git stash -git fetch --all -git checkout "${target}" - -if [[ "${is_hash}" -eq '0' ]]; then - git pull origin "${target}" -fi diff --git a/7.1/actions/git-clone.sh b/7.1/actions/git-clone.sh deleted file mode 100755 index 63cbf83d..00000000 --- a/7.1/actions/git-clone.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -url=$1 -branch=$2 - -if [[ -n "${branch}" ]]; then - git clone -b "${branch}" "${url}" "${APP_ROOT}" -else - git clone "${url}" "${APP_ROOT}" -fi diff --git a/7.1/actions/sshd-generate-keys.sh b/7.1/actions/sshd-generate-keys.sh deleted file mode 100755 index 5c0e79d4..00000000 --- a/7.1/actions/sshd-generate-keys.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -dir="${1:-/etc/ssh}" - -mkdir -p "${dir}" -ssh-keygen -qb 2048 -t rsa -N "" -f "${dir}/ssh_host_rsa_key" -chmod 0600 "${dir}/ssh_host_rsa_key" -chmod 0644 "${dir}/ssh_host_rsa_key.pub" diff --git a/7.1/actions/walter.sh b/7.1/actions/walter.sh deleted file mode 100755 index e928d759..00000000 --- a/7.1/actions/walter.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -if [[ -f "${APP_ROOT}/wodby.yml" ]]; then - walter -c "${APP_ROOT}/wodby.yml" -fi \ No newline at end of file diff --git a/7.1/docker-entrypoint.sh b/7.1/docker-entrypoint.sh deleted file mode 100755 index 3f5707f4..00000000 --- a/7.1/docker-entrypoint.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -SSH_DIR=/home/www-data/.ssh - -_backwards_compatibility() { - declare -A vars - vars[PHP_APCU_ENABLE]="PHP_APCU_ENABLED" - vars[PHP_FPM_SLOWLOG_TIMEOUT]="PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" - vars[PHP_FPM_MAX_CHILDREN]="PHP_FPM_PM_MAX_CHILDREN" - vars[PHP_FPM_START_SERVERS]="PHP_FPM_PM_START_SERVERS" - vars[PHP_FPM_MIN_SPARE_SERVERS]="PHP_FPM_PM_MIN_SPARE_SERVERS" - vars[PHP_FPM_MAX_SPARE_SERVERS]="PHP_FPM_PM_MAX_SPARE_SERVERS" - vars[PHP_FPM_MAX_REQUESTS]="PHP_FPM_PM_MAX_REQUESTS" - vars[PHP_FPM_STATUS_PATH]="PHP_FPM_PM_STATUS_PATH" - - for i in "${!vars[@]}"; do - export "$i"="${!vars[$i]}" - done -} - -exec_tpl() { - if [[ -f "/etc/gotpl/$1" ]]; then - gotpl "/etc/gotpl/$1" > "$2" - fi -} - -validate_dirs() { - if [[ -n "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_TRACE_OUTPUT_DIR}" - fi - - if [[ -n "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" ]]; then - mkdir -p "${PHP_XDEBUG_PROFILER_OUTPUT_DIR}" - fi -} - -init_ssh_client() { - exec_tpl "ssh_config.tpl" "${SSH_DIR}/config" - - if [[ -n "${SSH_PRIVATE_KEY}" ]]; then - exec_tpl "id_rsa.tpl" "${SSH_DIR}/id_rsa" - chmod -f 600 "${SSH_DIR}/id_rsa" - unset SSH_PRIVATE_KEY - fi -} - -init_sshd() { - exec_tpl "sshd_config.tpl" "/etc/ssh/sshd_config" - - if [[ -n "${SSH_PUBLIC_KEYS}" ]]; then - exec_tpl "authorized_keys.tpl" "${SSH_DIR}/authorized_keys" - unset SSH_PUBLIC_KEYS - fi - - printenv | xargs -I{} echo {} | awk ' \ - BEGIN { FS = "=" }; { \ - if ($1 != "HOME" \ - && $1 != "PWD" \ - && $1 != "PATH" \ - && $1 != "SHLVL") { \ - \ - print ""$1"="$2"" \ - } \ - }' > "${SSH_DIR}/environment" - - sudo sshd-generate-keys.sh "${SSHD_HOST_KEYS_DIR}" -} - -init_crond() { - exec_tpl "crontab.tpl" "/etc/crontabs/www-data" -} - -process_templates() { - _backwards_compatibility - - exec_tpl "docker-php.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php.ini" - exec_tpl "docker-php-ext-apcu.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini" - exec_tpl "docker-php-ext-geoip.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-geoip.ini" - exec_tpl "docker-php-ext-opcache.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini" - exec_tpl "docker-php-ext-xdebug.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" - exec_tpl "zz-www.conf.tpl" "/usr/local/etc/php-fpm.d/zz-www.conf" - - if [[ "${PHP_DEBUG}" == 0 ]]; then - exec_tpl "docker-php-ext-blackfire.ini.tpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-blackfire.ini" - fi - - sed -i '/^$/d' "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" -} - -init_git() { - git config --global user.email "${GIT_USER_EMAIL:-www-data@example.com}" - git config --global user.name "${GIT_USER_NAME:-www-data}" -} - -sudo fix-permissions.sh www-data www-data "${APP_ROOT}" -validate_dirs -init_ssh_client -init_git -process_templates - -if [[ "${@:1:2}" == "sudo /usr/sbin/sshd" ]]; then - init_sshd -elif [[ "${@:1:3}" == "sudo -E crond" ]]; then - init_crond -fi - -exec-init-scripts.sh - -if [[ $1 == "make" ]]; then - exec "${@}" -f /usr/local/bin/actions.mk -else - exec /usr/local/bin/docker-php-entrypoint "${@}" -fi diff --git a/7.1/docker-php-source b/7.1/docker-php-source deleted file mode 100644 index 720d4ad1..00000000 --- a/7.1/docker-php-source +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -set -e - -dir=/usr/src/php - -usage() { - echo "usage: $0 COMMAND" - echo - echo "Manage php source tarball lifecycle." - echo - echo "Commands:" - echo " extract extract php source tarball into directory $dir if not already done." - echo " delete delete extracted php source located into $dir if not already done." - echo -} - -case "$1" in - extract) - mkdir -p "$dir" - if [ ! -f "$dir/.docker-extracted" ]; then - tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 - touch "$dir/.docker-extracted" - fi - ;; - - delete) - rm -rf "$dir" - ;; - - *) - usage - exit 1 - ;; -esac \ No newline at end of file diff --git a/7.1/templates/authorized_keys.tpl b/7.1/templates/authorized_keys.tpl deleted file mode 100644 index cd58124a..00000000 --- a/7.1/templates/authorized_keys.tpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ range jsonArray (getenv "SSH_PUBLIC_KEYS") }}{{ . }} -{{ end }} \ No newline at end of file diff --git a/7.1/templates/crontab.tpl b/7.1/templates/crontab.tpl deleted file mode 100644 index 537bc190..00000000 --- a/7.1/templates/crontab.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "CRONTAB" }} \ No newline at end of file diff --git a/7.1/templates/docker-php-ext-apcu.ini.tpl b/7.1/templates/docker-php-ext-apcu.ini.tpl deleted file mode 100644 index 4f9eeb0f..00000000 --- a/7.1/templates/docker-php-ext-apcu.ini.tpl +++ /dev/null @@ -1,13 +0,0 @@ -[apcu] -extension=apcu.so -apc.enabled = {{ getenv "PHP_APCU_ENABLED" "1" }} -apc.shm_segments = {{ getenv "PHP_APCU_SHM_SEGMENTS" "1" }} -apc.shm_size = {{ getenv "PHP_APCU_SHM_SIZE" "32M" }} -apc.entries_hint = {{ getenv "PHP_APCU_ENTRIES_HINT" "4096" }} -apc.ttl = {{ getenv "PHP_APCU_TTL" "0" }} -apc.gc_ttl = {{ getenv "PHP_APCU_GC_TTL" "3600" }} -apc.slam_defense = {{ getenv "PHP_APCU_SLAM_DEFENSE" "1" }} -apc.enable_cli = {{ getenv "PHP_APCU_ENABLE_CLI" "0" }} -apc.use_request_time = {{ getenv "PHP_APCU_USE_REQUEST_TIME" "1" }} -apc.coredump_unmap = {{ getenv "PHP_APCU_COREDUMP_UNMAP" "0" }} -apc.preload_path = {{ getenv "PHP_APCU_PRELOAD_PATH" "NULL" }} diff --git a/7.1/templates/docker-php-ext-blackfire.ini.tpl b/7.1/templates/docker-php-ext-blackfire.ini.tpl deleted file mode 100644 index e8387eaa..00000000 --- a/7.1/templates/docker-php-ext-blackfire.ini.tpl +++ /dev/null @@ -1,4 +0,0 @@ -{{ if getenv "PHP_BLACKFIRE" }} -extension=blackfire.so -blackfire.agent_socket=tcp://{{ getenv "PHP_BLACKFIRE_AGENT_HOST" "blackfire" }}:{{ getenv "PHP_BLACKFIRE_AGENT_PORT" "8707" }} -{{ end }} \ No newline at end of file diff --git a/7.1/templates/docker-php-ext-geoip.ini.tpl b/7.1/templates/docker-php-ext-geoip.ini.tpl deleted file mode 100644 index fdebfe33..00000000 --- a/7.1/templates/docker-php-ext-geoip.ini.tpl +++ /dev/null @@ -1,3 +0,0 @@ -[geoip] -extension=geoip.so -geoip.custom_directory = {{ getenv "PHP_GEOIP_CUSTOM_DIR" "" }} \ No newline at end of file diff --git a/7.1/templates/docker-php-ext-opcache.ini.tpl b/7.1/templates/docker-php-ext-opcache.ini.tpl deleted file mode 100644 index 518b7d02..00000000 --- a/7.1/templates/docker-php-ext-opcache.ini.tpl +++ /dev/null @@ -1,10 +0,0 @@ -[opcache] -zend_extension = opcache.so -opcache.enable = {{ getenv "PHP_OPCACHE_ENABLE" "1" }} -opcache.validate_timestamps = {{ getenv "PHP_OPCACHE_VALIDATE_TIMESTAMPS" "1" }} -opcache.revalidate_freq = {{ getenv "PHP_OPCACHE_REVALIDATE_FREQ" "2" }} -opcache.max_accelerated_files = {{ getenv "PHP_OPCACHE_MAX_ACCELERATED_FILES" "4000" }} -opcache.memory_consumption = {{ getenv "PHP_OPCACHE_MEMORY_CONSUMPTION" "128" }} -opcache.interned_strings_buffer = {{ getenv "PHP_OPCACHE_INTERNED_STRINGS_BUFFER" "8" }} -opcache.fast_shutdown = {{ getenv "PHP_OPCACHE_FAST_SHUTDOWN" "1" }} -opcache.enable_cli = {{ getenv "PHP_OPCACHE_ENABLE_CLI" "1" }} \ No newline at end of file diff --git a/7.1/templates/docker-php-ext-xdebug.ini.tpl b/7.1/templates/docker-php-ext-xdebug.ini.tpl deleted file mode 100644 index 9e5e67b9..00000000 --- a/7.1/templates/docker-php-ext-xdebug.ini.tpl +++ /dev/null @@ -1,80 +0,0 @@ -{{ if getenv "PHP_XDEBUG" }} -[xdebug] -zend_extension = xdebug.so -xdebug.auto_trace = {{ getenv "PHP_XDEBUG_AUTO_TRACE" "0" }} -xdebug.cli_color = {{ getenv "PHP_XDEBUG_CLI_COLOR" "0" }} -xdebug.collect_assignments = {{ getenv "PHP_XDEBUG_COLLECT_ASSIGNMENTS" "0" }} -xdebug.collect_includes = {{ getenv "PHP_XDEBUG_COLLECT_INCLUDES" "1" }} -xdebug.collect_params = {{ getenv "PHP_XDEBUG_COLLECT_PARAMS" "0" }} -xdebug.collect_return = {{ getenv "PHP_XDEBUG_COLLECT_RETURN" "0" }} -xdebug.collect_vars = {{ getenv "PHP_XDEBUG_COLLECT_VARS" "0" }} -xdebug.coverage_enable = {{ getenv "PHP_XDEBUG_COVERAGE_ENABLE" "1" }} -xdebug.default_enable = {{ getenv "PHP_XDEBUG_DEFAULT_ENABLE" "0" }} -xdebug.dump_globals = {{ getenv "PHP_XDEBUG_DUMP_GLOBALS" "1" }} -xdebug.dump_once = {{ getenv "PHP_XDEBUG_DUMP_ONCE" "1" }} -xdebug.dump_undefined = {{ getenv "PHP_XDEBUG_DUMP_UNDEFINED" "0" }} -xdebug.extended_info = {{ getenv "PHP_XDEBUG_EXTENDED_INFO" "1" }} -xdebug.file_link_format = "{{ getenv "PHP_XDEBUG_FILE_LINK_FORMAT" "" }}" -xdebug.force_display_errors = {{ getenv "PHP_XDEBUG_FORCE_DISPLAY_ERRORS" "0" }} -xdebug.force_error_reporting = {{ getenv "PHP_XDEBUG_FORCE_ERROR_REPORTING" "0" }} -xdebug.halt_level = {{ getenv "PHP_XDEBUG_HALT_LEVEL" "0" }} -xdebug.manual_url = {{ getenv "PHP_XDEBUG_MANUAL_URL" "http://www.php.net" }} -xdebug.max_nesting_level = {{ getenv "PHP_XDEBUG_MAX_NESTING_LEVEL" "256" }} -xdebug.max_stack_frames = {{ getenv "PHP_XDEBUG_MAX_STACK_FRAMES" "-1" }} -xdebug.overload_var_dump = {{ getenv "PHP_XDEBUG_OVERLOAD_VAR_DUMP" "2" }} -xdebug.profiler_aggregate = {{ getenv "PHP_XDEBUG_PROFILER_AGGREGATE" "0" }} -xdebug.profiler_append = {{ getenv "PHP_XDEBUG_PROFILER_APPEND" "0" }} -xdebug.profiler_enable = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE" "0" }} -xdebug.profiler_enable_trigger = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER" "0" }} -xdebug.profiler_enable_trigger_value = "{{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE" "" }}" -xdebug.profiler_output_dir = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_DIR" "/tmp" }} -xdebug.profiler_output_name = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_NAME" "cachegrind.out.%p" }} -xdebug.remote_addr_header = "{{ getenv "PHP_XDEBUG_REMOTE_ADDR_HEADER" "" }}" -xdebug.remote_autostart = {{ getenv "PHP_XDEBUG_REMOTE_AUTOSTART" "1" }} -xdebug.remote_connect_back = {{ getenv "PHP_XDEBUG_REMOTE_CONNECT_BACK" "1" }} -xdebug.remote_cookie_expire_time = {{ getenv "PHP_XDEBUG_REMOTE_COOKIE_EXPIRE_TIME" "3600" }} -xdebug.remote_enable = {{ getenv "PHP_XDEBUG_REMOTE_ENABLE" "1" }} -xdebug.remote_handler = {{ getenv "PHP_XDEBUG_REMOTE_HANDLER" "dbgp" }} -xdebug.remote_host = {{ getenv "PHP_XDEBUG_REMOTE_HOST" "localhost" }} -xdebug.remote_log = "{{ getenv "PHP_XDEBUG_REMOTE_LOG" "" }}" -xdebug.remote_mode = {{ getenv "PHP_XDEBUG_REMOTE_MODE" "req" }} -xdebug.remote_port = {{ getenv "PHP_XDEBUG_REMOTE_PORT" "9000" }} -xdebug.scream = {{ getenv "PHP_XDEBUG_SCREAM" "0" }} -xdebug.show_error_trace = {{ getenv "PHP_XDEBUG_SHOW_ERROR_TRACE" "0" }} -xdebug.show_exception_trace = {{ getenv "PHP_XDEBUG_SHOW_EXCEPTION_TRACE" "0" }} -xdebug.show_local_vars = {{ getenv "PHP_XDEBUG_SHOW_LOCAL_VARS" "0" }} -xdebug.show_mem_delta = {{ getenv "PHP_XDEBUG_SHOW_MEM_DELTA" "0" }} -xdebug.trace_enable_trigger = {{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER" "0" }} -xdebug.trace_enable_trigger_value = "{{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER_VALUE" "" }}" -xdebug.trace_format = {{ getenv "PHP_XDEBUG_TRACE_FORMAT" "0" }} -xdebug.trace_options = {{ getenv "PHP_XDEBUG_TRACE_OPTIONS" "0" }} -xdebug.trace_output_dir = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_DIR" "/tmp" }} -xdebug.trace_output_name = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_NAME" "trace.%c" }} -xdebug.var_display_max_children = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_CHILDREN" "128" }} -xdebug.var_display_max_data = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_DATA" "512" }} -xdebug.var_display_max_depth = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_DEPTH" "3" }} -{{ if getenv "PHP_XDEBUG_DUMP_COOKIE" }} -xdebug.dump.COOKIE = {{ getenv "PHP_XDEBUG_DUMP_COOKIE" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_FILES" }} -xdebug.dump.FILES = {{ getenv "PHP_XDEBUG_DUMP_FILES" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_GET" }} -xdebug.dump.GET = {{ getenv "PHP_XDEBUG_DUMP_GET" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_POST" }} -xdebug.dump.POST = {{ getenv "PHP_XDEBUG_DUMP_POST" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_REQUEST" }} -xdebug.dump.REQUEST = {{ getenv "PHP_XDEBUG_DUMP_REQUEST" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_SERVER" }} -xdebug.dump.SERVER = {{ getenv "PHP_XDEBUG_DUMP_SERVER" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_DUMP_SESSION" }} -xdebug.dump.SESSION = {{ getenv "PHP_XDEBUG_DUMP_SESSION" }} -{{ end }} -{{ if getenv "PHP_XDEBUG_IDEKEY" }} -xdebug.idekey = {{ getenv "PHP_XDEBUG_IDEKEY" }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/7.1/templates/docker-php.ini.tpl b/7.1/templates/docker-php.ini.tpl deleted file mode 100644 index bb1e2000..00000000 --- a/7.1/templates/docker-php.ini.tpl +++ /dev/null @@ -1,28 +0,0 @@ -; This file user only to override default php.ini values -; BASIC SETTINGS: $PHP_INI_DIR/php.ini -; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf - -[PHP] -realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "4096k" }} -realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} -memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} -error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} -log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "1024" }} -track_errors = {{ getenv "PHP_TRACK_ERRORS" "On" }} -error_log = /proc/self/fd/2 - -[Date] -date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} - -[Pdo_mysql] -pdo_mysql.cache_size = {{ getenv "PHP_PDO_MYSQL_CACHE_SIZE" "2000" }} - -[mail function] -sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} - -[MySQLi] -mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} - -[Assertion] -zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} -assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} \ No newline at end of file diff --git a/7.1/templates/id_rsa.tpl b/7.1/templates/id_rsa.tpl deleted file mode 100644 index 3fee5f15..00000000 --- a/7.1/templates/id_rsa.tpl +++ /dev/null @@ -1 +0,0 @@ -{{ getenv "SSH_PRIVATE_KEY" }} \ No newline at end of file diff --git a/7.1/templates/ssh_config.tpl b/7.1/templates/ssh_config.tpl deleted file mode 100644 index 69bc5a2b..00000000 --- a/7.1/templates/ssh_config.tpl +++ /dev/null @@ -1,55 +0,0 @@ -# $OpenBSD: ssh_config,v 1.30 2016/02/20 23:06:23 sobrado Exp $ - -# This is the ssh client system-wide configuration file. See -# ssh_config(5) for more information. This file provides defaults for -# users, and the values can be changed in per-user configuration files -# or on the command line. - -# Configuration data is parsed as follows: -# 1. command line options -# 2. user-specific file -# 3. system-wide file -# Any configuration value is only changed the first time it is set. -# Thus, host-specific definitions should be at the beginning of the -# configuration file, and defaults at the end. - -# Site-wide defaults for some commonly used options. For a comprehensive -# list of available options, their meanings and defaults, please see the -# ssh_config(5) man page. - -# Host * -# ForwardAgent no -# ForwardX11 no -# RhostsRSAAuthentication no -# RSAAuthentication yes -# PasswordAuthentication yes -# HostbasedAuthentication no -# GSSAPIAuthentication no -# GSSAPIDelegateCredentials no -# BatchMode no -# CheckHostIP yes -# AddressFamily any -# ConnectTimeout 0 -# StrictHostKeyChecking ask -# IdentityFile ~/.ssh/identity -# IdentityFile ~/.ssh/id_rsa -# IdentityFile ~/.ssh/id_dsa -# IdentityFile ~/.ssh/id_ecdsa -# IdentityFile ~/.ssh/id_ed25519 -# Port 22 -# Protocol 2 -# Cipher 3des -# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc -# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 -# EscapeChar ~ -# Tunnel no -# TunnelDevice any:any -# PermitLocalCommand no -# VisualHostKey no -# ProxyCommand ssh -q -W %h:%p gateway.example.com -# RekeyLimit 1G 1h - -{{ if getenv "SSH_DISABLE_STRICT_KEY_CHECKING" }} -Host * - StrictHostKeyChecking no -{{ end }} \ No newline at end of file diff --git a/7.1/templates/zz-www.conf.tpl b/7.1/templates/zz-www.conf.tpl deleted file mode 100644 index a35888b8..00000000 --- a/7.1/templates/zz-www.conf.tpl +++ /dev/null @@ -1,47 +0,0 @@ -[global] -log_level = {{ getenv "PHP_FPM_LOG_LEVEL" "notice" }} - -[www] -clear_env = {{ getenv "PHP_FPM_CLEAR_ENV" "yes" }} -pm = {{ getenv "PHP_FPM_PM" "dynamic" }} -pm.max_children = {{ getenv "PHP_FPM_PM_MAX_CHILDREN" "8" }} -pm.start_servers = {{ getenv "PHP_FPM_PM_START_SERVERS" "2" }} -pm.min_spare_servers = {{ getenv "PHP_FPM_PM_MIN_SPARE_SERVERS" "1" }} -pm.max_spare_servers = {{ getenv "PHP_FPM_PM_MAX_SPARE_SERVERS" "3" }} -pm.max_requests = {{ getenv "PHP_FPM_PM_MAX_REQUESTS" "500" }} -{{ if getenv "PHP_FPM_PM_STATUS_PATH" }} -pm.status_path = {{ getenv "PHP_FPM_PM_STATUS_PATH" }} -{{ end }} -{{ if getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -slowlog = /proc/self/fd/2 -request_slowlog_timeout = {{ getenv "PHP_FPM_REQUEST_SLOWLOG_TIMEOUT" }} -{{ end }} - -php_value[display_errors] = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} -php_value[display_startup_errors] = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} -php_value[expose_php] = {{ getenv "PHP_EXPOSE" "Off" }} -php_value[max_execution_time] = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} -php_value[max_input_time] = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} -php_value[max_input_vars] = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} -php_value[memory_limit] = {{ getenv "PHP_MEMORY_LIMIT" "512M" }} -php_value[post_max_size] = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} -php_value[upload_max_filesize] = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} -php_value[max_file_uploads] = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} -php_value[output_buffering] = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} -php_value[session.auto_start] = {{ getenv "PHP_SESSION_AUTO_START" "0" }} - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} - -{{ if getenv "PHP_FPM_ENV_VARS" }}{{ range jsonArray (getenv "PHP_FPM_ENV_VARS") }}{{ if getenv . }} -env[{{.}}] = {{ getenv . }}{{ end }}{{ end }}{{ end }} - -; Pool for health-check pings to avoid spam in access log. -[ping] -pm = static -pm.max_children = 1 -listen = [::]:9001 -ping.path = "/ping" - -{{ if (getenv "PHP_FPM_USER") }}user = {{ getenv "PHP_FPM_USER" }}{{ end }} -{{ if (getenv "PHP_FPM_GROUP") }}group = {{ getenv "PHP_FPM_GROUP" }}{{ end }} diff --git a/7.1/test.sh b/7.1/test.sh deleted file mode 100755 index 498556ac..00000000 --- a/7.1/test.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash - -set -e - -if [[ -n "${DEBUG}" ]]; then - set -x -fi - -git_url=git@bitbucket.org:wodby/php-git-test.git - -wait_for_cron() { - executed=0 - - for i in $(seq 1 13); do - if docker_exec crond cat /home/www-data/cron | grep -q "test"; then - executed=1 - break - fi - echo 'Waiting for cron execution...' - sleep 5 - done - - if [[ "${executed}" -eq '0' ]]; then - echo >&2 'Cron failed.' - exit 1 - fi - - echo 'Cron has been executed!' -} - -docker_exec() { - docker-compose -f test/docker-compose.yml exec "${@}" -} - -run_action() { - docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk -} - -docker-compose -f test/docker-compose.yml up -d -docker-compose -f test/docker-compose.yml logs - -run_action nginx check-ready max_try=10 -run_action php check-ready max_try=10 - -# PHP tools -docker_exec php tests.sh - -# SSH -echo -n "Testing ssh... " -docker_exec php touch /home/www-data/.ssh/known_hosts -docker_exec php ssh www-data@sshd cat /home/www-data/.ssh/authorized_keys | grep -q admin@wodby.com -echo "OK" - -# Git actions -echo -n "Running git actions... " -docker_exec php bash -c 'echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config' -run_action php git-clone url="${git_url}" branch=master -run_action php git-checkout target=develop -echo "OK" - -# PHP-FPM -echo -n "Checking PHP-FPM... " -docker_exec php curl nginx | grep -q "Hello World!" -echo "OK" - -# Walter CD -echo -n "Running walter scripts... " -run_action php walter -docker_exec php cat ./walter-shell-stage -docker_exec php cat ./walter-command-stage -echo "OK" - -# Crond -wait_for_cron - -docker-compose -f test/docker-compose.yml down diff --git a/7.1/test/docker-compose.yml b/7.1/test/docker-compose.yml deleted file mode 100644 index f0fd7b2c..00000000 --- a/7.1/test/docker-compose.yml +++ /dev/null @@ -1,95 +0,0 @@ -version: "2" - -services: - nginx: - image: wodby/nginx:1.13 - environment: - DEBUG: 1 - NGINX_BACKEND_HOST: php - volumes: - - ./nginx.conf:/etc/gotpl/default-vhost.conf.tpl - depends_on: - - php - - sshd: - image: $IMAGE - command: sudo /usr/sbin/sshd -De - environment: - DEBUG: 1 - SSH_PUBLIC_KEYS: |- - ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4mQ9wfvufRcDQ4LsoCYEyDL4LNsvP8dWKWMQKrnJ8k09IQm7mnvyzid8zxNJpQYxX12foC0+BttjejWVj67vf1if7rDHb\/e0oX7yQp4ji3QTjDNPDaOR\/eTOCNv1C5Lfj3n7D1G7O2dOiw8lAoSalGy6nltuTYY9EXbkl1dXaCG7qbQRVJEJdZ6x2oJ8FubJO6wjZvj9P759ziLVmWAqtzUgIQVlbv0nqSoq16Ug381sfnRvsHO1fXGhdgHGQ0WP720p5cBHxG+62HJROah5b7gahXidC2Lo6kdnLb5FOzZjRJO1aDiKgry\/GoNNijs6D5xwLtn44HoHMe0eyUw7lQCrWZwvNmdfvIecr+ZJNwT8cbZ2Cf5y0SqD4JZpcolR5FKuQluaVMdOvJCa8A\/BzvRqIeNLmZuHFRvruu2VTIHHZFR2CFgH9F+G\/KyBnmQwV\/FgqN6sy1MAuFmyizL7sJHVL3tSaMPSs423A+SLWYkXLxpUPjo2J5W2ImZYq97AQaHcArvrhKS2MwbBFGwaxglcq5t8Ss6Df3fEZUWGLHJSdOv\/fn\/+CNOiI7hjj3v5mHaxxnC27MOHmJlrqmCA3OXuQ9mZG\/hSfj2vPKF+xFUarqqsp4zVsDH71bY2Q+zHpyncIFnyhaiEba9gbvmUVOfUyYglkJ6TGF5xAhpDFpQ== admin@wodby.com"] - - php: - image: $IMAGE - environment: - SSH_DISABLE_STRICT_KEY_CHECKING: 1 - PHP_XDEBUG: 1 - PHP_BLACKFIRE: 1 - SSH_PRIVATE_KEY: |- - -----BEGIN RSA PRIVATE KEY----- - MIIJKQIBAAKCAgEAuJkPcH77n0XA0OC7KAmBMgy+CzbLz/HViljECq5yfJNPSEJu - 5p78s4nfM8TSaUGMV9dn6AtPgbbY3o1lY+u739Yn+6wx2/3tKF+8kKeI4t0E4wzT - w2jkf3kzgjb9QuS3495+w9RuztnTosPJQKEmpRsup5bbk2GPRF25JdXV2ghu6m0E - VSRCXWesdqCfBbmyTusI2b4/T++fc4i1ZlgKrc1ICEFZW79J6kqKtelIN/NbH50b - 7BztX1xoXYBxkNFj+9tKeXAR8RvuthyUTmoeW+4GoV4nQti6OpHZy2+RTs2Y0STt - Wg4ioK8vxqDTYo7Og+ccC7Z+OB6BzHtHslMO5UAq1mcLzZnX7yHnK/mSTcE/HG2d - gn+ctEqg+CWaXKJUeRSrkJbmlTHTryQmvAPwc70aiHjS5mbhxUb67rtlUyBx2RUd - ghYB/RfhvysgZ5kMFfxYKjerMtTALhZsosy+7CR1S97UmjD0rONtwPki1mJFy8aV - D46NieVtiJmWKvewEGh3AK764SktjMGwRRsGsYJXKubfErOg393xGVFhixyUnTr/ - 35//gjToiO4Y497+Zh2scZwtuzDh5iZa6pggNzl7kPZmRv4Un49rzyhfsRVGq6qr - KeM1bAx+9W2NkPsx6cp3CBZ8oWohG2vYG75lFTn1MmIJZCekxhecQIaQxaUCAwEA - AQKCAgBe5+J2NfLr2hLd0Qyn8usHbmGupkd266Cb9jMkQrf9sEbMocseqpLFQ5cL - qJ99GgQrjUWQmXARAo7RLOT50FLRK+t2ivs/XXe2kDIENP49lOBUU130U1NW7ls7 - EUZ4Q9r/Pn7x85/cnUUfo4Uuwyt5K1Z7NyZAyaG8xmrQNvYxmLBduhrGI1QzbX/P - pZjcerJfvJraR+OJF2tlHN4WdiFXZfkotWBZuSkpWZWjHQLSMT2iLUYTyHOJ2ZqW - p9i7WcwLypypfqLa0T+TRXJCNnDRVrj18dBBn+dvAVl2LDAK0c1FibS13hqTfj4T - 4s+LFly6l/FlXDfcZmLZXHBqECXReoyY02mo6jNOdzwYHKElPQeAnzc8IRIBG3s4 - EU+OA2EFZzQp2qSNlVAfTe/masQZkBOYTU/cpWg5yfIReFEWc1FzILTyXESJu0U2 - GmAYu1b7miFWsglIapUxCdlfdoEer+yDpjG4T151CYB11sUfpgcfOhAsStNfykmc - AaxRzklKFnjD5R8Au0BqZLyHu7FApV0BQqwZkevomsAAVWfVSxVGobnSzhW2mIIV - 4FyAKWHG8pm0By/eJkgKjJK3rIAjeAq/bJpNoUeKwjdvuysfMM9Q/LEjUQ5RRU09 - r/kAquTDUHne5d4yEjzmDmlaBN/zrMYuY1bG5H9Qs05p86W/aQKCAQEA82TOCRys - XCud62XTyHYxOqQbG/vDa1qdiamiE4iGBJgFUG0Xvqzy3YeSvqdifRxzst2auj7p - OSHk6w5/4Q2iezew/UCzRcG+INwtNwOUJ7wvHPyqskbp3w7e4OkrcN6lzReFZqls - pB5a9U8yn3qK/qrpHtyyBds951qI0olDyiPdW0M+8IKrIa70cUb6PYpk5enGVgyI - h+fBK9PTCzr9Gsk5XTpkNRcvgF1Czig+ZXk4KpD19W/JtqHSpCOu5XZx1RpCBBtY - +1BJcTzE0jgOAywFuUHVdYaSXZa+Nlyc+mgjqZoeNfgy8rvcGrM7VYAt+wlPpSeI - eiQBgeltfDWD7wKCAQEAwiisBfaSvN+odjs05vYEYPH43Vs2pp76ZxjUqTU0H2hL - Cmun2ogh/QgDy1wIUQBeZznm4mSQWn5vZNBmz786Fh2tPFi4QQaYCvtJmGfeV5aR - wOnb+cpCVeI2MG9iBnUPlWp7Zdj7Lwdt2EG5QNIMfF4zKuScuY2E05eIZCuWPdwA - 9/9zaWH3QR9luCEcHzLuspmu56uH5CvMBtsDdqs42BAm/DRn5FjAAWIHunIjoRrt - 8WaHe1/jPPcOHAvVLeK1iq/Ahe9f48JQqh5PeMtWFyUqRB68D5RcqCgHlVpfFk84 - UFMvgVLo2Sv1LtZAWlop168Io6YTsbXpt9HAxl+rqwKCAQEAs3EFSch+9nEdu1fW - XLturfohFm918qba8IxEtrv3elmNyW60i9o8L8DtGmyTewPH9P3WPit1jK6FdBq7 - gvOnb8puTTgvM2WUQ+uv1hhoWScvYOKTAl6vu8jd3tlpMoyjlmIZ8sdEFndeve6G - tvcElJ7ywdMZ2KF7sR6ZMwcKGHR6lPct5umfO3UeOImIomhu3OaOWBBjdDcTvrkr - peL2iZIDHc2X5WBToAKh5xXacrt9AjzfaPTitSf3ARZhskCxydfTBe4XmyjlDHwt - 64JyKjqBecSkmEH/lMo3MCL1hNPUPw0l6soy3axMqM6tFusqeyKxOmS8BLiY9+td - 0a4utwKCAQBIXrigEGRpmkRErZTuccz4BblpaNJaEO/s9chuubIP8uPlonMSdaOV - mSMw7cD70FNfzqlMwYc889u5jCSGUxTnoXAtCjTDqB2MGlY4RJ8PrsPtUD36QXWw - ZX0lWJ8FISUJ4ILWV6ZoxTAgZ38RtjmJMeOInWX9k85qwBTKoaSCsjp6NfFi2m07 - DOTxWQYOawGl+LrFB57DYb/O3lvQI8owXvTpFO+UobAP0+ZljJ3TMyJ11G2zgu5E - jyHnOlHfpJ1ecFwmkC8ByjAe+OVOdRxFzEiQ05PtirNuylzpQqImwqiO6DLQ1YKN - UGE3cAzUoL7v8gIaXZEBsHjJV5mvV4G5AoIBAQCd89YTMEVVHr2HPxWmQb1BJ+4D - u0u9Aj9Gb6f3qxfQPa9+A081rdnb2DEXCRrjPAguxP/JxXmBMQjs/PfcCnHRHFWU - nEnXfUAprudh2xX6j3tgNyOwJT3fBlRg8TRQ5HorpzaCxzCIoMgbwBmB05VzxDAq - y7zXXF+i0+QLHdAKMIQmps0S+qn+ji3ViooJyrAGuZTmeIXQP7b8wgft5m16C5Nc - Hl/7LjnsiAiu6HMNqIjrJmHNmdYlmfqFBepvWpnykUgvEMSigyy0K7858Lcl+FH3 - 62fhFpwtP7IE2/o+6+JybuQRrUqHvAPM0/RTn8//rZmkmq3mrAYc+MslXAt+ - -----END RSA PRIVATE KEY----- - volumes: - - ./tests.sh:/usr/local/bin/tests.sh - - ./php_modules:/home/www-data/php_modules - depends_on: - - sshd - - crond: - image: $IMAGE - command: sudo -E crond -f -d 0 - environment: - CRONTAB_ENV: test - CRONTAB: |- - # min hour day month weekday command - */1 * * * * echo "$${CRONTAB_ENV}" > /home/www-data/cron - depends_on: - - sshd diff --git a/7.1/test/nginx.conf b/7.1/test/nginx.conf deleted file mode 100644 index a89ce5ba..00000000 --- a/7.1/test/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - server_name default; - listen 80; - - root /var/www/html/; - index index.php; - - fastcgi_param REQUEST_METHOD $request_method; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_index index.php; - - location / { - fastcgi_pass php:9000; - } -} diff --git a/7/.dockerignore b/7/.dockerignore new file mode 100644 index 00000000..4cd0d8b6 --- /dev/null +++ b/7/.dockerignore @@ -0,0 +1,4 @@ +tests +Makefile +check-configs.sh +orig \ No newline at end of file diff --git a/7/Dockerfile b/7/Dockerfile new file mode 100644 index 00000000..9ee45bc2 --- /dev/null +++ b/7/Dockerfile @@ -0,0 +1,354 @@ +ARG FROM_TAG + +FROM wodby/base-php:${FROM_TAG} + +ARG PHP_DEV +ARG PHP_DEBUG + +ARG PECL_HTTP_PROXY + +ARG WODBY_USER_ID=1000 +ARG WODBY_GROUP_ID=1000 + +ENV PHP_DEV="${PHP_DEV}" \ + PHP_DEBUG="${PHP_DEBUG}" \ + LD_PRELOAD="/usr/lib/preloadable_libiconv.so php" + +ENV APP_ROOT="/var/www/html" \ + CONF_DIR="/var/www/conf" \ + FILES_DIR="/mnt/files" + +ENV PATH="${PATH}:/home/wodby/.composer/vendor/bin:${APP_ROOT}/vendor/bin:${APP_ROOT}/bin" \ + SSHD_HOST_KEYS_DIR="/etc/ssh" \ + ENV="/home/wodby/.shrc" \ + \ + GIT_USER_EMAIL="wodby@example.com" \ + GIT_USER_NAME="wodby" + +RUN set -xe; \ + \ + # Delete existing user/group if uid/gid occupied. + existing_group=$(getent group "${WODBY_GROUP_ID}" | cut -d: -f1); \ + if [[ -n "${existing_group}" ]]; then delgroup "${existing_group}"; fi; \ + existing_user=$(getent passwd "${WODBY_USER_ID}" | cut -d: -f1); \ + if [[ -n "${existing_user}" ]]; then deluser "${existing_user}"; fi; \ + \ + apk add --no-cache -t .wodby-useradd-deps \ + shadow=4.7-r1 \ + linux-pam=1.3.1-r1 ; \ + /usr/sbin/groupadd -g ${WODBY_GROUP_ID} wodby; \ + /usr/sbin/useradd -s /bin/sh -g ${WODBY_GROUP_ID} -u ${WODBY_USER_ID} wodby; \ + apk del --purge .wodby-useradd-deps ; \ + adduser wodby www-data; \ + sed -i '/^wodby/s/!/*/' /etc/shadow; \ + \ + apk add --update --no-cache -t .wodby-php-run-deps \ + c-client=2007f-r11 \ + fcgi \ + findutils \ + freetype=2.10.1-r0 \ + git \ + gmp=6.1.2-r1 \ + icu-libs=64.2-r1 \ + imagemagick=7.0.9.7-r0 \ + jpegoptim=1.4.6-r0 \ + less \ + libbz2=1.0.8-r1 \ + libevent=2.1.11-r0 \ + libjpeg-turbo=2.0.4-r0 \ + libjpeg-turbo-utils \ + libldap=2.4.48-r1 \ + libltdl=2.4.6-r7 \ + libmemcached-libs=1.0.18-r4 \ + libmcrypt=2.5.8-r7 \ + libpng=1.6.37-r1 \ + librdkafka=1.2.2-r0 \ + libuuid=2.34-r1 \ + libwebp=1.0.3-r0 \ + libxml2=2.9.10-r2 \ + libxslt=1.1.34-r0 \ + libzip=1.5.2-r0 \ + make \ + mariadb-client \ + nano \ + openssh \ + openssh-client \ + patch \ + pngquant \ + postgresql-client \ + rabbitmq-c=0.10.0-r0 \ + rsync \ + su-exec \ + sudo \ + tidyhtml-libs=5.6.0-r0 \ + # todo: move out tig and tmux to -dev version. + tig \ + tmux \ + yaml=0.2.2-r1; \ + \ + if [[ -n "${PHP_DEV}" ]]; then \ + apk add --update --no-cache -t .wodby-php-dev-run-deps yarn; \ + fi; \ + \ + apk add --update --no-cache -t .wodby-php-build-deps \ + autoconf \ + cmake \ + build-base \ + bzip2-dev \ + freetype-dev \ + gmp-dev \ + icu-dev \ + imagemagick-dev \ + imap-dev \ + jpeg-dev \ + krb5-dev \ + libevent-dev \ + libgcrypt-dev \ + libjpeg-turbo-dev \ + libmemcached-dev \ + libmcrypt-dev \ + libpng-dev \ + librdkafka-dev \ + libtool \ + libwebp-dev \ + libxslt-dev \ + libzip-dev \ + openldap-dev \ + openssl-dev \ + pcre-dev \ + postgresql-dev \ + rabbitmq-c-dev \ + tidyhtml-dev \ + yaml-dev; \ + \ + apk add -U --no-cache -t .wodby-php-edge-run-deps -X http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ + gnu-libiconv=1.15-r2; \ + \ + # Install redis-cli. + apk add --update --no-cache redis; \ + mv /usr/bin/redis-cli /tmp/; \ + apk del --purge redis; \ + deluser redis; \ + mv /tmp/redis-cli /usr/bin; \ + \ + docker-php-source extract; \ + \ + docker-php-ext-install \ + bcmath \ + bz2 \ + calendar \ + exif \ + gmp \ + intl \ + ldap \ + mysqli \ + opcache \ + pcntl \ + pdo_mysql \ + pdo_pgsql \ + pgsql \ + soap \ + sockets \ + tidy \ + xmlrpc \ + xsl \ + zip; \ + \ + # GD + if [[ "${PHP_VERSION:0:3}" == "7.4" ]]; then \ + docker-php-ext-configure gd \ + --with-webp \ + --with-freetype \ + --with-jpeg; \ + else \ + docker-php-ext-configure gd \ + --with-gd \ + --with-webp-dir \ + --with-freetype-dir=/usr/include/ \ + --with-png-dir=/usr/include/ \ + --with-jpeg-dir=/usr/include/; \ + fi; \ + NPROC=$(getconf _NPROCESSORS_ONLN); \ + docker-php-ext-install "-j${NPROC}" gd; \ + \ + # IMAP + PHP_OPENSSL=yes docker-php-ext-configure imap \ + --with-kerberos \ + --with-imap-ssl; \ + docker-php-ext-install "-j${NPROC}" imap; \ + \ + pecl config-set php_ini "${PHP_INI_DIR}/php.ini"; \ + if [[ -n "${PECL_HTTP_PROXY}" ]]; then \ + # Using pear as pecl throw errors: https://blog.flowl.info/2015/peclpear-behind-proxy-how-to/ + pear config-set http_proxy "${PECL_HTTP_PROXY}"; \ + fi; \ + \ + # NewRelic extension and agent. + newrelic_url="http://download.newrelic.com/php_agent/release/"; \ + wget -r -nd --no-parent -P /tmp/newrelic -Alinux-musl.tar.gz "${newrelic_url}" >/dev/null 2>&1; \ + tar -xzf /tmp/newrelic/newrelic-php*.tar.gz --strip=1 -C /tmp/newrelic; \ + export NR_INSTALL_SILENT=true; \ + export NR_INSTALL_USE_CP_NOT_LN=true; \ + bash /tmp/newrelic/newrelic-install install; \ + rm /usr/local/etc/php/conf.d/newrelic.ini; \ + mkdir -p /var/log/newrelic/; \ + chown -R www-data:www-data /var/log/newrelic/; \ + chmod -R 775 /var/log/newrelic/; \ + \ + pecl install \ + amqp-1.9.4 \ + apcu-5.1.18 \ + ast-1.0.5 \ + ds-1.2.9 \ + event-2.5.3 \ + grpc-1.23.1 \ + igbinary-3.0.1 \ + imagick-3.4.4 \ + mcrypt-1.0.3 \ + memcached-3.1.4 \ + mongodb-1.6.0 \ + oauth-2.0.4 \ + rdkafka-4.0.3 \ + redis-4.3.0 \ + uuid-1.0.4 \ + xdebug-2.9.4 \ + yaml-2.0.4; \ + \ + docker-php-ext-enable \ + amqp \ + apcu \ + ast \ + ds \ + event \ + igbinary \ + imagick \ + grpc \ + mcrypt \ + memcached \ + mongodb \ + oauth \ + redis \ + rdkafka \ + uuid \ + xdebug \ + yaml; \ + \ + # Event extension should be loaded after sockets. + # http://osmanov-dev-notes.blogspot.com/2013/07/fixing-php-start-up-error-unable-to.html + mv /usr/local/etc/php/conf.d/docker-php-ext-event.ini /usr/local/etc/php/conf.d/z-docker-php-ext-event.ini; \ + \ + # Blackfire extension (they have free tier). + mkdir -p /tmp/blackfire; \ + version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;"); \ + blackfire_url="https://blackfire.io/api/v1/releases/probe/php/alpine/amd64/${version}"; \ + wget -qO- "${blackfire_url}" | tar xz --no-same-owner -C /tmp/blackfire; \ + mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so; \ + \ + # Uploadprogress. + mkdir -p /usr/src/php/ext/uploadprogress; \ + up_url="https://github.com/wodby/pecl-php-uploadprogress/archive/latest.tar.gz"; \ + wget -qO- "${up_url}" | tar xz --strip-components=1 -C /usr/src/php/ext/uploadprogress; \ + docker-php-ext-install uploadprogress; \ + \ + # Tideways xhprof. + xhprof_ext_ver="5.0-beta3"; \ + mkdir -p /usr/src/php/ext/tideways_xhprof; \ + xhprof_url="https://github.com/tideways/php-xhprof-extension/archive/v${xhprof_ext_ver}.tar.gz"; \ + wget -qO- "${xhprof_url}" | tar xz --strip-components=1 -C /usr/src/php/ext/tideways_xhprof; \ + docker-php-ext-install tideways_xhprof; \ + \ + wget -qO- https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; \ + \ + # Install Walter (deprecated). + walter_ver="1.4.0"; \ + walter_url="https://github.com/walter-cd/walter/releases/download/v${walter_ver}/walter_${walter_ver}_linux_amd64.tar.gz"; \ + wget -qO- "${walter_url}" | tar xz -C /tmp/; \ + mv /tmp/walter_linux_amd64/walter /usr/local/bin; \ + \ + { \ + echo 'export PS1="\u@${WODBY_APP_NAME:-php}.${WODBY_ENVIRONMENT_NAME:-container}:\w $ "'; \ + # Make sure PATH is the same for ssh sessions. + echo "export PATH=${PATH}"; \ + } | tee /home/wodby/.shrc; \ + \ + cp /home/wodby/.shrc /home/wodby/.bashrc; \ + cp /home/wodby/.shrc /home/wodby/.bash_profile; \ + \ + { \ + echo 'Defaults env_keep += "APP_ROOT FILES_DIR"' ; \ + \ + if [[ -n "${PHP_DEV}" ]]; then \ + echo 'wodby ALL=(root) NOPASSWD:SETENV:ALL'; \ + else \ + echo -n 'wodby ALL=(root) NOPASSWD:SETENV: ' ; \ + echo -n '/usr/local/bin/files_chmod, ' ; \ + echo -n '/usr/local/bin/files_chown, ' ; \ + echo -n '/usr/local/bin/files_sync, ' ; \ + echo -n '/usr/local/bin/gen_ssh_keys, ' ; \ + echo -n '/usr/local/bin/init_container, ' ; \ + echo -n '/usr/local/bin/migrate, ' ; \ + echo -n '/usr/local/sbin/php-fpm, ' ; \ + echo -n '/usr/sbin/sshd, ' ; \ + echo '/usr/sbin/crond' ; \ + fi; \ + } | tee /etc/sudoers.d/wodby; \ + \ + echo "TLS_CACERTDIR /etc/ssl/certs/" >> /etc/openldap/ldap.conf; \ + \ + install -o wodby -g wodby -d \ + "${APP_ROOT}" \ + "${CONF_DIR}" \ + /home/wodby/.ssh; \ + \ + install -o www-data -g www-data -d \ + "${FILES_DIR}/public" \ + "${FILES_DIR}/private" \ + "${FILES_DIR}/sessions" \ + "${FILES_DIR}/xdebug/traces" \ + "${FILES_DIR}/xdebug/profiler" \ + /home/www-data/.ssh; \ + \ + chmod -R 775 "${FILES_DIR}"; \ + chown -R wodby:wodby \ + "${PHP_INI_DIR}/conf.d" \ + /usr/local/etc/php-fpm.d \ + /home/wodby/.[^.]*; \ + \ + touch /etc/ssh/sshd_config /etc/gitconfig; \ + chown wodby: /etc/ssh/sshd_config /etc/gitconfig; \ + \ + rm /etc/crontabs/root; \ + # deprecated: remove in favor of bind mounts. + touch /etc/crontabs/www-data; \ + chown root:www-data /etc/crontabs/www-data; \ + chmod 660 /etc/crontabs/www-data; \ + \ + su-exec wodby composer clear-cache; \ + docker-php-source delete; \ + apk del --purge .wodby-php-build-deps; \ + pecl clear-cache; \ + \ + rm -rf \ + /usr/src/php/ext/ast \ + /usr/src/php/ext/uploadprogress \ + /usr/include/php \ + /usr/lib/php/build \ + /tmp/* \ + /root/.composer \ + /var/cache/apk/*; \ + \ + if [[ -z "${PHP_DEV}" ]]; then \ + rm -rf /usr/src/php.tar.xz; \ + fi + +USER wodby + +WORKDIR ${APP_ROOT} +EXPOSE 9000 + +COPY templates /etc/gotpl/ +COPY docker-entrypoint.sh / +COPY bin /usr/local/bin/ + +ENTRYPOINT ["/docker-entrypoint.sh"] +CMD ["sudo", "-E", "LD_PRELOAD=/usr/lib/preloadable_libiconv.so", "php-fpm"] diff --git a/7/Makefile b/7/Makefile new file mode 100644 index 00000000..8586cc44 --- /dev/null +++ b/7/Makefile @@ -0,0 +1,82 @@ +-include env_make + +PHP_VER ?= 7.4.5 +PHP_VER_MINOR ?= $(shell echo "${PHP_VER}" | grep -oE '^[0-9]+\.[0-9]+') + +REPO = wodby/php +NAME = php-$(PHP_VER_MINOR) +FROM_TAG = $(PHP_VER) + +WODBY_USER_ID ?= 1000 +WODBY_GROUP_ID ?= 1000 + +PECL_HTTP_PROXY ?= "" + +ifeq ($(TAG),) + ifneq ($(PHP_DEBUG),) + TAG ?= $(PHP_VER_MINOR)-debug + else ifneq ($(PHP_DEV),) + TAG ?= $(PHP_VER_MINOR)-dev + else + TAG ?= $(PHP_VER_MINOR) + endif +endif + +ifneq ($(PHP_DEV),) + NAME := $(NAME)-dev +endif + +ifneq ($(PHP_DEBUG),) + NAME := $(NAME)-debug + FROM_TAG := $(FROM_TAG)-debug + PHP_DEV := 1 +endif + +ifneq ($(STABILITY_TAG),) + ifneq ($(TAG),latest) + override TAG := $(TAG)-$(STABILITY_TAG) + endif +endif + +.PHONY: build test push shell run start stop logs clean release + +default: build + +build: + docker build -t $(REPO):$(TAG) \ + --build-arg FROM_TAG=$(FROM_TAG) \ + --build-arg PHP_DEV=$(PHP_DEV) \ + --build-arg PHP_DEBUG=$(PHP_DEBUG) \ + --build-arg WODBY_USER_ID=$(WODBY_USER_ID) \ + --build-arg WODBY_GROUP_ID=$(WODBY_GROUP_ID) \ + --build-arg PECL_HTTP_PROXY=$(PECL_HTTP_PROXY) \ + ./ + +test: + cd ./tests && IMAGE=$(REPO):$(TAG) ./run.sh + +push: + docker push $(REPO):$(TAG) + +shell: + docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) /bin/bash + +run: + docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) $(CMD) + +start: + docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(TAG) + +stop: + docker stop $(NAME) + +logs: + docker logs $(NAME) + +clean: + -docker rm -f $(NAME) + +check-configs: + ./check-configs.sh $(PHP_VER) $(PHP_VER_MINOR) + +release: build push diff --git a/5.6/actions/actions.mk b/7/bin/actions.mk similarity index 57% rename from 5.6/actions/actions.mk rename to 7/bin/actions.mk index 73a9c9f6..a0ababda 100644 --- a/5.6/actions/actions.mk +++ b/7/bin/actions.mk @@ -1,4 +1,4 @@ -.PHONY: git-clone git-checkout walter check-ready check-live +.PHONY: migrate git-clone git-checkout files-import files-link walter check-ready check-live check_defined = \ $(strip $(foreach 1,$1, \ @@ -19,19 +19,30 @@ service = PHP-FPM default: check-ready +migrate: + sudo migrate $(from) $(to) + git-clone: $(call check_defined, url) - git-clone.sh $(url) $(branch) + git_clone $(url) $(branch) git-checkout: $(call check_defined, target) - git-checkout.sh $(target) $(is_hash) + git_checkout $(target) $(is_hash) + +files-import: + $(call check_defined, source) + files_import $(source) + +files-link: + $(call check_defined, public_dir) + files_link $(public_dir) walter: - walter.sh + test ! -f "$(APP_ROOT)/wodby.yml" || walter -c "$(APP_ROOT)/wodby.yml" check-ready: - wait-for.sh "$(command)" $(service) $(host) $(max_try) $(wait_seconds) $(delay_seconds) + wait_for "$(command)" $(service) $(host) $(max_try) $(wait_seconds) $(delay_seconds) check-live: @echo "OK" diff --git a/7/bin/files_chmod b/7/bin/files_chmod new file mode 100755 index 00000000..f62a05e6 --- /dev/null +++ b/7/bin/files_chmod @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +dir=$1 + +if [[ "${dir}" =~ ^"${FILES_DIR}/" ]]; then + chmod -R ug=rwX,o=rX "${dir}" +else + echo "Only dir/files under ${FILES_DIR} allowed" + exit 1 +fi diff --git a/7/bin/files_chown b/7/bin/files_chown new file mode 100755 index 00000000..c99b147c --- /dev/null +++ b/7/bin/files_chown @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +dir=$1 + +if [[ "${dir}" =~ ^"${FILES_DIR}/" ]]; then + chown -R www-data:www-data "${dir}" +else + echo "Only dir/files under ${FILES_DIR} allowed" + exit 1 +fi diff --git a/7/bin/files_import b/7/bin/files_import new file mode 100755 index 00000000..faf188e8 --- /dev/null +++ b/7/bin/files_import @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +source=$1 +tmp_dir="/tmp/source" + +get_archive "${source}" "${tmp_dir}" "zip tgz tar.gz tar" + +# TODO: allow top level dir import only for wodby archives. +if [[ -f "${tmp_dir}/.wodby" || (-d "${tmp_dir}/private" && -d "${tmp_dir}/public") ]]; then + echo "Wodby backup archive detected. Importing to top directory" + sudo files_sync "${tmp_dir}/" "${FILES_DIR}" +else + echo "Importing files to public directory" + sudo files_sync "${tmp_dir}/" "${FILES_DIR}/public/" +fi + +rm -rf "${tmp_dir}" \ No newline at end of file diff --git a/7/bin/files_link b/7/bin/files_link new file mode 100755 index 00000000..548da8e9 --- /dev/null +++ b/7/bin/files_link @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +app_public_dir=$1 + +# Add symlink from persistent files volume to application's storage public dir. +if [[ -n "${app_public_dir}" ]]; then + echo "Application's public storage dir specified, trying to symlink from files persistent volume" + + if [[ -d "${app_public_dir}" ]]; then + if [[ ! -L "${app_public_dir}" ]]; then + if [[ "$(ls -A "${app_public_dir}")" ]]; then + echo "Error: failed to symlink public storage directory to a persistent volume" + echo "Directory ${app_public_dir} must not exists or be empty" + echo "(use files import to migrate existing public files)" + exit 1 + # If dir is not symlink and empty, remove it and link. + else + echo "Empty public storage dir detected: removing and symlinking" + rm -rf "${app_public_dir}" + ln -sf "${FILES_DIR}/public" "${app_public_dir}" + fi + else + echo "Symlink already in place" + fi + else + echo "No public storage dir detected: just symlinking" + ln -sf "${FILES_DIR}/public" "${app_public_dir}" + fi +fi diff --git a/7/bin/files_sync b/7/bin/files_sync new file mode 100755 index 00000000..c54ad257 --- /dev/null +++ b/7/bin/files_sync @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +from=$1 +to=$2 + +if [[ "${to}" == "${FILES_DIR}" || "${to}" =~ ^"${FILES_DIR}/" ]]; then + rsync -rltpog --chown=www-data:www-data "${from}" "${to}" + # Ensure files volume permissions are still correct. + init_container +else + echo "Invalid destination. Must be under ${FILES_DIR}" + exit 1 +fi diff --git a/5.3/actions/git-checkout.sh b/7/bin/git_checkout similarity index 100% rename from 5.3/actions/git-checkout.sh rename to 7/bin/git_checkout diff --git a/5.3/actions/git-clone.sh b/7/bin/git_clone similarity index 100% rename from 5.3/actions/git-clone.sh rename to 7/bin/git_clone diff --git a/7/bin/init_container b/7/bin/init_container new file mode 100755 index 00000000..e506c29e --- /dev/null +++ b/7/bin/init_container @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +chown wodby:wodby "${APP_ROOT}" + +declare -a dirs=( + "${FILES_DIR}" + "${FILES_DIR}/public" + "${FILES_DIR}/private" + "${FILES_DIR}/sessions" + "${FILES_DIR}/xdebug/profiler" + "${FILES_DIR}/xdebug/traces" +) + +if [[ -n $1 && $1 =~ ^"${FILES_DIR}/" ]]; then + dirs+=($1) +fi + +for dir in "${dirs[@]}"; do + mkdir -p "${dir}" + chown www-data:www-data "${dir}" + chmod 775 "${dir}" +done + +if [[ -f /etc/crontabs/www-data && -z "${CRONTAB}" ]]; then + chown root:www-data /etc/crontabs/www-data + chmod 660 /etc/crontabs/www-data +fi + +if [[ -f /home/wodby/.ssh/id_rsa ]]; then + chown wodby:wodby /home/wodby/.ssh/id_rsa + chmod 600 /home/wodby/.ssh/id_rsa +fi + +if [[ -f /home/wodby/.ssh/authorized_keys ]]; then + chown wodby:wodby /home/wodby/.ssh/authorized_keys + chmod 600 /home/wodby/.ssh/authorized_keys +fi diff --git a/7/bin/migrate b/7/bin/migrate new file mode 100755 index 00000000..91548f4d --- /dev/null +++ b/7/bin/migrate @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +from="${1:-}" +to="${2:-}" + +# Default user changed from www-data (82) to wodby (1000), change recursively codebase permissions on volume. +if [[ "${to:0:1}" == 5 && "${from:0:1}" < 5 ]]; then + echo "Migrating to a new major 5.x version." + echo "Fixing permissions for codebase volume except symlinks (public files dir)" + find "${APP_ROOT}" -uid 82 ! -type l -exec chown wodby:wodby {} + +fi diff --git a/7/check-configs.sh b/7/check-configs.sh new file mode 100755 index 00000000..82a15b2a --- /dev/null +++ b/7/check-configs.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +php_ver=$1 +php_ver_minor=$2 + +url="https://raw.githubusercontent.com/php/php-src/php-${php_ver}" + +array=( + "./orig/php-${php_ver_minor}.ini-development::${url}/php.ini-development" + "./orig/php-${php_ver_minor}.ini-production::${url}/php.ini-production" +) + +outdated=0 + +for index in "${array[@]}" ; do + local="${index%%::*}" + url="${index##*::}" + + orig="/tmp/${RANDOM}" + wget -qO "${orig}" "${url}" + + echo "Checking ${local}" + + if diff --strip-trailing-cr "${local}" "${orig}"; then + echo "OK" + else + echo "!!! OUTDATED" + echo "${url}" + outdated=1 + fi + + rm -f "${orig}" +done + +# we don't want travis builds to fail. +#[[ "${outdated}" == 0 ]] || exit 1 \ No newline at end of file diff --git a/7/docker-entrypoint.sh b/7/docker-entrypoint.sh new file mode 100755 index 00000000..b8c2e2fa --- /dev/null +++ b/7/docker-entrypoint.sh @@ -0,0 +1,119 @@ +#!/usr/bin/env bash + +set -e + +if [[ -n "${DEBUG}" ]]; then + set -x +fi + +ssh_dir=/home/wodby/.ssh + +_gotpl() { + if [[ -f "/etc/gotpl/$1" ]]; then + gotpl "/etc/gotpl/$1" > "$2" + fi +} + +# @deprecated will be removed in favor of bind mounts (config maps). +init_ssh_client() { + if [[ -n "${SSH_PRIVATE_KEY}" ]]; then + _gotpl "id_rsa.tmpl" "${ssh_dir}/id_rsa" + chmod -f 600 "${ssh_dir}/id_rsa" + unset SSH_PRIVATE_KEY + fi +} + +init_sshd() { + _gotpl "sshd_config.tmpl" "/etc/ssh/sshd_config" + + # @deprecated will be removed in favor of bind mounts (config maps). + if [[ -n "${SSH_PUBLIC_KEYS}" ]]; then + _gotpl "authorized_keys.tmpl" "${ssh_dir}/authorized_keys" + unset SSH_PUBLIC_KEYS + fi + + printenv | xargs -I{} echo {} | awk ' \ + BEGIN { FS = "=" }; { \ + if ($1 != "HOME" \ + && $1 != "PWD" \ + && $1 != "SHLVL") { \ + \ + print ""$1"="$2"" \ + } \ + }' > "${ssh_dir}/environment" + + sudo gen_ssh_keys "rsa" "${SSHD_HOST_KEYS_DIR}" +} + +# @deprecated will be removed in favor of bind mounts (config maps). +init_crond() { + if [[ -n "${CRONTAB}" ]]; then + _gotpl "crontab.tmpl" "/etc/crontabs/www-data" + fi +} + +process_templates() { + local php_ver_minor="${PHP_VERSION:0:3}" + + if [[ -n "${PHP_DEV}" ]]; then + export PHP_FPM_CLEAR_ENV="${PHP_FPM_CLEAR_ENV:-no}" + fi + + if [[ -n "${PHP_DEBUG}" ]]; then + export PHP_FPM_LOG_LEVEL="${PHP_FPM_LOG_LEVEL:-debug}" + else + # Extensions that don't work with --enabled-debug + _gotpl "docker-php-ext-blackfire.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-blackfire.ini" + _gotpl "docker-php-ext-newrelic.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-newrelic.ini" + fi + + _gotpl "docker-php-${php_ver_minor}.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php.ini" + _gotpl "docker-php-ext-apcu.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini" + _gotpl "docker-php-ext-igbinary.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini" + _gotpl "docker-php-ext-tideways_xhprof.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-tideways_xhprof.ini" + _gotpl "docker-php-ext-xdebug.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini" + _gotpl "docker-php-ext-opcache.ini.tmpl" "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini" + + _gotpl "zz-www.conf.tmpl" "/usr/local/etc/php-fpm.d/zz-www.conf" + _gotpl "wodby.settings.php.tmpl" "${CONF_DIR}/wodby.settings.php" + _gotpl "ssh_config.tmpl" "${ssh_dir}/config" + _gotpl "gitconfig.tmpl" "/etc/gitconfig" +} + +disable_modules() { + local dir="${PHP_INI_DIR}/conf.d" + + if [[ -n "${PHP_EXTENSIONS_DISABLE}" ]]; then + IFS=',' read -r -a modules <<< "${PHP_EXTENSIONS_DISABLE}" + + for module in "${modules[@]}"; do + if [[ -f "${dir}/z-docker-php-ext-${module}.ini" ]]; then + rm "${dir}/z-docker-php-ext-${module}.ini"; + elif [[ -f "${dir}/docker-php-ext-${module}.ini" ]]; then + rm "${dir}/docker-php-ext-${module}.ini"; + else + echo "WARNING: instructed to disable module ${module} but it was not found" + fi + done + fi +} + +sudo init_container + +init_ssh_client +process_templates +disable_modules + +if [[ "${@:1:2}" == "sudo /usr/sbin/sshd" ]]; then + init_sshd +elif [[ "${@:1:3}" == "sudo -E crond" || "${@:1:4}" == "sudo -E LD_PRELOAD=/usr/lib/preloadable_libiconv.so crond" ]]; then + init_crond +fi + +exec_init_scripts + +if [[ "${1}" == "make" ]]; then + exec "${@}" -f /usr/local/bin/actions.mk +else + exec /usr/local/bin/docker-php-entrypoint "${@}" +fi diff --git a/7.1/php.ini b/7/orig/php-7.1.ini-development similarity index 98% rename from 7.1/php.ini rename to 7/orig/php-7.1.ini-development index e1b5f786..74e1f4a1 100644 --- a/7.1/php.ini +++ b/7/orig/php-7.1.ini-development @@ -884,7 +884,6 @@ default_socket_timeout = 60 ; default extension directory. ; ; Windows Extensions -; Note that ODBC support is built in, so no dll is needed for it. ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+) ; extension folders as well as the separate PECL DLL download (PHP 5+). ; Be sure to appropriately set the extension_dir directive. @@ -904,6 +903,7 @@ default_socket_timeout = 60 ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client +;extension=php_odbc.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll @@ -975,6 +975,13 @@ cli_server.color = On ; otherwise output encoding conversion cannot be performed. ;iconv.output_encoding = +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + [intl] ;intl.default_locale = ; This directive allows you to produce PHP errors when some error @@ -984,8 +991,19 @@ cli_server.color = On ;intl.use_exceptions = 0 [sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir ;sqlite3.extension_dir = +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +sqlite3.defensive = 1 + [Pcre] ;PCRE library backtracking limit. ; http://php.net/pcre.backtrack-limit @@ -1049,7 +1067,7 @@ smtp_port = 25 ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename -mail.add_x_header = On +mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. @@ -1905,6 +1923,10 @@ ldap.max_links = -1 ; Prevent name collisions in chroot'ed environment. ;opcache.validate_root=0 +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. @@ -1930,4 +1952,4 @@ ldap.max_links = -1 ; Local Variables: ; tab-width: 4 -; End: \ No newline at end of file +; End: diff --git a/7.0/php.ini b/7/orig/php-7.1.ini-production similarity index 95% rename from 7.0/php.ini rename to 7/orig/php-7.1.ini-production index f9d7feee..0658bf89 100644 --- a/7.0/php.ini +++ b/7/orig/php-7.1.ini-production @@ -83,7 +83,7 @@ ; development version only in development environments, as errors shown to ; application users can inadvertently leak otherwise secure information. -; This is php.ini-development INI file. +; This is php.ini-production INI file. ;;;;;;;;;;;;;;;;;;; ; Quick Reference ; @@ -143,7 +143,7 @@ ; Development Value: 1000 ; Production Value: 1000 -; session.hash_bits_per_character +; session.sid_bits_per_character ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 @@ -158,11 +158,6 @@ ; Development Value: On ; Production Value: Off -; url_rewriter.tags -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" - ; variables_order ; Default Value: "EGPCS" ; Development Value: "GPCS" @@ -244,6 +239,23 @@ output_buffering = 4096 ; http://php.net/output-handler ;output_handler = +; URL rewriter function rewrites URL on the fly by using +; output buffer. You can set target tags by this configuration. +; "form" tag is special tag. It will add hidden input tag to pass values. +; Refer to session.trans_sid_tags for usage. +; Default Value: "form=" +; Development Value: "form=" +; Production Value: "form=" +;url_rewriter.tags + +; URL rewriter will not rewrites absolute URL nor form by default. To enable +; absolute URL rewrite, allowed hosts must be defined at RUNTIME. +; Refer to session.trans_sid_hosts for more details. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;url_rewriter.hosts + ; Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) @@ -285,7 +297,10 @@ unserialize_callback_func = ; When floats & doubles are serialized store serialize_precision significant ; digits after the floating point. The default value ensures that when floats ; are decoded with unserialize, the data will remain the same. -serialize_precision = 17 +; The value is also used for json_encode when encoding double values. +; If -1 is used, then dtoa mode 0 is used which automatically select the best +; precision. +serialize_precision = -1 ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory @@ -442,7 +457,7 @@ memory_limit = 128M ; Development Value: E_ALL ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; http://php.net/error-reporting -error_reporting = E_ALL +error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT ; This directive controls whether or not and where PHP will output errors, ; notices and warnings too. Error output is very useful during development, but @@ -459,7 +474,7 @@ error_reporting = E_ALL ; Development Value: On ; Production Value: Off ; http://php.net/display-errors -display_errors = On +display_errors = Off ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. PHP's default behavior is to suppress those @@ -470,7 +485,7 @@ display_errors = On ; Development Value: On ; Production Value: Off ; http://php.net/display-startup-errors -display_startup_errors = On +display_startup_errors = Off ; Besides displaying errors, PHP can also log errors to locations such as a ; server-specific log, STDERR, or a location specified by the error_log @@ -514,7 +529,7 @@ report_memleaks = On ; Development Value: On ; Production Value: Off ; http://php.net/track-errors -track_errors = On +track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML ; http://php.net/xmlrpc-errors @@ -869,7 +884,6 @@ default_socket_timeout = 60 ; default extension directory. ; ; Windows Extensions -; Note that ODBC support is built in, so no dll is needed for it. ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+) ; extension folders as well as the separate PECL DLL download (PHP 5+). ; Be sure to appropriately set the extension_dir directive. @@ -889,6 +903,7 @@ default_socket_timeout = 60 ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client +;extension=php_odbc.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll @@ -960,6 +975,13 @@ cli_server.color = On ; otherwise output encoding conversion cannot be performed. ;iconv.output_encoding = +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + [intl] ;intl.default_locale = ; This directive allows you to produce PHP errors when some error @@ -969,8 +991,19 @@ cli_server.color = On ;intl.use_exceptions = 0 [sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir ;sqlite3.extension_dir = +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +sqlite3.defensive = 1 + [Pcre] ;PCRE library backtracking limit. ; http://php.net/pcre.backtrack-limit @@ -1034,7 +1067,7 @@ smtp_port = 25 ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename -mail.add_x_header = On +mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. @@ -1182,7 +1215,7 @@ mysqlnd.collect_statistics = On ; Enable / Disable collection of memory usage statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. ; http://php.net/mysqlnd.collect_memory_statistics -mysqlnd.collect_memory_statistics = On +mysqlnd.collect_memory_statistics = Off ; Records communication from all extensions using mysqlnd to the specified log ; file. @@ -1434,19 +1467,6 @@ session.gc_maxlifetime = 1440 ; http://php.net/session.referer-check session.referer_check = -; How many bytes to read from the file. -; http://php.net/session.entropy-length -;session.entropy_length = 32 - -; Specified here to create the session id. -; http://php.net/session.entropy-file -; Defaults to /dev/urandom -; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom -; If neither are found at compile time, the default is no entropy file. -; On windows, setting the entropy_length setting will activate the -; Windows random source (using the CryptoAPI) -;session.entropy_file = /dev/urandom - ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ; http://php.net/session.cache-limiter @@ -1468,15 +1488,39 @@ session.cache_expire = 180 ; http://php.net/session.use-trans-sid session.use_trans_sid = 0 -; Select a hash function for use in generating session ids. -; Possible Values -; 0 (MD5 128 bits) -; 1 (SHA-1 160 bits) -; This option may also be set to the name of any hash function supported by -; the hash extension. A list of available hashes is returned by the hash_algos() -; function. -; http://php.net/session.hash-function -session.hash_function = 0 +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +;
is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute pathes, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" ; Define how many bits are stored in each character when converting ; the binary hash data to something readable. @@ -1488,18 +1532,7 @@ session.hash_function = 0 ; Development Value: 5 ; Production Value: 5 ; http://php.net/session.hash-bits-per-character -session.hash_bits_per_character = 5 - -; The URL rewriter will look for URLs in a defined set of HTML tags. -; form/fieldset are special; if you include them here, the rewriter will -; add a hidden field with the info which is otherwise appended -; to URLs. If you want XHTML conformity, remove the form entry. -; Note that all valid entries require a "=", even if no value follows. -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; http://php.net/url-rewriter.tags -url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" +session.sid_bits_per_character = 5 ; Enable upload progress tracking in $_SESSION ; Default Value: On @@ -1560,7 +1593,7 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" ; Development Value: 1 ; Production Value: -1 ; http://php.net/zend.assertions -zend.assertions = 1 +zend.assertions = -1 ; Assert(expr); active by default. ; http://php.net/assert.active @@ -1686,7 +1719,7 @@ zend.assertions = 1 ; a gd image. The warning will then be displayed as notices ; disabled by default ; http://php.net/gd.jpeg-ignore-warning -;gd.jpeg_ignore_warning = 0 +;gd.jpeg_ignore_warning = 1 [exif] ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. @@ -1764,20 +1797,20 @@ ldap.max_links = -1 [opcache] ; Determines if Zend OPCache is enabled -;opcache.enable=0 +;opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP ;opcache.enable_cli=0 ; The OPcache shared memory storage size. -;opcache.memory_consumption=64 +;opcache.memory_consumption=128 ; The amount of memory for interned strings in Mbytes. -;opcache.interned_strings_buffer=4 +;opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 1000000 are allowed. -;opcache.max_accelerated_files=2000 +;opcache.max_accelerated_files=10000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 @@ -1882,13 +1915,17 @@ ldap.max_links = -1 ; Enables or disables copying of PHP code (text segment) into HUGE PAGES. ; This should improve performance, but requires appropriate OS configuration. -;opcache.huge_code_pages=0 +;opcache.huge_code_pages=1 ; Validate cached file permissions. -; opcache.validate_permission=0 +;opcache.validate_permission=0 ; Prevent name collisions in chroot'ed environment. -; opcache.validate_root=0 +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an @@ -1915,4 +1952,4 @@ ldap.max_links = -1 ; Local Variables: ; tab-width: 4 -; End: \ No newline at end of file +; End: diff --git a/5.3/php.ini b/7/orig/php-7.2.ini-development similarity index 68% rename from 5.3/php.ini rename to 7/orig/php-7.2.ini-development index bf26a3d2..6fd40182 100644 --- a/5.3/php.ini +++ b/7/orig/php-7.2.ini-development @@ -78,11 +78,13 @@ ; compatibility with older or less security conscience applications. We ; recommending using the production ini in production and testing environments. -; php.ini-development is very similar to its production variant, except it's -; much more verbose when it comes to errors. We recommending using the -; development version only in development environments as errors shown to +; php.ini-development is very similar to its production variant, except it is +; much more verbose when it comes to errors. We recommend using the +; development version only in development environments, as errors shown to ; application users can inadvertently leak otherwise secure information. +; This is php.ini-development INI file. + ;;;;;;;;;;;;;;;;;;; ; Quick Reference ; ;;;;;;;;;;;;;;;;;;; @@ -91,11 +93,6 @@ ; Please see the actual settings later in the document for more details as to why ; we recommend these changes in PHP's behavior. -; allow_call_time_pass_reference -; Default Value: On -; Development Value: Off -; Production Value: Off - ; display_errors ; Default Value: On ; Development Value: On @@ -107,25 +104,20 @@ ; Production Value: Off ; error_reporting -; Default Value: E_ALL & ~E_NOTICE -; Development Value: E_ALL | E_STRICT -; Production Value: E_ALL & ~E_DEPRECATED +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; html_errors ; Default Value: On ; Development Value: On -; Production value: Off +; Production value: On ; log_errors ; Default Value: Off ; Development Value: On ; Production Value: On -; magic_quotes_gpc -; Default Value: On -; Development Value: Off -; Production Value: Off - ; max_input_time ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) @@ -141,32 +133,17 @@ ; Development Value: Off ; Production Value: Off -; register_long_arrays -; Default Value: On -; Development Value: Off -; Production Value: Off - ; request_order ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" -; session.bug_compat_42 -; Default Value: On -; Development Value: On -; Production Value: Off - -; session.bug_compat_warn -; Default Value: On -; Development Value: On -; Production Value: Off - ; session.gc_divisor ; Default Value: 100 ; Development Value: 1000 ; Production Value: 1000 -; session.hash_bits_per_character +; session.sid_bits_per_character ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 @@ -176,16 +153,6 @@ ; Development Value: Off ; Production Value: Off -; track_errors -; Default Value: Off -; Development Value: On -; Production Value: Off - -; url_rewriter.tags -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" - ; variables_order ; Default Value: "EGPCS" ; Development Value: "GPCS" @@ -212,31 +179,22 @@ engine = On ; This directive determines whether or not PHP will recognize code between -; tags as PHP source which should be processed as such. It's been -; recommended for several years that you not use the short tag "short cut" and -; instead to use the full tag combination. With the wide spread use -; of XML and use of these tags by other languages, the server can become easily -; confused and end up parsing the wrong code in the wrong context. But because -; this short cut has been a feature for such a long time, it's currently still -; supported for backwards compatibility, but we recommend you don't use them. +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the tags. -; http://php.net/asp-tags -asp_tags = Off - ; The number of significant digits displayed in floating point numbers. ; http://php.net/precision precision = 14 -; Enforce year 2000 compliance (will cause problems with non-compliant browsers) -; http://php.net/y2k-compliance -y2k_compliance = On - ; Output buffering is a mechanism for controlling how much output data ; (excluding headers and cookies) PHP should keep internally before pushing that ; data to the client. If your application's output exceeds this setting, PHP @@ -276,6 +234,23 @@ output_buffering = 4096 ; http://php.net/output-handler ;output_handler = +; URL rewriter function rewrites URL on the fly by using +; output buffer. You can set target tags by this configuration. +; "form" tag is special tag. It will add hidden input tag to pass values. +; Refer to session.trans_sid_tags for usage. +; Default Value: "form=" +; Development Value: "form=" +; Production Value: "form=" +;url_rewriter.tags + +; URL rewriter will not rewrites absolute URL nor form by default. To enable +; absolute URL rewrite, allowed hosts must be defined at RUNTIME. +; Refer to session.trans_sid_hosts for more details. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;url_rewriter.hosts + ; Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) @@ -314,79 +289,28 @@ implicit_flush = Off ; callback-function. unserialize_callback_func = -; When floats & doubles are serialized store serialize_precision significant +; When floats & doubles are serialized, store serialize_precision significant ; digits after the floating point. The default value ensures that when floats ; are decoded with unserialize, the data will remain the same. -serialize_precision = 17 - -; This directive allows you to enable and disable warnings which PHP will issue -; if you pass a value by reference at function call time. Passing values by -; reference at function call time is a deprecated feature which will be removed -; from PHP at some point in the near future. The acceptable method for passing a -; value by reference to a function is by declaring the reference in the functions -; definition, not at call time. This directive does not disable this feature, it -; only determines whether PHP will warn you about it or not. These warnings -; should enabled in development environments only. -; Default Value: On (Suppress warnings) -; Development Value: Off (Issue warnings) -; Production Value: Off (Issue warnings) -; http://php.net/allow-call-time-pass-reference -allow_call_time_pass_reference = Off - -; Safe Mode -; http://php.net/safe-mode -safe_mode = Off - -; By default, Safe Mode does a UID compare check when -; opening files. If you want to relax this to a GID compare, -; then turn on safe_mode_gid. -; http://php.net/safe-mode-gid -safe_mode_gid = Off - -; When safe_mode is on, UID/GID checks are bypassed when -; including files from this directory and its subdirectories. -; (directory must also be in include_path or full path must -; be used when including) -; http://php.net/safe-mode-include-dir -safe_mode_include_dir = - -; When safe_mode is on, only executables located in the safe_mode_exec_dir -; will be allowed to be executed via the exec family of functions. -; http://php.net/safe-mode-exec-dir -safe_mode_exec_dir = - -; Setting certain environment variables may be a potential security breach. -; This directive contains a comma-delimited list of prefixes. In Safe Mode, -; the user may only alter environment variables whose names begin with the -; prefixes supplied here. By default, users will only be able to set -; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR). -; Note: If this directive is empty, PHP will let the user modify ANY -; environment variable! -; http://php.net/safe-mode-allowed-env-vars -safe_mode_allowed_env_vars = PHP_ - -; This directive contains a comma-delimited list of environment variables that -; the end user won't be able to change using putenv(). These variables will be -; protected even if safe_mode_allowed_env_vars is set to allow to change them. -; http://php.net/safe-mode-protected-env-vars -safe_mode_protected_env_vars = LD_LIBRARY_PATH +; The value is also used for json_encode when encoding double values. +; If -1 is used, then dtoa mode 0 is used which automatically select the best +; precision. +serialize_precision = -1 ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory -; or per-virtualhost web server configuration file. This directive is -; *NOT* affected by whether Safe Mode is turned On or Off. +; or per-virtualhost web server configuration file. +; Note: disables the realpath cache ; http://php.net/open-basedir ;open_basedir = ; This directive allows you to disable certain functions for security reasons. -; It receives a comma-delimited list of function names. This directive is -; *NOT* affected by whether Safe Mode is turned On or Off. +; It receives a comma-delimited list of function names. ; http://php.net/disable-functions disable_functions = ; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. This directive is -; *NOT* affected by whether Safe Mode is turned On or Off. +; It receives a comma-delimited list of class names. ; http://php.net/disable-classes disable_classes = @@ -396,7 +320,6 @@ disable_classes = ;highlight.string = #DD0000 ;highlight.comment = #FF9900 ;highlight.keyword = #007700 -;highlight.bg = #FFFFFF ;highlight.default = #0000BB ;highlight.html = #000000 @@ -410,8 +333,9 @@ disable_classes = ; Determines the size of the realpath cache to be used by PHP. This value should ; be increased on systems where PHP opens many files to reflect the quantity of ; the file operations performed. +; Note: if open_basedir is set, the cache is disabled ; http://php.net/realpath-cache-size -;realpath_cache_size = 16k +;realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this @@ -423,6 +347,18 @@ disable_classes = ; http://php.net/zend.enable-gc zend.enable_gc = On +; If enabled, scripts may be written in encodings that are incompatible with +; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such +; encodings. To use this feature, mbstring extension must be enabled. +; Default: Off +;zend.multibyte = Off + +; Allows to set the default encoding for the scripts. This value will be used +; unless "declare(encoding=...)" directive appears at the top of the script. +; Only affects if zend.multibyte is set. +; Default: "" +;zend.script_encoding = + ;;;;;;;;;;;;;;;;; ; Miscellaneous ; ;;;;;;;;;;;;;;;;; @@ -479,7 +415,7 @@ memory_limit = 128M ; recommend error reporting setting. Your production server shouldn't be wasting ; resources complaining about best practices and coding standards. That's what ; development servers and development settings are for. -; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This +; Note: The php.ini-development file has this setting as E_ALL. This ; means it pretty much reports everything which is exactly what you want during ; development and early testing. ; @@ -492,7 +428,7 @@ memory_limit = 128M ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and -; relying on the fact it's automatically initialized to an +; relying on the fact it is automatically initialized to an ; empty string) ; E_STRICT - run-time notices, enable to have PHP suggest changes ; to your code which will ensure the best interoperability @@ -510,23 +446,23 @@ memory_limit = 128M ; E_USER_DEPRECATED - user-generated deprecation warnings ; ; Common Values: -; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) -; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) +; E_ALL (Show all errors, warnings and notices including coding standards.) +; E_ALL & ~E_NOTICE (Show all errors, except for notices) +; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) -; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) -; Default Value: E_ALL & ~E_NOTICE -; Development Value: E_ALL | E_STRICT -; Production Value: E_ALL & ~E_DEPRECATED +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; http://php.net/error-reporting -error_reporting = E_ALL | E_STRICT +error_reporting = E_ALL ; This directive controls whether or not and where PHP will output errors, ; notices and warnings too. Error output is very useful during development, but ; it could be very dangerous in production environments. Depending on the code ; which is triggering the error, sensitive information could potentially leak ; out of your application such as database usernames and passwords or worse. -; It's recommended that errors be logged on production servers rather than -; having the errors sent to STDOUT. +; For production environments, we recommend logging errors rather than +; sending them to STDOUT. ; Possible Values: ; Off = Do not display any errors ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) @@ -540,8 +476,8 @@ display_errors = On ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. PHP's default behavior is to suppress those ; errors from clients. Turning the display of startup errors on can be useful in -; debugging configuration problems. But, it's strongly recommended that you -; leave this setting off on production servers. +; debugging configuration problems. We strongly recommend you +; set this to 'off' for production servers. ; Default Value: Off ; Development Value: On ; Production Value: Off @@ -583,14 +519,13 @@ report_memleaks = On ; This setting is on by default. ;report_zend_debug = 0 -; Store the last error/warning message in $php_errormsg (boolean). Setting this value -; to On can assist in debugging and is appropriate for development servers. It should -; however be disabled on production servers. +; Store the last error/warning message in $php_errormsg (boolean). +; This directive is DEPRECATED. ; Default Value: Off -; Development Value: On +; Development Value: Off ; Production Value: Off ; http://php.net/track-errors -track_errors = On +;track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML ; http://php.net/xmlrpc-errors @@ -599,23 +534,24 @@ track_errors = On ; An XML-RPC faultCode ;xmlrpc_error_number = 0 -; When PHP displays or logs an error, it has the capability of inserting html -; links to documentation related to that error. This directive controls whether -; those HTML links appear in error messages or not. For performance and security -; reasons, it's recommended you disable this on production servers. +; When PHP displays or logs an error, it has the capability of formatting the +; error message as HTML for easier reading. This directive controls whether +; the error message is formatted as HTML or not. ; Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: On ; Development Value: On -; Production value: Off +; Production value: On ; http://php.net/html-errors html_errors = On -; If html_errors is set On PHP produces clickable error messages that direct -; to a page describing the error or function causing the error in detail. +; If html_errors is set to On *and* docref_root is not empty, then PHP +; produces clickable error messages that direct to a page describing the error +; or function causing the error in detail. ; You can download a copy of the PHP manual from http://php.net/docs ; and change docref_root to the base URL of your local copy including the ; leading '/'. You must also specify the file extension being used including -; the dot. PHP's default behavior is to leave these settings empty. +; the dot. PHP's default behavior is to leave these settings empty, in which +; case no links to documentation are generated. ; Note: Never use this feature for production boxes. ; http://php.net/docref-root ; Examples @@ -641,7 +577,7 @@ html_errors = On ; http://php.net/error-log ; Example: ;error_log = php_errors.log -; Log errors to syslog (Event Log on NT, not valid in Windows 95). +; Log errors to syslog (Event Log on Windows). ;error_log = syslog ;windows.show_crt_warning @@ -667,51 +603,31 @@ html_errors = On ;arg_separator.input = ";&" ; This directive determines which super global arrays are registered when PHP -; starts up. If the register_globals directive is enabled, it also determines -; what order variables are populated into the global space. G,P,C,E & S are -; abbreviations for the following respective super globals: GET, POST, COOKIE, -; ENV and SERVER. There is a performance penalty paid for the registration of -; these arrays and because ENV is not as commonly used as the others, ENV is -; is not recommended on productions servers. You can still get access to -; the environment variables through getenv() should you need to. +; starts up. G,P,C,E & S are abbreviations for the following respective super +; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty +; paid for the registration of these arrays and because ENV is not as commonly +; used as the others, ENV is not recommended on productions servers. You +; can still get access to the environment variables through getenv() should you +; need to. ; Default Value: "EGPCS" ; Development Value: "GPCS" ; Production Value: "GPCS"; ; http://php.net/variables-order variables_order = "GPCS" -; This directive determines which super global data (G,P,C,E & S) should -; be registered into the super global array REQUEST. If so, it also determines -; the order in which that data is registered. The values for this directive are -; specified in the same manner as the variables_order directive, EXCEPT one. -; Leaving this value empty will cause PHP to use the value set in the -; variables_order directive. It does not mean it will leave the super globals -; array REQUEST empty. +; This directive determines which super global data (G,P & C) should be +; registered into the super global array REQUEST. If so, it also determines +; the order in which that data is registered. The values for this directive +; are specified in the same manner as the variables_order directive, +; EXCEPT one. Leaving this value empty will cause PHP to use the value set +; in the variables_order directive. It does not mean it will leave the super +; globals array REQUEST empty. ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" ; http://php.net/request-order request_order = "GP" -; Whether or not to register the EGPCS variables as global variables. You may -; want to turn this off if you don't want to clutter your scripts' global scope -; with user data. -; You should do your best to write your scripts so that they do not require -; register_globals to be on; Using form variables as globals can easily lead -; to possible security problems, if the code is not very well thought of. -; http://php.net/register-globals -register_globals = Off - -; Determines whether the deprecated long $HTTP_*_VARS type predefined variables -; are registered by PHP or not. As they are deprecated, we obviously don't -; recommend you use them. They are on by default for compatibility reasons but -; they are not recommended on production servers. -; Default Value: On -; Development Value: Off -; Production Value: Off -; http://php.net/register-long-arrays -register_long_arrays = Off - ; This directive determines whether PHP registers $argv & $argc each time it ; runs. $argv contains an array of all the arguments passed to PHP when a script ; is invoked. $argc contains an integer representing the number of arguments @@ -727,42 +643,29 @@ register_long_arrays = Off ; http://php.net/register-argc-argv register_argc_argv = Off -; When enabled, the SERVER and ENV variables are created when they're first -; used (Just In Time) instead of when the script starts. If these variables -; are not used within a script, having this directive on will result in a -; performance gain. The PHP directives register_globals, register_long_arrays, -; and register_argc_argv must be disabled for this directive to have any affect. +; When enabled, the ENV, REQUEST and SERVER variables are created when they're +; first used (Just In Time) instead of when the script starts. If these +; variables are not used within a script, having this directive on will result +; in a performance gain. The PHP directive register_argc_argv must be disabled +; for this directive to have any affect. ; http://php.net/auto-globals-jit auto_globals_jit = On +; Whether PHP will read the POST data. +; This option is enabled by default. +; Most likely, you won't want to disable this option globally. It causes $_POST +; and $_FILES to always be empty; the only way you will be able to read the +; POST data will be through the php://input stream wrapper. This can be useful +; to proxy requests or to process the POST data in a memory efficient fashion. +; http://php.net/enable-post-data-reading +;enable_post_data_reading = Off + ; Maximum size of POST data that PHP will accept. +; Its value may be 0 to disable the limit. It is ignored if POST data reading +; is disabled through enable_post_data_reading. ; http://php.net/post-max-size post_max_size = 8M -; Magic quotes are a preprocessing feature of PHP where PHP will attempt to -; escape any character sequences in GET, POST, COOKIE and ENV data which might -; otherwise corrupt data being placed in resources such as databases before -; making that data available to you. Because of character encoding issues and -; non-standard SQL implementations across many databases, it's not currently -; possible for this feature to be 100% accurate. PHP's default behavior is to -; enable the feature. We strongly recommend you use the escaping mechanisms -; designed specifically for the database your using instead of relying on this -; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is -; removed in PHP 5.4. -; Default Value: On -; Development Value: Off -; Production Value: Off -; http://php.net/magic-quotes-gpc -magic_quotes_gpc = Off - -; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. -; http://php.net/magic-quotes-runtime -magic_quotes_runtime = Off - -; Use Sybase-style magic quotes (escape ' with '' instead of \'). -; http://php.net/magic-quotes-sybase -magic_quotes_sybase = Off - ; Automatically add files before PHP document. ; http://php.net/auto-prepend-file auto_prepend_file = @@ -771,22 +674,32 @@ auto_prepend_file = ; http://php.net/auto-append-file auto_append_file = -; By default, PHP will output a character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. +; By default, PHP will output a media type using the Content-Type header. To +; disable this, simply set it to be empty. ; -; PHP's built-in default is text/html +; PHP's built-in default media type is set to text/html. ; http://php.net/default-mimetype default_mimetype = "text/html" -; PHP's default character set is set to empty. +; PHP's default character set is set to UTF-8. ; http://php.net/default-charset -;default_charset = "iso-8859-1" +default_charset = "UTF-8" -; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is -; to disable this feature. -; http://php.net/always-populate-raw-post-data -;always_populate_raw_post_data = On +; PHP internal character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/internal-encoding +;internal_encoding = + +; PHP input character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/input-encoding +;input_encoding = + +; PHP output character encoding is set to empty. +; If empty, default_charset is used. +; See also output_buffer. +; http://php.net/output-encoding +;output_encoding = ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; @@ -820,6 +733,10 @@ user_dir = ; On windows: ; extension_dir = "ext" +; Directory where the temporary files should be placed. +; Defaults to the system default (see sys_get_temp_dir) +; sys_temp_dir = "/tmp" + ; Whether or not to enable the dl() function. The dl() function does NOT work ; properly in multithreaded servers, such as IIS or Zeus, and is automatically ; disabled on them. @@ -853,6 +770,11 @@ enable_dl = Off ; http://php.net/cgi.fix-pathinfo ;cgi.fix_pathinfo=1 +; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside +; of the web tree and people will not be able to circumvent .htaccess security. +; http://php.net/cgi.dicard-path +;cgi.discard_path=1 + ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate ; security tokens of the calling client. This allows IIS to define the ; security context that the request runs under. mod_fastcgi under Apache @@ -866,13 +788,20 @@ enable_dl = Off ;fastcgi.logging = 0 ; cgi.rfc2616_headers configuration option tells PHP what type of headers to -; use when sending HTTP response code. If it's set 0 PHP sends Status: header that -; is supported by Apache. When this option is set to 1 PHP will send +; use when sending HTTP response code. If set to 0, PHP sends Status: header that +; is supported by Apache. When this option is set to 1, PHP will send ; RFC2616 compliant header. ; Default is zero. ; http://php.net/cgi.rfc2616-headers ;cgi.rfc2616_headers = 0 +; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! +; (shebang) at the top of the running script. This line might be needed if the +; script support running both as stand-alone script and via PHP CGI<. PHP in CGI +; mode skips this line and ignores its content if this directive is turned on. +; http://php.net/cgi.check-shebang-line +;cgi.check_shebang_line=1 + ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; @@ -933,75 +862,72 @@ default_socket_timeout = 60 ; If you wish to have an extension loaded automatically, use the following ; syntax: ; -; extension=modulename.extension -; -; For example, on Windows: +; extension=modulename ; -; extension=msql.dll +; For example: ; -; ... or under UNIX: +; extension=mysqli ; -; extension=msql.so +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: ; -; ... or with a path: +; extension=/path/to/extension/mysqli.so ; -; extension=/path/to/extension/msql.so +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. ; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. +; Notes for Windows environments : ; -; Windows Extensions -; Note that ODBC support is built in, so no dll is needed for it. -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) -; extension folders as well as the separate PECL DLL download (PHP 5). -; Be sure to appropriately set the extension_dir directive. +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. ; -;extension=php_bz2.dll -;extension=php_curl.dll -;extension=php_fileinfo.dll -;extension=php_gd2.dll -;extension=php_gettext.dll -;extension=php_gmp.dll -;extension=php_intl.dll -;extension=php_imap.dll -;extension=php_interbase.dll -;extension=php_ldap.dll -;extension=php_mbstring.dll -;extension=php_exif.dll ; Must be after mbstring as it depends on it -;extension=php_mysql.dll -;extension=php_mysqli.dll -;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client -;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client -;extension=php_openssl.dll -;extension=php_pdo_firebird.dll -;extension=php_pdo_mssql.dll -;extension=php_pdo_mysql.dll -;extension=php_pdo_oci.dll -;extension=php_pdo_odbc.dll -;extension=php_pdo_pgsql.dll -;extension=php_pdo_sqlite.dll -;extension=php_pgsql.dll -;extension=php_pspell.dll -;extension=php_shmop.dll +;extension=bz2 +;extension=curl +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=interbase +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop ; The MIBS data available in the PHP distribution must be installed. ; See http://www.php.net/manual/en/snmp.installation.php -;extension=php_snmp.dll - -;extension=php_soap.dll -;extension=php_sockets.dll -;extension=php_sqlite.dll -;extension=php_sqlite3.dll -;extension=php_sybase_ct.dll -;extension=php_tidy.dll -;extension=php_xmlrpc.dll -;extension=php_xsl.dll -;extension=php_zip.dll +;extension=snmp + +;extension=soap +;extension=sockets +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; +[CLI Server] +; Whether the CLI web server uses ANSI color coding in its terminal output. +cli_server.color = On + [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone @@ -1027,9 +953,29 @@ default_socket_timeout = 60 ;filter.default_flags = [iconv] -;iconv.input_encoding = ISO-8859-1 -;iconv.internal_encoding = ISO-8859-1 -;iconv.output_encoding = ISO-8859-1 +; Use of this INI entry is deprecated, use global input_encoding instead. +; If empty, default_charset or input_encoding or iconv.input_encoding is used. +; The precedence is: default_charset < intput_encoding < iconv.input_encoding +;iconv.input_encoding = + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;iconv.internal_encoding = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; If empty, default_charset or output_encoding or iconv.output_encoding is used. +; The precedence is: default_charset < output_encoding < iconv.output_encoding +; To use an output encoding conversion, iconv's output handler must be set +; otherwise output encoding conversion cannot be performed. +;iconv.output_encoding = + +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 [intl] ;intl.default_locale = @@ -1037,14 +983,22 @@ default_socket_timeout = 60 ; happens within intl functions. The value is the level of the error produced. ; Default is 0, which does not produce any errors. ;intl.error_level = E_WARNING - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 +;intl.use_exceptions = 0 [sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir ;sqlite3.extension_dir = +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + [Pcre] ;PCRE library backtracking limit. ; http://php.net/pcre.backtrack-limit @@ -1057,6 +1011,10 @@ default_socket_timeout = 60 ; http://php.net/pcre.recursion-limit ;pcre.recursion_limit=100000 +;Enables or disables JIT compilation of patterns. This requires the PCRE +;library to be compiled with JIT support. +;pcre.jit=1 + [Pdo] ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" ; http://php.net/pdo-odbc.connection-pooling @@ -1083,13 +1041,6 @@ pdo_mysql.default_socket= ;phar.cache_list = -[Syslog] -; Whether or not to define the various syslog variables (e.g. $LOG_PID, -; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In -; runtime, you can define these variables by calling define_syslog_variables(). -; http://php.net/define-syslog-variables -define_syslog_variables = Off - [mail function] ; For Win32 only. ; http://php.net/smtp @@ -1107,19 +1058,17 @@ smtp_port = 25 ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of -; the 5th parameter to mail(), even in safe mode. +; the 5th parameter to mail(). ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename -mail.add_x_header = On +mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. ;mail.log = - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off +; Log mail to syslog (Event Log on Windows). +;mail.log = syslog [ODBC] ; http://php.net/odbc.default-db @@ -1195,64 +1144,6 @@ ibase.dateformat = "%Y-%m-%d" ; Default time format. ibase.timeformat = "%H:%M:%S" -[MySQL] -; Allow accessing, from PHP's perspective, local files with LOAD DATA statements -; http://php.net/mysql.allow_local_infile -mysql.allow_local_infile = On - -; Allow or prevent persistent links. -; http://php.net/mysql.allow-persistent -mysql.allow_persistent = On - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysql.cache_size -mysql.cache_size = 2000 - -; Maximum number of persistent links. -1 means no limit. -; http://php.net/mysql.max-persistent -mysql.max_persistent = -1 - -; Maximum number of links (persistent + non-persistent). -1 means no limit. -; http://php.net/mysql.max-links -mysql.max_links = -1 - -; Default port number for mysql_connect(). If unset, mysql_connect() will use -; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the -; compile-time value defined MYSQL_PORT (in that order). Win32 will only look -; at MYSQL_PORT. -; http://php.net/mysql.default-port -mysql.default_port = - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/mysql.default-socket -mysql.default_socket = - -; Default host for mysql_connect() (doesn't apply in safe mode). -; http://php.net/mysql.default-host -mysql.default_host = - -; Default user for mysql_connect() (doesn't apply in safe mode). -; http://php.net/mysql.default-user -mysql.default_user = - -; Default password for mysql_connect() (doesn't apply in safe mode). -; Note that this is generally a *bad* idea to store passwords in this file. -; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") -; and reveal this password! And of course, any users with read access to this -; file will be able to reveal the password as well. -; http://php.net/mysql.default-password -mysql.default_password = - -; Maximum time (in seconds) for connect timeout. -1 means no limit -; http://php.net/mysql.connect-timeout -mysql.connect_timeout = 60 - -; Trace mode. When trace_mode is active (=On), warnings for table/index scans and -; SQL-Errors will be displayed. -; http://php.net/mysql.trace-mode -mysql.trace_mode = Off - [MySQLi] ; Maximum number of persistent links. -1 means no limit. @@ -1317,6 +1208,19 @@ mysqlnd.collect_statistics = On ; http://php.net/mysqlnd.collect_memory_statistics mysqlnd.collect_memory_statistics = On +; Records communication from all extensions using mysqlnd to the specified log +; file. +; http://php.net/mysqlnd.debug +;mysqlnd.debug = + +; Defines which queries will be logged. +; http://php.net/mysqlnd.log_mask +;mysqlnd.log_mask = 0 + +; Default size of the mysqlnd memory pool, which is used by result sets. +; http://php.net/mysqlnd.mempool_default_size +;mysqlnd.mempool_default_size = 16000 + ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. ; http://php.net/mysqlnd.net_cmd_buffer_size ;mysqlnd.net_cmd_buffer_size = 2048 @@ -1326,6 +1230,15 @@ mysqlnd.collect_memory_statistics = On ; http://php.net/mysqlnd.net_read_buffer_size ;mysqlnd.net_read_buffer_size = 32768 +; Timeout for network requests in seconds. +; http://php.net/mysqlnd.net_read_timeout +;mysqlnd.net_read_timeout = 31536000 + +; SHA-256 Authentication Plugin related. File with the MySQL server public RSA +; key. +; http://php.net/mysqlnd.sha256_server_public_key +;mysqlnd.sha256_server_public_key = + [OCI8] ; Connection: Enables privileged connections using external @@ -1407,45 +1320,6 @@ pgsql.ignore_notice = 0 ; http://php.net/pgsql.log-notice pgsql.log_notice = 0 -[Sybase-CT] -; Allow or prevent persistent links. -; http://php.net/sybct.allow-persistent -sybct.allow_persistent = On - -; Maximum number of persistent links. -1 means no limit. -; http://php.net/sybct.max-persistent -sybct.max_persistent = -1 - -; Maximum number of links (persistent + non-persistent). -1 means no limit. -; http://php.net/sybct.max-links -sybct.max_links = -1 - -; Minimum server message severity to display. -; http://php.net/sybct.min-server-severity -sybct.min_server_severity = 10 - -; Minimum client message severity to display. -; http://php.net/sybct.min-client-severity -sybct.min_client_severity = 10 - -; Set per-context timeout -; http://php.net/sybct.timeout -;sybct.timeout= - -;sybct.packet_size - -; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. -; Default: one minute -;sybct.login_timeout= - -; The name of the host you claim to be connecting from, for display by sp_who. -; Default: none -;sybct.hostname= - -; Allows you to define how often deadlocks are to be retried. -1 means "forever". -; Default: 0 -;sybct.deadlock_retry_count= - [bcmath] ; Number of decimal digits for all bcmath functions. ; http://php.net/bcmath.scale @@ -1470,9 +1344,9 @@ session.save_handler = files ; ; where N is an integer. Instead of storing all the session files in ; /path, what this will do is use subdirectories N-levels deep, and -; store the session data in those directories. This is useful if you -; or your OS have problems with lots of files in one directory, and is -; a more efficient layout for servers that handle lots of sessions. +; store the session data in those directories. This is useful if +; your OS has problems with many files in one directory, and is +; a more efficient layout for servers that handle many sessions. ; ; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. @@ -1489,6 +1363,14 @@ session.save_handler = files ; http://php.net/session.save-path ;session.save_path = "/tmp" +; Whether to use strict session mode. +; Strict session mode does not accept uninitialized session ID and regenerate +; session ID if browser sends uninitialized session ID. Strict mode protects +; applications from session fixation via session adoption vulnerability. It is +; disabled by default for maximum compatibility, but enabling it is encouraged. +; https://wiki.php.net/rfc/strict_sessions +session.use_strict_mode = 0 + ; Whether to use cookies. ; http://php.net/session.use-cookies session.use_cookies = 1 @@ -1499,7 +1381,7 @@ session.use_cookies = 1 ; This option forces PHP to fetch and use a cookie for storing and maintaining ; the session id. We encourage this operation as it's very helpful in combating ; session hijacking when not specifying and managing your own session id. It is -; not the end all be all of session hijacking defense, but it's a good start. +; not the be-all and end-all of session hijacking defense, but it's a good start. ; http://php.net/session.use-only-cookies session.use_only_cookies = 1 @@ -1568,32 +1450,7 @@ session.gc_maxlifetime = 1440 ; collection through a shell script, cron entry, or some other method. ; For example, the following script would is the equivalent of ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): -; find /path/to/sessions -cmin +24 | xargs rm - -; PHP 4.2 and less have an undocumented feature/bug that allows you to -; to initialize a session variable in the global scope, even when register_globals -; is disabled. PHP 4.3 and later will warn you, if this feature is used. -; You can disable the feature and the warning separately. At this time, -; the warning is only displayed, if bug_compat_42 is enabled. This feature -; introduces some serious security problems if not handled correctly. It's -; recommended that you do not use this feature on production servers. But you -; should enable this on development servers and enable the warning as well. If you -; do not enable the feature on development servers, you won't be warned when it's -; used and debugging errors caused by this can be difficult to track down. -; Default Value: On -; Development Value: On -; Production Value: Off -; http://php.net/session.bug-compat-42 -session.bug_compat_42 = On - -; This setting controls whether or not you are warned by PHP when initializing a -; session value into the global space. session.bug_compat_42 must be enabled before -; these warnings can be issued by PHP. See the directive above for more information. -; Default Value: On -; Development Value: On -; Production Value: Off -; http://php.net/session.bug-compat-warn -session.bug_compat_warn = On +; find /path/to/sessions -cmin +24 -type f | xargs rm ; Check HTTP Referer to invalidate externally stored URLs containing ids. ; HTTP_REFERER has to contain this substring for the session to be @@ -1601,17 +1458,6 @@ session.bug_compat_warn = On ; http://php.net/session.referer-check session.referer_check = -; How many bytes to read from the file. -; http://php.net/session.entropy-length -session.entropy_length = 0 - -; Specified here to create the session id. -; http://php.net/session.entropy-file -; On systems that don't have /dev/urandom /dev/arandom can be used -; On windows, setting the entropy_length setting will activate the -; Windows random source (using the CryptoAPI) -;session.entropy_file = /dev/urandom - ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ; http://php.net/session.cache-limiter @@ -1622,7 +1468,7 @@ session.cache_limiter = nocache session.cache_expire = 180 ; trans sid support is disabled by default. -; Use of trans sid may risk your users security. +; Use of trans sid may risk your users' security. ; Use this option with caution. ; - User may send URL contains active session ID ; to other person via. email/irc/etc. @@ -1633,15 +1479,39 @@ session.cache_expire = 180 ; http://php.net/session.use-trans-sid session.use_trans_sid = 0 -; Select a hash function for use in generating session ids. -; Possible Values -; 0 (MD5 128 bits) -; 1 (SHA-1 160 bits) -; This option may also be set to the name of any hash function supported by -; the hash extension. A list of available hashes is returned by the hash_algos() -; function. -; http://php.net/session.hash-function -session.hash_function = 0 +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute pathes, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" ; Define how many bits are stored in each character when converting ; the binary hash data to something readable. @@ -1653,77 +1523,78 @@ session.hash_function = 0 ; Development Value: 5 ; Production Value: 5 ; http://php.net/session.hash-bits-per-character -session.hash_bits_per_character = 5 - -; The URL rewriter will look for URLs in a defined set of HTML tags. -; form/fieldset are special; if you include them here, the rewriter will -; add a hidden field with the info which is otherwise appended -; to URLs. If you want XHTML conformity, remove the form entry. -; Note that all valid entries require a "=", even if no value follows. -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; http://php.net/url-rewriter.tags -url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" - -[MSSQL] -; Allow or prevent persistent links. -mssql.allow_persistent = On +session.sid_bits_per_character = 5 -; Maximum number of persistent links. -1 means no limit. -mssql.max_persistent = -1 - -; Maximum number of links (persistent+non persistent). -1 means no limit. -mssql.max_links = -1 - -; Minimum error severity to display. -mssql.min_error_severity = 10 - -; Minimum message severity to display. -mssql.min_message_severity = 10 - -; Compatibility mode with old versions of PHP 3.0. -mssql.compatability_mode = Off - -; Connect timeout -;mssql.connect_timeout = 5 - -; Query timeout -;mssql.timeout = 60 - -; Valid range 0 - 2147483647. Default = 4096. -;mssql.textlimit = 4096 - -; Valid range 0 - 2147483647. Default = 4096. -;mssql.textsize = 4096 - -; Limits the number of records in each batch. 0 = all records in one batch. -;mssql.batchsize = 0 - -; Specify how datetime and datetim4 columns are returned -; On => Returns data converted to SQL server settings -; Off => Returns values as YYYY-MM-DD hh:mm:ss -;mssql.datetimeconvert = On - -; Use NT authentication when connecting to the server -mssql.secure_connection = Off +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.enabled +;session.upload_progress.enabled = On -; Specify max number of processes. -1 = library default -; msdlib defaults to 25 -; FreeTDS defaults to 4096 -;mssql.max_procs = -1 +; Cleanup the progress information as soon as all POST data has been read +; (i.e. upload completed). +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.cleanup +;session.upload_progress.cleanup = On + +; A prefix used for the upload progress key in $_SESSION +; Default Value: "upload_progress_" +; Development Value: "upload_progress_" +; Production Value: "upload_progress_" +; http://php.net/session.upload-progress.prefix +;session.upload_progress.prefix = "upload_progress_" + +; The index name (concatenated with the prefix) in $_SESSION +; containing the upload progress information +; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" +; http://php.net/session.upload-progress.name +;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" + +; How frequently the upload progress should be updated. +; Given either in percentages (per-file), or in bytes +; Default Value: "1%" +; Development Value: "1%" +; Production Value: "1%" +; http://php.net/session.upload-progress.freq +;session.upload_progress.freq = "1%" + +; The minimum delay between updates, in seconds +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.upload-progress.min-freq +;session.upload_progress.min_freq = "1" -; Specify client character set. -; If empty or not set the client charset from freetds.conf is used -; This is only used when compiled with FreeTDS -;mssql.charset = "ISO-8859-1" +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On [Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = 1 + ; Assert(expr); active by default. ; http://php.net/assert.active ;assert.active = On -; Issue a PHP warning for each failed assertion. +; Throw an AssertationException on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) ; http://php.net/assert.warning ;assert.warning = On @@ -1767,23 +1638,34 @@ mssql.secure_connection = Off [mbstring] ; language for internal character representation. +; This affects mb_send_mail() and mbstring.detect_order. ; http://php.net/mbstring.language ;mbstring.language = Japanese +; Use of this INI entry is deprecated, use global internal_encoding instead. ; internal/script encoding. -; Some encoding cannot work as internal encoding. -; (e.g. SJIS, BIG5, ISO-2022-*) -; http://php.net/mbstring.internal-encoding -;mbstring.internal_encoding = EUC-JP +; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;mbstring.internal_encoding = +; Use of this INI entry is deprecated, use global input_encoding instead. ; http input encoding. +; mbstring.encoding_traslation = On is needed to use this setting. +; If empty, default_charset or input_encoding or mbstring.input is used. +; The precedence is: default_charset < intput_encoding < mbsting.http_input ; http://php.net/mbstring.http-input -;mbstring.http_input = auto - -; http output encoding. mb_output_handler must be -; registered as output buffer to function +;mbstring.http_input = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; http output encoding. +; mb_output_handler must be registered as output buffer to function. +; If empty, default_charset or output_encoding or mbstring.http_output is used. +; The precedence is: default_charset < output_encoding < mbstring.http_output +; To use an output encoding conversion, mbstring's output handler must be set +; otherwise output encoding conversion cannot be performed. ; http://php.net/mbstring.http-output -;mbstring.http_output = SJIS +;mbstring.http_output = ; enable automatic encoding translation according to ; mbstring.internal_encoding setting. Input chars are @@ -1794,14 +1676,14 @@ mssql.secure_connection = Off ;mbstring.encoding_translation = Off ; automatic encoding detection order. -; auto means +; "auto" detect order is changed according to mbstring.language ; http://php.net/mbstring.detect-order ;mbstring.detect_order = auto ; substitute_character used when character cannot be converted ; one from another ; http://php.net/mbstring.substitute-character -;mbstring.substitute_character = none; +;mbstring.substitute_character = none ; overload(replace) single byte functions by mbstring functions. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), @@ -1815,23 +1697,20 @@ mssql.secure_connection = Off ;mbstring.func_overload = 0 ; enable strict encoding detection. -;mbstring.strict_detection = Off +; Default: Off +;mbstring.strict_detection = On ; This directive specifies the regex pattern of content types for which mb_output_handler() ; is activated. ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) ;mbstring.http_output_conv_mimetype= -; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte -; Default: "" -;mbstring.script_encoding= - [gd] ; Tell the jpeg decode to ignore warnings and try to create ; a gd image. The warning will then be displayed as notices ; disabled by default ; http://php.net/gd.jpeg-ignore-warning -;gd.jpeg_ignore_warning = 0 +;gd.jpeg_ignore_warning = 1 [exif] ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. @@ -1893,26 +1772,160 @@ soap.wsdl_cache_limit = 5 ; Sets the maximum number of open links or -1 for unlimited. ldap.max_links = -1 -[mcrypt] -; For more information about mcrypt settings see http://php.net/mcrypt-module-open +[dba] +;dba.default_handler= + +[opcache] +; Determines if Zend OPCache is enabled +;opcache.enable=1 -; Directory where to load mcrypt algorithms -; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) -;mcrypt.algorithms_dir= +; Determines if Zend OPCache is enabled for the CLI version of PHP +;opcache.enable_cli=0 -; Directory where to load mcrypt modes -; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) -;mcrypt.modes_dir= +; The OPcache shared memory storage size. +;opcache.memory_consumption=128 -[dba] -;dba.default_handler= +; The amount of memory for interned strings in Mbytes. +;opcache.interned_strings_buffer=8 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +;opcache.max_wasted_percentage=5 + +; When this directive is enabled, the OPcache appends the current working +; directory to the script key, thus eliminating possible collisions between +; files with the same name (basename). Disabling the directive improves +; performance, but may break existing applications. +;opcache.use_cwd=1 + +; When disabled, you must reset the OPcache manually or restart the +; webserver for changes to the filesystem to take effect. +;opcache.validate_timestamps=1 + +; How often (in seconds) to check file timestamps for changes to the shared +; memory storage allocation. ("1" means validate once per second, but only +; once per request. "0" means always validate) +;opcache.revalidate_freq=2 + +; Enables or disables file search in include_path optimization +;opcache.revalidate_path=0 + +; If disabled, all PHPDoc comments are dropped from the code to reduce the +; size of the optimized code. +;opcache.save_comments=1 -[xsl] -; Write operations from within XSLT are disabled by default. -; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44 -; Set it to 0 to allow all operations -;xsl.security_prefs = 44 +; Allow file existence override (file_exists, etc.) performance feature. +;opcache.enable_file_override=0 + +; A bitmask, where each bit enables or disables the appropriate OPcache +; passes +;opcache.optimization_level=0xffffffff + +;opcache.inherited_hack=1 +;opcache.dups_fix=0 + +; The location of the OPcache blacklist file (wildcards allowed). +; Each OPcache blacklist file is a text file that holds the names of files +; that should not be accelerated. The file format is to add each filename +; to a new line. The filename may be a full path or just a file prefix +; (i.e., /var/www/x blacklists all the files and directories in /var/www +; that start with 'x'). Line starting with a ; are ignored (comments). +;opcache.blacklist_filename= + +; Allows exclusion of large files from being cached. By default all files +; are cached. +;opcache.max_file_size=0 + +; Check the cache checksum each N requests. +; The default value of "0" means that the checks are disabled. +;opcache.consistency_checks=0 + +; How long to wait (in seconds) for a scheduled restart to begin if the cache +; is not being accessed. +;opcache.force_restart_timeout=180 + +; OPcache error_log file name. Empty string assumes "stderr". +;opcache.error_log= + +; All OPcache errors go to the Web server log. +; By default, only fatal errors (level 0) or errors (level 1) are logged. +; You can also enable warnings (level 2), info messages (level 3) or +; debug messages (level 4). +;opcache.log_verbosity_level=1 + +; Preferred Shared Memory back-end. Leave empty and let the system decide. +;opcache.preferred_memory_model= + +; Protect the shared memory from unexpected writing during script execution. +; Useful for internal debugging only. +;opcache.protect_memory=0 + +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=0 + +; Validate cached file permissions. +;opcache.validate_permission=0 + +; Prevent name collisions in chroot'ed environment. +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + +[curl] +; A default value for the CURLOPT_CAINFO option. This is required to be an +; absolute path. +;curl.cainfo = + +[openssl] +; The location of a Certificate Authority (CA) file on the local filesystem +; to use when verifying the identity of SSL/TLS peers. Most users should +; not specify a value for this directive as PHP will attempt to use the +; OS-managed cert stores in its absence. If specified, this value may still +; be overridden on a per-stream basis via the "cafile" SSL stream context +; option. +;openssl.cafile= + +; If openssl.cafile is not specified or if the CA file is not found, the +; directory pointed to by openssl.capath is searched for a suitable +; certificate. This value must be a correctly hashed certificate directory. +; Most users should not specify a value for this directive as PHP will +; attempt to use the OS-managed cert stores in its absence. If specified, +; this value may still be overridden on a per-stream basis via the "capath" +; SSL stream context option. +;openssl.capath= ; Local Variables: ; tab-width: 4 -; End: \ No newline at end of file +; End: diff --git a/5.6/php.ini b/7/orig/php-7.2.ini-production similarity index 87% rename from 5.6/php.ini rename to 7/orig/php-7.2.ini-production index b0d4cfd7..91c6129d 100644 --- a/5.6/php.ini +++ b/7/orig/php-7.2.ini-production @@ -83,7 +83,7 @@ ; development version only in development environments, as errors shown to ; application users can inadvertently leak otherwise secure information. -; This is php.ini-development INI file. +; This is php.ini-production INI file. ;;;;;;;;;;;;;;;;;;; ; Quick Reference ; @@ -143,7 +143,7 @@ ; Development Value: 1000 ; Production Value: 1000 -; session.hash_bits_per_character +; session.sid_bits_per_character ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 @@ -158,11 +158,6 @@ ; Development Value: On ; Production Value: Off -; url_rewriter.tags -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" - ; variables_order ; Default Value: "EGPCS" ; Development Value: "GPCS" @@ -201,10 +196,6 @@ engine = On ; http://php.net/short-open-tag short_open_tag = Off -; Allow ASP-style <% %> tags. -; http://php.net/asp-tags -asp_tags = Off - ; The number of significant digits displayed in floating point numbers. ; http://php.net/precision precision = 14 @@ -248,6 +239,23 @@ output_buffering = 4096 ; http://php.net/output-handler ;output_handler = +; URL rewriter function rewrites URL on the fly by using +; output buffer. You can set target tags by this configuration. +; "form" tag is special tag. It will add hidden input tag to pass values. +; Refer to session.trans_sid_tags for usage. +; Default Value: "form=" +; Development Value: "form=" +; Production Value: "form=" +;url_rewriter.tags + +; URL rewriter will not rewrites absolute URL nor form by default. To enable +; absolute URL rewrite, allowed hosts must be defined at RUNTIME. +; Refer to session.trans_sid_hosts for more details. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;url_rewriter.hosts + ; Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) @@ -286,14 +294,18 @@ implicit_flush = Off ; callback-function. unserialize_callback_func = -; When floats & doubles are serialized store serialize_precision significant +; When floats & doubles are serialized, store serialize_precision significant ; digits after the floating point. The default value ensures that when floats ; are decoded with unserialize, the data will remain the same. -serialize_precision = 17 +; The value is also used for json_encode when encoding double values. +; If -1 is used, then dtoa mode 0 is used which automatically select the best +; precision. +serialize_precision = -1 ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory ; or per-virtualhost web server configuration file. +; Note: disables the realpath cache ; http://php.net/open-basedir ;open_basedir = @@ -326,8 +338,9 @@ disable_classes = ; Determines the size of the realpath cache to be used by PHP. This value should ; be increased on systems where PHP opens many files to reflect the quantity of ; the file operations performed. +; Note: if open_basedir is set, the cache is disabled ; http://php.net/realpath-cache-size -;realpath_cache_size = 16k +;realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this @@ -446,7 +459,7 @@ memory_limit = 128M ; Development Value: E_ALL ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; http://php.net/error-reporting -error_reporting = E_ALL +error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT ; This directive controls whether or not and where PHP will output errors, ; notices and warnings too. Error output is very useful during development, but @@ -463,7 +476,7 @@ error_reporting = E_ALL ; Development Value: On ; Production Value: Off ; http://php.net/display-errors -display_errors = On +display_errors = Off ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. PHP's default behavior is to suppress those @@ -474,7 +487,7 @@ display_errors = On ; Development Value: On ; Production Value: Off ; http://php.net/display-startup-errors -display_startup_errors = On +display_startup_errors = Off ; Besides displaying errors, PHP can also log errors to locations such as a ; server-specific log, STDERR, or a location specified by the error_log @@ -514,11 +527,12 @@ report_memleaks = On ; Store the last error/warning message in $php_errormsg (boolean). Setting this value ; to On can assist in debugging and is appropriate for development servers. It should ; however be disabled on production servers. +; This directive is DEPRECATED. ; Default Value: Off -; Development Value: On +; Development Value: Off ; Production Value: Off ; http://php.net/track-errors -track_errors = On +;track_errors = Off ; Turn off normal error reporting and emit XML-RPC error XML ; http://php.net/xmlrpc-errors @@ -694,13 +708,6 @@ default_charset = "UTF-8" ; http://php.net/output-encoding ;output_encoding = -; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is -; to disable this feature and it will be removed in a future version. -; If post reading is disabled through enable_post_data_reading, -; $HTTP_RAW_POST_DATA is *NOT* populated. -; http://php.net/always-populate-raw-post-data -;always_populate_raw_post_data = -1 - ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; @@ -862,65 +869,63 @@ default_socket_timeout = 60 ; If you wish to have an extension loaded automatically, use the following ; syntax: ; -; extension=modulename.extension -; -; For example, on Windows: +; extension=modulename ; -; extension=msql.dll +; For example: ; -; ... or under UNIX: +; extension=mysqli ; -; extension=msql.so +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: ; -; ... or with a path: +; extension=/path/to/extension/mysqli.so ; -; extension=/path/to/extension/msql.so +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. ; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. +; Notes for Windows environments : ; -; Windows Extensions -; Note that ODBC support is built in, so no dll is needed for it. -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) -; extension folders as well as the separate PECL DLL download (PHP 5). -; Be sure to appropriately set the extension_dir directive. +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. ; -;extension=php_bz2.dll -;extension=php_curl.dll -;extension=php_fileinfo.dll -;extension=php_gd2.dll -;extension=php_gettext.dll -;extension=php_gmp.dll -;extension=php_intl.dll -;extension=php_imap.dll -;extension=php_interbase.dll -;extension=php_ldap.dll -;extension=php_mbstring.dll -;extension=php_exif.dll ; Must be after mbstring as it depends on it -;extension=php_mysql.dll -;extension=php_mysqli.dll -;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client -;extension=php_openssl.dll -;extension=php_pdo_firebird.dll -;extension=php_pdo_mysql.dll -;extension=php_pdo_oci.dll -;extension=php_pdo_odbc.dll -;extension=php_pdo_pgsql.dll -;extension=php_pdo_sqlite.dll -;extension=php_pgsql.dll -;extension=php_shmop.dll +;extension=bz2 +;extension=curl +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=interbase +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop ; The MIBS data available in the PHP distribution must be installed. ; See http://www.php.net/manual/en/snmp.installation.php -;extension=php_snmp.dll +;extension=snmp -;extension=php_soap.dll -;extension=php_sockets.dll -;extension=php_sqlite3.dll -;extension=php_sybase_ct.dll -;extension=php_tidy.dll -;extension=php_xmlrpc.dll -;extension=php_xsl.dll +;extension=soap +;extension=sockets +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl ;;;;;;;;;;;;;;;;;;; ; Module Settings ; @@ -972,6 +977,13 @@ cli_server.color = On ; otherwise output encoding conversion cannot be performed. ;iconv.output_encoding = +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + [intl] ;intl.default_locale = ; This directive allows you to produce PHP errors when some error @@ -981,8 +993,19 @@ cli_server.color = On ;intl.use_exceptions = 0 [sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir ;sqlite3.extension_dir = +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + [Pcre] ;PCRE library backtracking limit. ; http://php.net/pcre.backtrack-limit @@ -995,6 +1018,10 @@ cli_server.color = On ; http://php.net/pcre.recursion-limit ;pcre.recursion_limit=100000 +;Enables or disables JIT compilation of patterns. This requires the PCRE +;library to be compiled with JIT support. +;pcre.jit=1 + [Pdo] ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" ; http://php.net/pdo-odbc.connection-pooling @@ -1042,7 +1069,7 @@ smtp_port = 25 ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename -mail.add_x_header = On +mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers. @@ -1050,10 +1077,6 @@ mail.add_x_header = On ; Log mail to syslog (Event Log on Windows). ;mail.log = syslog -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - [ODBC] ; http://php.net/odbc.default-db ;odbc.default_db = Not yet implemented @@ -1128,64 +1151,6 @@ ibase.dateformat = "%Y-%m-%d" ; Default time format. ibase.timeformat = "%H:%M:%S" -[MySQL] -; Allow accessing, from PHP's perspective, local files with LOAD DATA statements -; http://php.net/mysql.allow_local_infile -mysql.allow_local_infile = On - -; Allow or prevent persistent links. -; http://php.net/mysql.allow-persistent -mysql.allow_persistent = On - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysql.cache_size -mysql.cache_size = 2000 - -; Maximum number of persistent links. -1 means no limit. -; http://php.net/mysql.max-persistent -mysql.max_persistent = -1 - -; Maximum number of links (persistent + non-persistent). -1 means no limit. -; http://php.net/mysql.max-links -mysql.max_links = -1 - -; Default port number for mysql_connect(). If unset, mysql_connect() will use -; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the -; compile-time value defined MYSQL_PORT (in that order). Win32 will only look -; at MYSQL_PORT. -; http://php.net/mysql.default-port -mysql.default_port = - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/mysql.default-socket -mysql.default_socket = - -; Default host for mysql_connect() (doesn't apply in safe mode). -; http://php.net/mysql.default-host -mysql.default_host = - -; Default user for mysql_connect() (doesn't apply in safe mode). -; http://php.net/mysql.default-user -mysql.default_user = - -; Default password for mysql_connect() (doesn't apply in safe mode). -; Note that this is generally a *bad* idea to store passwords in this file. -; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") -; and reveal this password! And of course, any users with read access to this -; file will be able to reveal the password as well. -; http://php.net/mysql.default-password -mysql.default_password = - -; Maximum time (in seconds) for connect timeout. -1 means no limit -; http://php.net/mysql.connect-timeout -mysql.connect_timeout = 60 - -; Trace mode. When trace_mode is active (=On), warnings for table/index scans and -; SQL-Errors will be displayed. -; http://php.net/mysql.trace-mode -mysql.trace_mode = Off - [MySQLi] ; Maximum number of persistent links. -1 means no limit. @@ -1248,7 +1213,7 @@ mysqlnd.collect_statistics = On ; Enable / Disable collection of memory usage statistics by mysqlnd which can be ; used to tune and monitor MySQL operations. ; http://php.net/mysqlnd.collect_memory_statistics -mysqlnd.collect_memory_statistics = On +mysqlnd.collect_memory_statistics = Off ; Records communication from all extensions using mysqlnd to the specified log ; file. @@ -1362,45 +1327,6 @@ pgsql.ignore_notice = 0 ; http://php.net/pgsql.log-notice pgsql.log_notice = 0 -[Sybase-CT] -; Allow or prevent persistent links. -; http://php.net/sybct.allow-persistent -sybct.allow_persistent = On - -; Maximum number of persistent links. -1 means no limit. -; http://php.net/sybct.max-persistent -sybct.max_persistent = -1 - -; Maximum number of links (persistent + non-persistent). -1 means no limit. -; http://php.net/sybct.max-links -sybct.max_links = -1 - -; Minimum server message severity to display. -; http://php.net/sybct.min-server-severity -sybct.min_server_severity = 10 - -; Minimum client message severity to display. -; http://php.net/sybct.min-client-severity -sybct.min_client_severity = 10 - -; Set per-context timeout -; http://php.net/sybct.timeout -;sybct.timeout= - -;sybct.packet_size - -; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. -; Default: one minute -;sybct.login_timeout= - -; The name of the host you claim to be connecting from, for display by sp_who. -; Default: none -;sybct.hostname= - -; Allows you to define how often deadlocks are to be retried. -1 means "forever". -; Default: 0 -;sybct.deadlock_retry_count= - [bcmath] ; Number of decimal digits for all bcmath functions. ; http://php.net/bcmath.scale @@ -1539,19 +1465,6 @@ session.gc_maxlifetime = 1440 ; http://php.net/session.referer-check session.referer_check = -; How many bytes to read from the file. -; http://php.net/session.entropy-length -;session.entropy_length = 32 - -; Specified here to create the session id. -; http://php.net/session.entropy-file -; Defaults to /dev/urandom -; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom -; If neither are found at compile time, the default is no entropy file. -; On windows, setting the entropy_length setting will activate the -; Windows random source (using the CryptoAPI) -;session.entropy_file = /dev/urandom - ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. ; http://php.net/session.cache-limiter @@ -1573,15 +1486,39 @@ session.cache_expire = 180 ; http://php.net/session.use-trans-sid session.use_trans_sid = 0 -; Select a hash function for use in generating session ids. -; Possible Values -; 0 (MD5 128 bits) -; 1 (SHA-1 160 bits) -; This option may also be set to the name of any hash function supported by -; the hash extension. A list of available hashes is returned by the hash_algos() -; function. -; http://php.net/session.hash-function -session.hash_function = 0 +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute pathes, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" ; Define how many bits are stored in each character when converting ; the binary hash data to something readable. @@ -1593,18 +1530,7 @@ session.hash_function = 0 ; Development Value: 5 ; Production Value: 5 ; http://php.net/session.hash-bits-per-character -session.hash_bits_per_character = 5 - -; The URL rewriter will look for URLs in a defined set of HTML tags. -; form/fieldset are special; if you include them here, the rewriter will -; add a hidden field with the info which is otherwise appended -; to URLs. If you want XHTML conformity, remove the form entry. -; Note that all valid entries require a "=", even if no value follows. -; Default Value: "a=href,area=href,frame=src,form=,fieldset=" -; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" -; http://php.net/url-rewriter.tags -url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" +session.sid_bits_per_character = 5 ; Enable upload progress tracking in $_SESSION ; Default Value: On @@ -1651,64 +1577,31 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" ; http://php.net/session.upload-progress.min-freq ;session.upload_progress.min_freq = "1" -[MSSQL] -; Allow or prevent persistent links. -mssql.allow_persistent = On - -; Maximum number of persistent links. -1 means no limit. -mssql.max_persistent = -1 - -; Maximum number of links (persistent+non persistent). -1 means no limit. -mssql.max_links = -1 - -; Minimum error severity to display. -mssql.min_error_severity = 10 - -; Minimum message severity to display. -mssql.min_message_severity = 10 - -; Compatibility mode with old versions of PHP 3.0. -mssql.compatibility_mode = Off - -; Connect timeout -;mssql.connect_timeout = 5 - -; Query timeout -;mssql.timeout = 60 - -; Valid range 0 - 2147483647. Default = 4096. -;mssql.textlimit = 4096 - -; Valid range 0 - 2147483647. Default = 4096. -;mssql.textsize = 4096 - -; Limits the number of records in each batch. 0 = all records in one batch. -;mssql.batchsize = 0 - -; Specify how datetime and datetim4 columns are returned -; On => Returns data converted to SQL server settings -; Off => Returns values as YYYY-MM-DD hh:mm:ss -;mssql.datetimeconvert = On - -; Use NT authentication when connecting to the server -mssql.secure_connection = Off - -; Specify max number of processes. -1 = library default -; msdlib defaults to 25 -; FreeTDS defaults to 4096 -;mssql.max_procs = -1 - -; Specify client character set. -; If empty or not set the client charset from freetds.conf is used -; This is only used when compiled with FreeTDS -;mssql.charset = "ISO-8859-1" +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On [Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = -1 + ; Assert(expr); active by default. ; http://php.net/assert.active ;assert.active = On -; Issue a PHP warning for each failed assertion. +; Throw an AssertationException on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) ; http://php.net/assert.warning ;assert.warning = On @@ -1752,7 +1645,7 @@ mssql.secure_connection = Off [mbstring] ; language for internal character representation. -; This affects mb_send_mail() and mbstrig.detect_order. +; This affects mb_send_mail() and mbstring.detect_order. ; http://php.net/mbstring.language ;mbstring.language = Japanese @@ -1824,7 +1717,7 @@ mssql.secure_connection = Off ; a gd image. The warning will then be displayed as notices ; disabled by default ; http://php.net/gd.jpeg-ignore-warning -;gd.jpeg_ignore_warning = 0 +;gd.jpeg_ignore_warning = 1 [exif] ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. @@ -1886,36 +1779,25 @@ soap.wsdl_cache_limit = 5 ; Sets the maximum number of open links or -1 for unlimited. ldap.max_links = -1 -[mcrypt] -; For more information about mcrypt settings see http://php.net/mcrypt-module-open - -; Directory where to load mcrypt algorithms -; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) -;mcrypt.algorithms_dir= - -; Directory where to load mcrypt modes -; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) -;mcrypt.modes_dir= - [dba] ;dba.default_handler= [opcache] ; Determines if Zend OPCache is enabled -;opcache.enable=0 +;opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP ;opcache.enable_cli=0 ; The OPcache shared memory storage size. -;opcache.memory_consumption=64 +;opcache.memory_consumption=128 ; The amount of memory for interned strings in Mbytes. -;opcache.interned_strings_buffer=4 +;opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -;opcache.max_accelerated_files=2000 +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 @@ -1942,14 +1824,6 @@ ldap.max_links = -1 ; size of the optimized code. ;opcache.save_comments=1 -; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" -; may be always stored (save_comments=1), but not loaded by applications -; that don't need them anyway. -;opcache.load_comments=1 - -; If enabled, a fast shutdown sequence is used for the accelerated code -;opcache.fast_shutdown=0 - ; Allow file existence override (file_exists, etc.) performance feature. ;opcache.enable_file_override=0 @@ -1996,11 +1870,45 @@ ldap.max_links = -1 ; Useful for internal debugging only. ;opcache.protect_memory=0 +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=1 + ; Validate cached file permissions. -; opcache.validate_permission=0 +;opcache.validate_permission=0 ; Prevent name collisions in chroot'ed environment. -; opcache.validate_root=0 +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an @@ -2027,4 +1935,4 @@ ldap.max_links = -1 ; Local Variables: ; tab-width: 4 -; End: \ No newline at end of file +; End: diff --git a/7/orig/php-7.3.ini-development b/7/orig/php-7.3.ini-development new file mode 100644 index 00000000..320cf170 --- /dev/null +++ b/7/orig/php-7.3.ini-development @@ -0,0 +1,1942 @@ +[PHP] + +;;;;;;;;;;;;;;;;;;; +; About php.ini ; +;;;;;;;;;;;;;;;;;;; +; PHP's initialization file, generally called php.ini, is responsible for +; configuring many of the aspects of PHP's behavior. + +; PHP attempts to find and load this configuration from a number of locations. +; The following is a summary of its search order: +; 1. SAPI module specific location. +; 2. The PHPRC environment variable. (As of PHP 5.2.0) +; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) +; 4. Current working directory (except CLI) +; 5. The web server's directory (for SAPI modules), or directory of PHP +; (otherwise in Windows) +; 6. The directory from the --with-config-file-path compile time option, or the +; Windows directory (usually C:\windows) +; See the PHP docs for more specific information. +; http://php.net/configuration.file + +; The syntax of the file is extremely simple. Whitespace and lines +; beginning with a semicolon are silently ignored (as you probably guessed). +; Section headers (e.g. [Foo]) are also silently ignored, even though +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served from www.example.com. Directives set in these +; special sections cannot be overridden by user-defined INI files or +; at runtime. Currently, [PATH=] and [HOST=] sections only work under +; CGI/FastCGI. +; http://php.net/ini.sections + +; Directives are specified using the following syntax: +; directive = value +; Directive names are *case sensitive* - foo=bar is different from FOO=bar. +; Directives are variables used to configure PHP or PHP extensions. +; There is no name validation. If PHP can't find an expected +; directive because it is not set or is mistyped, a default value will be used. + +; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one +; of the INI constants (On, Off, True, False, Yes, No and None) or an expression +; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a +; previously set variable or directive (e.g. ${foo}) + +; Expressions in the INI file are limited to bitwise operators and parentheses: +; | bitwise OR +; ^ bitwise XOR +; & bitwise AND +; ~ bitwise NOT +; ! boolean NOT + +; Boolean flags can be turned on using the values 1, On, True or Yes. +; They can be turned off using the values 0, Off, False or No. + +; An empty string can be denoted by simply not writing anything after the equal +; sign, or by using the None keyword: + +; foo = ; sets foo to an empty string +; foo = None ; sets foo to an empty string +; foo = "None" ; sets foo to the string 'None' + +; If you use constants in your value, and these constants belong to a +; dynamically loaded extension (either a PHP extension or a Zend extension), +; you may only use these constants *after* the line that loads the extension. + +;;;;;;;;;;;;;;;;;;; +; About this file ; +;;;;;;;;;;;;;;;;;;; +; PHP comes packaged with two INI files. One that is recommended to be used +; in production environments and one that is recommended to be used in +; development environments. + +; php.ini-production contains settings which hold security, performance and +; best practices at its core. But please be aware, these settings may break +; compatibility with older or less security conscience applications. We +; recommending using the production ini in production and testing environments. + +; php.ini-development is very similar to its production variant, except it is +; much more verbose when it comes to errors. We recommend using the +; development version only in development environments, as errors shown to +; application users can inadvertently leak otherwise secure information. + +; This is the php.ini-development INI file. + +;;;;;;;;;;;;;;;;;;; +; Quick Reference ; +;;;;;;;;;;;;;;;;;;; +; The following are all the settings which are different in either the production +; or development versions of the INIs with respect to PHP's default behavior. +; Please see the actual settings later in the document for more details as to why +; we recommend these changes in PHP's behavior. + +; display_errors +; Default Value: On +; Development Value: On +; Production Value: Off + +; display_startup_errors +; Default Value: Off +; Development Value: On +; Production Value: Off + +; error_reporting +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT + +; html_errors +; Default Value: On +; Development Value: On +; Production value: On + +; log_errors +; Default Value: Off +; Development Value: On +; Production Value: On + +; max_input_time +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) + +; output_buffering +; Default Value: Off +; Development Value: 4096 +; Production Value: 4096 + +; register_argc_argv +; Default Value: On +; Development Value: Off +; Production Value: Off + +; request_order +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" + +; session.gc_divisor +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 + +; session.sid_bits_per_character +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 + +; short_open_tag +; Default Value: On +; Development Value: Off +; Production Value: Off + +; variables_order +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS" + +;;;;;;;;;;;;;;;;;;;; +; php.ini Options ; +;;;;;;;;;;;;;;;;;;;; +; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" +;user_ini.filename = ".user.ini" + +; To disable this feature set this option to an empty value +;user_ini.filename = + +; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) +;user_ini.cache_ttl = 300 + +;;;;;;;;;;;;;;;;;;;; +; Language Options ; +;;;;;;;;;;;;;;;;;;;; + +; Enable the PHP scripting language engine under Apache. +; http://php.net/engine +engine = On + +; This directive determines whether or not PHP will recognize code between +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the would work. +; http://php.net/syntax-highlighting +;highlight.string = #DD0000 +;highlight.comment = #FF9900 +;highlight.keyword = #007700 +;highlight.default = #0000BB +;highlight.html = #000000 + +; If enabled, the request will be allowed to complete even if the user aborts +; the request. Consider enabling it if executing long requests, which may end up +; being interrupted by the user or a browser timing out. PHP's default behavior +; is to disable this feature. +; http://php.net/ignore-user-abort +;ignore_user_abort = On + +; Determines the size of the realpath cache to be used by PHP. This value should +; be increased on systems where PHP opens many files to reflect the quantity of +; the file operations performed. +; Note: if open_basedir is set, the cache is disabled +; http://php.net/realpath-cache-size +;realpath_cache_size = 4096k + +; Duration of time, in seconds for which to cache realpath information for a given +; file or directory. For systems with rarely changing files, consider increasing this +; value. +; http://php.net/realpath-cache-ttl +;realpath_cache_ttl = 120 + +; Enables or disables the circular reference collector. +; http://php.net/zend.enable-gc +zend.enable_gc = On + +; If enabled, scripts may be written in encodings that are incompatible with +; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such +; encodings. To use this feature, mbstring extension must be enabled. +; Default: Off +;zend.multibyte = Off + +; Allows to set the default encoding for the scripts. This value will be used +; unless "declare(encoding=...)" directive appears at the top of the script. +; Only affects if zend.multibyte is set. +; Default: "" +;zend.script_encoding = + +;;;;;;;;;;;;;;;;; +; Miscellaneous ; +;;;;;;;;;;;;;;;;; + +; Decides whether PHP may expose the fact that it is installed on the server +; (e.g. by adding its signature to the Web server header). It is no security +; threat in any way, but it makes it possible to determine whether you use PHP +; on your server or not. +; http://php.net/expose-php +expose_php = On + +;;;;;;;;;;;;;;;;;;; +; Resource Limits ; +;;;;;;;;;;;;;;;;;;; + +; Maximum execution time of each script, in seconds +; http://php.net/max-execution-time +; Note: This directive is hardcoded to 0 for the CLI SAPI +max_execution_time = 30 + +; Maximum amount of time each script may spend parsing request data. It's a good +; idea to limit this time on productions servers in order to eliminate unexpectedly +; long running scripts. +; Note: This directive is hardcoded to -1 for the CLI SAPI +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) +; http://php.net/max-input-time +max_input_time = 60 + +; Maximum input variable nesting level +; http://php.net/max-input-nesting-level +;max_input_nesting_level = 64 + +; How many GET/POST/COOKIE input variables may be accepted +;max_input_vars = 1000 + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Error handling and logging ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. The recommended way of setting values for this +; directive is through the use of the error level constants and bitwise +; operators. The error level constants are below here for convenience as well as +; some common settings and their meanings. +; By default, PHP is set to take action on all errors, notices and warnings EXCEPT +; those related to E_NOTICE and E_STRICT, which together cover best practices and +; recommended coding standards in PHP. For performance reasons, this is the +; recommend error reporting setting. Your production server shouldn't be wasting +; resources complaining about best practices and coding standards. That's what +; development servers and development settings are for. +; Note: The php.ini-development file has this setting as E_ALL. This +; means it pretty much reports everything which is exactly what you want during +; development and early testing. +; +; Error Level Constants: +; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) +; E_ERROR - fatal run-time errors +; E_RECOVERABLE_ERROR - almost fatal run-time errors +; E_WARNING - run-time warnings (non-fatal errors) +; E_PARSE - compile-time parse errors +; E_NOTICE - run-time notices (these are warnings which often result +; from a bug in your code, but it's possible that it was +; intentional (e.g., using an uninitialized variable and +; relying on the fact it is automatically initialized to an +; empty string) +; E_STRICT - run-time notices, enable to have PHP suggest changes +; to your code which will ensure the best interoperability +; and forward compatibility of your code +; E_CORE_ERROR - fatal errors that occur during PHP's initial startup +; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's +; initial startup +; E_COMPILE_ERROR - fatal compile-time errors +; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) +; E_USER_ERROR - user-generated error message +; E_USER_WARNING - user-generated warning message +; E_USER_NOTICE - user-generated notice message +; E_DEPRECATED - warn about code that will not work in future versions +; of PHP +; E_USER_DEPRECATED - user-generated deprecation warnings +; +; Common Values: +; E_ALL (Show all errors, warnings and notices including coding standards.) +; E_ALL & ~E_NOTICE (Show all errors, except for notices) +; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) +; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT +; http://php.net/error-reporting +error_reporting = E_ALL + +; This directive controls whether or not and where PHP will output errors, +; notices and warnings too. Error output is very useful during development, but +; it could be very dangerous in production environments. Depending on the code +; which is triggering the error, sensitive information could potentially leak +; out of your application such as database usernames and passwords or worse. +; For production environments, we recommend logging errors rather than +; sending them to STDOUT. +; Possible Values: +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; On or stdout = Display errors to STDOUT +; Default Value: On +; Development Value: On +; Production Value: Off +; http://php.net/display-errors +display_errors = On + +; The display of errors which occur during PHP's startup sequence are handled +; separately from display_errors. PHP's default behavior is to suppress those +; errors from clients. Turning the display of startup errors on can be useful in +; debugging configuration problems. We strongly recommend you +; set this to 'off' for production servers. +; Default Value: Off +; Development Value: On +; Production Value: Off +; http://php.net/display-startup-errors +display_startup_errors = On + +; Besides displaying errors, PHP can also log errors to locations such as a +; server-specific log, STDERR, or a location specified by the error_log +; directive found below. While errors should not be displayed on productions +; servers they should still be monitored and logging is a great way to do that. +; Default Value: Off +; Development Value: On +; Production Value: On +; http://php.net/log-errors +log_errors = On + +; Set maximum length of log_errors. In error_log information about the source is +; added. The default is 1024 and 0 allows to not apply any maximum length at all. +; http://php.net/log-errors-max-len +log_errors_max_len = 1024 + +; Do not log repeated messages. Repeated errors must occur in same file on same +; line unless ignore_repeated_source is set true. +; http://php.net/ignore-repeated-errors +ignore_repeated_errors = Off + +; Ignore source of message when ignoring repeated messages. When this setting +; is On you will not log errors with repeated messages from different files or +; source lines. +; http://php.net/ignore-repeated-source +ignore_repeated_source = Off + +; If this parameter is set to Off, then memory leaks will not be shown (on +; stdout or in the log). This has only effect in a debug compile, and if +; error reporting includes E_WARNING in the allowed list +; http://php.net/report-memleaks +report_memleaks = On + +; This setting is on by default. +;report_zend_debug = 0 + +; Store the last error/warning message in $php_errormsg (boolean). +; This directive is DEPRECATED. +; Default Value: Off +; Development Value: Off +; Production Value: Off +; http://php.net/track-errors +;track_errors = Off + +; Turn off normal error reporting and emit XML-RPC error XML +; http://php.net/xmlrpc-errors +;xmlrpc_errors = 0 + +; An XML-RPC faultCode +;xmlrpc_error_number = 0 + +; When PHP displays or logs an error, it has the capability of formatting the +; error message as HTML for easier reading. This directive controls whether +; the error message is formatted as HTML or not. +; Note: This directive is hardcoded to Off for the CLI SAPI +; Default Value: On +; Development Value: On +; Production value: On +; http://php.net/html-errors +html_errors = On + +; If html_errors is set to On *and* docref_root is not empty, then PHP +; produces clickable error messages that direct to a page describing the error +; or function causing the error in detail. +; You can download a copy of the PHP manual from http://php.net/docs +; and change docref_root to the base URL of your local copy including the +; leading '/'. You must also specify the file extension being used including +; the dot. PHP's default behavior is to leave these settings empty, in which +; case no links to documentation are generated. +; Note: Never use this feature for production boxes. +; http://php.net/docref-root +; Examples +;docref_root = "/phpmanual/" + +; http://php.net/docref-ext +;docref_ext = .html + +; String to output before an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-prepend-string +; Example: +;error_prepend_string = "" + +; String to output after an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-append-string +; Example: +;error_append_string = "" + +; Log errors to specified file. PHP's default behavior is to leave this value +; empty. +; http://php.net/error-log +; Example: +;error_log = php_errors.log +; Log errors to syslog (Event Log on Windows). +;error_log = syslog + +; The syslog ident is a string which is prepended to every message logged +; to syslog. Only used when error_log is set to syslog. +;syslog.ident = php + +; The syslog facility is used to specify what type of program is logging +; the message. Only used when error_log is set to syslog. +;syslog.facility = user + +; Set this to disable filtering control characters (the default). +; Some loggers only accept NVT-ASCII, others accept anything that's not +; control characters. If your logger accepts everything, then no filtering +; is needed at all. +; Allowed values are: +; ascii (all printable ASCII characters and NL) +; no-ctrl (all characters except control characters) +; all (all characters) +; http://php.net/syslog.filter +;syslog.filter = ascii + +;windows.show_crt_warning +; Default value: 0 +; Development value: 0 +; Production value: 0 + +;;;;;;;;;;;;;;;;; +; Data Handling ; +;;;;;;;;;;;;;;;;; + +; The separator used in PHP generated URLs to separate arguments. +; PHP's default setting is "&". +; http://php.net/arg-separator.output +; Example: +;arg_separator.output = "&" + +; List of separator(s) used by PHP to parse input URLs into variables. +; PHP's default setting is "&". +; NOTE: Every character in this directive is considered as separator! +; http://php.net/arg-separator.input +; Example: +;arg_separator.input = ";&" + +; This directive determines which super global arrays are registered when PHP +; starts up. G,P,C,E & S are abbreviations for the following respective super +; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty +; paid for the registration of these arrays and because ENV is not as commonly +; used as the others, ENV is not recommended on productions servers. You +; can still get access to the environment variables through getenv() should you +; need to. +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS"; +; http://php.net/variables-order +variables_order = "GPCS" + +; This directive determines which super global data (G,P & C) should be +; registered into the super global array REQUEST. If so, it also determines +; the order in which that data is registered. The values for this directive +; are specified in the same manner as the variables_order directive, +; EXCEPT one. Leaving this value empty will cause PHP to use the value set +; in the variables_order directive. It does not mean it will leave the super +; globals array REQUEST empty. +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" +; http://php.net/request-order +request_order = "GP" + +; This directive determines whether PHP registers $argv & $argc each time it +; runs. $argv contains an array of all the arguments passed to PHP when a script +; is invoked. $argc contains an integer representing the number of arguments +; that were passed when the script was invoked. These arrays are extremely +; useful when running scripts from the command line. When this directive is +; enabled, registering these variables consumes CPU cycles and memory each time +; a script is executed. For performance reasons, this feature should be disabled +; on production servers. +; Note: This directive is hardcoded to On for the CLI SAPI +; Default Value: On +; Development Value: Off +; Production Value: Off +; http://php.net/register-argc-argv +register_argc_argv = Off + +; When enabled, the ENV, REQUEST and SERVER variables are created when they're +; first used (Just In Time) instead of when the script starts. If these +; variables are not used within a script, having this directive on will result +; in a performance gain. The PHP directive register_argc_argv must be disabled +; for this directive to have any affect. +; http://php.net/auto-globals-jit +auto_globals_jit = On + +; Whether PHP will read the POST data. +; This option is enabled by default. +; Most likely, you won't want to disable this option globally. It causes $_POST +; and $_FILES to always be empty; the only way you will be able to read the +; POST data will be through the php://input stream wrapper. This can be useful +; to proxy requests or to process the POST data in a memory efficient fashion. +; http://php.net/enable-post-data-reading +;enable_post_data_reading = Off + +; Maximum size of POST data that PHP will accept. +; Its value may be 0 to disable the limit. It is ignored if POST data reading +; is disabled through enable_post_data_reading. +; http://php.net/post-max-size +post_max_size = 8M + +; Automatically add files before PHP document. +; http://php.net/auto-prepend-file +auto_prepend_file = + +; Automatically add files after PHP document. +; http://php.net/auto-append-file +auto_append_file = + +; By default, PHP will output a media type using the Content-Type header. To +; disable this, simply set it to be empty. +; +; PHP's built-in default media type is set to text/html. +; http://php.net/default-mimetype +default_mimetype = "text/html" + +; PHP's default character set is set to UTF-8. +; http://php.net/default-charset +default_charset = "UTF-8" + +; PHP internal character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/internal-encoding +;internal_encoding = + +; PHP input character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/input-encoding +;input_encoding = + +; PHP output character encoding is set to empty. +; If empty, default_charset is used. +; See also output_buffer. +; http://php.net/output-encoding +;output_encoding = + +;;;;;;;;;;;;;;;;;;;;;;;;; +; Paths and Directories ; +;;;;;;;;;;;;;;;;;;;;;;;;; + +; UNIX: "/path1:/path2" +;include_path = ".:/php/includes" +; +; Windows: "\path1;\path2" +;include_path = ".;c:\php\includes" +; +; PHP's default setting for include_path is ".;/path/to/php/pear" +; http://php.net/include-path + +; The root of the PHP pages, used only if nonempty. +; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root +; if you are running php as a CGI under any web server (other than IIS) +; see documentation for security issues. The alternate is to use the +; cgi.force_redirect configuration below +; http://php.net/doc-root +doc_root = + +; The directory under which PHP opens the script using /~username used only +; if nonempty. +; http://php.net/user-dir +user_dir = + +; Directory in which the loadable extensions (modules) reside. +; http://php.net/extension-dir +;extension_dir = "./" +; On windows: +;extension_dir = "ext" + +; Directory where the temporary files should be placed. +; Defaults to the system default (see sys_get_temp_dir) +;sys_temp_dir = "/tmp" + +; Whether or not to enable the dl() function. The dl() function does NOT work +; properly in multithreaded servers, such as IIS or Zeus, and is automatically +; disabled on them. +; http://php.net/enable-dl +enable_dl = Off + +; cgi.force_redirect is necessary to provide security running PHP as a CGI under +; most web servers. Left undefined, PHP turns this on by default. You can +; turn it off here AT YOUR OWN RISK +; **You CAN safely turn this off for IIS, in fact, you MUST.** +; http://php.net/cgi.force-redirect +;cgi.force_redirect = 1 + +; if cgi.nph is enabled it will force cgi to always sent Status: 200 with +; every request. PHP's default behavior is to disable this feature. +;cgi.nph = 1 + +; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape +; (iPlanet) web servers, you MAY need to set an environment variable name that PHP +; will look for to know it is OK to continue execution. Setting this variable MAY +; cause security issues, KNOW WHAT YOU ARE DOING FIRST. +; http://php.net/cgi.redirect-status-env +;cgi.redirect_status_env = + +; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's +; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok +; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting +; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting +; of zero causes PHP to behave as before. Default is 1. You should fix your scripts +; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. +; http://php.net/cgi.fix-pathinfo +;cgi.fix_pathinfo=1 + +; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside +; of the web tree and people will not be able to circumvent .htaccess security. +;cgi.discard_path=1 + +; FastCGI under IIS supports the ability to impersonate +; security tokens of the calling client. This allows IIS to define the +; security context that the request runs under. mod_fastcgi under Apache +; does not currently support this feature (03/17/2002) +; Set to 1 if running under IIS. Default is zero. +; http://php.net/fastcgi.impersonate +;fastcgi.impersonate = 1 + +; Disable logging through FastCGI connection. PHP's default behavior is to enable +; this feature. +;fastcgi.logging = 0 + +; cgi.rfc2616_headers configuration option tells PHP what type of headers to +; use when sending HTTP response code. If set to 0, PHP sends Status: header that +; is supported by Apache. When this option is set to 1, PHP will send +; RFC2616 compliant header. +; Default is zero. +; http://php.net/cgi.rfc2616-headers +;cgi.rfc2616_headers = 0 + +; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! +; (shebang) at the top of the running script. This line might be needed if the +; script support running both as stand-alone script and via PHP CGI<. PHP in CGI +; mode skips this line and ignores its content if this directive is turned on. +; http://php.net/cgi.check-shebang-line +;cgi.check_shebang_line=1 + +;;;;;;;;;;;;;;;; +; File Uploads ; +;;;;;;;;;;;;;;;; + +; Whether to allow HTTP file uploads. +; http://php.net/file-uploads +file_uploads = On + +; Temporary directory for HTTP uploaded files (will use system default if not +; specified). +; http://php.net/upload-tmp-dir +;upload_tmp_dir = + +; Maximum allowed size for uploaded files. +; http://php.net/upload-max-filesize +upload_max_filesize = 2M + +; Maximum number of files that can be uploaded via a single request +max_file_uploads = 20 + +;;;;;;;;;;;;;;;;;; +; Fopen wrappers ; +;;;;;;;;;;;;;;;;;; + +; Whether to allow the treatment of URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-fopen +allow_url_fopen = On + +; Whether to allow include/require to open URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-include +allow_url_include = Off + +; Define the anonymous ftp password (your email address). PHP's default setting +; for this is empty. +; http://php.net/from +;from="john@doe.com" + +; Define the User-Agent string. PHP's default setting for this is empty. +; http://php.net/user-agent +;user_agent="PHP" + +; Default timeout for socket based streams (seconds) +; http://php.net/default-socket-timeout +default_socket_timeout = 60 + +; If your scripts have to deal with files from Macintosh systems, +; or you are running on a Mac and need to deal with files from +; unix or win32 systems, setting this flag will cause PHP to +; automatically detect the EOL character in those files so that +; fgets() and file() will work regardless of the source of the file. +; http://php.net/auto-detect-line-endings +;auto_detect_line_endings = Off + +;;;;;;;;;;;;;;;;;;;;;; +; Dynamic Extensions ; +;;;;;;;;;;;;;;;;;;;;;; + +; If you wish to have an extension loaded automatically, use the following +; syntax: +; +; extension=modulename +; +; For example: +; +; extension=mysqli +; +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: +; +; extension=/path/to/extension/mysqli.so +; +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. +; +; Notes for Windows environments : +; +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. +; +;extension=bz2 +;extension=curl +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=interbase +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop + +; The MIBS data available in the PHP distribution must be installed. +; See http://www.php.net/manual/en/snmp.installation.php +;extension=snmp + +;extension=soap +;extension=sockets +;extension=sodium +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl + +;;;;;;;;;;;;;;;;;;; +; Module Settings ; +;;;;;;;;;;;;;;;;;;; + +[CLI Server] +; Whether the CLI web server uses ANSI color coding in its terminal output. +cli_server.color = On + +[Date] +; Defines the default timezone used by the date functions +; http://php.net/date.timezone +;date.timezone = + +; http://php.net/date.default-latitude +;date.default_latitude = 31.7667 + +; http://php.net/date.default-longitude +;date.default_longitude = 35.2333 + +; http://php.net/date.sunrise-zenith +;date.sunrise_zenith = 90.583333 + +; http://php.net/date.sunset-zenith +;date.sunset_zenith = 90.583333 + +[filter] +; http://php.net/filter.default +;filter.default = unsafe_raw + +; http://php.net/filter.default-flags +;filter.default_flags = + +[iconv] +; Use of this INI entry is deprecated, use global input_encoding instead. +; If empty, default_charset or input_encoding or iconv.input_encoding is used. +; The precedence is: default_charset < input_encoding < iconv.input_encoding +;iconv.input_encoding = + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;iconv.internal_encoding = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; If empty, default_charset or output_encoding or iconv.output_encoding is used. +; The precedence is: default_charset < output_encoding < iconv.output_encoding +; To use an output encoding conversion, iconv's output handler must be set +; otherwise output encoding conversion cannot be performed. +;iconv.output_encoding = + +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + +[intl] +;intl.default_locale = +; This directive allows you to produce PHP errors when some error +; happens within intl functions. The value is the level of the error produced. +; Default is 0, which does not produce any errors. +;intl.error_level = E_WARNING +;intl.use_exceptions = 0 + +[sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir +;sqlite3.extension_dir = + +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + +[Pcre] +; PCRE library backtracking limit. +; http://php.net/pcre.backtrack-limit +;pcre.backtrack_limit=100000 + +; PCRE library recursion limit. +; Please note that if you set this value to a high number you may consume all +; the available process stack and eventually crash PHP (due to reaching the +; stack size limit imposed by the Operating System). +; http://php.net/pcre.recursion-limit +;pcre.recursion_limit=100000 + +; Enables or disables JIT compilation of patterns. This requires the PCRE +; library to be compiled with JIT support. +;pcre.jit=1 + +[Pdo] +; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" +; http://php.net/pdo-odbc.connection-pooling +;pdo_odbc.connection_pooling=strict + +;pdo_odbc.db2_instance_name + +[Pdo_mysql] +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +pdo_mysql.default_socket= + +[Phar] +; http://php.net/phar.readonly +;phar.readonly = On + +; http://php.net/phar.require-hash +;phar.require_hash = On + +;phar.cache_list = + +[mail function] +; For Win32 only. +; http://php.net/smtp +SMTP = localhost +; http://php.net/smtp-port +smtp_port = 25 + +; For Win32 only. +; http://php.net/sendmail-from +;sendmail_from = me@example.com + +; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). +; http://php.net/sendmail-path +;sendmail_path = + +; Force the addition of the specified parameters to be passed as extra parameters +; to the sendmail binary. These parameters will always replace the value of +; the 5th parameter to mail(). +;mail.force_extra_parameters = + +; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename +mail.add_x_header = Off + +; The path to a log file that will log all mail() calls. Log entries include +; the full path of the script, line number, To address and headers. +;mail.log = +; Log mail to syslog (Event Log on Windows). +;mail.log = syslog + +[ODBC] +; http://php.net/odbc.default-db +;odbc.default_db = Not yet implemented + +; http://php.net/odbc.default-user +;odbc.default_user = Not yet implemented + +; http://php.net/odbc.default-pw +;odbc.default_pw = Not yet implemented + +; Controls the ODBC cursor model. +; Default: SQL_CURSOR_STATIC (default). +;odbc.default_cursortype + +; Allow or prevent persistent links. +; http://php.net/odbc.allow-persistent +odbc.allow_persistent = On + +; Check that a connection is still valid before reuse. +; http://php.net/odbc.check-persistent +odbc.check_persistent = On + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/odbc.max-persistent +odbc.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +; http://php.net/odbc.max-links +odbc.max_links = -1 + +; Handling of LONG fields. Returns number of bytes to variables. 0 means +; passthru. +; http://php.net/odbc.defaultlrl +odbc.defaultlrl = 4096 + +; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. +; See the documentation on odbc_binmode and odbc_longreadlen for an explanation +; of odbc.defaultlrl and odbc.defaultbinmode +; http://php.net/odbc.defaultbinmode +odbc.defaultbinmode = 1 + +[Interbase] +; Allow or prevent persistent links. +ibase.allow_persistent = 1 + +; Maximum number of persistent links. -1 means no limit. +ibase.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +ibase.max_links = -1 + +; Default database name for ibase_connect(). +;ibase.default_db = + +; Default username for ibase_connect(). +;ibase.default_user = + +; Default password for ibase_connect(). +;ibase.default_password = + +; Default charset for ibase_connect(). +;ibase.default_charset = + +; Default timestamp format. +ibase.timestampformat = "%Y-%m-%d %H:%M:%S" + +; Default date format. +ibase.dateformat = "%Y-%m-%d" + +; Default time format. +ibase.timeformat = "%H:%M:%S" + +[MySQLi] + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/mysqli.max-persistent +mysqli.max_persistent = -1 + +; Allow accessing, from PHP's perspective, local files with LOAD DATA statements +; http://php.net/mysqli.allow_local_infile +;mysqli.allow_local_infile = On + +; Allow or prevent persistent links. +; http://php.net/mysqli.allow-persistent +mysqli.allow_persistent = On + +; Maximum number of links. -1 means no limit. +; http://php.net/mysqli.max-links +mysqli.max_links = -1 + +; Default port number for mysqli_connect(). If unset, mysqli_connect() will use +; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the +; compile-time value defined MYSQL_PORT (in that order). Win32 will only look +; at MYSQL_PORT. +; http://php.net/mysqli.default-port +mysqli.default_port = 3306 + +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +; http://php.net/mysqli.default-socket +mysqli.default_socket = + +; Default host for mysql_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-host +mysqli.default_host = + +; Default user for mysql_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-user +mysqli.default_user = + +; Default password for mysqli_connect() (doesn't apply in safe mode). +; Note that this is generally a *bad* idea to store passwords in this file. +; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") +; and reveal this password! And of course, any users with read access to this +; file will be able to reveal the password as well. +; http://php.net/mysqli.default-pw +mysqli.default_pw = + +; Allow or prevent reconnect +mysqli.reconnect = Off + +[mysqlnd] +; Enable / Disable collection of general statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_statistics = On + +; Enable / Disable collection of memory usage statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_memory_statistics = On + +; Records communication from all extensions using mysqlnd to the specified log +; file. +; http://php.net/mysqlnd.debug +;mysqlnd.debug = + +; Defines which queries will be logged. +;mysqlnd.log_mask = 0 + +; Default size of the mysqlnd memory pool, which is used by result sets. +;mysqlnd.mempool_default_size = 16000 + +; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. +;mysqlnd.net_cmd_buffer_size = 2048 + +; Size of a pre-allocated buffer used for reading data sent by the server in +; bytes. +;mysqlnd.net_read_buffer_size = 32768 + +; Timeout for network requests in seconds. +;mysqlnd.net_read_timeout = 31536000 + +; SHA-256 Authentication Plugin related. File with the MySQL server public RSA +; key. +;mysqlnd.sha256_server_public_key = + +[OCI8] + +; Connection: Enables privileged connections using external +; credentials (OCI_SYSOPER, OCI_SYSDBA) +; http://php.net/oci8.privileged-connect +;oci8.privileged_connect = Off + +; Connection: The maximum number of persistent OCI8 connections per +; process. Using -1 means no limit. +; http://php.net/oci8.max-persistent +;oci8.max_persistent = -1 + +; Connection: The maximum number of seconds a process is allowed to +; maintain an idle persistent connection. Using -1 means idle +; persistent connections will be maintained forever. +; http://php.net/oci8.persistent-timeout +;oci8.persistent_timeout = -1 + +; Connection: The number of seconds that must pass before issuing a +; ping during oci_pconnect() to check the connection validity. When +; set to 0, each oci_pconnect() will cause a ping. Using -1 disables +; pings completely. +; http://php.net/oci8.ping-interval +;oci8.ping_interval = 60 + +; Connection: Set this to a user chosen connection class to be used +; for all pooled server requests with Oracle 11g Database Resident +; Connection Pooling (DRCP). To use DRCP, this value should be set to +; the same string for all web servers running the same application, +; the database pool must be configured, and the connection string must +; specify to use a pooled server. +;oci8.connection_class = + +; High Availability: Using On lets PHP receive Fast Application +; Notification (FAN) events generated when a database node fails. The +; database must also be configured to post FAN events. +;oci8.events = Off + +; Tuning: This option enables statement caching, and specifies how +; many statements to cache. Using 0 disables statement caching. +; http://php.net/oci8.statement-cache-size +;oci8.statement_cache_size = 20 + +; Tuning: Enables statement prefetching and sets the default number of +; rows that will be fetched automatically after statement execution. +; http://php.net/oci8.default-prefetch +;oci8.default_prefetch = 100 + +; Compatibility. Using On means oci_close() will not close +; oci_connect() and oci_new_connect() connections. +; http://php.net/oci8.old-oci-close-semantics +;oci8.old_oci_close_semantics = Off + +[PostgreSQL] +; Allow or prevent persistent links. +; http://php.net/pgsql.allow-persistent +pgsql.allow_persistent = On + +; Detect broken persistent links always with pg_pconnect(). +; Auto reset feature requires a little overheads. +; http://php.net/pgsql.auto-reset-persistent +pgsql.auto_reset_persistent = Off + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/pgsql.max-persistent +pgsql.max_persistent = -1 + +; Maximum number of links (persistent+non persistent). -1 means no limit. +; http://php.net/pgsql.max-links +pgsql.max_links = -1 + +; Ignore PostgreSQL backends Notice message or not. +; Notice message logging require a little overheads. +; http://php.net/pgsql.ignore-notice +pgsql.ignore_notice = 0 + +; Log PostgreSQL backends Notice message or not. +; Unless pgsql.ignore_notice=0, module cannot log notice message. +; http://php.net/pgsql.log-notice +pgsql.log_notice = 0 + +[bcmath] +; Number of decimal digits for all bcmath functions. +; http://php.net/bcmath.scale +bcmath.scale = 0 + +[browscap] +; http://php.net/browscap +;browscap = extra/browscap.ini + +[Session] +; Handler used to store/retrieve data. +; http://php.net/session.save-handler +session.save_handler = files + +; Argument passed to save_handler. In the case of files, this is the path +; where data files are stored. Note: Windows users have to change this +; variable in order to use PHP's session functions. +; +; The path can be defined as: +; +; session.save_path = "N;/path" +; +; where N is an integer. Instead of storing all the session files in +; /path, what this will do is use subdirectories N-levels deep, and +; store the session data in those directories. This is useful if +; your OS has problems with many files in one directory, and is +; a more efficient layout for servers that handle many sessions. +; +; NOTE 1: PHP will not create this directory structure automatically. +; You can use the script in the ext/session dir for that purpose. +; NOTE 2: See the section on garbage collection below if you choose to +; use subdirectories for session storage +; +; The file storage module creates files using mode 600 by default. +; You can change that by using +; +; session.save_path = "N;MODE;/path" +; +; where MODE is the octal representation of the mode. Note that this +; does not overwrite the process's umask. +; http://php.net/session.save-path +;session.save_path = "/tmp" + +; Whether to use strict session mode. +; Strict session mode does not accept an uninitialized session ID, and +; regenerates the session ID if the browser sends an uninitialized session ID. +; Strict mode protects applications from session fixation via a session adoption +; vulnerability. It is disabled by default for maximum compatibility, but +; enabling it is encouraged. +; https://wiki.php.net/rfc/strict_sessions +session.use_strict_mode = 0 + +; Whether to use cookies. +; http://php.net/session.use-cookies +session.use_cookies = 1 + +; http://php.net/session.cookie-secure +;session.cookie_secure = + +; This option forces PHP to fetch and use a cookie for storing and maintaining +; the session id. We encourage this operation as it's very helpful in combating +; session hijacking when not specifying and managing your own session id. It is +; not the be-all and end-all of session hijacking defense, but it's a good start. +; http://php.net/session.use-only-cookies +session.use_only_cookies = 1 + +; Name of the session (used as cookie name). +; http://php.net/session.name +session.name = PHPSESSID + +; Initialize session on request startup. +; http://php.net/session.auto-start +session.auto_start = 0 + +; Lifetime in seconds of cookie or, if 0, until browser is restarted. +; http://php.net/session.cookie-lifetime +session.cookie_lifetime = 0 + +; The path for which the cookie is valid. +; http://php.net/session.cookie-path +session.cookie_path = / + +; The domain for which the cookie is valid. +; http://php.net/session.cookie-domain +session.cookie_domain = + +; Whether or not to add the httpOnly flag to the cookie, which makes it +; inaccessible to browser scripting languages such as JavaScript. +; http://php.net/session.cookie-httponly +session.cookie_httponly = + +; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) +; Current valid values are "Lax" or "Strict" +; https://tools.ietf.org/html/draft-west-first-party-cookies-07 +session.cookie_samesite = + +; Handler used to serialize data. php is the standard serializer of PHP. +; http://php.net/session.serialize-handler +session.serialize_handler = php + +; Defines the probability that the 'garbage collection' process is started +; on every session initialization. The probability is calculated by using +; gc_probability/gc_divisor. Where session.gc_probability is the numerator +; and gc_divisor is the denominator in the equation. Setting this value to 1 +; when the session.gc_divisor value is 100 will give you approximately a 1% chance +; the gc will run on any given request. +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.gc-probability +session.gc_probability = 1 + +; Defines the probability that the 'garbage collection' process is started on every +; session initialization. The probability is calculated by using the following equation: +; gc_probability/gc_divisor. Where session.gc_probability is the numerator and +; session.gc_divisor is the denominator in the equation. Setting this value to 100 +; when the session.gc_probability value is 1 will give you approximately a 1% chance +; the gc will run on any given request. Increasing this value to 1000 will give you +; a 0.1% chance the gc will run on any given request. For high volume production servers, +; this is a more efficient approach. +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 +; http://php.net/session.gc-divisor +session.gc_divisor = 1000 + +; After this number of seconds, stored data will be seen as 'garbage' and +; cleaned up by the garbage collection process. +; http://php.net/session.gc-maxlifetime +session.gc_maxlifetime = 1440 + +; NOTE: If you are using the subdirectory option for storing session files +; (see session.save_path above), then garbage collection does *not* +; happen automatically. You will need to do your own garbage +; collection through a shell script, cron entry, or some other method. +; For example, the following script would is the equivalent of +; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): +; find /path/to/sessions -cmin +24 -type f | xargs rm + +; Check HTTP Referer to invalidate externally stored URLs containing ids. +; HTTP_REFERER has to contain this substring for the session to be +; considered as valid. +; http://php.net/session.referer-check +session.referer_check = + +; Set to {nocache,private,public,} to determine HTTP caching aspects +; or leave this empty to avoid sending anti-caching headers. +; http://php.net/session.cache-limiter +session.cache_limiter = nocache + +; Document expires after n minutes. +; http://php.net/session.cache-expire +session.cache_expire = 180 + +; trans sid support is disabled by default. +; Use of trans sid may risk your users' security. +; Use this option with caution. +; - User may send URL contains active session ID +; to other person via. email/irc/etc. +; - URL that contains active session ID may be stored +; in publicly accessible computer. +; - User may access your site with the same session ID +; always using URL stored in browser's history or bookmarks. +; http://php.net/session.use-trans-sid +session.use_trans_sid = 0 + +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute paths, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" + +; Define how many bits are stored in each character when converting +; the binary hash data to something readable. +; Possible values: +; 4 (4 bits: 0-9, a-f) +; 5 (5 bits: 0-9, a-v) +; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 +; http://php.net/session.hash-bits-per-character +session.sid_bits_per_character = 5 + +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.enabled +;session.upload_progress.enabled = On + +; Cleanup the progress information as soon as all POST data has been read +; (i.e. upload completed). +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.cleanup +;session.upload_progress.cleanup = On + +; A prefix used for the upload progress key in $_SESSION +; Default Value: "upload_progress_" +; Development Value: "upload_progress_" +; Production Value: "upload_progress_" +; http://php.net/session.upload-progress.prefix +;session.upload_progress.prefix = "upload_progress_" + +; The index name (concatenated with the prefix) in $_SESSION +; containing the upload progress information +; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" +; http://php.net/session.upload-progress.name +;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" + +; How frequently the upload progress should be updated. +; Given either in percentages (per-file), or in bytes +; Default Value: "1%" +; Development Value: "1%" +; Production Value: "1%" +; http://php.net/session.upload-progress.freq +;session.upload_progress.freq = "1%" + +; The minimum delay between updates, in seconds +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.upload-progress.min-freq +;session.upload_progress.min_freq = "1" + +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On + +[Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = 1 + +; Assert(expr); active by default. +; http://php.net/assert.active +;assert.active = On + +; Throw an AssertionError on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) +; http://php.net/assert.warning +;assert.warning = On + +; Don't bail out by default. +; http://php.net/assert.bail +;assert.bail = Off + +; User-function to be called if an assertion fails. +; http://php.net/assert.callback +;assert.callback = 0 + +; Eval the expression with current error_reporting(). Set to true if you want +; error_reporting(0) around the eval(). +; http://php.net/assert.quiet-eval +;assert.quiet_eval = 0 + +[COM] +; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs +; http://php.net/com.typelib-file +;com.typelib_file = + +; allow Distributed-COM calls +; http://php.net/com.allow-dcom +;com.allow_dcom = true + +; autoregister constants of a component's typlib on com_load() +; http://php.net/com.autoregister-typelib +;com.autoregister_typelib = true + +; register constants casesensitive +; http://php.net/com.autoregister-casesensitive +;com.autoregister_casesensitive = false + +; show warnings on duplicate constant registrations +; http://php.net/com.autoregister-verbose +;com.autoregister_verbose = true + +; The default character set code-page to use when passing strings to and from COM objects. +; Default: system ANSI code page +;com.code_page= + +[mbstring] +; language for internal character representation. +; This affects mb_send_mail() and mbstring.detect_order. +; http://php.net/mbstring.language +;mbstring.language = Japanese + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; internal/script encoding. +; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;mbstring.internal_encoding = + +; Use of this INI entry is deprecated, use global input_encoding instead. +; http input encoding. +; mbstring.encoding_translation = On is needed to use this setting. +; If empty, default_charset or input_encoding or mbstring.input is used. +; The precedence is: default_charset < input_encoding < mbsting.http_input +; http://php.net/mbstring.http-input +;mbstring.http_input = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; http output encoding. +; mb_output_handler must be registered as output buffer to function. +; If empty, default_charset or output_encoding or mbstring.http_output is used. +; The precedence is: default_charset < output_encoding < mbstring.http_output +; To use an output encoding conversion, mbstring's output handler must be set +; otherwise output encoding conversion cannot be performed. +; http://php.net/mbstring.http-output +;mbstring.http_output = + +; enable automatic encoding translation according to +; mbstring.internal_encoding setting. Input chars are +; converted to internal encoding by setting this to On. +; Note: Do _not_ use automatic encoding translation for +; portable libs/applications. +; http://php.net/mbstring.encoding-translation +;mbstring.encoding_translation = Off + +; automatic encoding detection order. +; "auto" detect order is changed according to mbstring.language +; http://php.net/mbstring.detect-order +;mbstring.detect_order = auto + +; substitute_character used when character cannot be converted +; one from another +; http://php.net/mbstring.substitute-character +;mbstring.substitute_character = none + +; overload(replace) single byte functions by mbstring functions. +; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), +; etc. Possible values are 0,1,2,4 or combination of them. +; For example, 7 for overload everything. +; 0: No overload +; 1: Overload mail() function +; 2: Overload str*() functions +; 4: Overload ereg*() functions +; http://php.net/mbstring.func-overload +;mbstring.func_overload = 0 + +; enable strict encoding detection. +; Default: Off +;mbstring.strict_detection = On + +; This directive specifies the regex pattern of content types for which mb_output_handler() +; is activated. +; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) +;mbstring.http_output_conv_mimetype= + +; This directive specifies maximum stack depth for mbstring regular expressions. It is similar +; to the pcre.recursion_limit for PCRE. +; Default: 100000 +;mbstring.regex_stack_limit=100000 + +[gd] +; Tell the jpeg decode to ignore warnings and try to create +; a gd image. The warning will then be displayed as notices +; disabled by default +; http://php.net/gd.jpeg-ignore-warning +;gd.jpeg_ignore_warning = 1 + +[exif] +; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. +; With mbstring support this will automatically be converted into the encoding +; given by corresponding encode setting. When empty mbstring.internal_encoding +; is used. For the decode settings you can distinguish between motorola and +; intel byte order. A decode setting cannot be empty. +; http://php.net/exif.encode-unicode +;exif.encode_unicode = ISO-8859-15 + +; http://php.net/exif.decode-unicode-motorola +;exif.decode_unicode_motorola = UCS-2BE + +; http://php.net/exif.decode-unicode-intel +;exif.decode_unicode_intel = UCS-2LE + +; http://php.net/exif.encode-jis +;exif.encode_jis = + +; http://php.net/exif.decode-jis-motorola +;exif.decode_jis_motorola = JIS + +; http://php.net/exif.decode-jis-intel +;exif.decode_jis_intel = JIS + +[Tidy] +; The path to a default tidy configuration file to use when using tidy +; http://php.net/tidy.default-config +;tidy.default_config = /usr/local/lib/php/default.tcfg + +; Should tidy clean and repair output automatically? +; WARNING: Do not use this option if you are generating non-html content +; such as dynamic images +; http://php.net/tidy.clean-output +tidy.clean_output = Off + +[soap] +; Enables or disables WSDL caching feature. +; http://php.net/soap.wsdl-cache-enabled +soap.wsdl_cache_enabled=1 + +; Sets the directory name where SOAP extension will put cache files. +; http://php.net/soap.wsdl-cache-dir +soap.wsdl_cache_dir="/tmp" + +; (time to live) Sets the number of second while cached file will be used +; instead of original one. +; http://php.net/soap.wsdl-cache-ttl +soap.wsdl_cache_ttl=86400 + +; Sets the size of the cache limit. (Max. number of WSDL files to cache) +soap.wsdl_cache_limit = 5 + +[sysvshm] +; A default size of the shared memory segment +;sysvshm.init_mem = 10000 + +[ldap] +; Sets the maximum number of open links or -1 for unlimited. +ldap.max_links = -1 + +[dba] +;dba.default_handler= + +[opcache] +; Determines if Zend OPCache is enabled +;opcache.enable=1 + +; Determines if Zend OPCache is enabled for the CLI version of PHP +;opcache.enable_cli=0 + +; The OPcache shared memory storage size. +;opcache.memory_consumption=128 + +; The amount of memory for interned strings in Mbytes. +;opcache.interned_strings_buffer=8 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +;opcache.max_wasted_percentage=5 + +; When this directive is enabled, the OPcache appends the current working +; directory to the script key, thus eliminating possible collisions between +; files with the same name (basename). Disabling the directive improves +; performance, but may break existing applications. +;opcache.use_cwd=1 + +; When disabled, you must reset the OPcache manually or restart the +; webserver for changes to the filesystem to take effect. +;opcache.validate_timestamps=1 + +; How often (in seconds) to check file timestamps for changes to the shared +; memory storage allocation. ("1" means validate once per second, but only +; once per request. "0" means always validate) +;opcache.revalidate_freq=2 + +; Enables or disables file search in include_path optimization +;opcache.revalidate_path=0 + +; If disabled, all PHPDoc comments are dropped from the code to reduce the +; size of the optimized code. +;opcache.save_comments=1 + +; Allow file existence override (file_exists, etc.) performance feature. +;opcache.enable_file_override=0 + +; A bitmask, where each bit enables or disables the appropriate OPcache +; passes +;opcache.optimization_level=0x7FFFBFFF + +;opcache.dups_fix=0 + +; The location of the OPcache blacklist file (wildcards allowed). +; Each OPcache blacklist file is a text file that holds the names of files +; that should not be accelerated. The file format is to add each filename +; to a new line. The filename may be a full path or just a file prefix +; (i.e., /var/www/x blacklists all the files and directories in /var/www +; that start with 'x'). Line starting with a ; are ignored (comments). +;opcache.blacklist_filename= + +; Allows exclusion of large files from being cached. By default all files +; are cached. +;opcache.max_file_size=0 + +; Check the cache checksum each N requests. +; The default value of "0" means that the checks are disabled. +;opcache.consistency_checks=0 + +; How long to wait (in seconds) for a scheduled restart to begin if the cache +; is not being accessed. +;opcache.force_restart_timeout=180 + +; OPcache error_log file name. Empty string assumes "stderr". +;opcache.error_log= + +; All OPcache errors go to the Web server log. +; By default, only fatal errors (level 0) or errors (level 1) are logged. +; You can also enable warnings (level 2), info messages (level 3) or +; debug messages (level 4). +;opcache.log_verbosity_level=1 + +; Preferred Shared Memory back-end. Leave empty and let the system decide. +;opcache.preferred_memory_model= + +; Protect the shared memory from unexpected writing during script execution. +; Useful for internal debugging only. +;opcache.protect_memory=0 + +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=0 + +; Validate cached file permissions. +;opcache.validate_permission=0 + +; Prevent name collisions in chroot'ed environment. +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + +[curl] +; A default value for the CURLOPT_CAINFO option. This is required to be an +; absolute path. +;curl.cainfo = + +[openssl] +; The location of a Certificate Authority (CA) file on the local filesystem +; to use when verifying the identity of SSL/TLS peers. Most users should +; not specify a value for this directive as PHP will attempt to use the +; OS-managed cert stores in its absence. If specified, this value may still +; be overridden on a per-stream basis via the "cafile" SSL stream context +; option. +;openssl.cafile= + +; If openssl.cafile is not specified or if the CA file is not found, the +; directory pointed to by openssl.capath is searched for a suitable +; certificate. This value must be a correctly hashed certificate directory. +; Most users should not specify a value for this directive as PHP will +; attempt to use the OS-managed cert stores in its absence. If specified, +; this value may still be overridden on a per-stream basis via the "capath" +; SSL stream context option. +;openssl.capath= + +; Local Variables: +; tab-width: 4 +; End: diff --git a/7/orig/php-7.3.ini-production b/7/orig/php-7.3.ini-production new file mode 100644 index 00000000..656ae673 --- /dev/null +++ b/7/orig/php-7.3.ini-production @@ -0,0 +1,1949 @@ +[PHP] + +;;;;;;;;;;;;;;;;;;; +; About php.ini ; +;;;;;;;;;;;;;;;;;;; +; PHP's initialization file, generally called php.ini, is responsible for +; configuring many of the aspects of PHP's behavior. + +; PHP attempts to find and load this configuration from a number of locations. +; The following is a summary of its search order: +; 1. SAPI module specific location. +; 2. The PHPRC environment variable. (As of PHP 5.2.0) +; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) +; 4. Current working directory (except CLI) +; 5. The web server's directory (for SAPI modules), or directory of PHP +; (otherwise in Windows) +; 6. The directory from the --with-config-file-path compile time option, or the +; Windows directory (usually C:\windows) +; See the PHP docs for more specific information. +; http://php.net/configuration.file + +; The syntax of the file is extremely simple. Whitespace and lines +; beginning with a semicolon are silently ignored (as you probably guessed). +; Section headers (e.g. [Foo]) are also silently ignored, even though +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served from www.example.com. Directives set in these +; special sections cannot be overridden by user-defined INI files or +; at runtime. Currently, [PATH=] and [HOST=] sections only work under +; CGI/FastCGI. +; http://php.net/ini.sections + +; Directives are specified using the following syntax: +; directive = value +; Directive names are *case sensitive* - foo=bar is different from FOO=bar. +; Directives are variables used to configure PHP or PHP extensions. +; There is no name validation. If PHP can't find an expected +; directive because it is not set or is mistyped, a default value will be used. + +; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one +; of the INI constants (On, Off, True, False, Yes, No and None) or an expression +; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a +; previously set variable or directive (e.g. ${foo}) + +; Expressions in the INI file are limited to bitwise operators and parentheses: +; | bitwise OR +; ^ bitwise XOR +; & bitwise AND +; ~ bitwise NOT +; ! boolean NOT + +; Boolean flags can be turned on using the values 1, On, True or Yes. +; They can be turned off using the values 0, Off, False or No. + +; An empty string can be denoted by simply not writing anything after the equal +; sign, or by using the None keyword: + +; foo = ; sets foo to an empty string +; foo = None ; sets foo to an empty string +; foo = "None" ; sets foo to the string 'None' + +; If you use constants in your value, and these constants belong to a +; dynamically loaded extension (either a PHP extension or a Zend extension), +; you may only use these constants *after* the line that loads the extension. + +;;;;;;;;;;;;;;;;;;; +; About this file ; +;;;;;;;;;;;;;;;;;;; +; PHP comes packaged with two INI files. One that is recommended to be used +; in production environments and one that is recommended to be used in +; development environments. + +; php.ini-production contains settings which hold security, performance and +; best practices at its core. But please be aware, these settings may break +; compatibility with older or less security conscience applications. We +; recommending using the production ini in production and testing environments. + +; php.ini-development is very similar to its production variant, except it is +; much more verbose when it comes to errors. We recommend using the +; development version only in development environments, as errors shown to +; application users can inadvertently leak otherwise secure information. + +; This is the php.ini-production INI file. + +;;;;;;;;;;;;;;;;;;; +; Quick Reference ; +;;;;;;;;;;;;;;;;;;; +; The following are all the settings which are different in either the production +; or development versions of the INIs with respect to PHP's default behavior. +; Please see the actual settings later in the document for more details as to why +; we recommend these changes in PHP's behavior. + +; display_errors +; Default Value: On +; Development Value: On +; Production Value: Off + +; display_startup_errors +; Default Value: Off +; Development Value: On +; Production Value: Off + +; error_reporting +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT + +; html_errors +; Default Value: On +; Development Value: On +; Production value: On + +; log_errors +; Default Value: Off +; Development Value: On +; Production Value: On + +; max_input_time +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) + +; output_buffering +; Default Value: Off +; Development Value: 4096 +; Production Value: 4096 + +; register_argc_argv +; Default Value: On +; Development Value: Off +; Production Value: Off + +; request_order +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" + +; session.gc_divisor +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 + +; session.sid_bits_per_character +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 + +; short_open_tag +; Default Value: On +; Development Value: Off +; Production Value: Off + +; track_errors +; Default Value: Off +; Development Value: On +; Production Value: Off + +; variables_order +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS" + +;;;;;;;;;;;;;;;;;;;; +; php.ini Options ; +;;;;;;;;;;;;;;;;;;;; +; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" +;user_ini.filename = ".user.ini" + +; To disable this feature set this option to an empty value +;user_ini.filename = + +; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) +;user_ini.cache_ttl = 300 + +;;;;;;;;;;;;;;;;;;;; +; Language Options ; +;;;;;;;;;;;;;;;;;;;; + +; Enable the PHP scripting language engine under Apache. +; http://php.net/engine +engine = On + +; This directive determines whether or not PHP will recognize code between +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the would work. +; http://php.net/syntax-highlighting +;highlight.string = #DD0000 +;highlight.comment = #FF9900 +;highlight.keyword = #007700 +;highlight.default = #0000BB +;highlight.html = #000000 + +; If enabled, the request will be allowed to complete even if the user aborts +; the request. Consider enabling it if executing long requests, which may end up +; being interrupted by the user or a browser timing out. PHP's default behavior +; is to disable this feature. +; http://php.net/ignore-user-abort +;ignore_user_abort = On + +; Determines the size of the realpath cache to be used by PHP. This value should +; be increased on systems where PHP opens many files to reflect the quantity of +; the file operations performed. +; Note: if open_basedir is set, the cache is disabled +; http://php.net/realpath-cache-size +;realpath_cache_size = 4096k + +; Duration of time, in seconds for which to cache realpath information for a given +; file or directory. For systems with rarely changing files, consider increasing this +; value. +; http://php.net/realpath-cache-ttl +;realpath_cache_ttl = 120 + +; Enables or disables the circular reference collector. +; http://php.net/zend.enable-gc +zend.enable_gc = On + +; If enabled, scripts may be written in encodings that are incompatible with +; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such +; encodings. To use this feature, mbstring extension must be enabled. +; Default: Off +;zend.multibyte = Off + +; Allows to set the default encoding for the scripts. This value will be used +; unless "declare(encoding=...)" directive appears at the top of the script. +; Only affects if zend.multibyte is set. +; Default: "" +;zend.script_encoding = + +;;;;;;;;;;;;;;;;; +; Miscellaneous ; +;;;;;;;;;;;;;;;;; + +; Decides whether PHP may expose the fact that it is installed on the server +; (e.g. by adding its signature to the Web server header). It is no security +; threat in any way, but it makes it possible to determine whether you use PHP +; on your server or not. +; http://php.net/expose-php +expose_php = On + +;;;;;;;;;;;;;;;;;;; +; Resource Limits ; +;;;;;;;;;;;;;;;;;;; + +; Maximum execution time of each script, in seconds +; http://php.net/max-execution-time +; Note: This directive is hardcoded to 0 for the CLI SAPI +max_execution_time = 30 + +; Maximum amount of time each script may spend parsing request data. It's a good +; idea to limit this time on productions servers in order to eliminate unexpectedly +; long running scripts. +; Note: This directive is hardcoded to -1 for the CLI SAPI +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) +; http://php.net/max-input-time +max_input_time = 60 + +; Maximum input variable nesting level +; http://php.net/max-input-nesting-level +;max_input_nesting_level = 64 + +; How many GET/POST/COOKIE input variables may be accepted +;max_input_vars = 1000 + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Error handling and logging ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. The recommended way of setting values for this +; directive is through the use of the error level constants and bitwise +; operators. The error level constants are below here for convenience as well as +; some common settings and their meanings. +; By default, PHP is set to take action on all errors, notices and warnings EXCEPT +; those related to E_NOTICE and E_STRICT, which together cover best practices and +; recommended coding standards in PHP. For performance reasons, this is the +; recommend error reporting setting. Your production server shouldn't be wasting +; resources complaining about best practices and coding standards. That's what +; development servers and development settings are for. +; Note: The php.ini-development file has this setting as E_ALL. This +; means it pretty much reports everything which is exactly what you want during +; development and early testing. +; +; Error Level Constants: +; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) +; E_ERROR - fatal run-time errors +; E_RECOVERABLE_ERROR - almost fatal run-time errors +; E_WARNING - run-time warnings (non-fatal errors) +; E_PARSE - compile-time parse errors +; E_NOTICE - run-time notices (these are warnings which often result +; from a bug in your code, but it's possible that it was +; intentional (e.g., using an uninitialized variable and +; relying on the fact it is automatically initialized to an +; empty string) +; E_STRICT - run-time notices, enable to have PHP suggest changes +; to your code which will ensure the best interoperability +; and forward compatibility of your code +; E_CORE_ERROR - fatal errors that occur during PHP's initial startup +; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's +; initial startup +; E_COMPILE_ERROR - fatal compile-time errors +; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) +; E_USER_ERROR - user-generated error message +; E_USER_WARNING - user-generated warning message +; E_USER_NOTICE - user-generated notice message +; E_DEPRECATED - warn about code that will not work in future versions +; of PHP +; E_USER_DEPRECATED - user-generated deprecation warnings +; +; Common Values: +; E_ALL (Show all errors, warnings and notices including coding standards.) +; E_ALL & ~E_NOTICE (Show all errors, except for notices) +; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) +; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT +; http://php.net/error-reporting +error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT + +; This directive controls whether or not and where PHP will output errors, +; notices and warnings too. Error output is very useful during development, but +; it could be very dangerous in production environments. Depending on the code +; which is triggering the error, sensitive information could potentially leak +; out of your application such as database usernames and passwords or worse. +; For production environments, we recommend logging errors rather than +; sending them to STDOUT. +; Possible Values: +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; On or stdout = Display errors to STDOUT +; Default Value: On +; Development Value: On +; Production Value: Off +; http://php.net/display-errors +display_errors = Off + +; The display of errors which occur during PHP's startup sequence are handled +; separately from display_errors. PHP's default behavior is to suppress those +; errors from clients. Turning the display of startup errors on can be useful in +; debugging configuration problems. We strongly recommend you +; set this to 'off' for production servers. +; Default Value: Off +; Development Value: On +; Production Value: Off +; http://php.net/display-startup-errors +display_startup_errors = Off + +; Besides displaying errors, PHP can also log errors to locations such as a +; server-specific log, STDERR, or a location specified by the error_log +; directive found below. While errors should not be displayed on productions +; servers they should still be monitored and logging is a great way to do that. +; Default Value: Off +; Development Value: On +; Production Value: On +; http://php.net/log-errors +log_errors = On + +; Set maximum length of log_errors. In error_log information about the source is +; added. The default is 1024 and 0 allows to not apply any maximum length at all. +; http://php.net/log-errors-max-len +log_errors_max_len = 1024 + +; Do not log repeated messages. Repeated errors must occur in same file on same +; line unless ignore_repeated_source is set true. +; http://php.net/ignore-repeated-errors +ignore_repeated_errors = Off + +; Ignore source of message when ignoring repeated messages. When this setting +; is On you will not log errors with repeated messages from different files or +; source lines. +; http://php.net/ignore-repeated-source +ignore_repeated_source = Off + +; If this parameter is set to Off, then memory leaks will not be shown (on +; stdout or in the log). This has only effect in a debug compile, and if +; error reporting includes E_WARNING in the allowed list +; http://php.net/report-memleaks +report_memleaks = On + +; This setting is on by default. +;report_zend_debug = 0 + +; Store the last error/warning message in $php_errormsg (boolean). Setting this value +; to On can assist in debugging and is appropriate for development servers. It should +; however be disabled on production servers. +; This directive is DEPRECATED. +; Default Value: Off +; Development Value: Off +; Production Value: Off +; http://php.net/track-errors +;track_errors = Off + +; Turn off normal error reporting and emit XML-RPC error XML +; http://php.net/xmlrpc-errors +;xmlrpc_errors = 0 + +; An XML-RPC faultCode +;xmlrpc_error_number = 0 + +; When PHP displays or logs an error, it has the capability of formatting the +; error message as HTML for easier reading. This directive controls whether +; the error message is formatted as HTML or not. +; Note: This directive is hardcoded to Off for the CLI SAPI +; Default Value: On +; Development Value: On +; Production value: On +; http://php.net/html-errors +html_errors = On + +; If html_errors is set to On *and* docref_root is not empty, then PHP +; produces clickable error messages that direct to a page describing the error +; or function causing the error in detail. +; You can download a copy of the PHP manual from http://php.net/docs +; and change docref_root to the base URL of your local copy including the +; leading '/'. You must also specify the file extension being used including +; the dot. PHP's default behavior is to leave these settings empty, in which +; case no links to documentation are generated. +; Note: Never use this feature for production boxes. +; http://php.net/docref-root +; Examples +;docref_root = "/phpmanual/" + +; http://php.net/docref-ext +;docref_ext = .html + +; String to output before an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-prepend-string +; Example: +;error_prepend_string = "" + +; String to output after an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-append-string +; Example: +;error_append_string = "" + +; Log errors to specified file. PHP's default behavior is to leave this value +; empty. +; http://php.net/error-log +; Example: +;error_log = php_errors.log +; Log errors to syslog (Event Log on Windows). +;error_log = syslog + +; The syslog ident is a string which is prepended to every message logged +; to syslog. Only used when error_log is set to syslog. +;syslog.ident = php + +; The syslog facility is used to specify what type of program is logging +; the message. Only used when error_log is set to syslog. +;syslog.facility = user + +; Set this to disable filtering control characters (the default). +; Some loggers only accept NVT-ASCII, others accept anything that's not +; control characters. If your logger accepts everything, then no filtering +; is needed at all. +; Allowed values are: +; ascii (all printable ASCII characters and NL) +; no-ctrl (all characters except control characters) +; all (all characters) +; http://php.net/syslog.filter +;syslog.filter = ascii + +;windows.show_crt_warning +; Default value: 0 +; Development value: 0 +; Production value: 0 + +;;;;;;;;;;;;;;;;; +; Data Handling ; +;;;;;;;;;;;;;;;;; + +; The separator used in PHP generated URLs to separate arguments. +; PHP's default setting is "&". +; http://php.net/arg-separator.output +; Example: +;arg_separator.output = "&" + +; List of separator(s) used by PHP to parse input URLs into variables. +; PHP's default setting is "&". +; NOTE: Every character in this directive is considered as separator! +; http://php.net/arg-separator.input +; Example: +;arg_separator.input = ";&" + +; This directive determines which super global arrays are registered when PHP +; starts up. G,P,C,E & S are abbreviations for the following respective super +; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty +; paid for the registration of these arrays and because ENV is not as commonly +; used as the others, ENV is not recommended on productions servers. You +; can still get access to the environment variables through getenv() should you +; need to. +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS"; +; http://php.net/variables-order +variables_order = "GPCS" + +; This directive determines which super global data (G,P & C) should be +; registered into the super global array REQUEST. If so, it also determines +; the order in which that data is registered. The values for this directive +; are specified in the same manner as the variables_order directive, +; EXCEPT one. Leaving this value empty will cause PHP to use the value set +; in the variables_order directive. It does not mean it will leave the super +; globals array REQUEST empty. +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" +; http://php.net/request-order +request_order = "GP" + +; This directive determines whether PHP registers $argv & $argc each time it +; runs. $argv contains an array of all the arguments passed to PHP when a script +; is invoked. $argc contains an integer representing the number of arguments +; that were passed when the script was invoked. These arrays are extremely +; useful when running scripts from the command line. When this directive is +; enabled, registering these variables consumes CPU cycles and memory each time +; a script is executed. For performance reasons, this feature should be disabled +; on production servers. +; Note: This directive is hardcoded to On for the CLI SAPI +; Default Value: On +; Development Value: Off +; Production Value: Off +; http://php.net/register-argc-argv +register_argc_argv = Off + +; When enabled, the ENV, REQUEST and SERVER variables are created when they're +; first used (Just In Time) instead of when the script starts. If these +; variables are not used within a script, having this directive on will result +; in a performance gain. The PHP directive register_argc_argv must be disabled +; for this directive to have any affect. +; http://php.net/auto-globals-jit +auto_globals_jit = On + +; Whether PHP will read the POST data. +; This option is enabled by default. +; Most likely, you won't want to disable this option globally. It causes $_POST +; and $_FILES to always be empty; the only way you will be able to read the +; POST data will be through the php://input stream wrapper. This can be useful +; to proxy requests or to process the POST data in a memory efficient fashion. +; http://php.net/enable-post-data-reading +;enable_post_data_reading = Off + +; Maximum size of POST data that PHP will accept. +; Its value may be 0 to disable the limit. It is ignored if POST data reading +; is disabled through enable_post_data_reading. +; http://php.net/post-max-size +post_max_size = 8M + +; Automatically add files before PHP document. +; http://php.net/auto-prepend-file +auto_prepend_file = + +; Automatically add files after PHP document. +; http://php.net/auto-append-file +auto_append_file = + +; By default, PHP will output a media type using the Content-Type header. To +; disable this, simply set it to be empty. +; +; PHP's built-in default media type is set to text/html. +; http://php.net/default-mimetype +default_mimetype = "text/html" + +; PHP's default character set is set to UTF-8. +; http://php.net/default-charset +default_charset = "UTF-8" + +; PHP internal character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/internal-encoding +;internal_encoding = + +; PHP input character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/input-encoding +;input_encoding = + +; PHP output character encoding is set to empty. +; If empty, default_charset is used. +; See also output_buffer. +; http://php.net/output-encoding +;output_encoding = + +;;;;;;;;;;;;;;;;;;;;;;;;; +; Paths and Directories ; +;;;;;;;;;;;;;;;;;;;;;;;;; + +; UNIX: "/path1:/path2" +;include_path = ".:/php/includes" +; +; Windows: "\path1;\path2" +;include_path = ".;c:\php\includes" +; +; PHP's default setting for include_path is ".;/path/to/php/pear" +; http://php.net/include-path + +; The root of the PHP pages, used only if nonempty. +; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root +; if you are running php as a CGI under any web server (other than IIS) +; see documentation for security issues. The alternate is to use the +; cgi.force_redirect configuration below +; http://php.net/doc-root +doc_root = + +; The directory under which PHP opens the script using /~username used only +; if nonempty. +; http://php.net/user-dir +user_dir = + +; Directory in which the loadable extensions (modules) reside. +; http://php.net/extension-dir +;extension_dir = "./" +; On windows: +;extension_dir = "ext" + +; Directory where the temporary files should be placed. +; Defaults to the system default (see sys_get_temp_dir) +;sys_temp_dir = "/tmp" + +; Whether or not to enable the dl() function. The dl() function does NOT work +; properly in multithreaded servers, such as IIS or Zeus, and is automatically +; disabled on them. +; http://php.net/enable-dl +enable_dl = Off + +; cgi.force_redirect is necessary to provide security running PHP as a CGI under +; most web servers. Left undefined, PHP turns this on by default. You can +; turn it off here AT YOUR OWN RISK +; **You CAN safely turn this off for IIS, in fact, you MUST.** +; http://php.net/cgi.force-redirect +;cgi.force_redirect = 1 + +; if cgi.nph is enabled it will force cgi to always sent Status: 200 with +; every request. PHP's default behavior is to disable this feature. +;cgi.nph = 1 + +; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape +; (iPlanet) web servers, you MAY need to set an environment variable name that PHP +; will look for to know it is OK to continue execution. Setting this variable MAY +; cause security issues, KNOW WHAT YOU ARE DOING FIRST. +; http://php.net/cgi.redirect-status-env +;cgi.redirect_status_env = + +; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's +; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok +; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting +; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting +; of zero causes PHP to behave as before. Default is 1. You should fix your scripts +; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. +; http://php.net/cgi.fix-pathinfo +;cgi.fix_pathinfo=1 + +; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside +; of the web tree and people will not be able to circumvent .htaccess security. +;cgi.discard_path=1 + +; FastCGI under IIS supports the ability to impersonate +; security tokens of the calling client. This allows IIS to define the +; security context that the request runs under. mod_fastcgi under Apache +; does not currently support this feature (03/17/2002) +; Set to 1 if running under IIS. Default is zero. +; http://php.net/fastcgi.impersonate +;fastcgi.impersonate = 1 + +; Disable logging through FastCGI connection. PHP's default behavior is to enable +; this feature. +;fastcgi.logging = 0 + +; cgi.rfc2616_headers configuration option tells PHP what type of headers to +; use when sending HTTP response code. If set to 0, PHP sends Status: header that +; is supported by Apache. When this option is set to 1, PHP will send +; RFC2616 compliant header. +; Default is zero. +; http://php.net/cgi.rfc2616-headers +;cgi.rfc2616_headers = 0 + +; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! +; (shebang) at the top of the running script. This line might be needed if the +; script support running both as stand-alone script and via PHP CGI<. PHP in CGI +; mode skips this line and ignores its content if this directive is turned on. +; http://php.net/cgi.check-shebang-line +;cgi.check_shebang_line=1 + +;;;;;;;;;;;;;;;; +; File Uploads ; +;;;;;;;;;;;;;;;; + +; Whether to allow HTTP file uploads. +; http://php.net/file-uploads +file_uploads = On + +; Temporary directory for HTTP uploaded files (will use system default if not +; specified). +; http://php.net/upload-tmp-dir +;upload_tmp_dir = + +; Maximum allowed size for uploaded files. +; http://php.net/upload-max-filesize +upload_max_filesize = 2M + +; Maximum number of files that can be uploaded via a single request +max_file_uploads = 20 + +;;;;;;;;;;;;;;;;;; +; Fopen wrappers ; +;;;;;;;;;;;;;;;;;; + +; Whether to allow the treatment of URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-fopen +allow_url_fopen = On + +; Whether to allow include/require to open URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-include +allow_url_include = Off + +; Define the anonymous ftp password (your email address). PHP's default setting +; for this is empty. +; http://php.net/from +;from="john@doe.com" + +; Define the User-Agent string. PHP's default setting for this is empty. +; http://php.net/user-agent +;user_agent="PHP" + +; Default timeout for socket based streams (seconds) +; http://php.net/default-socket-timeout +default_socket_timeout = 60 + +; If your scripts have to deal with files from Macintosh systems, +; or you are running on a Mac and need to deal with files from +; unix or win32 systems, setting this flag will cause PHP to +; automatically detect the EOL character in those files so that +; fgets() and file() will work regardless of the source of the file. +; http://php.net/auto-detect-line-endings +;auto_detect_line_endings = Off + +;;;;;;;;;;;;;;;;;;;;;; +; Dynamic Extensions ; +;;;;;;;;;;;;;;;;;;;;;; + +; If you wish to have an extension loaded automatically, use the following +; syntax: +; +; extension=modulename +; +; For example: +; +; extension=mysqli +; +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: +; +; extension=/path/to/extension/mysqli.so +; +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. +; +; Notes for Windows environments : +; +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. +; +;extension=bz2 +;extension=curl +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=interbase +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop + +; The MIBS data available in the PHP distribution must be installed. +; See http://www.php.net/manual/en/snmp.installation.php +;extension=snmp + +;extension=soap +;extension=sockets +;extension=sodium +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl + +;;;;;;;;;;;;;;;;;;; +; Module Settings ; +;;;;;;;;;;;;;;;;;;; + +[CLI Server] +; Whether the CLI web server uses ANSI color coding in its terminal output. +cli_server.color = On + +[Date] +; Defines the default timezone used by the date functions +; http://php.net/date.timezone +;date.timezone = + +; http://php.net/date.default-latitude +;date.default_latitude = 31.7667 + +; http://php.net/date.default-longitude +;date.default_longitude = 35.2333 + +; http://php.net/date.sunrise-zenith +;date.sunrise_zenith = 90.583333 + +; http://php.net/date.sunset-zenith +;date.sunset_zenith = 90.583333 + +[filter] +; http://php.net/filter.default +;filter.default = unsafe_raw + +; http://php.net/filter.default-flags +;filter.default_flags = + +[iconv] +; Use of this INI entry is deprecated, use global input_encoding instead. +; If empty, default_charset or input_encoding or iconv.input_encoding is used. +; The precedence is: default_charset < input_encoding < iconv.input_encoding +;iconv.input_encoding = + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;iconv.internal_encoding = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; If empty, default_charset or output_encoding or iconv.output_encoding is used. +; The precedence is: default_charset < output_encoding < iconv.output_encoding +; To use an output encoding conversion, iconv's output handler must be set +; otherwise output encoding conversion cannot be performed. +;iconv.output_encoding = + +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + +[intl] +;intl.default_locale = +; This directive allows you to produce PHP errors when some error +; happens within intl functions. The value is the level of the error produced. +; Default is 0, which does not produce any errors. +;intl.error_level = E_WARNING +;intl.use_exceptions = 0 + +[sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir +;sqlite3.extension_dir = + +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + +[Pcre] +; PCRE library backtracking limit. +; http://php.net/pcre.backtrack-limit +;pcre.backtrack_limit=100000 + +; PCRE library recursion limit. +; Please note that if you set this value to a high number you may consume all +; the available process stack and eventually crash PHP (due to reaching the +; stack size limit imposed by the Operating System). +; http://php.net/pcre.recursion-limit +;pcre.recursion_limit=100000 + +; Enables or disables JIT compilation of patterns. This requires the PCRE +; library to be compiled with JIT support. +;pcre.jit=1 + +[Pdo] +; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" +; http://php.net/pdo-odbc.connection-pooling +;pdo_odbc.connection_pooling=strict + +;pdo_odbc.db2_instance_name + +[Pdo_mysql] +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +pdo_mysql.default_socket= + +[Phar] +; http://php.net/phar.readonly +;phar.readonly = On + +; http://php.net/phar.require-hash +;phar.require_hash = On + +;phar.cache_list = + +[mail function] +; For Win32 only. +; http://php.net/smtp +SMTP = localhost +; http://php.net/smtp-port +smtp_port = 25 + +; For Win32 only. +; http://php.net/sendmail-from +;sendmail_from = me@example.com + +; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). +; http://php.net/sendmail-path +;sendmail_path = + +; Force the addition of the specified parameters to be passed as extra parameters +; to the sendmail binary. These parameters will always replace the value of +; the 5th parameter to mail(). +;mail.force_extra_parameters = + +; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename +mail.add_x_header = Off + +; The path to a log file that will log all mail() calls. Log entries include +; the full path of the script, line number, To address and headers. +;mail.log = +; Log mail to syslog (Event Log on Windows). +;mail.log = syslog + +[ODBC] +; http://php.net/odbc.default-db +;odbc.default_db = Not yet implemented + +; http://php.net/odbc.default-user +;odbc.default_user = Not yet implemented + +; http://php.net/odbc.default-pw +;odbc.default_pw = Not yet implemented + +; Controls the ODBC cursor model. +; Default: SQL_CURSOR_STATIC (default). +;odbc.default_cursortype + +; Allow or prevent persistent links. +; http://php.net/odbc.allow-persistent +odbc.allow_persistent = On + +; Check that a connection is still valid before reuse. +; http://php.net/odbc.check-persistent +odbc.check_persistent = On + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/odbc.max-persistent +odbc.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +; http://php.net/odbc.max-links +odbc.max_links = -1 + +; Handling of LONG fields. Returns number of bytes to variables. 0 means +; passthru. +; http://php.net/odbc.defaultlrl +odbc.defaultlrl = 4096 + +; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. +; See the documentation on odbc_binmode and odbc_longreadlen for an explanation +; of odbc.defaultlrl and odbc.defaultbinmode +; http://php.net/odbc.defaultbinmode +odbc.defaultbinmode = 1 + +[Interbase] +; Allow or prevent persistent links. +ibase.allow_persistent = 1 + +; Maximum number of persistent links. -1 means no limit. +ibase.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +ibase.max_links = -1 + +; Default database name for ibase_connect(). +;ibase.default_db = + +; Default username for ibase_connect(). +;ibase.default_user = + +; Default password for ibase_connect(). +;ibase.default_password = + +; Default charset for ibase_connect(). +;ibase.default_charset = + +; Default timestamp format. +ibase.timestampformat = "%Y-%m-%d %H:%M:%S" + +; Default date format. +ibase.dateformat = "%Y-%m-%d" + +; Default time format. +ibase.timeformat = "%H:%M:%S" + +[MySQLi] + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/mysqli.max-persistent +mysqli.max_persistent = -1 + +; Allow accessing, from PHP's perspective, local files with LOAD DATA statements +; http://php.net/mysqli.allow_local_infile +;mysqli.allow_local_infile = On + +; Allow or prevent persistent links. +; http://php.net/mysqli.allow-persistent +mysqli.allow_persistent = On + +; Maximum number of links. -1 means no limit. +; http://php.net/mysqli.max-links +mysqli.max_links = -1 + +; Default port number for mysqli_connect(). If unset, mysqli_connect() will use +; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the +; compile-time value defined MYSQL_PORT (in that order). Win32 will only look +; at MYSQL_PORT. +; http://php.net/mysqli.default-port +mysqli.default_port = 3306 + +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +; http://php.net/mysqli.default-socket +mysqli.default_socket = + +; Default host for mysql_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-host +mysqli.default_host = + +; Default user for mysql_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-user +mysqli.default_user = + +; Default password for mysqli_connect() (doesn't apply in safe mode). +; Note that this is generally a *bad* idea to store passwords in this file. +; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") +; and reveal this password! And of course, any users with read access to this +; file will be able to reveal the password as well. +; http://php.net/mysqli.default-pw +mysqli.default_pw = + +; Allow or prevent reconnect +mysqli.reconnect = Off + +[mysqlnd] +; Enable / Disable collection of general statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_statistics = On + +; Enable / Disable collection of memory usage statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_memory_statistics = Off + +; Records communication from all extensions using mysqlnd to the specified log +; file. +; http://php.net/mysqlnd.debug +;mysqlnd.debug = + +; Defines which queries will be logged. +;mysqlnd.log_mask = 0 + +; Default size of the mysqlnd memory pool, which is used by result sets. +;mysqlnd.mempool_default_size = 16000 + +; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. +;mysqlnd.net_cmd_buffer_size = 2048 + +; Size of a pre-allocated buffer used for reading data sent by the server in +; bytes. +;mysqlnd.net_read_buffer_size = 32768 + +; Timeout for network requests in seconds. +;mysqlnd.net_read_timeout = 31536000 + +; SHA-256 Authentication Plugin related. File with the MySQL server public RSA +; key. +;mysqlnd.sha256_server_public_key = + +[OCI8] + +; Connection: Enables privileged connections using external +; credentials (OCI_SYSOPER, OCI_SYSDBA) +; http://php.net/oci8.privileged-connect +;oci8.privileged_connect = Off + +; Connection: The maximum number of persistent OCI8 connections per +; process. Using -1 means no limit. +; http://php.net/oci8.max-persistent +;oci8.max_persistent = -1 + +; Connection: The maximum number of seconds a process is allowed to +; maintain an idle persistent connection. Using -1 means idle +; persistent connections will be maintained forever. +; http://php.net/oci8.persistent-timeout +;oci8.persistent_timeout = -1 + +; Connection: The number of seconds that must pass before issuing a +; ping during oci_pconnect() to check the connection validity. When +; set to 0, each oci_pconnect() will cause a ping. Using -1 disables +; pings completely. +; http://php.net/oci8.ping-interval +;oci8.ping_interval = 60 + +; Connection: Set this to a user chosen connection class to be used +; for all pooled server requests with Oracle 11g Database Resident +; Connection Pooling (DRCP). To use DRCP, this value should be set to +; the same string for all web servers running the same application, +; the database pool must be configured, and the connection string must +; specify to use a pooled server. +;oci8.connection_class = + +; High Availability: Using On lets PHP receive Fast Application +; Notification (FAN) events generated when a database node fails. The +; database must also be configured to post FAN events. +;oci8.events = Off + +; Tuning: This option enables statement caching, and specifies how +; many statements to cache. Using 0 disables statement caching. +; http://php.net/oci8.statement-cache-size +;oci8.statement_cache_size = 20 + +; Tuning: Enables statement prefetching and sets the default number of +; rows that will be fetched automatically after statement execution. +; http://php.net/oci8.default-prefetch +;oci8.default_prefetch = 100 + +; Compatibility. Using On means oci_close() will not close +; oci_connect() and oci_new_connect() connections. +; http://php.net/oci8.old-oci-close-semantics +;oci8.old_oci_close_semantics = Off + +[PostgreSQL] +; Allow or prevent persistent links. +; http://php.net/pgsql.allow-persistent +pgsql.allow_persistent = On + +; Detect broken persistent links always with pg_pconnect(). +; Auto reset feature requires a little overheads. +; http://php.net/pgsql.auto-reset-persistent +pgsql.auto_reset_persistent = Off + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/pgsql.max-persistent +pgsql.max_persistent = -1 + +; Maximum number of links (persistent+non persistent). -1 means no limit. +; http://php.net/pgsql.max-links +pgsql.max_links = -1 + +; Ignore PostgreSQL backends Notice message or not. +; Notice message logging require a little overheads. +; http://php.net/pgsql.ignore-notice +pgsql.ignore_notice = 0 + +; Log PostgreSQL backends Notice message or not. +; Unless pgsql.ignore_notice=0, module cannot log notice message. +; http://php.net/pgsql.log-notice +pgsql.log_notice = 0 + +[bcmath] +; Number of decimal digits for all bcmath functions. +; http://php.net/bcmath.scale +bcmath.scale = 0 + +[browscap] +; http://php.net/browscap +;browscap = extra/browscap.ini + +[Session] +; Handler used to store/retrieve data. +; http://php.net/session.save-handler +session.save_handler = files + +; Argument passed to save_handler. In the case of files, this is the path +; where data files are stored. Note: Windows users have to change this +; variable in order to use PHP's session functions. +; +; The path can be defined as: +; +; session.save_path = "N;/path" +; +; where N is an integer. Instead of storing all the session files in +; /path, what this will do is use subdirectories N-levels deep, and +; store the session data in those directories. This is useful if +; your OS has problems with many files in one directory, and is +; a more efficient layout for servers that handle many sessions. +; +; NOTE 1: PHP will not create this directory structure automatically. +; You can use the script in the ext/session dir for that purpose. +; NOTE 2: See the section on garbage collection below if you choose to +; use subdirectories for session storage +; +; The file storage module creates files using mode 600 by default. +; You can change that by using +; +; session.save_path = "N;MODE;/path" +; +; where MODE is the octal representation of the mode. Note that this +; does not overwrite the process's umask. +; http://php.net/session.save-path +;session.save_path = "/tmp" + +; Whether to use strict session mode. +; Strict session mode does not accept an uninitialized session ID, and +; regenerates the session ID if the browser sends an uninitialized session ID. +; Strict mode protects applications from session fixation via a session adoption +; vulnerability. It is disabled by default for maximum compatibility, but +; enabling it is encouraged. +; https://wiki.php.net/rfc/strict_sessions +session.use_strict_mode = 0 + +; Whether to use cookies. +; http://php.net/session.use-cookies +session.use_cookies = 1 + +; http://php.net/session.cookie-secure +;session.cookie_secure = + +; This option forces PHP to fetch and use a cookie for storing and maintaining +; the session id. We encourage this operation as it's very helpful in combating +; session hijacking when not specifying and managing your own session id. It is +; not the be-all and end-all of session hijacking defense, but it's a good start. +; http://php.net/session.use-only-cookies +session.use_only_cookies = 1 + +; Name of the session (used as cookie name). +; http://php.net/session.name +session.name = PHPSESSID + +; Initialize session on request startup. +; http://php.net/session.auto-start +session.auto_start = 0 + +; Lifetime in seconds of cookie or, if 0, until browser is restarted. +; http://php.net/session.cookie-lifetime +session.cookie_lifetime = 0 + +; The path for which the cookie is valid. +; http://php.net/session.cookie-path +session.cookie_path = / + +; The domain for which the cookie is valid. +; http://php.net/session.cookie-domain +session.cookie_domain = + +; Whether or not to add the httpOnly flag to the cookie, which makes it +; inaccessible to browser scripting languages such as JavaScript. +; http://php.net/session.cookie-httponly +session.cookie_httponly = + +; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) +; Current valid values are "Lax" or "Strict" +; https://tools.ietf.org/html/draft-west-first-party-cookies-07 +session.cookie_samesite = + +; Handler used to serialize data. php is the standard serializer of PHP. +; http://php.net/session.serialize-handler +session.serialize_handler = php + +; Defines the probability that the 'garbage collection' process is started +; on every session initialization. The probability is calculated by using +; gc_probability/gc_divisor. Where session.gc_probability is the numerator +; and gc_divisor is the denominator in the equation. Setting this value to 1 +; when the session.gc_divisor value is 100 will give you approximately a 1% chance +; the gc will run on any given request. +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.gc-probability +session.gc_probability = 1 + +; Defines the probability that the 'garbage collection' process is started on every +; session initialization. The probability is calculated by using the following equation: +; gc_probability/gc_divisor. Where session.gc_probability is the numerator and +; session.gc_divisor is the denominator in the equation. Setting this value to 100 +; when the session.gc_probability value is 1 will give you approximately a 1% chance +; the gc will run on any given request. Increasing this value to 1000 will give you +; a 0.1% chance the gc will run on any given request. For high volume production servers, +; this is a more efficient approach. +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 +; http://php.net/session.gc-divisor +session.gc_divisor = 1000 + +; After this number of seconds, stored data will be seen as 'garbage' and +; cleaned up by the garbage collection process. +; http://php.net/session.gc-maxlifetime +session.gc_maxlifetime = 1440 + +; NOTE: If you are using the subdirectory option for storing session files +; (see session.save_path above), then garbage collection does *not* +; happen automatically. You will need to do your own garbage +; collection through a shell script, cron entry, or some other method. +; For example, the following script would is the equivalent of +; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): +; find /path/to/sessions -cmin +24 -type f | xargs rm + +; Check HTTP Referer to invalidate externally stored URLs containing ids. +; HTTP_REFERER has to contain this substring for the session to be +; considered as valid. +; http://php.net/session.referer-check +session.referer_check = + +; Set to {nocache,private,public,} to determine HTTP caching aspects +; or leave this empty to avoid sending anti-caching headers. +; http://php.net/session.cache-limiter +session.cache_limiter = nocache + +; Document expires after n minutes. +; http://php.net/session.cache-expire +session.cache_expire = 180 + +; trans sid support is disabled by default. +; Use of trans sid may risk your users' security. +; Use this option with caution. +; - User may send URL contains active session ID +; to other person via. email/irc/etc. +; - URL that contains active session ID may be stored +; in publicly accessible computer. +; - User may access your site with the same session ID +; always using URL stored in browser's history or bookmarks. +; http://php.net/session.use-trans-sid +session.use_trans_sid = 0 + +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute paths, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" + +; Define how many bits are stored in each character when converting +; the binary hash data to something readable. +; Possible values: +; 4 (4 bits: 0-9, a-f) +; 5 (5 bits: 0-9, a-v) +; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 +; http://php.net/session.hash-bits-per-character +session.sid_bits_per_character = 5 + +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.enabled +;session.upload_progress.enabled = On + +; Cleanup the progress information as soon as all POST data has been read +; (i.e. upload completed). +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.cleanup +;session.upload_progress.cleanup = On + +; A prefix used for the upload progress key in $_SESSION +; Default Value: "upload_progress_" +; Development Value: "upload_progress_" +; Production Value: "upload_progress_" +; http://php.net/session.upload-progress.prefix +;session.upload_progress.prefix = "upload_progress_" + +; The index name (concatenated with the prefix) in $_SESSION +; containing the upload progress information +; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" +; http://php.net/session.upload-progress.name +;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" + +; How frequently the upload progress should be updated. +; Given either in percentages (per-file), or in bytes +; Default Value: "1%" +; Development Value: "1%" +; Production Value: "1%" +; http://php.net/session.upload-progress.freq +;session.upload_progress.freq = "1%" + +; The minimum delay between updates, in seconds +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.upload-progress.min-freq +;session.upload_progress.min_freq = "1" + +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On + +[Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = -1 + +; Assert(expr); active by default. +; http://php.net/assert.active +;assert.active = On + +; Throw an AssertionError on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) +; http://php.net/assert.warning +;assert.warning = On + +; Don't bail out by default. +; http://php.net/assert.bail +;assert.bail = Off + +; User-function to be called if an assertion fails. +; http://php.net/assert.callback +;assert.callback = 0 + +; Eval the expression with current error_reporting(). Set to true if you want +; error_reporting(0) around the eval(). +; http://php.net/assert.quiet-eval +;assert.quiet_eval = 0 + +[COM] +; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs +; http://php.net/com.typelib-file +;com.typelib_file = + +; allow Distributed-COM calls +; http://php.net/com.allow-dcom +;com.allow_dcom = true + +; autoregister constants of a component's typlib on com_load() +; http://php.net/com.autoregister-typelib +;com.autoregister_typelib = true + +; register constants casesensitive +; http://php.net/com.autoregister-casesensitive +;com.autoregister_casesensitive = false + +; show warnings on duplicate constant registrations +; http://php.net/com.autoregister-verbose +;com.autoregister_verbose = true + +; The default character set code-page to use when passing strings to and from COM objects. +; Default: system ANSI code page +;com.code_page= + +[mbstring] +; language for internal character representation. +; This affects mb_send_mail() and mbstring.detect_order. +; http://php.net/mbstring.language +;mbstring.language = Japanese + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; internal/script encoding. +; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;mbstring.internal_encoding = + +; Use of this INI entry is deprecated, use global input_encoding instead. +; http input encoding. +; mbstring.encoding_translation = On is needed to use this setting. +; If empty, default_charset or input_encoding or mbstring.input is used. +; The precedence is: default_charset < input_encoding < mbsting.http_input +; http://php.net/mbstring.http-input +;mbstring.http_input = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; http output encoding. +; mb_output_handler must be registered as output buffer to function. +; If empty, default_charset or output_encoding or mbstring.http_output is used. +; The precedence is: default_charset < output_encoding < mbstring.http_output +; To use an output encoding conversion, mbstring's output handler must be set +; otherwise output encoding conversion cannot be performed. +; http://php.net/mbstring.http-output +;mbstring.http_output = + +; enable automatic encoding translation according to +; mbstring.internal_encoding setting. Input chars are +; converted to internal encoding by setting this to On. +; Note: Do _not_ use automatic encoding translation for +; portable libs/applications. +; http://php.net/mbstring.encoding-translation +;mbstring.encoding_translation = Off + +; automatic encoding detection order. +; "auto" detect order is changed according to mbstring.language +; http://php.net/mbstring.detect-order +;mbstring.detect_order = auto + +; substitute_character used when character cannot be converted +; one from another +; http://php.net/mbstring.substitute-character +;mbstring.substitute_character = none + +; overload(replace) single byte functions by mbstring functions. +; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), +; etc. Possible values are 0,1,2,4 or combination of them. +; For example, 7 for overload everything. +; 0: No overload +; 1: Overload mail() function +; 2: Overload str*() functions +; 4: Overload ereg*() functions +; http://php.net/mbstring.func-overload +;mbstring.func_overload = 0 + +; enable strict encoding detection. +; Default: Off +;mbstring.strict_detection = On + +; This directive specifies the regex pattern of content types for which mb_output_handler() +; is activated. +; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) +;mbstring.http_output_conv_mimetype= + +; This directive specifies maximum stack depth for mbstring regular expressions. It is similar +; to the pcre.recursion_limit for PCRE. +; Default: 100000 +;mbstring.regex_stack_limit=100000 + +[gd] +; Tell the jpeg decode to ignore warnings and try to create +; a gd image. The warning will then be displayed as notices +; disabled by default +; http://php.net/gd.jpeg-ignore-warning +;gd.jpeg_ignore_warning = 1 + +[exif] +; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. +; With mbstring support this will automatically be converted into the encoding +; given by corresponding encode setting. When empty mbstring.internal_encoding +; is used. For the decode settings you can distinguish between motorola and +; intel byte order. A decode setting cannot be empty. +; http://php.net/exif.encode-unicode +;exif.encode_unicode = ISO-8859-15 + +; http://php.net/exif.decode-unicode-motorola +;exif.decode_unicode_motorola = UCS-2BE + +; http://php.net/exif.decode-unicode-intel +;exif.decode_unicode_intel = UCS-2LE + +; http://php.net/exif.encode-jis +;exif.encode_jis = + +; http://php.net/exif.decode-jis-motorola +;exif.decode_jis_motorola = JIS + +; http://php.net/exif.decode-jis-intel +;exif.decode_jis_intel = JIS + +[Tidy] +; The path to a default tidy configuration file to use when using tidy +; http://php.net/tidy.default-config +;tidy.default_config = /usr/local/lib/php/default.tcfg + +; Should tidy clean and repair output automatically? +; WARNING: Do not use this option if you are generating non-html content +; such as dynamic images +; http://php.net/tidy.clean-output +tidy.clean_output = Off + +[soap] +; Enables or disables WSDL caching feature. +; http://php.net/soap.wsdl-cache-enabled +soap.wsdl_cache_enabled=1 + +; Sets the directory name where SOAP extension will put cache files. +; http://php.net/soap.wsdl-cache-dir +soap.wsdl_cache_dir="/tmp" + +; (time to live) Sets the number of second while cached file will be used +; instead of original one. +; http://php.net/soap.wsdl-cache-ttl +soap.wsdl_cache_ttl=86400 + +; Sets the size of the cache limit. (Max. number of WSDL files to cache) +soap.wsdl_cache_limit = 5 + +[sysvshm] +; A default size of the shared memory segment +;sysvshm.init_mem = 10000 + +[ldap] +; Sets the maximum number of open links or -1 for unlimited. +ldap.max_links = -1 + +[dba] +;dba.default_handler= + +[opcache] +; Determines if Zend OPCache is enabled +;opcache.enable=1 + +; Determines if Zend OPCache is enabled for the CLI version of PHP +;opcache.enable_cli=0 + +; The OPcache shared memory storage size. +;opcache.memory_consumption=128 + +; The amount of memory for interned strings in Mbytes. +;opcache.interned_strings_buffer=8 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +;opcache.max_wasted_percentage=5 + +; When this directive is enabled, the OPcache appends the current working +; directory to the script key, thus eliminating possible collisions between +; files with the same name (basename). Disabling the directive improves +; performance, but may break existing applications. +;opcache.use_cwd=1 + +; When disabled, you must reset the OPcache manually or restart the +; webserver for changes to the filesystem to take effect. +;opcache.validate_timestamps=1 + +; How often (in seconds) to check file timestamps for changes to the shared +; memory storage allocation. ("1" means validate once per second, but only +; once per request. "0" means always validate) +;opcache.revalidate_freq=2 + +; Enables or disables file search in include_path optimization +;opcache.revalidate_path=0 + +; If disabled, all PHPDoc comments are dropped from the code to reduce the +; size of the optimized code. +;opcache.save_comments=1 + +; Allow file existence override (file_exists, etc.) performance feature. +;opcache.enable_file_override=0 + +; A bitmask, where each bit enables or disables the appropriate OPcache +; passes +;opcache.optimization_level=0x7FFFBFFF + +;opcache.dups_fix=0 + +; The location of the OPcache blacklist file (wildcards allowed). +; Each OPcache blacklist file is a text file that holds the names of files +; that should not be accelerated. The file format is to add each filename +; to a new line. The filename may be a full path or just a file prefix +; (i.e., /var/www/x blacklists all the files and directories in /var/www +; that start with 'x'). Line starting with a ; are ignored (comments). +;opcache.blacklist_filename= + +; Allows exclusion of large files from being cached. By default all files +; are cached. +;opcache.max_file_size=0 + +; Check the cache checksum each N requests. +; The default value of "0" means that the checks are disabled. +;opcache.consistency_checks=0 + +; How long to wait (in seconds) for a scheduled restart to begin if the cache +; is not being accessed. +;opcache.force_restart_timeout=180 + +; OPcache error_log file name. Empty string assumes "stderr". +;opcache.error_log= + +; All OPcache errors go to the Web server log. +; By default, only fatal errors (level 0) or errors (level 1) are logged. +; You can also enable warnings (level 2), info messages (level 3) or +; debug messages (level 4). +;opcache.log_verbosity_level=1 + +; Preferred Shared Memory back-end. Leave empty and let the system decide. +;opcache.preferred_memory_model= + +; Protect the shared memory from unexpected writing during script execution. +; Useful for internal debugging only. +;opcache.protect_memory=0 + +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=1 + +; Validate cached file permissions. +;opcache.validate_permission=0 + +; Prevent name collisions in chroot'ed environment. +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + +[curl] +; A default value for the CURLOPT_CAINFO option. This is required to be an +; absolute path. +;curl.cainfo = + +[openssl] +; The location of a Certificate Authority (CA) file on the local filesystem +; to use when verifying the identity of SSL/TLS peers. Most users should +; not specify a value for this directive as PHP will attempt to use the +; OS-managed cert stores in its absence. If specified, this value may still +; be overridden on a per-stream basis via the "cafile" SSL stream context +; option. +;openssl.cafile= + +; If openssl.cafile is not specified or if the CA file is not found, the +; directory pointed to by openssl.capath is searched for a suitable +; certificate. This value must be a correctly hashed certificate directory. +; Most users should not specify a value for this directive as PHP will +; attempt to use the OS-managed cert stores in its absence. If specified, +; this value may still be overridden on a per-stream basis via the "capath" +; SSL stream context option. +;openssl.capath= + +; Local Variables: +; tab-width: 4 +; End: diff --git a/7/orig/php-7.4.ini-development b/7/orig/php-7.4.ini-development new file mode 100644 index 00000000..5bd27401 --- /dev/null +++ b/7/orig/php-7.4.ini-development @@ -0,0 +1,1950 @@ +[PHP] + +;;;;;;;;;;;;;;;;;;; +; About php.ini ; +;;;;;;;;;;;;;;;;;;; +; PHP's initialization file, generally called php.ini, is responsible for +; configuring many of the aspects of PHP's behavior. + +; PHP attempts to find and load this configuration from a number of locations. +; The following is a summary of its search order: +; 1. SAPI module specific location. +; 2. The PHPRC environment variable. (As of PHP 5.2.0) +; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) +; 4. Current working directory (except CLI) +; 5. The web server's directory (for SAPI modules), or directory of PHP +; (otherwise in Windows) +; 6. The directory from the --with-config-file-path compile time option, or the +; Windows directory (usually C:\windows) +; See the PHP docs for more specific information. +; http://php.net/configuration.file + +; The syntax of the file is extremely simple. Whitespace and lines +; beginning with a semicolon are silently ignored (as you probably guessed). +; Section headers (e.g. [Foo]) are also silently ignored, even though +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served from www.example.com. Directives set in these +; special sections cannot be overridden by user-defined INI files or +; at runtime. Currently, [PATH=] and [HOST=] sections only work under +; CGI/FastCGI. +; http://php.net/ini.sections + +; Directives are specified using the following syntax: +; directive = value +; Directive names are *case sensitive* - foo=bar is different from FOO=bar. +; Directives are variables used to configure PHP or PHP extensions. +; There is no name validation. If PHP can't find an expected +; directive because it is not set or is mistyped, a default value will be used. + +; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one +; of the INI constants (On, Off, True, False, Yes, No and None) or an expression +; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a +; previously set variable or directive (e.g. ${foo}) + +; Expressions in the INI file are limited to bitwise operators and parentheses: +; | bitwise OR +; ^ bitwise XOR +; & bitwise AND +; ~ bitwise NOT +; ! boolean NOT + +; Boolean flags can be turned on using the values 1, On, True or Yes. +; They can be turned off using the values 0, Off, False or No. + +; An empty string can be denoted by simply not writing anything after the equal +; sign, or by using the None keyword: + +; foo = ; sets foo to an empty string +; foo = None ; sets foo to an empty string +; foo = "None" ; sets foo to the string 'None' + +; If you use constants in your value, and these constants belong to a +; dynamically loaded extension (either a PHP extension or a Zend extension), +; you may only use these constants *after* the line that loads the extension. + +;;;;;;;;;;;;;;;;;;; +; About this file ; +;;;;;;;;;;;;;;;;;;; +; PHP comes packaged with two INI files. One that is recommended to be used +; in production environments and one that is recommended to be used in +; development environments. + +; php.ini-production contains settings which hold security, performance and +; best practices at its core. But please be aware, these settings may break +; compatibility with older or less security conscience applications. We +; recommending using the production ini in production and testing environments. + +; php.ini-development is very similar to its production variant, except it is +; much more verbose when it comes to errors. We recommend using the +; development version only in development environments, as errors shown to +; application users can inadvertently leak otherwise secure information. + +; This is the php.ini-development INI file. + +;;;;;;;;;;;;;;;;;;; +; Quick Reference ; +;;;;;;;;;;;;;;;;;;; +; The following are all the settings which are different in either the production +; or development versions of the INIs with respect to PHP's default behavior. +; Please see the actual settings later in the document for more details as to why +; we recommend these changes in PHP's behavior. + +; display_errors +; Default Value: On +; Development Value: On +; Production Value: Off + +; display_startup_errors +; Default Value: Off +; Development Value: On +; Production Value: Off + +; error_reporting +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT + +; log_errors +; Default Value: Off +; Development Value: On +; Production Value: On + +; max_input_time +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) + +; output_buffering +; Default Value: Off +; Development Value: 4096 +; Production Value: 4096 + +; register_argc_argv +; Default Value: On +; Development Value: Off +; Production Value: Off + +; request_order +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" + +; session.gc_divisor +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 + +; session.sid_bits_per_character +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 + +; short_open_tag +; Default Value: On +; Development Value: Off +; Production Value: Off + +; variables_order +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS" + +;;;;;;;;;;;;;;;;;;;; +; php.ini Options ; +;;;;;;;;;;;;;;;;;;;; +; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" +;user_ini.filename = ".user.ini" + +; To disable this feature set this option to an empty value +;user_ini.filename = + +; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) +;user_ini.cache_ttl = 300 + +;;;;;;;;;;;;;;;;;;;; +; Language Options ; +;;;;;;;;;;;;;;;;;;;; + +; Enable the PHP scripting language engine under Apache. +; http://php.net/engine +engine = On + +; This directive determines whether or not PHP will recognize code between +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the would work. +; http://php.net/syntax-highlighting +;highlight.string = #DD0000 +;highlight.comment = #FF9900 +;highlight.keyword = #007700 +;highlight.default = #0000BB +;highlight.html = #000000 + +; If enabled, the request will be allowed to complete even if the user aborts +; the request. Consider enabling it if executing long requests, which may end up +; being interrupted by the user or a browser timing out. PHP's default behavior +; is to disable this feature. +; http://php.net/ignore-user-abort +;ignore_user_abort = On + +; Determines the size of the realpath cache to be used by PHP. This value should +; be increased on systems where PHP opens many files to reflect the quantity of +; the file operations performed. +; Note: if open_basedir is set, the cache is disabled +; http://php.net/realpath-cache-size +;realpath_cache_size = 4096k + +; Duration of time, in seconds for which to cache realpath information for a given +; file or directory. For systems with rarely changing files, consider increasing this +; value. +; http://php.net/realpath-cache-ttl +;realpath_cache_ttl = 120 + +; Enables or disables the circular reference collector. +; http://php.net/zend.enable-gc +zend.enable_gc = On + +; If enabled, scripts may be written in encodings that are incompatible with +; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such +; encodings. To use this feature, mbstring extension must be enabled. +; Default: Off +;zend.multibyte = Off + +; Allows to set the default encoding for the scripts. This value will be used +; unless "declare(encoding=...)" directive appears at the top of the script. +; Only affects if zend.multibyte is set. +; Default: "" +;zend.script_encoding = + +; Allows to include or exclude arguments from stack traces generated for exceptions +; Default: Off +zend.exception_ignore_args = Off + +;;;;;;;;;;;;;;;;; +; Miscellaneous ; +;;;;;;;;;;;;;;;;; + +; Decides whether PHP may expose the fact that it is installed on the server +; (e.g. by adding its signature to the Web server header). It is no security +; threat in any way, but it makes it possible to determine whether you use PHP +; on your server or not. +; http://php.net/expose-php +expose_php = On + +;;;;;;;;;;;;;;;;;;; +; Resource Limits ; +;;;;;;;;;;;;;;;;;;; + +; Maximum execution time of each script, in seconds +; http://php.net/max-execution-time +; Note: This directive is hardcoded to 0 for the CLI SAPI +max_execution_time = 30 + +; Maximum amount of time each script may spend parsing request data. It's a good +; idea to limit this time on productions servers in order to eliminate unexpectedly +; long running scripts. +; Note: This directive is hardcoded to -1 for the CLI SAPI +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) +; http://php.net/max-input-time +max_input_time = 60 + +; Maximum input variable nesting level +; http://php.net/max-input-nesting-level +;max_input_nesting_level = 64 + +; How many GET/POST/COOKIE input variables may be accepted +;max_input_vars = 1000 + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Error handling and logging ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. The recommended way of setting values for this +; directive is through the use of the error level constants and bitwise +; operators. The error level constants are below here for convenience as well as +; some common settings and their meanings. +; By default, PHP is set to take action on all errors, notices and warnings EXCEPT +; those related to E_NOTICE and E_STRICT, which together cover best practices and +; recommended coding standards in PHP. For performance reasons, this is the +; recommend error reporting setting. Your production server shouldn't be wasting +; resources complaining about best practices and coding standards. That's what +; development servers and development settings are for. +; Note: The php.ini-development file has this setting as E_ALL. This +; means it pretty much reports everything which is exactly what you want during +; development and early testing. +; +; Error Level Constants: +; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) +; E_ERROR - fatal run-time errors +; E_RECOVERABLE_ERROR - almost fatal run-time errors +; E_WARNING - run-time warnings (non-fatal errors) +; E_PARSE - compile-time parse errors +; E_NOTICE - run-time notices (these are warnings which often result +; from a bug in your code, but it's possible that it was +; intentional (e.g., using an uninitialized variable and +; relying on the fact it is automatically initialized to an +; empty string) +; E_STRICT - run-time notices, enable to have PHP suggest changes +; to your code which will ensure the best interoperability +; and forward compatibility of your code +; E_CORE_ERROR - fatal errors that occur during PHP's initial startup +; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's +; initial startup +; E_COMPILE_ERROR - fatal compile-time errors +; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) +; E_USER_ERROR - user-generated error message +; E_USER_WARNING - user-generated warning message +; E_USER_NOTICE - user-generated notice message +; E_DEPRECATED - warn about code that will not work in future versions +; of PHP +; E_USER_DEPRECATED - user-generated deprecation warnings +; +; Common Values: +; E_ALL (Show all errors, warnings and notices including coding standards.) +; E_ALL & ~E_NOTICE (Show all errors, except for notices) +; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) +; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT +; http://php.net/error-reporting +error_reporting = E_ALL + +; This directive controls whether or not and where PHP will output errors, +; notices and warnings too. Error output is very useful during development, but +; it could be very dangerous in production environments. Depending on the code +; which is triggering the error, sensitive information could potentially leak +; out of your application such as database usernames and passwords or worse. +; For production environments, we recommend logging errors rather than +; sending them to STDOUT. +; Possible Values: +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; On or stdout = Display errors to STDOUT +; Default Value: On +; Development Value: On +; Production Value: Off +; http://php.net/display-errors +display_errors = On + +; The display of errors which occur during PHP's startup sequence are handled +; separately from display_errors. PHP's default behavior is to suppress those +; errors from clients. Turning the display of startup errors on can be useful in +; debugging configuration problems. We strongly recommend you +; set this to 'off' for production servers. +; Default Value: Off +; Development Value: On +; Production Value: Off +; http://php.net/display-startup-errors +display_startup_errors = On + +; Besides displaying errors, PHP can also log errors to locations such as a +; server-specific log, STDERR, or a location specified by the error_log +; directive found below. While errors should not be displayed on productions +; servers they should still be monitored and logging is a great way to do that. +; Default Value: Off +; Development Value: On +; Production Value: On +; http://php.net/log-errors +log_errors = On + +; Set maximum length of log_errors. In error_log information about the source is +; added. The default is 1024 and 0 allows to not apply any maximum length at all. +; http://php.net/log-errors-max-len +log_errors_max_len = 1024 + +; Do not log repeated messages. Repeated errors must occur in same file on same +; line unless ignore_repeated_source is set true. +; http://php.net/ignore-repeated-errors +ignore_repeated_errors = Off + +; Ignore source of message when ignoring repeated messages. When this setting +; is On you will not log errors with repeated messages from different files or +; source lines. +; http://php.net/ignore-repeated-source +ignore_repeated_source = Off + +; If this parameter is set to Off, then memory leaks will not be shown (on +; stdout or in the log). This is only effective in a debug compile, and if +; error reporting includes E_WARNING in the allowed list +; http://php.net/report-memleaks +report_memleaks = On + +; This setting is on by default. +;report_zend_debug = 0 + +; Store the last error/warning message in $php_errormsg (boolean). +; This directive is DEPRECATED. +; Default Value: Off +; Development Value: Off +; Production Value: Off +; http://php.net/track-errors +;track_errors = Off + +; Turn off normal error reporting and emit XML-RPC error XML +; http://php.net/xmlrpc-errors +;xmlrpc_errors = 0 + +; An XML-RPC faultCode +;xmlrpc_error_number = 0 + +; When PHP displays or logs an error, it has the capability of formatting the +; error message as HTML for easier reading. This directive controls whether +; the error message is formatted as HTML or not. +; Note: This directive is hardcoded to Off for the CLI SAPI +; http://php.net/html-errors +;html_errors = On + +; If html_errors is set to On *and* docref_root is not empty, then PHP +; produces clickable error messages that direct to a page describing the error +; or function causing the error in detail. +; You can download a copy of the PHP manual from http://php.net/docs +; and change docref_root to the base URL of your local copy including the +; leading '/'. You must also specify the file extension being used including +; the dot. PHP's default behavior is to leave these settings empty, in which +; case no links to documentation are generated. +; Note: Never use this feature for production boxes. +; http://php.net/docref-root +; Examples +;docref_root = "/phpmanual/" + +; http://php.net/docref-ext +;docref_ext = .html + +; String to output before an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-prepend-string +; Example: +;error_prepend_string = "" + +; String to output after an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-append-string +; Example: +;error_append_string = "" + +; Log errors to specified file. PHP's default behavior is to leave this value +; empty. +; http://php.net/error-log +; Example: +;error_log = php_errors.log +; Log errors to syslog (Event Log on Windows). +;error_log = syslog + +; The syslog ident is a string which is prepended to every message logged +; to syslog. Only used when error_log is set to syslog. +;syslog.ident = php + +; The syslog facility is used to specify what type of program is logging +; the message. Only used when error_log is set to syslog. +;syslog.facility = user + +; Set this to disable filtering control characters (the default). +; Some loggers only accept NVT-ASCII, others accept anything that's not +; control characters. If your logger accepts everything, then no filtering +; is needed at all. +; Allowed values are: +; ascii (all printable ASCII characters and NL) +; no-ctrl (all characters except control characters) +; all (all characters) +; raw (like "all", but messages are not split at newlines) +; http://php.net/syslog.filter +;syslog.filter = ascii + +;windows.show_crt_warning +; Default value: 0 +; Development value: 0 +; Production value: 0 + +;;;;;;;;;;;;;;;;; +; Data Handling ; +;;;;;;;;;;;;;;;;; + +; The separator used in PHP generated URLs to separate arguments. +; PHP's default setting is "&". +; http://php.net/arg-separator.output +; Example: +;arg_separator.output = "&" + +; List of separator(s) used by PHP to parse input URLs into variables. +; PHP's default setting is "&". +; NOTE: Every character in this directive is considered as separator! +; http://php.net/arg-separator.input +; Example: +;arg_separator.input = ";&" + +; This directive determines which super global arrays are registered when PHP +; starts up. G,P,C,E & S are abbreviations for the following respective super +; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty +; paid for the registration of these arrays and because ENV is not as commonly +; used as the others, ENV is not recommended on productions servers. You +; can still get access to the environment variables through getenv() should you +; need to. +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS"; +; http://php.net/variables-order +variables_order = "GPCS" + +; This directive determines which super global data (G,P & C) should be +; registered into the super global array REQUEST. If so, it also determines +; the order in which that data is registered. The values for this directive +; are specified in the same manner as the variables_order directive, +; EXCEPT one. Leaving this value empty will cause PHP to use the value set +; in the variables_order directive. It does not mean it will leave the super +; globals array REQUEST empty. +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" +; http://php.net/request-order +request_order = "GP" + +; This directive determines whether PHP registers $argv & $argc each time it +; runs. $argv contains an array of all the arguments passed to PHP when a script +; is invoked. $argc contains an integer representing the number of arguments +; that were passed when the script was invoked. These arrays are extremely +; useful when running scripts from the command line. When this directive is +; enabled, registering these variables consumes CPU cycles and memory each time +; a script is executed. For performance reasons, this feature should be disabled +; on production servers. +; Note: This directive is hardcoded to On for the CLI SAPI +; Default Value: On +; Development Value: Off +; Production Value: Off +; http://php.net/register-argc-argv +register_argc_argv = Off + +; When enabled, the ENV, REQUEST and SERVER variables are created when they're +; first used (Just In Time) instead of when the script starts. If these +; variables are not used within a script, having this directive on will result +; in a performance gain. The PHP directive register_argc_argv must be disabled +; for this directive to have any effect. +; http://php.net/auto-globals-jit +auto_globals_jit = On + +; Whether PHP will read the POST data. +; This option is enabled by default. +; Most likely, you won't want to disable this option globally. It causes $_POST +; and $_FILES to always be empty; the only way you will be able to read the +; POST data will be through the php://input stream wrapper. This can be useful +; to proxy requests or to process the POST data in a memory efficient fashion. +; http://php.net/enable-post-data-reading +;enable_post_data_reading = Off + +; Maximum size of POST data that PHP will accept. +; Its value may be 0 to disable the limit. It is ignored if POST data reading +; is disabled through enable_post_data_reading. +; http://php.net/post-max-size +post_max_size = 8M + +; Automatically add files before PHP document. +; http://php.net/auto-prepend-file +auto_prepend_file = + +; Automatically add files after PHP document. +; http://php.net/auto-append-file +auto_append_file = + +; By default, PHP will output a media type using the Content-Type header. To +; disable this, simply set it to be empty. +; +; PHP's built-in default media type is set to text/html. +; http://php.net/default-mimetype +default_mimetype = "text/html" + +; PHP's default character set is set to UTF-8. +; http://php.net/default-charset +default_charset = "UTF-8" + +; PHP internal character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/internal-encoding +;internal_encoding = + +; PHP input character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/input-encoding +;input_encoding = + +; PHP output character encoding is set to empty. +; If empty, default_charset is used. +; See also output_buffer. +; http://php.net/output-encoding +;output_encoding = + +;;;;;;;;;;;;;;;;;;;;;;;;; +; Paths and Directories ; +;;;;;;;;;;;;;;;;;;;;;;;;; + +; UNIX: "/path1:/path2" +;include_path = ".:/php/includes" +; +; Windows: "\path1;\path2" +;include_path = ".;c:\php\includes" +; +; PHP's default setting for include_path is ".;/path/to/php/pear" +; http://php.net/include-path + +; The root of the PHP pages, used only if nonempty. +; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root +; if you are running php as a CGI under any web server (other than IIS) +; see documentation for security issues. The alternate is to use the +; cgi.force_redirect configuration below +; http://php.net/doc-root +doc_root = + +; The directory under which PHP opens the script using /~username used only +; if nonempty. +; http://php.net/user-dir +user_dir = + +; Directory in which the loadable extensions (modules) reside. +; http://php.net/extension-dir +;extension_dir = "./" +; On windows: +;extension_dir = "ext" + +; Directory where the temporary files should be placed. +; Defaults to the system default (see sys_get_temp_dir) +;sys_temp_dir = "/tmp" + +; Whether or not to enable the dl() function. The dl() function does NOT work +; properly in multithreaded servers, such as IIS or Zeus, and is automatically +; disabled on them. +; http://php.net/enable-dl +enable_dl = Off + +; cgi.force_redirect is necessary to provide security running PHP as a CGI under +; most web servers. Left undefined, PHP turns this on by default. You can +; turn it off here AT YOUR OWN RISK +; **You CAN safely turn this off for IIS, in fact, you MUST.** +; http://php.net/cgi.force-redirect +;cgi.force_redirect = 1 + +; if cgi.nph is enabled it will force cgi to always sent Status: 200 with +; every request. PHP's default behavior is to disable this feature. +;cgi.nph = 1 + +; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape +; (iPlanet) web servers, you MAY need to set an environment variable name that PHP +; will look for to know it is OK to continue execution. Setting this variable MAY +; cause security issues, KNOW WHAT YOU ARE DOING FIRST. +; http://php.net/cgi.redirect-status-env +;cgi.redirect_status_env = + +; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's +; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok +; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting +; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting +; of zero causes PHP to behave as before. Default is 1. You should fix your scripts +; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. +; http://php.net/cgi.fix-pathinfo +;cgi.fix_pathinfo=1 + +; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside +; of the web tree and people will not be able to circumvent .htaccess security. +;cgi.discard_path=1 + +; FastCGI under IIS supports the ability to impersonate +; security tokens of the calling client. This allows IIS to define the +; security context that the request runs under. mod_fastcgi under Apache +; does not currently support this feature (03/17/2002) +; Set to 1 if running under IIS. Default is zero. +; http://php.net/fastcgi.impersonate +;fastcgi.impersonate = 1 + +; Disable logging through FastCGI connection. PHP's default behavior is to enable +; this feature. +;fastcgi.logging = 0 + +; cgi.rfc2616_headers configuration option tells PHP what type of headers to +; use when sending HTTP response code. If set to 0, PHP sends Status: header that +; is supported by Apache. When this option is set to 1, PHP will send +; RFC2616 compliant header. +; Default is zero. +; http://php.net/cgi.rfc2616-headers +;cgi.rfc2616_headers = 0 + +; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! +; (shebang) at the top of the running script. This line might be needed if the +; script support running both as stand-alone script and via PHP CGI<. PHP in CGI +; mode skips this line and ignores its content if this directive is turned on. +; http://php.net/cgi.check-shebang-line +;cgi.check_shebang_line=1 + +;;;;;;;;;;;;;;;; +; File Uploads ; +;;;;;;;;;;;;;;;; + +; Whether to allow HTTP file uploads. +; http://php.net/file-uploads +file_uploads = On + +; Temporary directory for HTTP uploaded files (will use system default if not +; specified). +; http://php.net/upload-tmp-dir +;upload_tmp_dir = + +; Maximum allowed size for uploaded files. +; http://php.net/upload-max-filesize +upload_max_filesize = 2M + +; Maximum number of files that can be uploaded via a single request +max_file_uploads = 20 + +;;;;;;;;;;;;;;;;;; +; Fopen wrappers ; +;;;;;;;;;;;;;;;;;; + +; Whether to allow the treatment of URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-fopen +allow_url_fopen = On + +; Whether to allow include/require to open URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-include +allow_url_include = Off + +; Define the anonymous ftp password (your email address). PHP's default setting +; for this is empty. +; http://php.net/from +;from="john@doe.com" + +; Define the User-Agent string. PHP's default setting for this is empty. +; http://php.net/user-agent +;user_agent="PHP" + +; Default timeout for socket based streams (seconds) +; http://php.net/default-socket-timeout +default_socket_timeout = 60 + +; If your scripts have to deal with files from Macintosh systems, +; or you are running on a Mac and need to deal with files from +; unix or win32 systems, setting this flag will cause PHP to +; automatically detect the EOL character in those files so that +; fgets() and file() will work regardless of the source of the file. +; http://php.net/auto-detect-line-endings +;auto_detect_line_endings = Off + +;;;;;;;;;;;;;;;;;;;;;; +; Dynamic Extensions ; +;;;;;;;;;;;;;;;;;;;;;; + +; If you wish to have an extension loaded automatically, use the following +; syntax: +; +; extension=modulename +; +; For example: +; +; extension=mysqli +; +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: +; +; extension=/path/to/extension/mysqli.so +; +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. +; +; Notes for Windows environments : +; +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. +; +;extension=bz2 +;extension=curl +;extension=ffi +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop + +; The MIBS data available in the PHP distribution must be installed. +; See http://www.php.net/manual/en/snmp.installation.php +;extension=snmp + +;extension=soap +;extension=sockets +;extension=sodium +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl + +;;;;;;;;;;;;;;;;;;; +; Module Settings ; +;;;;;;;;;;;;;;;;;;; + +[CLI Server] +; Whether the CLI web server uses ANSI color coding in its terminal output. +cli_server.color = On + +[Date] +; Defines the default timezone used by the date functions +; http://php.net/date.timezone +;date.timezone = + +; http://php.net/date.default-latitude +;date.default_latitude = 31.7667 + +; http://php.net/date.default-longitude +;date.default_longitude = 35.2333 + +; http://php.net/date.sunrise-zenith +;date.sunrise_zenith = 90.583333 + +; http://php.net/date.sunset-zenith +;date.sunset_zenith = 90.583333 + +[filter] +; http://php.net/filter.default +;filter.default = unsafe_raw + +; http://php.net/filter.default-flags +;filter.default_flags = + +[iconv] +; Use of this INI entry is deprecated, use global input_encoding instead. +; If empty, default_charset or input_encoding or iconv.input_encoding is used. +; The precedence is: default_charset < input_encoding < iconv.input_encoding +;iconv.input_encoding = + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;iconv.internal_encoding = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; If empty, default_charset or output_encoding or iconv.output_encoding is used. +; The precedence is: default_charset < output_encoding < iconv.output_encoding +; To use an output encoding conversion, iconv's output handler must be set +; otherwise output encoding conversion cannot be performed. +;iconv.output_encoding = + +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + +[intl] +;intl.default_locale = +; This directive allows you to produce PHP errors when some error +; happens within intl functions. The value is the level of the error produced. +; Default is 0, which does not produce any errors. +;intl.error_level = E_WARNING +;intl.use_exceptions = 0 + +[sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir +;sqlite3.extension_dir = + +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + +[Pcre] +; PCRE library backtracking limit. +; http://php.net/pcre.backtrack-limit +;pcre.backtrack_limit=100000 + +; PCRE library recursion limit. +; Please note that if you set this value to a high number you may consume all +; the available process stack and eventually crash PHP (due to reaching the +; stack size limit imposed by the Operating System). +; http://php.net/pcre.recursion-limit +;pcre.recursion_limit=100000 + +; Enables or disables JIT compilation of patterns. This requires the PCRE +; library to be compiled with JIT support. +;pcre.jit=1 + +[Pdo] +; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" +; http://php.net/pdo-odbc.connection-pooling +;pdo_odbc.connection_pooling=strict + +;pdo_odbc.db2_instance_name + +[Pdo_mysql] +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +pdo_mysql.default_socket= + +[Phar] +; http://php.net/phar.readonly +;phar.readonly = On + +; http://php.net/phar.require-hash +;phar.require_hash = On + +;phar.cache_list = + +[mail function] +; For Win32 only. +; http://php.net/smtp +SMTP = localhost +; http://php.net/smtp-port +smtp_port = 25 + +; For Win32 only. +; http://php.net/sendmail-from +;sendmail_from = me@example.com + +; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). +; http://php.net/sendmail-path +;sendmail_path = + +; Force the addition of the specified parameters to be passed as extra parameters +; to the sendmail binary. These parameters will always replace the value of +; the 5th parameter to mail(). +;mail.force_extra_parameters = + +; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename +mail.add_x_header = Off + +; The path to a log file that will log all mail() calls. Log entries include +; the full path of the script, line number, To address and headers. +;mail.log = +; Log mail to syslog (Event Log on Windows). +;mail.log = syslog + +[ODBC] +; http://php.net/odbc.default-db +;odbc.default_db = Not yet implemented + +; http://php.net/odbc.default-user +;odbc.default_user = Not yet implemented + +; http://php.net/odbc.default-pw +;odbc.default_pw = Not yet implemented + +; Controls the ODBC cursor model. +; Default: SQL_CURSOR_STATIC (default). +;odbc.default_cursortype + +; Allow or prevent persistent links. +; http://php.net/odbc.allow-persistent +odbc.allow_persistent = On + +; Check that a connection is still valid before reuse. +; http://php.net/odbc.check-persistent +odbc.check_persistent = On + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/odbc.max-persistent +odbc.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +; http://php.net/odbc.max-links +odbc.max_links = -1 + +; Handling of LONG fields. Returns number of bytes to variables. 0 means +; passthru. +; http://php.net/odbc.defaultlrl +odbc.defaultlrl = 4096 + +; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. +; See the documentation on odbc_binmode and odbc_longreadlen for an explanation +; of odbc.defaultlrl and odbc.defaultbinmode +; http://php.net/odbc.defaultbinmode +odbc.defaultbinmode = 1 + +[MySQLi] + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/mysqli.max-persistent +mysqli.max_persistent = -1 + +; Allow accessing, from PHP's perspective, local files with LOAD DATA statements +; http://php.net/mysqli.allow_local_infile +;mysqli.allow_local_infile = On + +; Allow or prevent persistent links. +; http://php.net/mysqli.allow-persistent +mysqli.allow_persistent = On + +; Maximum number of links. -1 means no limit. +; http://php.net/mysqli.max-links +mysqli.max_links = -1 + +; Default port number for mysqli_connect(). If unset, mysqli_connect() will use +; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the +; compile-time value defined MYSQL_PORT (in that order). Win32 will only look +; at MYSQL_PORT. +; http://php.net/mysqli.default-port +mysqli.default_port = 3306 + +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +; http://php.net/mysqli.default-socket +mysqli.default_socket = + +; Default host for mysqli_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-host +mysqli.default_host = + +; Default user for mysqli_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-user +mysqli.default_user = + +; Default password for mysqli_connect() (doesn't apply in safe mode). +; Note that this is generally a *bad* idea to store passwords in this file. +; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") +; and reveal this password! And of course, any users with read access to this +; file will be able to reveal the password as well. +; http://php.net/mysqli.default-pw +mysqli.default_pw = + +; Allow or prevent reconnect +mysqli.reconnect = Off + +[mysqlnd] +; Enable / Disable collection of general statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_statistics = On + +; Enable / Disable collection of memory usage statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_memory_statistics = On + +; Records communication from all extensions using mysqlnd to the specified log +; file. +; http://php.net/mysqlnd.debug +;mysqlnd.debug = + +; Defines which queries will be logged. +;mysqlnd.log_mask = 0 + +; Default size of the mysqlnd memory pool, which is used by result sets. +;mysqlnd.mempool_default_size = 16000 + +; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. +;mysqlnd.net_cmd_buffer_size = 2048 + +; Size of a pre-allocated buffer used for reading data sent by the server in +; bytes. +;mysqlnd.net_read_buffer_size = 32768 + +; Timeout for network requests in seconds. +;mysqlnd.net_read_timeout = 31536000 + +; SHA-256 Authentication Plugin related. File with the MySQL server public RSA +; key. +;mysqlnd.sha256_server_public_key = + +[OCI8] + +; Connection: Enables privileged connections using external +; credentials (OCI_SYSOPER, OCI_SYSDBA) +; http://php.net/oci8.privileged-connect +;oci8.privileged_connect = Off + +; Connection: The maximum number of persistent OCI8 connections per +; process. Using -1 means no limit. +; http://php.net/oci8.max-persistent +;oci8.max_persistent = -1 + +; Connection: The maximum number of seconds a process is allowed to +; maintain an idle persistent connection. Using -1 means idle +; persistent connections will be maintained forever. +; http://php.net/oci8.persistent-timeout +;oci8.persistent_timeout = -1 + +; Connection: The number of seconds that must pass before issuing a +; ping during oci_pconnect() to check the connection validity. When +; set to 0, each oci_pconnect() will cause a ping. Using -1 disables +; pings completely. +; http://php.net/oci8.ping-interval +;oci8.ping_interval = 60 + +; Connection: Set this to a user chosen connection class to be used +; for all pooled server requests with Oracle 11g Database Resident +; Connection Pooling (DRCP). To use DRCP, this value should be set to +; the same string for all web servers running the same application, +; the database pool must be configured, and the connection string must +; specify to use a pooled server. +;oci8.connection_class = + +; High Availability: Using On lets PHP receive Fast Application +; Notification (FAN) events generated when a database node fails. The +; database must also be configured to post FAN events. +;oci8.events = Off + +; Tuning: This option enables statement caching, and specifies how +; many statements to cache. Using 0 disables statement caching. +; http://php.net/oci8.statement-cache-size +;oci8.statement_cache_size = 20 + +; Tuning: Enables statement prefetching and sets the default number of +; rows that will be fetched automatically after statement execution. +; http://php.net/oci8.default-prefetch +;oci8.default_prefetch = 100 + +; Compatibility. Using On means oci_close() will not close +; oci_connect() and oci_new_connect() connections. +; http://php.net/oci8.old-oci-close-semantics +;oci8.old_oci_close_semantics = Off + +[PostgreSQL] +; Allow or prevent persistent links. +; http://php.net/pgsql.allow-persistent +pgsql.allow_persistent = On + +; Detect broken persistent links always with pg_pconnect(). +; Auto reset feature requires a little overheads. +; http://php.net/pgsql.auto-reset-persistent +pgsql.auto_reset_persistent = Off + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/pgsql.max-persistent +pgsql.max_persistent = -1 + +; Maximum number of links (persistent+non persistent). -1 means no limit. +; http://php.net/pgsql.max-links +pgsql.max_links = -1 + +; Ignore PostgreSQL backends Notice message or not. +; Notice message logging require a little overheads. +; http://php.net/pgsql.ignore-notice +pgsql.ignore_notice = 0 + +; Log PostgreSQL backends Notice message or not. +; Unless pgsql.ignore_notice=0, module cannot log notice message. +; http://php.net/pgsql.log-notice +pgsql.log_notice = 0 + +[bcmath] +; Number of decimal digits for all bcmath functions. +; http://php.net/bcmath.scale +bcmath.scale = 0 + +[browscap] +; http://php.net/browscap +;browscap = extra/browscap.ini + +[Session] +; Handler used to store/retrieve data. +; http://php.net/session.save-handler +session.save_handler = files + +; Argument passed to save_handler. In the case of files, this is the path +; where data files are stored. Note: Windows users have to change this +; variable in order to use PHP's session functions. +; +; The path can be defined as: +; +; session.save_path = "N;/path" +; +; where N is an integer. Instead of storing all the session files in +; /path, what this will do is use subdirectories N-levels deep, and +; store the session data in those directories. This is useful if +; your OS has problems with many files in one directory, and is +; a more efficient layout for servers that handle many sessions. +; +; NOTE 1: PHP will not create this directory structure automatically. +; You can use the script in the ext/session dir for that purpose. +; NOTE 2: See the section on garbage collection below if you choose to +; use subdirectories for session storage +; +; The file storage module creates files using mode 600 by default. +; You can change that by using +; +; session.save_path = "N;MODE;/path" +; +; where MODE is the octal representation of the mode. Note that this +; does not overwrite the process's umask. +; http://php.net/session.save-path +;session.save_path = "/tmp" + +; Whether to use strict session mode. +; Strict session mode does not accept an uninitialized session ID, and +; regenerates the session ID if the browser sends an uninitialized session ID. +; Strict mode protects applications from session fixation via a session adoption +; vulnerability. It is disabled by default for maximum compatibility, but +; enabling it is encouraged. +; https://wiki.php.net/rfc/strict_sessions +session.use_strict_mode = 0 + +; Whether to use cookies. +; http://php.net/session.use-cookies +session.use_cookies = 1 + +; http://php.net/session.cookie-secure +;session.cookie_secure = + +; This option forces PHP to fetch and use a cookie for storing and maintaining +; the session id. We encourage this operation as it's very helpful in combating +; session hijacking when not specifying and managing your own session id. It is +; not the be-all and end-all of session hijacking defense, but it's a good start. +; http://php.net/session.use-only-cookies +session.use_only_cookies = 1 + +; Name of the session (used as cookie name). +; http://php.net/session.name +session.name = PHPSESSID + +; Initialize session on request startup. +; http://php.net/session.auto-start +session.auto_start = 0 + +; Lifetime in seconds of cookie or, if 0, until browser is restarted. +; http://php.net/session.cookie-lifetime +session.cookie_lifetime = 0 + +; The path for which the cookie is valid. +; http://php.net/session.cookie-path +session.cookie_path = / + +; The domain for which the cookie is valid. +; http://php.net/session.cookie-domain +session.cookie_domain = + +; Whether or not to add the httpOnly flag to the cookie, which makes it +; inaccessible to browser scripting languages such as JavaScript. +; http://php.net/session.cookie-httponly +session.cookie_httponly = + +; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) +; Current valid values are "Lax" or "Strict" +; https://tools.ietf.org/html/draft-west-first-party-cookies-07 +session.cookie_samesite = + +; Handler used to serialize data. php is the standard serializer of PHP. +; http://php.net/session.serialize-handler +session.serialize_handler = php + +; Defines the probability that the 'garbage collection' process is started +; on every session initialization. The probability is calculated by using +; gc_probability/gc_divisor. Where session.gc_probability is the numerator +; and gc_divisor is the denominator in the equation. Setting this value to 1 +; when the session.gc_divisor value is 100 will give you approximately a 1% chance +; the gc will run on any given request. +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.gc-probability +session.gc_probability = 1 + +; Defines the probability that the 'garbage collection' process is started on every +; session initialization. The probability is calculated by using the following equation: +; gc_probability/gc_divisor. Where session.gc_probability is the numerator and +; session.gc_divisor is the denominator in the equation. Setting this value to 100 +; when the session.gc_probability value is 1 will give you approximately a 1% chance +; the gc will run on any given request. Increasing this value to 1000 will give you +; a 0.1% chance the gc will run on any given request. For high volume production servers, +; this is a more efficient approach. +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 +; http://php.net/session.gc-divisor +session.gc_divisor = 1000 + +; After this number of seconds, stored data will be seen as 'garbage' and +; cleaned up by the garbage collection process. +; http://php.net/session.gc-maxlifetime +session.gc_maxlifetime = 1440 + +; NOTE: If you are using the subdirectory option for storing session files +; (see session.save_path above), then garbage collection does *not* +; happen automatically. You will need to do your own garbage +; collection through a shell script, cron entry, or some other method. +; For example, the following script would is the equivalent of +; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): +; find /path/to/sessions -cmin +24 -type f | xargs rm + +; Check HTTP Referer to invalidate externally stored URLs containing ids. +; HTTP_REFERER has to contain this substring for the session to be +; considered as valid. +; http://php.net/session.referer-check +session.referer_check = + +; Set to {nocache,private,public,} to determine HTTP caching aspects +; or leave this empty to avoid sending anti-caching headers. +; http://php.net/session.cache-limiter +session.cache_limiter = nocache + +; Document expires after n minutes. +; http://php.net/session.cache-expire +session.cache_expire = 180 + +; trans sid support is disabled by default. +; Use of trans sid may risk your users' security. +; Use this option with caution. +; - User may send URL contains active session ID +; to other person via. email/irc/etc. +; - URL that contains active session ID may be stored +; in publicly accessible computer. +; - User may access your site with the same session ID +; always using URL stored in browser's history or bookmarks. +; http://php.net/session.use-trans-sid +session.use_trans_sid = 0 + +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute paths, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" + +; Define how many bits are stored in each character when converting +; the binary hash data to something readable. +; Possible values: +; 4 (4 bits: 0-9, a-f) +; 5 (5 bits: 0-9, a-v) +; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 +; http://php.net/session.hash-bits-per-character +session.sid_bits_per_character = 5 + +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.enabled +;session.upload_progress.enabled = On + +; Cleanup the progress information as soon as all POST data has been read +; (i.e. upload completed). +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.cleanup +;session.upload_progress.cleanup = On + +; A prefix used for the upload progress key in $_SESSION +; Default Value: "upload_progress_" +; Development Value: "upload_progress_" +; Production Value: "upload_progress_" +; http://php.net/session.upload-progress.prefix +;session.upload_progress.prefix = "upload_progress_" + +; The index name (concatenated with the prefix) in $_SESSION +; containing the upload progress information +; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" +; http://php.net/session.upload-progress.name +;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" + +; How frequently the upload progress should be updated. +; Given either in percentages (per-file), or in bytes +; Default Value: "1%" +; Development Value: "1%" +; Production Value: "1%" +; http://php.net/session.upload-progress.freq +;session.upload_progress.freq = "1%" + +; The minimum delay between updates, in seconds +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.upload-progress.min-freq +;session.upload_progress.min_freq = "1" + +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On + +[Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = 1 + +; Assert(expr); active by default. +; http://php.net/assert.active +;assert.active = On + +; Throw an AssertionError on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) +; http://php.net/assert.warning +;assert.warning = On + +; Don't bail out by default. +; http://php.net/assert.bail +;assert.bail = Off + +; User-function to be called if an assertion fails. +; http://php.net/assert.callback +;assert.callback = 0 + +; Eval the expression with current error_reporting(). Set to true if you want +; error_reporting(0) around the eval(). +; http://php.net/assert.quiet-eval +;assert.quiet_eval = 0 + + + +[COM] +; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs +; http://php.net/com.typelib-file +;com.typelib_file = + +; allow Distributed-COM calls +; http://php.net/com.allow-dcom +;com.allow_dcom = true + +; autoregister constants of a component's typlib on com_load() +; http://php.net/com.autoregister-typelib +;com.autoregister_typelib = true + +; register constants casesensitive +; http://php.net/com.autoregister-casesensitive +;com.autoregister_casesensitive = false + +; show warnings on duplicate constant registrations +; http://php.net/com.autoregister-verbose +;com.autoregister_verbose = true + +; The default character set code-page to use when passing strings to and from COM objects. +; Default: system ANSI code page +;com.code_page= + +[mbstring] +; language for internal character representation. +; This affects mb_send_mail() and mbstring.detect_order. +; http://php.net/mbstring.language +;mbstring.language = Japanese + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; internal/script encoding. +; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;mbstring.internal_encoding = + +; Use of this INI entry is deprecated, use global input_encoding instead. +; http input encoding. +; mbstring.encoding_translation = On is needed to use this setting. +; If empty, default_charset or input_encoding or mbstring.input is used. +; The precedence is: default_charset < input_encoding < mbsting.http_input +; http://php.net/mbstring.http-input +;mbstring.http_input = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; http output encoding. +; mb_output_handler must be registered as output buffer to function. +; If empty, default_charset or output_encoding or mbstring.http_output is used. +; The precedence is: default_charset < output_encoding < mbstring.http_output +; To use an output encoding conversion, mbstring's output handler must be set +; otherwise output encoding conversion cannot be performed. +; http://php.net/mbstring.http-output +;mbstring.http_output = + +; enable automatic encoding translation according to +; mbstring.internal_encoding setting. Input chars are +; converted to internal encoding by setting this to On. +; Note: Do _not_ use automatic encoding translation for +; portable libs/applications. +; http://php.net/mbstring.encoding-translation +;mbstring.encoding_translation = Off + +; automatic encoding detection order. +; "auto" detect order is changed according to mbstring.language +; http://php.net/mbstring.detect-order +;mbstring.detect_order = auto + +; substitute_character used when character cannot be converted +; one from another +; http://php.net/mbstring.substitute-character +;mbstring.substitute_character = none + +; overload(replace) single byte functions by mbstring functions. +; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), +; etc. Possible values are 0,1,2,4 or combination of them. +; For example, 7 for overload everything. +; 0: No overload +; 1: Overload mail() function +; 2: Overload str*() functions +; 4: Overload ereg*() functions +; http://php.net/mbstring.func-overload +;mbstring.func_overload = 0 + +; enable strict encoding detection. +; Default: Off +;mbstring.strict_detection = On + +; This directive specifies the regex pattern of content types for which mb_output_handler() +; is activated. +; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) +;mbstring.http_output_conv_mimetype= + +; This directive specifies maximum stack depth for mbstring regular expressions. It is similar +; to the pcre.recursion_limit for PCRE. +; Default: 100000 +;mbstring.regex_stack_limit=100000 + +; This directive specifies maximum retry count for mbstring regular expressions. It is similar +; to the pcre.backtrack_limit for PCRE. +; Default: 1000000 +;mbstring.regex_retry_limit=1000000 + +[gd] +; Tell the jpeg decode to ignore warnings and try to create +; a gd image. The warning will then be displayed as notices +; disabled by default +; http://php.net/gd.jpeg-ignore-warning +;gd.jpeg_ignore_warning = 1 + +[exif] +; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. +; With mbstring support this will automatically be converted into the encoding +; given by corresponding encode setting. When empty mbstring.internal_encoding +; is used. For the decode settings you can distinguish between motorola and +; intel byte order. A decode setting cannot be empty. +; http://php.net/exif.encode-unicode +;exif.encode_unicode = ISO-8859-15 + +; http://php.net/exif.decode-unicode-motorola +;exif.decode_unicode_motorola = UCS-2BE + +; http://php.net/exif.decode-unicode-intel +;exif.decode_unicode_intel = UCS-2LE + +; http://php.net/exif.encode-jis +;exif.encode_jis = + +; http://php.net/exif.decode-jis-motorola +;exif.decode_jis_motorola = JIS + +; http://php.net/exif.decode-jis-intel +;exif.decode_jis_intel = JIS + +[Tidy] +; The path to a default tidy configuration file to use when using tidy +; http://php.net/tidy.default-config +;tidy.default_config = /usr/local/lib/php/default.tcfg + +; Should tidy clean and repair output automatically? +; WARNING: Do not use this option if you are generating non-html content +; such as dynamic images +; http://php.net/tidy.clean-output +tidy.clean_output = Off + +[soap] +; Enables or disables WSDL caching feature. +; http://php.net/soap.wsdl-cache-enabled +soap.wsdl_cache_enabled=1 + +; Sets the directory name where SOAP extension will put cache files. +; http://php.net/soap.wsdl-cache-dir +soap.wsdl_cache_dir="/tmp" + +; (time to live) Sets the number of second while cached file will be used +; instead of original one. +; http://php.net/soap.wsdl-cache-ttl +soap.wsdl_cache_ttl=86400 + +; Sets the size of the cache limit. (Max. number of WSDL files to cache) +soap.wsdl_cache_limit = 5 + +[sysvshm] +; A default size of the shared memory segment +;sysvshm.init_mem = 10000 + +[ldap] +; Sets the maximum number of open links or -1 for unlimited. +ldap.max_links = -1 + +[dba] +;dba.default_handler= + +[opcache] +; Determines if Zend OPCache is enabled +;opcache.enable=1 + +; Determines if Zend OPCache is enabled for the CLI version of PHP +;opcache.enable_cli=0 + +; The OPcache shared memory storage size. +;opcache.memory_consumption=128 + +; The amount of memory for interned strings in Mbytes. +;opcache.interned_strings_buffer=8 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +;opcache.max_wasted_percentage=5 + +; When this directive is enabled, the OPcache appends the current working +; directory to the script key, thus eliminating possible collisions between +; files with the same name (basename). Disabling the directive improves +; performance, but may break existing applications. +;opcache.use_cwd=1 + +; When disabled, you must reset the OPcache manually or restart the +; webserver for changes to the filesystem to take effect. +;opcache.validate_timestamps=1 + +; How often (in seconds) to check file timestamps for changes to the shared +; memory storage allocation. ("1" means validate once per second, but only +; once per request. "0" means always validate) +;opcache.revalidate_freq=2 + +; Enables or disables file search in include_path optimization +;opcache.revalidate_path=0 + +; If disabled, all PHPDoc comments are dropped from the code to reduce the +; size of the optimized code. +;opcache.save_comments=1 + +; Allow file existence override (file_exists, etc.) performance feature. +;opcache.enable_file_override=0 + +; A bitmask, where each bit enables or disables the appropriate OPcache +; passes +;opcache.optimization_level=0x7FFFBFFF + +;opcache.dups_fix=0 + +; The location of the OPcache blacklist file (wildcards allowed). +; Each OPcache blacklist file is a text file that holds the names of files +; that should not be accelerated. The file format is to add each filename +; to a new line. The filename may be a full path or just a file prefix +; (i.e., /var/www/x blacklists all the files and directories in /var/www +; that start with 'x'). Line starting with a ; are ignored (comments). +;opcache.blacklist_filename= + +; Allows exclusion of large files from being cached. By default all files +; are cached. +;opcache.max_file_size=0 + +; Check the cache checksum each N requests. +; The default value of "0" means that the checks are disabled. +;opcache.consistency_checks=0 + +; How long to wait (in seconds) for a scheduled restart to begin if the cache +; is not being accessed. +;opcache.force_restart_timeout=180 + +; OPcache error_log file name. Empty string assumes "stderr". +;opcache.error_log= + +; All OPcache errors go to the Web server log. +; By default, only fatal errors (level 0) or errors (level 1) are logged. +; You can also enable warnings (level 2), info messages (level 3) or +; debug messages (level 4). +;opcache.log_verbosity_level=1 + +; Preferred Shared Memory back-end. Leave empty and let the system decide. +;opcache.preferred_memory_model= + +; Protect the shared memory from unexpected writing during script execution. +; Useful for internal debugging only. +;opcache.protect_memory=0 + +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Facilitates multiple OPcache instances per user (for Windows only). All PHP +; processes with the same cache ID and user share an OPcache instance. +;opcache.cache_id= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=0 + +; Validate cached file permissions. +;opcache.validate_permission=0 + +; Prevent name collisions in chroot'ed environment. +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + +; Specifies a PHP script that is going to be compiled and executed at server +; start-up. +; http://php.net/opcache.preload +;opcache.preload= + +; Preloading code as root is not allowed for security reasons. This directive +; facilitates to let the preloading to be run as another user. +; http://php.net/opcache.preload_user +;opcache.preload_user= + +; Prevents caching files that are less than this number of seconds old. It +; protects from caching of incompletely updated files. In case all file updates +; on your site are atomic, you may increase performance by setting it to "0". +;opcache.file_update_protection=2 + +; Absolute path used to store shared lockfiles (for *nix only). +;opcache.lockfile_path=/tmp + +[curl] +; A default value for the CURLOPT_CAINFO option. This is required to be an +; absolute path. +;curl.cainfo = + +[openssl] +; The location of a Certificate Authority (CA) file on the local filesystem +; to use when verifying the identity of SSL/TLS peers. Most users should +; not specify a value for this directive as PHP will attempt to use the +; OS-managed cert stores in its absence. If specified, this value may still +; be overridden on a per-stream basis via the "cafile" SSL stream context +; option. +;openssl.cafile= + +; If openssl.cafile is not specified or if the CA file is not found, the +; directory pointed to by openssl.capath is searched for a suitable +; certificate. This value must be a correctly hashed certificate directory. +; Most users should not specify a value for this directive as PHP will +; attempt to use the OS-managed cert stores in its absence. If specified, +; this value may still be overridden on a per-stream basis via the "capath" +; SSL stream context option. +;openssl.capath= + +[ffi] +; FFI API restriction. Possible values: +; "preload" - enabled in CLI scripts and preloaded files (default) +; "false" - always disabled +; "true" - always enabled +;ffi.enable=preload + +; List of headers files to preload, wildcard patterns allowed. +;ffi.preload= diff --git a/7/orig/php-7.4.ini-production b/7/orig/php-7.4.ini-production new file mode 100644 index 00000000..beea6b26 --- /dev/null +++ b/7/orig/php-7.4.ini-production @@ -0,0 +1,1952 @@ +[PHP] + +;;;;;;;;;;;;;;;;;;; +; About php.ini ; +;;;;;;;;;;;;;;;;;;; +; PHP's initialization file, generally called php.ini, is responsible for +; configuring many of the aspects of PHP's behavior. + +; PHP attempts to find and load this configuration from a number of locations. +; The following is a summary of its search order: +; 1. SAPI module specific location. +; 2. The PHPRC environment variable. (As of PHP 5.2.0) +; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) +; 4. Current working directory (except CLI) +; 5. The web server's directory (for SAPI modules), or directory of PHP +; (otherwise in Windows) +; 6. The directory from the --with-config-file-path compile time option, or the +; Windows directory (usually C:\windows) +; See the PHP docs for more specific information. +; http://php.net/configuration.file + +; The syntax of the file is extremely simple. Whitespace and lines +; beginning with a semicolon are silently ignored (as you probably guessed). +; Section headers (e.g. [Foo]) are also silently ignored, even though +; they might mean something in the future. + +; Directives following the section heading [PATH=/www/mysite] only +; apply to PHP files in the /www/mysite directory. Directives +; following the section heading [HOST=www.example.com] only apply to +; PHP files served from www.example.com. Directives set in these +; special sections cannot be overridden by user-defined INI files or +; at runtime. Currently, [PATH=] and [HOST=] sections only work under +; CGI/FastCGI. +; http://php.net/ini.sections + +; Directives are specified using the following syntax: +; directive = value +; Directive names are *case sensitive* - foo=bar is different from FOO=bar. +; Directives are variables used to configure PHP or PHP extensions. +; There is no name validation. If PHP can't find an expected +; directive because it is not set or is mistyped, a default value will be used. + +; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one +; of the INI constants (On, Off, True, False, Yes, No and None) or an expression +; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a +; previously set variable or directive (e.g. ${foo}) + +; Expressions in the INI file are limited to bitwise operators and parentheses: +; | bitwise OR +; ^ bitwise XOR +; & bitwise AND +; ~ bitwise NOT +; ! boolean NOT + +; Boolean flags can be turned on using the values 1, On, True or Yes. +; They can be turned off using the values 0, Off, False or No. + +; An empty string can be denoted by simply not writing anything after the equal +; sign, or by using the None keyword: + +; foo = ; sets foo to an empty string +; foo = None ; sets foo to an empty string +; foo = "None" ; sets foo to the string 'None' + +; If you use constants in your value, and these constants belong to a +; dynamically loaded extension (either a PHP extension or a Zend extension), +; you may only use these constants *after* the line that loads the extension. + +;;;;;;;;;;;;;;;;;;; +; About this file ; +;;;;;;;;;;;;;;;;;;; +; PHP comes packaged with two INI files. One that is recommended to be used +; in production environments and one that is recommended to be used in +; development environments. + +; php.ini-production contains settings which hold security, performance and +; best practices at its core. But please be aware, these settings may break +; compatibility with older or less security conscience applications. We +; recommending using the production ini in production and testing environments. + +; php.ini-development is very similar to its production variant, except it is +; much more verbose when it comes to errors. We recommend using the +; development version only in development environments, as errors shown to +; application users can inadvertently leak otherwise secure information. + +; This is the php.ini-production INI file. + +;;;;;;;;;;;;;;;;;;; +; Quick Reference ; +;;;;;;;;;;;;;;;;;;; +; The following are all the settings which are different in either the production +; or development versions of the INIs with respect to PHP's default behavior. +; Please see the actual settings later in the document for more details as to why +; we recommend these changes in PHP's behavior. + +; display_errors +; Default Value: On +; Development Value: On +; Production Value: Off + +; display_startup_errors +; Default Value: Off +; Development Value: On +; Production Value: Off + +; error_reporting +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT + +; log_errors +; Default Value: Off +; Development Value: On +; Production Value: On + +; max_input_time +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) + +; output_buffering +; Default Value: Off +; Development Value: 4096 +; Production Value: 4096 + +; register_argc_argv +; Default Value: On +; Development Value: Off +; Production Value: Off + +; request_order +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" + +; session.gc_divisor +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 + +; session.sid_bits_per_character +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 + +; short_open_tag +; Default Value: On +; Development Value: Off +; Production Value: Off + +; variables_order +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS" + +;;;;;;;;;;;;;;;;;;;; +; php.ini Options ; +;;;;;;;;;;;;;;;;;;;; +; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" +;user_ini.filename = ".user.ini" + +; To disable this feature set this option to an empty value +;user_ini.filename = + +; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) +;user_ini.cache_ttl = 300 + +;;;;;;;;;;;;;;;;;;;; +; Language Options ; +;;;;;;;;;;;;;;;;;;;; + +; Enable the PHP scripting language engine under Apache. +; http://php.net/engine +engine = On + +; This directive determines whether or not PHP will recognize code between +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the would work. +; http://php.net/syntax-highlighting +;highlight.string = #DD0000 +;highlight.comment = #FF9900 +;highlight.keyword = #007700 +;highlight.default = #0000BB +;highlight.html = #000000 + +; If enabled, the request will be allowed to complete even if the user aborts +; the request. Consider enabling it if executing long requests, which may end up +; being interrupted by the user or a browser timing out. PHP's default behavior +; is to disable this feature. +; http://php.net/ignore-user-abort +;ignore_user_abort = On + +; Determines the size of the realpath cache to be used by PHP. This value should +; be increased on systems where PHP opens many files to reflect the quantity of +; the file operations performed. +; Note: if open_basedir is set, the cache is disabled +; http://php.net/realpath-cache-size +;realpath_cache_size = 4096k + +; Duration of time, in seconds for which to cache realpath information for a given +; file or directory. For systems with rarely changing files, consider increasing this +; value. +; http://php.net/realpath-cache-ttl +;realpath_cache_ttl = 120 + +; Enables or disables the circular reference collector. +; http://php.net/zend.enable-gc +zend.enable_gc = On + +; If enabled, scripts may be written in encodings that are incompatible with +; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such +; encodings. To use this feature, mbstring extension must be enabled. +; Default: Off +;zend.multibyte = Off + +; Allows to set the default encoding for the scripts. This value will be used +; unless "declare(encoding=...)" directive appears at the top of the script. +; Only affects if zend.multibyte is set. +; Default: "" +;zend.script_encoding = + +; Allows to include or exclude arguments from stack traces generated for exceptions +; Default: Off +; In production, it is recommended to turn this setting on to prohibit the output +; of sensitive information in stack traces +zend.exception_ignore_args = On + +;;;;;;;;;;;;;;;;; +; Miscellaneous ; +;;;;;;;;;;;;;;;;; + +; Decides whether PHP may expose the fact that it is installed on the server +; (e.g. by adding its signature to the Web server header). It is no security +; threat in any way, but it makes it possible to determine whether you use PHP +; on your server or not. +; http://php.net/expose-php +expose_php = On + +;;;;;;;;;;;;;;;;;;; +; Resource Limits ; +;;;;;;;;;;;;;;;;;;; + +; Maximum execution time of each script, in seconds +; http://php.net/max-execution-time +; Note: This directive is hardcoded to 0 for the CLI SAPI +max_execution_time = 30 + +; Maximum amount of time each script may spend parsing request data. It's a good +; idea to limit this time on productions servers in order to eliminate unexpectedly +; long running scripts. +; Note: This directive is hardcoded to -1 for the CLI SAPI +; Default Value: -1 (Unlimited) +; Development Value: 60 (60 seconds) +; Production Value: 60 (60 seconds) +; http://php.net/max-input-time +max_input_time = 60 + +; Maximum input variable nesting level +; http://php.net/max-input-nesting-level +;max_input_nesting_level = 64 + +; How many GET/POST/COOKIE input variables may be accepted +;max_input_vars = 1000 + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Error handling and logging ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. The recommended way of setting values for this +; directive is through the use of the error level constants and bitwise +; operators. The error level constants are below here for convenience as well as +; some common settings and their meanings. +; By default, PHP is set to take action on all errors, notices and warnings EXCEPT +; those related to E_NOTICE and E_STRICT, which together cover best practices and +; recommended coding standards in PHP. For performance reasons, this is the +; recommend error reporting setting. Your production server shouldn't be wasting +; resources complaining about best practices and coding standards. That's what +; development servers and development settings are for. +; Note: The php.ini-development file has this setting as E_ALL. This +; means it pretty much reports everything which is exactly what you want during +; development and early testing. +; +; Error Level Constants: +; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) +; E_ERROR - fatal run-time errors +; E_RECOVERABLE_ERROR - almost fatal run-time errors +; E_WARNING - run-time warnings (non-fatal errors) +; E_PARSE - compile-time parse errors +; E_NOTICE - run-time notices (these are warnings which often result +; from a bug in your code, but it's possible that it was +; intentional (e.g., using an uninitialized variable and +; relying on the fact it is automatically initialized to an +; empty string) +; E_STRICT - run-time notices, enable to have PHP suggest changes +; to your code which will ensure the best interoperability +; and forward compatibility of your code +; E_CORE_ERROR - fatal errors that occur during PHP's initial startup +; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's +; initial startup +; E_COMPILE_ERROR - fatal compile-time errors +; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) +; E_USER_ERROR - user-generated error message +; E_USER_WARNING - user-generated warning message +; E_USER_NOTICE - user-generated notice message +; E_DEPRECATED - warn about code that will not work in future versions +; of PHP +; E_USER_DEPRECATED - user-generated deprecation warnings +; +; Common Values: +; E_ALL (Show all errors, warnings and notices including coding standards.) +; E_ALL & ~E_NOTICE (Show all errors, except for notices) +; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) +; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) +; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED +; Development Value: E_ALL +; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT +; http://php.net/error-reporting +error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT + +; This directive controls whether or not and where PHP will output errors, +; notices and warnings too. Error output is very useful during development, but +; it could be very dangerous in production environments. Depending on the code +; which is triggering the error, sensitive information could potentially leak +; out of your application such as database usernames and passwords or worse. +; For production environments, we recommend logging errors rather than +; sending them to STDOUT. +; Possible Values: +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; On or stdout = Display errors to STDOUT +; Default Value: On +; Development Value: On +; Production Value: Off +; http://php.net/display-errors +display_errors = Off + +; The display of errors which occur during PHP's startup sequence are handled +; separately from display_errors. PHP's default behavior is to suppress those +; errors from clients. Turning the display of startup errors on can be useful in +; debugging configuration problems. We strongly recommend you +; set this to 'off' for production servers. +; Default Value: Off +; Development Value: On +; Production Value: Off +; http://php.net/display-startup-errors +display_startup_errors = Off + +; Besides displaying errors, PHP can also log errors to locations such as a +; server-specific log, STDERR, or a location specified by the error_log +; directive found below. While errors should not be displayed on productions +; servers they should still be monitored and logging is a great way to do that. +; Default Value: Off +; Development Value: On +; Production Value: On +; http://php.net/log-errors +log_errors = On + +; Set maximum length of log_errors. In error_log information about the source is +; added. The default is 1024 and 0 allows to not apply any maximum length at all. +; http://php.net/log-errors-max-len +log_errors_max_len = 1024 + +; Do not log repeated messages. Repeated errors must occur in same file on same +; line unless ignore_repeated_source is set true. +; http://php.net/ignore-repeated-errors +ignore_repeated_errors = Off + +; Ignore source of message when ignoring repeated messages. When this setting +; is On you will not log errors with repeated messages from different files or +; source lines. +; http://php.net/ignore-repeated-source +ignore_repeated_source = Off + +; If this parameter is set to Off, then memory leaks will not be shown (on +; stdout or in the log). This is only effective in a debug compile, and if +; error reporting includes E_WARNING in the allowed list +; http://php.net/report-memleaks +report_memleaks = On + +; This setting is on by default. +;report_zend_debug = 0 + +; Store the last error/warning message in $php_errormsg (boolean). Setting this value +; to On can assist in debugging and is appropriate for development servers. It should +; however be disabled on production servers. +; This directive is DEPRECATED. +; Default Value: Off +; Development Value: Off +; Production Value: Off +; http://php.net/track-errors +;track_errors = Off + +; Turn off normal error reporting and emit XML-RPC error XML +; http://php.net/xmlrpc-errors +;xmlrpc_errors = 0 + +; An XML-RPC faultCode +;xmlrpc_error_number = 0 + +; When PHP displays or logs an error, it has the capability of formatting the +; error message as HTML for easier reading. This directive controls whether +; the error message is formatted as HTML or not. +; Note: This directive is hardcoded to Off for the CLI SAPI +; http://php.net/html-errors +;html_errors = On + +; If html_errors is set to On *and* docref_root is not empty, then PHP +; produces clickable error messages that direct to a page describing the error +; or function causing the error in detail. +; You can download a copy of the PHP manual from http://php.net/docs +; and change docref_root to the base URL of your local copy including the +; leading '/'. You must also specify the file extension being used including +; the dot. PHP's default behavior is to leave these settings empty, in which +; case no links to documentation are generated. +; Note: Never use this feature for production boxes. +; http://php.net/docref-root +; Examples +;docref_root = "/phpmanual/" + +; http://php.net/docref-ext +;docref_ext = .html + +; String to output before an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-prepend-string +; Example: +;error_prepend_string = "" + +; String to output after an error message. PHP's default behavior is to leave +; this setting blank. +; http://php.net/error-append-string +; Example: +;error_append_string = "" + +; Log errors to specified file. PHP's default behavior is to leave this value +; empty. +; http://php.net/error-log +; Example: +;error_log = php_errors.log +; Log errors to syslog (Event Log on Windows). +;error_log = syslog + +; The syslog ident is a string which is prepended to every message logged +; to syslog. Only used when error_log is set to syslog. +;syslog.ident = php + +; The syslog facility is used to specify what type of program is logging +; the message. Only used when error_log is set to syslog. +;syslog.facility = user + +; Set this to disable filtering control characters (the default). +; Some loggers only accept NVT-ASCII, others accept anything that's not +; control characters. If your logger accepts everything, then no filtering +; is needed at all. +; Allowed values are: +; ascii (all printable ASCII characters and NL) +; no-ctrl (all characters except control characters) +; all (all characters) +; raw (like "all", but messages are not split at newlines) +; http://php.net/syslog.filter +;syslog.filter = ascii + +;windows.show_crt_warning +; Default value: 0 +; Development value: 0 +; Production value: 0 + +;;;;;;;;;;;;;;;;; +; Data Handling ; +;;;;;;;;;;;;;;;;; + +; The separator used in PHP generated URLs to separate arguments. +; PHP's default setting is "&". +; http://php.net/arg-separator.output +; Example: +;arg_separator.output = "&" + +; List of separator(s) used by PHP to parse input URLs into variables. +; PHP's default setting is "&". +; NOTE: Every character in this directive is considered as separator! +; http://php.net/arg-separator.input +; Example: +;arg_separator.input = ";&" + +; This directive determines which super global arrays are registered when PHP +; starts up. G,P,C,E & S are abbreviations for the following respective super +; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty +; paid for the registration of these arrays and because ENV is not as commonly +; used as the others, ENV is not recommended on productions servers. You +; can still get access to the environment variables through getenv() should you +; need to. +; Default Value: "EGPCS" +; Development Value: "GPCS" +; Production Value: "GPCS"; +; http://php.net/variables-order +variables_order = "GPCS" + +; This directive determines which super global data (G,P & C) should be +; registered into the super global array REQUEST. If so, it also determines +; the order in which that data is registered. The values for this directive +; are specified in the same manner as the variables_order directive, +; EXCEPT one. Leaving this value empty will cause PHP to use the value set +; in the variables_order directive. It does not mean it will leave the super +; globals array REQUEST empty. +; Default Value: None +; Development Value: "GP" +; Production Value: "GP" +; http://php.net/request-order +request_order = "GP" + +; This directive determines whether PHP registers $argv & $argc each time it +; runs. $argv contains an array of all the arguments passed to PHP when a script +; is invoked. $argc contains an integer representing the number of arguments +; that were passed when the script was invoked. These arrays are extremely +; useful when running scripts from the command line. When this directive is +; enabled, registering these variables consumes CPU cycles and memory each time +; a script is executed. For performance reasons, this feature should be disabled +; on production servers. +; Note: This directive is hardcoded to On for the CLI SAPI +; Default Value: On +; Development Value: Off +; Production Value: Off +; http://php.net/register-argc-argv +register_argc_argv = Off + +; When enabled, the ENV, REQUEST and SERVER variables are created when they're +; first used (Just In Time) instead of when the script starts. If these +; variables are not used within a script, having this directive on will result +; in a performance gain. The PHP directive register_argc_argv must be disabled +; for this directive to have any effect. +; http://php.net/auto-globals-jit +auto_globals_jit = On + +; Whether PHP will read the POST data. +; This option is enabled by default. +; Most likely, you won't want to disable this option globally. It causes $_POST +; and $_FILES to always be empty; the only way you will be able to read the +; POST data will be through the php://input stream wrapper. This can be useful +; to proxy requests or to process the POST data in a memory efficient fashion. +; http://php.net/enable-post-data-reading +;enable_post_data_reading = Off + +; Maximum size of POST data that PHP will accept. +; Its value may be 0 to disable the limit. It is ignored if POST data reading +; is disabled through enable_post_data_reading. +; http://php.net/post-max-size +post_max_size = 8M + +; Automatically add files before PHP document. +; http://php.net/auto-prepend-file +auto_prepend_file = + +; Automatically add files after PHP document. +; http://php.net/auto-append-file +auto_append_file = + +; By default, PHP will output a media type using the Content-Type header. To +; disable this, simply set it to be empty. +; +; PHP's built-in default media type is set to text/html. +; http://php.net/default-mimetype +default_mimetype = "text/html" + +; PHP's default character set is set to UTF-8. +; http://php.net/default-charset +default_charset = "UTF-8" + +; PHP internal character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/internal-encoding +;internal_encoding = + +; PHP input character encoding is set to empty. +; If empty, default_charset is used. +; http://php.net/input-encoding +;input_encoding = + +; PHP output character encoding is set to empty. +; If empty, default_charset is used. +; See also output_buffer. +; http://php.net/output-encoding +;output_encoding = + +;;;;;;;;;;;;;;;;;;;;;;;;; +; Paths and Directories ; +;;;;;;;;;;;;;;;;;;;;;;;;; + +; UNIX: "/path1:/path2" +;include_path = ".:/php/includes" +; +; Windows: "\path1;\path2" +;include_path = ".;c:\php\includes" +; +; PHP's default setting for include_path is ".;/path/to/php/pear" +; http://php.net/include-path + +; The root of the PHP pages, used only if nonempty. +; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root +; if you are running php as a CGI under any web server (other than IIS) +; see documentation for security issues. The alternate is to use the +; cgi.force_redirect configuration below +; http://php.net/doc-root +doc_root = + +; The directory under which PHP opens the script using /~username used only +; if nonempty. +; http://php.net/user-dir +user_dir = + +; Directory in which the loadable extensions (modules) reside. +; http://php.net/extension-dir +;extension_dir = "./" +; On windows: +;extension_dir = "ext" + +; Directory where the temporary files should be placed. +; Defaults to the system default (see sys_get_temp_dir) +;sys_temp_dir = "/tmp" + +; Whether or not to enable the dl() function. The dl() function does NOT work +; properly in multithreaded servers, such as IIS or Zeus, and is automatically +; disabled on them. +; http://php.net/enable-dl +enable_dl = Off + +; cgi.force_redirect is necessary to provide security running PHP as a CGI under +; most web servers. Left undefined, PHP turns this on by default. You can +; turn it off here AT YOUR OWN RISK +; **You CAN safely turn this off for IIS, in fact, you MUST.** +; http://php.net/cgi.force-redirect +;cgi.force_redirect = 1 + +; if cgi.nph is enabled it will force cgi to always sent Status: 200 with +; every request. PHP's default behavior is to disable this feature. +;cgi.nph = 1 + +; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape +; (iPlanet) web servers, you MAY need to set an environment variable name that PHP +; will look for to know it is OK to continue execution. Setting this variable MAY +; cause security issues, KNOW WHAT YOU ARE DOING FIRST. +; http://php.net/cgi.redirect-status-env +;cgi.redirect_status_env = + +; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's +; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok +; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting +; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting +; of zero causes PHP to behave as before. Default is 1. You should fix your scripts +; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. +; http://php.net/cgi.fix-pathinfo +;cgi.fix_pathinfo=1 + +; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside +; of the web tree and people will not be able to circumvent .htaccess security. +;cgi.discard_path=1 + +; FastCGI under IIS supports the ability to impersonate +; security tokens of the calling client. This allows IIS to define the +; security context that the request runs under. mod_fastcgi under Apache +; does not currently support this feature (03/17/2002) +; Set to 1 if running under IIS. Default is zero. +; http://php.net/fastcgi.impersonate +;fastcgi.impersonate = 1 + +; Disable logging through FastCGI connection. PHP's default behavior is to enable +; this feature. +;fastcgi.logging = 0 + +; cgi.rfc2616_headers configuration option tells PHP what type of headers to +; use when sending HTTP response code. If set to 0, PHP sends Status: header that +; is supported by Apache. When this option is set to 1, PHP will send +; RFC2616 compliant header. +; Default is zero. +; http://php.net/cgi.rfc2616-headers +;cgi.rfc2616_headers = 0 + +; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #! +; (shebang) at the top of the running script. This line might be needed if the +; script support running both as stand-alone script and via PHP CGI<. PHP in CGI +; mode skips this line and ignores its content if this directive is turned on. +; http://php.net/cgi.check-shebang-line +;cgi.check_shebang_line=1 + +;;;;;;;;;;;;;;;; +; File Uploads ; +;;;;;;;;;;;;;;;; + +; Whether to allow HTTP file uploads. +; http://php.net/file-uploads +file_uploads = On + +; Temporary directory for HTTP uploaded files (will use system default if not +; specified). +; http://php.net/upload-tmp-dir +;upload_tmp_dir = + +; Maximum allowed size for uploaded files. +; http://php.net/upload-max-filesize +upload_max_filesize = 2M + +; Maximum number of files that can be uploaded via a single request +max_file_uploads = 20 + +;;;;;;;;;;;;;;;;;; +; Fopen wrappers ; +;;;;;;;;;;;;;;;;;; + +; Whether to allow the treatment of URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-fopen +allow_url_fopen = On + +; Whether to allow include/require to open URLs (like http:// or ftp://) as files. +; http://php.net/allow-url-include +allow_url_include = Off + +; Define the anonymous ftp password (your email address). PHP's default setting +; for this is empty. +; http://php.net/from +;from="john@doe.com" + +; Define the User-Agent string. PHP's default setting for this is empty. +; http://php.net/user-agent +;user_agent="PHP" + +; Default timeout for socket based streams (seconds) +; http://php.net/default-socket-timeout +default_socket_timeout = 60 + +; If your scripts have to deal with files from Macintosh systems, +; or you are running on a Mac and need to deal with files from +; unix or win32 systems, setting this flag will cause PHP to +; automatically detect the EOL character in those files so that +; fgets() and file() will work regardless of the source of the file. +; http://php.net/auto-detect-line-endings +;auto_detect_line_endings = Off + +;;;;;;;;;;;;;;;;;;;;;; +; Dynamic Extensions ; +;;;;;;;;;;;;;;;;;;;;;; + +; If you wish to have an extension loaded automatically, use the following +; syntax: +; +; extension=modulename +; +; For example: +; +; extension=mysqli +; +; When the extension library to load is not located in the default extension +; directory, You may specify an absolute path to the library file: +; +; extension=/path/to/extension/mysqli.so +; +; Note : The syntax used in previous PHP versions ('extension=.so' and +; 'extension='php_.dll') is supported for legacy reasons and may be +; deprecated in a future PHP major version. So, when it is possible, please +; move to the new ('extension=) syntax. +; +; Notes for Windows environments : +; +; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) +; extension folders as well as the separate PECL DLL download (PHP 5+). +; Be sure to appropriately set the extension_dir directive. +; +;extension=bz2 +;extension=curl +;extension=ffi +;extension=fileinfo +;extension=gd2 +;extension=gettext +;extension=gmp +;extension=intl +;extension=imap +;extension=ldap +;extension=mbstring +;extension=exif ; Must be after mbstring as it depends on it +;extension=mysqli +;extension=oci8_12c ; Use with Oracle Database 12c Instant Client +;extension=odbc +;extension=openssl +;extension=pdo_firebird +;extension=pdo_mysql +;extension=pdo_oci +;extension=pdo_odbc +;extension=pdo_pgsql +;extension=pdo_sqlite +;extension=pgsql +;extension=shmop + +; The MIBS data available in the PHP distribution must be installed. +; See http://www.php.net/manual/en/snmp.installation.php +;extension=snmp + +;extension=soap +;extension=sockets +;extension=sodium +;extension=sqlite3 +;extension=tidy +;extension=xmlrpc +;extension=xsl + +;;;;;;;;;;;;;;;;;;; +; Module Settings ; +;;;;;;;;;;;;;;;;;;; + +[CLI Server] +; Whether the CLI web server uses ANSI color coding in its terminal output. +cli_server.color = On + +[Date] +; Defines the default timezone used by the date functions +; http://php.net/date.timezone +;date.timezone = + +; http://php.net/date.default-latitude +;date.default_latitude = 31.7667 + +; http://php.net/date.default-longitude +;date.default_longitude = 35.2333 + +; http://php.net/date.sunrise-zenith +;date.sunrise_zenith = 90.583333 + +; http://php.net/date.sunset-zenith +;date.sunset_zenith = 90.583333 + +[filter] +; http://php.net/filter.default +;filter.default = unsafe_raw + +; http://php.net/filter.default-flags +;filter.default_flags = + +[iconv] +; Use of this INI entry is deprecated, use global input_encoding instead. +; If empty, default_charset or input_encoding or iconv.input_encoding is used. +; The precedence is: default_charset < input_encoding < iconv.input_encoding +;iconv.input_encoding = + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;iconv.internal_encoding = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; If empty, default_charset or output_encoding or iconv.output_encoding is used. +; The precedence is: default_charset < output_encoding < iconv.output_encoding +; To use an output encoding conversion, iconv's output handler must be set +; otherwise output encoding conversion cannot be performed. +;iconv.output_encoding = + +[imap] +; rsh/ssh logins are disabled by default. Use this INI entry if you want to +; enable them. Note that the IMAP library does not filter mailbox names before +; passing them to rsh/ssh command, thus passing untrusted data to this function +; with rsh/ssh enabled is insecure. +;imap.enable_insecure_rsh=0 + +[intl] +;intl.default_locale = +; This directive allows you to produce PHP errors when some error +; happens within intl functions. The value is the level of the error produced. +; Default is 0, which does not produce any errors. +;intl.error_level = E_WARNING +;intl.use_exceptions = 0 + +[sqlite3] +; Directory pointing to SQLite3 extensions +; http://php.net/sqlite3.extension-dir +;sqlite3.extension_dir = + +; SQLite defensive mode flag (only available from SQLite 3.26+) +; When the defensive flag is enabled, language features that allow ordinary +; SQL to deliberately corrupt the database file are disabled. This forbids +; writing directly to the schema, shadow tables (eg. FTS data tables), or +; the sqlite_dbpage virtual table. +; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html +; (for older SQLite versions, this flag has no use) +;sqlite3.defensive = 1 + +[Pcre] +; PCRE library backtracking limit. +; http://php.net/pcre.backtrack-limit +;pcre.backtrack_limit=100000 + +; PCRE library recursion limit. +; Please note that if you set this value to a high number you may consume all +; the available process stack and eventually crash PHP (due to reaching the +; stack size limit imposed by the Operating System). +; http://php.net/pcre.recursion-limit +;pcre.recursion_limit=100000 + +; Enables or disables JIT compilation of patterns. This requires the PCRE +; library to be compiled with JIT support. +;pcre.jit=1 + +[Pdo] +; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" +; http://php.net/pdo-odbc.connection-pooling +;pdo_odbc.connection_pooling=strict + +;pdo_odbc.db2_instance_name + +[Pdo_mysql] +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +pdo_mysql.default_socket= + +[Phar] +; http://php.net/phar.readonly +;phar.readonly = On + +; http://php.net/phar.require-hash +;phar.require_hash = On + +;phar.cache_list = + +[mail function] +; For Win32 only. +; http://php.net/smtp +SMTP = localhost +; http://php.net/smtp-port +smtp_port = 25 + +; For Win32 only. +; http://php.net/sendmail-from +;sendmail_from = me@example.com + +; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). +; http://php.net/sendmail-path +;sendmail_path = + +; Force the addition of the specified parameters to be passed as extra parameters +; to the sendmail binary. These parameters will always replace the value of +; the 5th parameter to mail(). +;mail.force_extra_parameters = + +; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename +mail.add_x_header = Off + +; The path to a log file that will log all mail() calls. Log entries include +; the full path of the script, line number, To address and headers. +;mail.log = +; Log mail to syslog (Event Log on Windows). +;mail.log = syslog + +[ODBC] +; http://php.net/odbc.default-db +;odbc.default_db = Not yet implemented + +; http://php.net/odbc.default-user +;odbc.default_user = Not yet implemented + +; http://php.net/odbc.default-pw +;odbc.default_pw = Not yet implemented + +; Controls the ODBC cursor model. +; Default: SQL_CURSOR_STATIC (default). +;odbc.default_cursortype + +; Allow or prevent persistent links. +; http://php.net/odbc.allow-persistent +odbc.allow_persistent = On + +; Check that a connection is still valid before reuse. +; http://php.net/odbc.check-persistent +odbc.check_persistent = On + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/odbc.max-persistent +odbc.max_persistent = -1 + +; Maximum number of links (persistent + non-persistent). -1 means no limit. +; http://php.net/odbc.max-links +odbc.max_links = -1 + +; Handling of LONG fields. Returns number of bytes to variables. 0 means +; passthru. +; http://php.net/odbc.defaultlrl +odbc.defaultlrl = 4096 + +; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. +; See the documentation on odbc_binmode and odbc_longreadlen for an explanation +; of odbc.defaultlrl and odbc.defaultbinmode +; http://php.net/odbc.defaultbinmode +odbc.defaultbinmode = 1 + +[MySQLi] + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/mysqli.max-persistent +mysqli.max_persistent = -1 + +; Allow accessing, from PHP's perspective, local files with LOAD DATA statements +; http://php.net/mysqli.allow_local_infile +;mysqli.allow_local_infile = On + +; Allow or prevent persistent links. +; http://php.net/mysqli.allow-persistent +mysqli.allow_persistent = On + +; Maximum number of links. -1 means no limit. +; http://php.net/mysqli.max-links +mysqli.max_links = -1 + +; Default port number for mysqli_connect(). If unset, mysqli_connect() will use +; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the +; compile-time value defined MYSQL_PORT (in that order). Win32 will only look +; at MYSQL_PORT. +; http://php.net/mysqli.default-port +mysqli.default_port = 3306 + +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +; http://php.net/mysqli.default-socket +mysqli.default_socket = + +; Default host for mysqli_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-host +mysqli.default_host = + +; Default user for mysqli_connect() (doesn't apply in safe mode). +; http://php.net/mysqli.default-user +mysqli.default_user = + +; Default password for mysqli_connect() (doesn't apply in safe mode). +; Note that this is generally a *bad* idea to store passwords in this file. +; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") +; and reveal this password! And of course, any users with read access to this +; file will be able to reveal the password as well. +; http://php.net/mysqli.default-pw +mysqli.default_pw = + +; Allow or prevent reconnect +mysqli.reconnect = Off + +[mysqlnd] +; Enable / Disable collection of general statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_statistics = On + +; Enable / Disable collection of memory usage statistics by mysqlnd which can be +; used to tune and monitor MySQL operations. +mysqlnd.collect_memory_statistics = Off + +; Records communication from all extensions using mysqlnd to the specified log +; file. +; http://php.net/mysqlnd.debug +;mysqlnd.debug = + +; Defines which queries will be logged. +;mysqlnd.log_mask = 0 + +; Default size of the mysqlnd memory pool, which is used by result sets. +;mysqlnd.mempool_default_size = 16000 + +; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. +;mysqlnd.net_cmd_buffer_size = 2048 + +; Size of a pre-allocated buffer used for reading data sent by the server in +; bytes. +;mysqlnd.net_read_buffer_size = 32768 + +; Timeout for network requests in seconds. +;mysqlnd.net_read_timeout = 31536000 + +; SHA-256 Authentication Plugin related. File with the MySQL server public RSA +; key. +;mysqlnd.sha256_server_public_key = + +[OCI8] + +; Connection: Enables privileged connections using external +; credentials (OCI_SYSOPER, OCI_SYSDBA) +; http://php.net/oci8.privileged-connect +;oci8.privileged_connect = Off + +; Connection: The maximum number of persistent OCI8 connections per +; process. Using -1 means no limit. +; http://php.net/oci8.max-persistent +;oci8.max_persistent = -1 + +; Connection: The maximum number of seconds a process is allowed to +; maintain an idle persistent connection. Using -1 means idle +; persistent connections will be maintained forever. +; http://php.net/oci8.persistent-timeout +;oci8.persistent_timeout = -1 + +; Connection: The number of seconds that must pass before issuing a +; ping during oci_pconnect() to check the connection validity. When +; set to 0, each oci_pconnect() will cause a ping. Using -1 disables +; pings completely. +; http://php.net/oci8.ping-interval +;oci8.ping_interval = 60 + +; Connection: Set this to a user chosen connection class to be used +; for all pooled server requests with Oracle 11g Database Resident +; Connection Pooling (DRCP). To use DRCP, this value should be set to +; the same string for all web servers running the same application, +; the database pool must be configured, and the connection string must +; specify to use a pooled server. +;oci8.connection_class = + +; High Availability: Using On lets PHP receive Fast Application +; Notification (FAN) events generated when a database node fails. The +; database must also be configured to post FAN events. +;oci8.events = Off + +; Tuning: This option enables statement caching, and specifies how +; many statements to cache. Using 0 disables statement caching. +; http://php.net/oci8.statement-cache-size +;oci8.statement_cache_size = 20 + +; Tuning: Enables statement prefetching and sets the default number of +; rows that will be fetched automatically after statement execution. +; http://php.net/oci8.default-prefetch +;oci8.default_prefetch = 100 + +; Compatibility. Using On means oci_close() will not close +; oci_connect() and oci_new_connect() connections. +; http://php.net/oci8.old-oci-close-semantics +;oci8.old_oci_close_semantics = Off + +[PostgreSQL] +; Allow or prevent persistent links. +; http://php.net/pgsql.allow-persistent +pgsql.allow_persistent = On + +; Detect broken persistent links always with pg_pconnect(). +; Auto reset feature requires a little overheads. +; http://php.net/pgsql.auto-reset-persistent +pgsql.auto_reset_persistent = Off + +; Maximum number of persistent links. -1 means no limit. +; http://php.net/pgsql.max-persistent +pgsql.max_persistent = -1 + +; Maximum number of links (persistent+non persistent). -1 means no limit. +; http://php.net/pgsql.max-links +pgsql.max_links = -1 + +; Ignore PostgreSQL backends Notice message or not. +; Notice message logging require a little overheads. +; http://php.net/pgsql.ignore-notice +pgsql.ignore_notice = 0 + +; Log PostgreSQL backends Notice message or not. +; Unless pgsql.ignore_notice=0, module cannot log notice message. +; http://php.net/pgsql.log-notice +pgsql.log_notice = 0 + +[bcmath] +; Number of decimal digits for all bcmath functions. +; http://php.net/bcmath.scale +bcmath.scale = 0 + +[browscap] +; http://php.net/browscap +;browscap = extra/browscap.ini + +[Session] +; Handler used to store/retrieve data. +; http://php.net/session.save-handler +session.save_handler = files + +; Argument passed to save_handler. In the case of files, this is the path +; where data files are stored. Note: Windows users have to change this +; variable in order to use PHP's session functions. +; +; The path can be defined as: +; +; session.save_path = "N;/path" +; +; where N is an integer. Instead of storing all the session files in +; /path, what this will do is use subdirectories N-levels deep, and +; store the session data in those directories. This is useful if +; your OS has problems with many files in one directory, and is +; a more efficient layout for servers that handle many sessions. +; +; NOTE 1: PHP will not create this directory structure automatically. +; You can use the script in the ext/session dir for that purpose. +; NOTE 2: See the section on garbage collection below if you choose to +; use subdirectories for session storage +; +; The file storage module creates files using mode 600 by default. +; You can change that by using +; +; session.save_path = "N;MODE;/path" +; +; where MODE is the octal representation of the mode. Note that this +; does not overwrite the process's umask. +; http://php.net/session.save-path +;session.save_path = "/tmp" + +; Whether to use strict session mode. +; Strict session mode does not accept an uninitialized session ID, and +; regenerates the session ID if the browser sends an uninitialized session ID. +; Strict mode protects applications from session fixation via a session adoption +; vulnerability. It is disabled by default for maximum compatibility, but +; enabling it is encouraged. +; https://wiki.php.net/rfc/strict_sessions +session.use_strict_mode = 0 + +; Whether to use cookies. +; http://php.net/session.use-cookies +session.use_cookies = 1 + +; http://php.net/session.cookie-secure +;session.cookie_secure = + +; This option forces PHP to fetch and use a cookie for storing and maintaining +; the session id. We encourage this operation as it's very helpful in combating +; session hijacking when not specifying and managing your own session id. It is +; not the be-all and end-all of session hijacking defense, but it's a good start. +; http://php.net/session.use-only-cookies +session.use_only_cookies = 1 + +; Name of the session (used as cookie name). +; http://php.net/session.name +session.name = PHPSESSID + +; Initialize session on request startup. +; http://php.net/session.auto-start +session.auto_start = 0 + +; Lifetime in seconds of cookie or, if 0, until browser is restarted. +; http://php.net/session.cookie-lifetime +session.cookie_lifetime = 0 + +; The path for which the cookie is valid. +; http://php.net/session.cookie-path +session.cookie_path = / + +; The domain for which the cookie is valid. +; http://php.net/session.cookie-domain +session.cookie_domain = + +; Whether or not to add the httpOnly flag to the cookie, which makes it +; inaccessible to browser scripting languages such as JavaScript. +; http://php.net/session.cookie-httponly +session.cookie_httponly = + +; Add SameSite attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF) +; Current valid values are "Lax" or "Strict" +; https://tools.ietf.org/html/draft-west-first-party-cookies-07 +session.cookie_samesite = + +; Handler used to serialize data. php is the standard serializer of PHP. +; http://php.net/session.serialize-handler +session.serialize_handler = php + +; Defines the probability that the 'garbage collection' process is started +; on every session initialization. The probability is calculated by using +; gc_probability/gc_divisor. Where session.gc_probability is the numerator +; and gc_divisor is the denominator in the equation. Setting this value to 1 +; when the session.gc_divisor value is 100 will give you approximately a 1% chance +; the gc will run on any given request. +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.gc-probability +session.gc_probability = 1 + +; Defines the probability that the 'garbage collection' process is started on every +; session initialization. The probability is calculated by using the following equation: +; gc_probability/gc_divisor. Where session.gc_probability is the numerator and +; session.gc_divisor is the denominator in the equation. Setting this value to 100 +; when the session.gc_probability value is 1 will give you approximately a 1% chance +; the gc will run on any given request. Increasing this value to 1000 will give you +; a 0.1% chance the gc will run on any given request. For high volume production servers, +; this is a more efficient approach. +; Default Value: 100 +; Development Value: 1000 +; Production Value: 1000 +; http://php.net/session.gc-divisor +session.gc_divisor = 1000 + +; After this number of seconds, stored data will be seen as 'garbage' and +; cleaned up by the garbage collection process. +; http://php.net/session.gc-maxlifetime +session.gc_maxlifetime = 1440 + +; NOTE: If you are using the subdirectory option for storing session files +; (see session.save_path above), then garbage collection does *not* +; happen automatically. You will need to do your own garbage +; collection through a shell script, cron entry, or some other method. +; For example, the following script would is the equivalent of +; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): +; find /path/to/sessions -cmin +24 -type f | xargs rm + +; Check HTTP Referer to invalidate externally stored URLs containing ids. +; HTTP_REFERER has to contain this substring for the session to be +; considered as valid. +; http://php.net/session.referer-check +session.referer_check = + +; Set to {nocache,private,public,} to determine HTTP caching aspects +; or leave this empty to avoid sending anti-caching headers. +; http://php.net/session.cache-limiter +session.cache_limiter = nocache + +; Document expires after n minutes. +; http://php.net/session.cache-expire +session.cache_expire = 180 + +; trans sid support is disabled by default. +; Use of trans sid may risk your users' security. +; Use this option with caution. +; - User may send URL contains active session ID +; to other person via. email/irc/etc. +; - URL that contains active session ID may be stored +; in publicly accessible computer. +; - User may access your site with the same session ID +; always using URL stored in browser's history or bookmarks. +; http://php.net/session.use-trans-sid +session.use_trans_sid = 0 + +; Set session ID character length. This value could be between 22 to 256. +; Shorter length than default is supported only for compatibility reason. +; Users should use 32 or more chars. +; http://php.net/session.sid-length +; Default Value: 32 +; Development Value: 26 +; Production Value: 26 +session.sid_length = 26 + +; The URL rewriter will look for URLs in a defined set of HTML tags. +; is special; if you include them here, the rewriter will +; add a hidden field with the info which is otherwise appended +; to URLs. tag's action attribute URL will not be modified +; unless it is specified. +; Note that all valid entries require a "=", even if no value follows. +; Default Value: "a=href,area=href,frame=src,form=" +; Development Value: "a=href,area=href,frame=src,form=" +; Production Value: "a=href,area=href,frame=src,form=" +; http://php.net/url-rewriter.tags +session.trans_sid_tags = "a=href,area=href,frame=src,form=" + +; URL rewriter does not rewrite absolute URLs by default. +; To enable rewrites for absolute paths, target hosts must be specified +; at RUNTIME. i.e. use ini_set() +; tags is special. PHP will check action attribute's URL regardless +; of session.trans_sid_tags setting. +; If no host is defined, HTTP_HOST will be used for allowed host. +; Example value: php.net,www.php.net,wiki.php.net +; Use "," for multiple hosts. No spaces are allowed. +; Default Value: "" +; Development Value: "" +; Production Value: "" +;session.trans_sid_hosts="" + +; Define how many bits are stored in each character when converting +; the binary hash data to something readable. +; Possible values: +; 4 (4 bits: 0-9, a-f) +; 5 (5 bits: 0-9, a-v) +; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") +; Default Value: 4 +; Development Value: 5 +; Production Value: 5 +; http://php.net/session.hash-bits-per-character +session.sid_bits_per_character = 5 + +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.enabled +;session.upload_progress.enabled = On + +; Cleanup the progress information as soon as all POST data has been read +; (i.e. upload completed). +; Default Value: On +; Development Value: On +; Production Value: On +; http://php.net/session.upload-progress.cleanup +;session.upload_progress.cleanup = On + +; A prefix used for the upload progress key in $_SESSION +; Default Value: "upload_progress_" +; Development Value: "upload_progress_" +; Production Value: "upload_progress_" +; http://php.net/session.upload-progress.prefix +;session.upload_progress.prefix = "upload_progress_" + +; The index name (concatenated with the prefix) in $_SESSION +; containing the upload progress information +; Default Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Development Value: "PHP_SESSION_UPLOAD_PROGRESS" +; Production Value: "PHP_SESSION_UPLOAD_PROGRESS" +; http://php.net/session.upload-progress.name +;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS" + +; How frequently the upload progress should be updated. +; Given either in percentages (per-file), or in bytes +; Default Value: "1%" +; Development Value: "1%" +; Production Value: "1%" +; http://php.net/session.upload-progress.freq +;session.upload_progress.freq = "1%" + +; The minimum delay between updates, in seconds +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.upload-progress.min-freq +;session.upload_progress.min_freq = "1" + +; Only write session data when session data is changed. Enabled by default. +; http://php.net/session.lazy-write +;session.lazy_write = On + +[Assertion] +; Switch whether to compile assertions at all (to have no overhead at run-time) +; -1: Do not compile at all +; 0: Jump over assertion at run-time +; 1: Execute assertions +; 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) +; Default Value: 1 +; Development Value: 1 +; Production Value: -1 +; http://php.net/zend.assertions +zend.assertions = -1 + +; Assert(expr); active by default. +; http://php.net/assert.active +;assert.active = On + +; Throw an AssertionError on failed assertions +; http://php.net/assert.exception +;assert.exception = On + +; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active) +; http://php.net/assert.warning +;assert.warning = On + +; Don't bail out by default. +; http://php.net/assert.bail +;assert.bail = Off + +; User-function to be called if an assertion fails. +; http://php.net/assert.callback +;assert.callback = 0 + +; Eval the expression with current error_reporting(). Set to true if you want +; error_reporting(0) around the eval(). +; http://php.net/assert.quiet-eval +;assert.quiet_eval = 0 + +[COM] +; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs +; http://php.net/com.typelib-file +;com.typelib_file = + +; allow Distributed-COM calls +; http://php.net/com.allow-dcom +;com.allow_dcom = true + +; autoregister constants of a component's typlib on com_load() +; http://php.net/com.autoregister-typelib +;com.autoregister_typelib = true + +; register constants casesensitive +; http://php.net/com.autoregister-casesensitive +;com.autoregister_casesensitive = false + +; show warnings on duplicate constant registrations +; http://php.net/com.autoregister-verbose +;com.autoregister_verbose = true + +; The default character set code-page to use when passing strings to and from COM objects. +; Default: system ANSI code page +;com.code_page= + +[mbstring] +; language for internal character representation. +; This affects mb_send_mail() and mbstring.detect_order. +; http://php.net/mbstring.language +;mbstring.language = Japanese + +; Use of this INI entry is deprecated, use global internal_encoding instead. +; internal/script encoding. +; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*) +; If empty, default_charset or internal_encoding or iconv.internal_encoding is used. +; The precedence is: default_charset < internal_encoding < iconv.internal_encoding +;mbstring.internal_encoding = + +; Use of this INI entry is deprecated, use global input_encoding instead. +; http input encoding. +; mbstring.encoding_translation = On is needed to use this setting. +; If empty, default_charset or input_encoding or mbstring.input is used. +; The precedence is: default_charset < input_encoding < mbsting.http_input +; http://php.net/mbstring.http-input +;mbstring.http_input = + +; Use of this INI entry is deprecated, use global output_encoding instead. +; http output encoding. +; mb_output_handler must be registered as output buffer to function. +; If empty, default_charset or output_encoding or mbstring.http_output is used. +; The precedence is: default_charset < output_encoding < mbstring.http_output +; To use an output encoding conversion, mbstring's output handler must be set +; otherwise output encoding conversion cannot be performed. +; http://php.net/mbstring.http-output +;mbstring.http_output = + +; enable automatic encoding translation according to +; mbstring.internal_encoding setting. Input chars are +; converted to internal encoding by setting this to On. +; Note: Do _not_ use automatic encoding translation for +; portable libs/applications. +; http://php.net/mbstring.encoding-translation +;mbstring.encoding_translation = Off + +; automatic encoding detection order. +; "auto" detect order is changed according to mbstring.language +; http://php.net/mbstring.detect-order +;mbstring.detect_order = auto + +; substitute_character used when character cannot be converted +; one from another +; http://php.net/mbstring.substitute-character +;mbstring.substitute_character = none + +; overload(replace) single byte functions by mbstring functions. +; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), +; etc. Possible values are 0,1,2,4 or combination of them. +; For example, 7 for overload everything. +; 0: No overload +; 1: Overload mail() function +; 2: Overload str*() functions +; 4: Overload ereg*() functions +; http://php.net/mbstring.func-overload +;mbstring.func_overload = 0 + +; enable strict encoding detection. +; Default: Off +;mbstring.strict_detection = On + +; This directive specifies the regex pattern of content types for which mb_output_handler() +; is activated. +; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) +;mbstring.http_output_conv_mimetype= + +; This directive specifies maximum stack depth for mbstring regular expressions. It is similar +; to the pcre.recursion_limit for PCRE. +; Default: 100000 +;mbstring.regex_stack_limit=100000 + +; This directive specifies maximum retry count for mbstring regular expressions. It is similar +; to the pcre.backtrack_limit for PCRE. +; Default: 1000000 +;mbstring.regex_retry_limit=1000000 + +[gd] +; Tell the jpeg decode to ignore warnings and try to create +; a gd image. The warning will then be displayed as notices +; disabled by default +; http://php.net/gd.jpeg-ignore-warning +;gd.jpeg_ignore_warning = 1 + +[exif] +; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. +; With mbstring support this will automatically be converted into the encoding +; given by corresponding encode setting. When empty mbstring.internal_encoding +; is used. For the decode settings you can distinguish between motorola and +; intel byte order. A decode setting cannot be empty. +; http://php.net/exif.encode-unicode +;exif.encode_unicode = ISO-8859-15 + +; http://php.net/exif.decode-unicode-motorola +;exif.decode_unicode_motorola = UCS-2BE + +; http://php.net/exif.decode-unicode-intel +;exif.decode_unicode_intel = UCS-2LE + +; http://php.net/exif.encode-jis +;exif.encode_jis = + +; http://php.net/exif.decode-jis-motorola +;exif.decode_jis_motorola = JIS + +; http://php.net/exif.decode-jis-intel +;exif.decode_jis_intel = JIS + +[Tidy] +; The path to a default tidy configuration file to use when using tidy +; http://php.net/tidy.default-config +;tidy.default_config = /usr/local/lib/php/default.tcfg + +; Should tidy clean and repair output automatically? +; WARNING: Do not use this option if you are generating non-html content +; such as dynamic images +; http://php.net/tidy.clean-output +tidy.clean_output = Off + +[soap] +; Enables or disables WSDL caching feature. +; http://php.net/soap.wsdl-cache-enabled +soap.wsdl_cache_enabled=1 + +; Sets the directory name where SOAP extension will put cache files. +; http://php.net/soap.wsdl-cache-dir +soap.wsdl_cache_dir="/tmp" + +; (time to live) Sets the number of second while cached file will be used +; instead of original one. +; http://php.net/soap.wsdl-cache-ttl +soap.wsdl_cache_ttl=86400 + +; Sets the size of the cache limit. (Max. number of WSDL files to cache) +soap.wsdl_cache_limit = 5 + +[sysvshm] +; A default size of the shared memory segment +;sysvshm.init_mem = 10000 + +[ldap] +; Sets the maximum number of open links or -1 for unlimited. +ldap.max_links = -1 + +[dba] +;dba.default_handler= + +[opcache] +; Determines if Zend OPCache is enabled +;opcache.enable=1 + +; Determines if Zend OPCache is enabled for the CLI version of PHP +;opcache.enable_cli=0 + +; The OPcache shared memory storage size. +;opcache.memory_consumption=128 + +; The amount of memory for interned strings in Mbytes. +;opcache.interned_strings_buffer=8 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 1000000 are allowed. +;opcache.max_accelerated_files=10000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +;opcache.max_wasted_percentage=5 + +; When this directive is enabled, the OPcache appends the current working +; directory to the script key, thus eliminating possible collisions between +; files with the same name (basename). Disabling the directive improves +; performance, but may break existing applications. +;opcache.use_cwd=1 + +; When disabled, you must reset the OPcache manually or restart the +; webserver for changes to the filesystem to take effect. +;opcache.validate_timestamps=1 + +; How often (in seconds) to check file timestamps for changes to the shared +; memory storage allocation. ("1" means validate once per second, but only +; once per request. "0" means always validate) +;opcache.revalidate_freq=2 + +; Enables or disables file search in include_path optimization +;opcache.revalidate_path=0 + +; If disabled, all PHPDoc comments are dropped from the code to reduce the +; size of the optimized code. +;opcache.save_comments=1 + +; Allow file existence override (file_exists, etc.) performance feature. +;opcache.enable_file_override=0 + +; A bitmask, where each bit enables or disables the appropriate OPcache +; passes +;opcache.optimization_level=0x7FFFBFFF + +;opcache.dups_fix=0 + +; The location of the OPcache blacklist file (wildcards allowed). +; Each OPcache blacklist file is a text file that holds the names of files +; that should not be accelerated. The file format is to add each filename +; to a new line. The filename may be a full path or just a file prefix +; (i.e., /var/www/x blacklists all the files and directories in /var/www +; that start with 'x'). Line starting with a ; are ignored (comments). +;opcache.blacklist_filename= + +; Allows exclusion of large files from being cached. By default all files +; are cached. +;opcache.max_file_size=0 + +; Check the cache checksum each N requests. +; The default value of "0" means that the checks are disabled. +;opcache.consistency_checks=0 + +; How long to wait (in seconds) for a scheduled restart to begin if the cache +; is not being accessed. +;opcache.force_restart_timeout=180 + +; OPcache error_log file name. Empty string assumes "stderr". +;opcache.error_log= + +; All OPcache errors go to the Web server log. +; By default, only fatal errors (level 0) or errors (level 1) are logged. +; You can also enable warnings (level 2), info messages (level 3) or +; debug messages (level 4). +;opcache.log_verbosity_level=1 + +; Preferred Shared Memory back-end. Leave empty and let the system decide. +;opcache.preferred_memory_model= + +; Protect the shared memory from unexpected writing during script execution. +; Useful for internal debugging only. +;opcache.protect_memory=0 + +; Allows calling OPcache API functions only from PHP scripts which path is +; started from specified string. The default "" means no restriction +;opcache.restrict_api= + +; Mapping base of shared memory segments (for Windows only). All the PHP +; processes have to map shared memory into the same address space. This +; directive allows to manually fix the "Unable to reattach to base address" +; errors. +;opcache.mmap_base= + +; Facilitates multiple OPcache instances per user (for Windows only). All PHP +; processes with the same cache ID and user share an OPcache instance. +;opcache.cache_id= + +; Enables and sets the second level cache directory. +; It should improve performance when SHM memory is full, at server restart or +; SHM reset. The default "" disables file based caching. +;opcache.file_cache= + +; Enables or disables opcode caching in shared memory. +;opcache.file_cache_only=0 + +; Enables or disables checksum validation when script loaded from file cache. +;opcache.file_cache_consistency_checks=1 + +; Implies opcache.file_cache_only=1 for a certain process that failed to +; reattach to the shared memory (for Windows only). Explicitly enabled file +; cache is required. +;opcache.file_cache_fallback=1 + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +;opcache.huge_code_pages=1 + +; Validate cached file permissions. +;opcache.validate_permission=0 + +; Prevent name collisions in chroot'ed environment. +;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 + +; Specifies a PHP script that is going to be compiled and executed at server +; start-up. +; http://php.net/opcache.preload +;opcache.preload= + +; Preloading code as root is not allowed for security reasons. This directive +; facilitates to let the preloading to be run as another user. +; http://php.net/opcache.preload_user +;opcache.preload_user= + +; Prevents caching files that are less than this number of seconds old. It +; protects from caching of incompletely updated files. In case all file updates +; on your site are atomic, you may increase performance by setting it to "0". +;opcache.file_update_protection=2 + +; Absolute path used to store shared lockfiles (for *nix only). +;opcache.lockfile_path=/tmp + +[curl] +; A default value for the CURLOPT_CAINFO option. This is required to be an +; absolute path. +;curl.cainfo = + +[openssl] +; The location of a Certificate Authority (CA) file on the local filesystem +; to use when verifying the identity of SSL/TLS peers. Most users should +; not specify a value for this directive as PHP will attempt to use the +; OS-managed cert stores in its absence. If specified, this value may still +; be overridden on a per-stream basis via the "cafile" SSL stream context +; option. +;openssl.cafile= + +; If openssl.cafile is not specified or if the CA file is not found, the +; directory pointed to by openssl.capath is searched for a suitable +; certificate. This value must be a correctly hashed certificate directory. +; Most users should not specify a value for this directive as PHP will +; attempt to use the OS-managed cert stores in its absence. If specified, +; this value may still be overridden on a per-stream basis via the "capath" +; SSL stream context option. +;openssl.capath= + +[ffi] +; FFI API restriction. Possibe values: +; "preload" - enabled in CLI scripts and preloaded files (default) +; "false" - always disabled +; "true" - always enabled +;ffi.enable=preload + +; List of headers files to preload, wildcard patterns allowed. +;ffi.preload= diff --git a/5.6/templates/authorized_keys.tpl b/7/templates/authorized_keys.tmpl similarity index 100% rename from 5.6/templates/authorized_keys.tpl rename to 7/templates/authorized_keys.tmpl diff --git a/5.6/templates/crontab.tpl b/7/templates/crontab.tmpl similarity index 100% rename from 5.6/templates/crontab.tpl rename to 7/templates/crontab.tmpl diff --git a/7/templates/docker-php-7.2.ini.tmpl b/7/templates/docker-php-7.2.ini.tmpl new file mode 100644 index 00000000..5ced03f5 --- /dev/null +++ b/7/templates/docker-php-7.2.ini.tmpl @@ -0,0 +1,81 @@ +; This file user only to override default php.ini values +; BASIC SETTINGS: $PHP_INI_DIR/php.ini +; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf + +[PHP] +display_errors = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} +display_startup_errors = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} +expose_php = {{ getenv "PHP_EXPOSE" "Off" }} +max_execution_time = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} +max_input_time = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} +max_input_vars = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} +post_max_size = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} +upload_max_filesize = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} +max_file_uploads = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} +allow_url_fopen = {{ getenv "PHP_ALLOW_URL_FOPEN" "On" }} +default_socket_timeout = {{ getenv "PHP_DEFAULT_SOCKET_TIMEOUT" "60" }} +output_buffering = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} + +realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "4096k" }} +realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} +memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} +error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} +log_errors = {{ getenv "PHP_LOG_ERRORS" "On" }} +log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "0" }} +error_log = /proc/self/fd/2 +auto_prepend_file = {{ getenv "PHP_AUTO_PREPEND_FILE" }} +auto_append_file = {{ getenv "PHP_AUTO_APPEND_FILE" }} + +[Date] +date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} + +[Pdo_mysql] +pdo_mysql.cache_size = {{ getenv "PHP_PDO_MYSQL_CACHE_SIZE" "2000" }} + +[Phar] +phar.readonly = {{ getenv "PHP_PHAR_READONLY" "1" }} +phar.require_hash = {{ getenv "PHP_PHAR_REQUIRE_HASH" "1" }} +phar.cache_list = {{ getenv "PHP_PHAR_CACHE_LIST" "" }} + +[mail function] +sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} + +[MySQLi] +mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} + +[Session] +session.save_handler = {{ getenv "PHP_SESSION_SAVE_HANDLER" "files" }} +session.save_path = "{{ getenv "PHP_SESSION_SAVE_PATH" "/mnt/files/sessions" }}" +session.use_strict_mode = {{ getenv "PHP_SESSION_USE_STRICT_MODE" "0" }} +session.use_cookies = {{ getenv "PHP_SESSION_USE_COOKIES" "1" }} +session.cookie_secure = {{ getenv "PHP_SESSION_COOKIE_SECURE" "0" }} +session.use_only_cookies = {{ getenv "PHP_SESSION_USE_ONLY_COOKIES" "1" }} +session.name = {{ getenv "PHP_SESSION_NAME" "PHPSESSID" }} +session.auto_start = {{ getenv "PHP_SESSION_AUTO_START" "0" }} +session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }} +session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }} +session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }} +session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }} +session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }} +session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }} +session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }} +session.gc_maxlifetime = {{ getenv "PHP_SESSION_GC_MAXLIFETIME" "1440" }} +session.referer_check = {{ getenv "PHP_SESSION_REFERER_CHECK" "" }} +session.cache_limiter = {{ getenv "PHP_SESSION_CACHE_LIMITER" "nocache" }} +session.cache_expire = {{ getenv "PHP_SESSION_CACHE_EXPIRE" "180" }} +session.use_trans_sid = {{ getenv "PHP_SESSION_USE_TRANS_SID" "0" }} +session.sid_length = {{ getenv "PHP_SESSION_SID_LENGTH" "26" }} +session.trans_sid_tags = "{{ getenv "PHP_SESSION_TRANS_SID_TAGS" "a=href,area=href,frame=src,form=" }}" +session.trans_sid_hosts = {{ getenv "PHP_SESSION_TRANS_SID_HOSTS" "" }} +session.sid_bits_per_character = {{ getenv "PHP_SESSION_SID_BITS_PER_CHARACTER" "5" }} +session.upload_progress.enabled = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_ENABLED" "on" }} +session.upload_progress.cleanup = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_CLEANUP" "on" }} +session.upload_progress.prefix = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_PREFIX" "upload_progress_" }}" +session.upload_progress.name = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_NAME" "PHP_SESSION_UPLOAD_PROGRESS" }}" +session.upload_progress.freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_FREQ" "1%" }}" +session.upload_progress.min_freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_MIN_FREQ" "1" }}" +session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }} + +[Assertion] +zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} +assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} diff --git a/7/templates/docker-php-7.3.ini.tmpl b/7/templates/docker-php-7.3.ini.tmpl new file mode 100644 index 00000000..1fd45852 --- /dev/null +++ b/7/templates/docker-php-7.3.ini.tmpl @@ -0,0 +1,78 @@ +; This file user only to override default php.ini values +; BASIC SETTINGS: $PHP_INI_DIR/php.ini +; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf + +[PHP] +display_errors = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} +display_startup_errors = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} +expose_php = {{ getenv "PHP_EXPOSE" "Off" }} +max_execution_time = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} +max_input_time = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} +max_input_vars = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} +post_max_size = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} +upload_max_filesize = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} +max_file_uploads = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} +allow_url_fopen = {{ getenv "PHP_ALLOW_URL_FOPEN" "On" }} +default_socket_timeout = {{ getenv "PHP_DEFAULT_SOCKET_TIMEOUT" "60" }} +output_buffering = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} + +realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "4096k" }} +realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} +memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} +error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} +log_errors = {{ getenv "PHP_LOG_ERRORS" "On" }} +log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "0" }} +error_log = /proc/self/fd/2 +auto_prepend_file = {{ getenv "PHP_AUTO_PREPEND_FILE" }} +auto_append_file = {{ getenv "PHP_AUTO_APPEND_FILE" }} + +[Date] +date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} + +[Phar] +phar.readonly = {{ getenv "PHP_PHAR_READONLY" "1" }} +phar.require_hash = {{ getenv "PHP_PHAR_REQUIRE_HASH" "1" }} +phar.cache_list = {{ getenv "PHP_PHAR_CACHE_LIST" "" }} + +[mail function] +sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} + +[MySQLi] +mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} + +[Session] +session.save_handler = {{ getenv "PHP_SESSION_SAVE_HANDLER" "files" }} +session.save_path = "{{ getenv "PHP_SESSION_SAVE_PATH" "/mnt/files/sessions" }}" +session.use_strict_mode = {{ getenv "PHP_SESSION_USE_STRICT_MODE" "0" }} +session.use_cookies = {{ getenv "PHP_SESSION_USE_COOKIES" "1" }} +session.cookie_secure = {{ getenv "PHP_SESSION_COOKIE_SECURE" "0" }} +session.use_only_cookies = {{ getenv "PHP_SESSION_USE_ONLY_COOKIES" "1" }} +session.name = {{ getenv "PHP_SESSION_NAME" "PHPSESSID" }} +session.auto_start = {{ getenv "PHP_SESSION_AUTO_START" "0" }} +session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }} +session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }} +session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }} +session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }} +session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }} +session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }} +session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }} +session.gc_maxlifetime = {{ getenv "PHP_SESSION_GC_MAXLIFETIME" "1440" }} +session.referer_check = {{ getenv "PHP_SESSION_REFERER_CHECK" "" }} +session.cache_limiter = {{ getenv "PHP_SESSION_CACHE_LIMITER" "nocache" }} +session.cache_expire = {{ getenv "PHP_SESSION_CACHE_EXPIRE" "180" }} +session.use_trans_sid = {{ getenv "PHP_SESSION_USE_TRANS_SID" "0" }} +session.sid_length = {{ getenv "PHP_SESSION_SID_LENGTH" "26" }} +session.trans_sid_tags = "{{ getenv "PHP_SESSION_TRANS_SID_TAGS" "a=href,area=href,frame=src,form=" }}" +session.trans_sid_hosts = {{ getenv "PHP_SESSION_TRANS_SID_HOSTS" "" }} +session.sid_bits_per_character = {{ getenv "PHP_SESSION_SID_BITS_PER_CHARACTER" "5" }} +session.upload_progress.enabled = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_ENABLED" "on" }} +session.upload_progress.cleanup = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_CLEANUP" "on" }} +session.upload_progress.prefix = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_PREFIX" "upload_progress_" }}" +session.upload_progress.name = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_NAME" "PHP_SESSION_UPLOAD_PROGRESS" }}" +session.upload_progress.freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_FREQ" "1%" }}" +session.upload_progress.min_freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_MIN_FREQ" "1" }}" +session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }} + +[Assertion] +zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} +assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} diff --git a/7/templates/docker-php-7.4.ini.tmpl b/7/templates/docker-php-7.4.ini.tmpl new file mode 100644 index 00000000..1fd45852 --- /dev/null +++ b/7/templates/docker-php-7.4.ini.tmpl @@ -0,0 +1,78 @@ +; This file user only to override default php.ini values +; BASIC SETTINGS: $PHP_INI_DIR/php.ini +; PHP-FPM SETTINGS: /usr/local/etc/php-fpm.d/zz-www.conf + +[PHP] +display_errors = {{ getenv "PHP_DISPLAY_ERRORS" "On" }} +display_startup_errors = {{ getenv "PHP_DISPLAY_STARTUP_ERRORS" "On" }} +expose_php = {{ getenv "PHP_EXPOSE" "Off" }} +max_execution_time = {{ getenv "PHP_MAX_EXECUTION_TIME" "120" }} +max_input_time = {{ getenv "PHP_MAX_INPUT_TIME" "60" }} +max_input_vars = {{ getenv "PHP_MAX_INPUT_VARS" "2000" }} +post_max_size = {{ getenv "PHP_POST_MAX_SIZE" "32M" }} +upload_max_filesize = {{ getenv "PHP_UPLOAD_MAX_FILESIZE" "32M" }} +max_file_uploads = {{ getenv "PHP_MAX_FILE_UPLOADS" "20" }} +allow_url_fopen = {{ getenv "PHP_ALLOW_URL_FOPEN" "On" }} +default_socket_timeout = {{ getenv "PHP_DEFAULT_SOCKET_TIMEOUT" "60" }} +output_buffering = {{ getenv "PHP_OUTPUT_BUFFERING" "4096" }} + +realpath_cache_size = {{ getenv "PHP_REALPATH_CACHE_SIZE" "4096k" }} +realpath_cache_ttl = {{ getenv "PHP_REALPATH_CACHE_TTL" "120" }} +memory_limit = {{ getenv "PHP_CLI_MEMORY_LIMIT" "-1" }} +error_reporting = {{ getenv "PHP_ERROR_REPORTING" "E_ALL" }} +log_errors = {{ getenv "PHP_LOG_ERRORS" "On" }} +log_errors_max_len = {{ getenv "PHP_LOG_ERRORS_MAX_LEN" "0" }} +error_log = /proc/self/fd/2 +auto_prepend_file = {{ getenv "PHP_AUTO_PREPEND_FILE" }} +auto_append_file = {{ getenv "PHP_AUTO_APPEND_FILE" }} + +[Date] +date.timezone = {{ getenv "PHP_DATE_TIMEZONE" "UTC"}} + +[Phar] +phar.readonly = {{ getenv "PHP_PHAR_READONLY" "1" }} +phar.require_hash = {{ getenv "PHP_PHAR_REQUIRE_HASH" "1" }} +phar.cache_list = {{ getenv "PHP_PHAR_CACHE_LIST" "" }} + +[mail function] +sendmail_path = {{ getenv "PHP_SENDMAIL_PATH" "/bin/true" }} + +[MySQLi] +mysqli.cache_size = {{ getenv "PHP_MYSQLI_CACHE_SIZE" "2000" }} + +[Session] +session.save_handler = {{ getenv "PHP_SESSION_SAVE_HANDLER" "files" }} +session.save_path = "{{ getenv "PHP_SESSION_SAVE_PATH" "/mnt/files/sessions" }}" +session.use_strict_mode = {{ getenv "PHP_SESSION_USE_STRICT_MODE" "0" }} +session.use_cookies = {{ getenv "PHP_SESSION_USE_COOKIES" "1" }} +session.cookie_secure = {{ getenv "PHP_SESSION_COOKIE_SECURE" "0" }} +session.use_only_cookies = {{ getenv "PHP_SESSION_USE_ONLY_COOKIES" "1" }} +session.name = {{ getenv "PHP_SESSION_NAME" "PHPSESSID" }} +session.auto_start = {{ getenv "PHP_SESSION_AUTO_START" "0" }} +session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }} +session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }} +session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }} +session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }} +session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }} +session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }} +session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }} +session.gc_maxlifetime = {{ getenv "PHP_SESSION_GC_MAXLIFETIME" "1440" }} +session.referer_check = {{ getenv "PHP_SESSION_REFERER_CHECK" "" }} +session.cache_limiter = {{ getenv "PHP_SESSION_CACHE_LIMITER" "nocache" }} +session.cache_expire = {{ getenv "PHP_SESSION_CACHE_EXPIRE" "180" }} +session.use_trans_sid = {{ getenv "PHP_SESSION_USE_TRANS_SID" "0" }} +session.sid_length = {{ getenv "PHP_SESSION_SID_LENGTH" "26" }} +session.trans_sid_tags = "{{ getenv "PHP_SESSION_TRANS_SID_TAGS" "a=href,area=href,frame=src,form=" }}" +session.trans_sid_hosts = {{ getenv "PHP_SESSION_TRANS_SID_HOSTS" "" }} +session.sid_bits_per_character = {{ getenv "PHP_SESSION_SID_BITS_PER_CHARACTER" "5" }} +session.upload_progress.enabled = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_ENABLED" "on" }} +session.upload_progress.cleanup = {{ getenv "PHP_SESSION_UPLOAD_PROGRESS_CLEANUP" "on" }} +session.upload_progress.prefix = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_PREFIX" "upload_progress_" }}" +session.upload_progress.name = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_NAME" "PHP_SESSION_UPLOAD_PROGRESS" }}" +session.upload_progress.freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_FREQ" "1%" }}" +session.upload_progress.min_freq = "{{ getenv "PHP_SESSION_UPLOAD_PROGRESS_MIN_FREQ" "1" }}" +session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }} + +[Assertion] +zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }} +assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }} diff --git a/5.6/templates/docker-php-ext-apcu.ini.tpl b/7/templates/docker-php-ext-apcu.ini.tmpl similarity index 67% rename from 5.6/templates/docker-php-ext-apcu.ini.tpl rename to 7/templates/docker-php-ext-apcu.ini.tmpl index 4f9eeb0f..5479d0e2 100644 --- a/5.6/templates/docker-php-ext-apcu.ini.tpl +++ b/7/templates/docker-php-ext-apcu.ini.tmpl @@ -11,3 +11,11 @@ apc.enable_cli = {{ getenv "PHP_APCU_ENABLE_CLI" "0" }} apc.use_request_time = {{ getenv "PHP_APCU_USE_REQUEST_TIME" "1" }} apc.coredump_unmap = {{ getenv "PHP_APCU_COREDUMP_UNMAP" "0" }} apc.preload_path = {{ getenv "PHP_APCU_PRELOAD_PATH" "NULL" }} + +{{ if getenv "PHP_APCU_SERIALIZER" }} +; Default value of serializer is "php" when it's not set +; Despite the segfault bug was resolved, avoid using "default" for safety +; https://github.com/krakjoe/apcu/issues/260 +; https://github.com/krakjoe/apcu/issues/248 +apc.serializer = {{ getenv "PHP_APCU_SERIALIZER" }} +{{ end }} diff --git a/5.6/templates/docker-php-ext-blackfire.ini.tpl b/7/templates/docker-php-ext-blackfire.ini.tmpl similarity index 100% rename from 5.6/templates/docker-php-ext-blackfire.ini.tpl rename to 7/templates/docker-php-ext-blackfire.ini.tmpl diff --git a/7/templates/docker-php-ext-igbinary.ini.tmpl b/7/templates/docker-php-ext-igbinary.ini.tmpl new file mode 100644 index 00000000..fa14b623 --- /dev/null +++ b/7/templates/docker-php-ext-igbinary.ini.tmpl @@ -0,0 +1,3 @@ +[igbinary] +extension = igbinary.so +igbinary.compact_strings = {{ getenv "PHP_IGBINARY_COMPACT_STRINGS" "On" }} \ No newline at end of file diff --git a/7/templates/docker-php-ext-newrelic.ini.tmpl b/7/templates/docker-php-ext-newrelic.ini.tmpl new file mode 100644 index 00000000..e803adf7 --- /dev/null +++ b/7/templates/docker-php-ext-newrelic.ini.tmpl @@ -0,0 +1,26 @@ +{{ if getenv "PHP_NEWRELIC_ENABLED" }} +[newrelic] +extension = newrelic.so +newrelic.appname = "{{ getenv "PHP_NEWRELIC_APPNAME" "My PHP app" }}" +newrelic.browser_monitoring.auto_instrument = "{{ getenv "PHP_NEWRELIC_BROWSER_MONITORING_AUTO_INSTRUMENT" "true" }}" +newrelic.capture_params = {{ getenv "PHP_NEWRELIC_CAPTURE_PARAMS" "false" }} +newrelic.daemon.logfile = "{{ getenv "PHP_NEWRELIC_DAEMON_LOGFILE" "/proc/self/fd/2" }}" +newrelic.daemon.loglevel = "{{ getenv "PHP_NEWRELIC_DAEMON_LOGLEVEL" "warning" }}" +newrelic.daemon.port = "{{ getenv "PHP_NEWRELIC_DAEMON_PORT" "@newrelic-daemon" }}" +newrelic.enabled = {{ getenv "PHP_NEWRELIC_ENABLED" "false" }} +{{ if getenv "PHP_NEWRELIC_FRAMEWORK" }} +newrelic.framework = {{ getenv "PHP_NEWRELIC_FRAMEWORK" }} +{{ end }} +newrelic.guzzle_enabled = "{{ getenv "PHP_NEWRELIC_GUZZLE_ENABLED" "true" }}" +newrelic.high_security = {{ getenv "PHP_NEWRELIC_HIGH_SECURITY" "false" }} +newrelic.ignored_params = "{{ getenv "PHP_NEWRELIC_IGNORED_PARAMS" }}" +newrelic.labels = "{{ getenv "PHP_NEWRELIC_LABELS" }}" +newrelic.license = "{{ getenv "PHP_NEWRELIC_LICENSE" }}" +newrelic.logfile = "{{ getenv "PHP_NEWRELIC_LOGFILE" "/proc/self/fd/2" }}" +newrelic.loglevel = "{{ getenv "PHP_NEWRELIC_LOGLEVEL" "warning" }}" +{{ if getenv "PHP_NEWRELIC_SPECIAL" }} +newrelic.special = "{{ getenv "PHP_NEWRELIC_SPECIAL" }}" +{{ end }} +newrelic.transaction_tracer.detail = {{ getenv "PHP_NEWRELIC_TRANSACTION_TRACER_DETAIL" "1" }} +newrelic.distributed_tracing_enabled = {{ getenv "PHP_NEWRELIC_DISTRIBUTED_TRACING_ENABLED" "0" }} +{{ end }} diff --git a/7.0/templates/docker-php-ext-opcache.ini.tpl b/7/templates/docker-php-ext-opcache.ini.tmpl similarity index 78% rename from 7.0/templates/docker-php-ext-opcache.ini.tpl rename to 7/templates/docker-php-ext-opcache.ini.tmpl index 518b7d02..2f84815a 100644 --- a/7.0/templates/docker-php-ext-opcache.ini.tpl +++ b/7/templates/docker-php-ext-opcache.ini.tmpl @@ -6,5 +6,5 @@ opcache.revalidate_freq = {{ getenv "PHP_OPCACHE_REVALIDATE_FREQ" "2" }} opcache.max_accelerated_files = {{ getenv "PHP_OPCACHE_MAX_ACCELERATED_FILES" "4000" }} opcache.memory_consumption = {{ getenv "PHP_OPCACHE_MEMORY_CONSUMPTION" "128" }} opcache.interned_strings_buffer = {{ getenv "PHP_OPCACHE_INTERNED_STRINGS_BUFFER" "8" }} -opcache.fast_shutdown = {{ getenv "PHP_OPCACHE_FAST_SHUTDOWN" "1" }} -opcache.enable_cli = {{ getenv "PHP_OPCACHE_ENABLE_CLI" "1" }} \ No newline at end of file +opcache.enable_cli = {{ getenv "PHP_OPCACHE_ENABLE_CLI" "0" }} +opcache.huge_code_pages = {{ getenv "PHP_OPCACHE_HUGE_CODE_PAGES" "0" }} \ No newline at end of file diff --git a/7/templates/docker-php-ext-tideways_xhprof.ini.tmpl b/7/templates/docker-php-ext-tideways_xhprof.ini.tmpl new file mode 100644 index 00000000..1a38c783 --- /dev/null +++ b/7/templates/docker-php-ext-tideways_xhprof.ini.tmpl @@ -0,0 +1,4 @@ +{{ if getenv "PHP_XHPROF" }} +[xhprof] +extension = tideways_xhprof.so +{{ end }} \ No newline at end of file diff --git a/7.0/templates/docker-php-ext-xdebug.ini.tpl b/7/templates/docker-php-ext-xdebug.ini.tmpl similarity index 96% rename from 7.0/templates/docker-php-ext-xdebug.ini.tpl rename to 7/templates/docker-php-ext-xdebug.ini.tmpl index 9e5e67b9..f5e0ba0a 100644 --- a/7.0/templates/docker-php-ext-xdebug.ini.tpl +++ b/7/templates/docker-php-ext-xdebug.ini.tmpl @@ -27,7 +27,7 @@ xdebug.profiler_append = {{ getenv "PHP_XDEBUG_PROFILER_APPEND" "0" }} xdebug.profiler_enable = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE" "0" }} xdebug.profiler_enable_trigger = {{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER" "0" }} xdebug.profiler_enable_trigger_value = "{{ getenv "PHP_XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE" "" }}" -xdebug.profiler_output_dir = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_DIR" "/tmp" }} +xdebug.profiler_output_dir = {{ getenv "FILES_DIR" }}/xdebug/profiler xdebug.profiler_output_name = {{ getenv "PHP_XDEBUG_PROFILER_OUTPUT_NAME" "cachegrind.out.%p" }} xdebug.remote_addr_header = "{{ getenv "PHP_XDEBUG_REMOTE_ADDR_HEADER" "" }}" xdebug.remote_autostart = {{ getenv "PHP_XDEBUG_REMOTE_AUTOSTART" "1" }} @@ -48,7 +48,7 @@ xdebug.trace_enable_trigger = {{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER" "0" }} xdebug.trace_enable_trigger_value = "{{ getenv "PHP_XDEBUG_TRACE_ENABLE_TRIGGER_VALUE" "" }}" xdebug.trace_format = {{ getenv "PHP_XDEBUG_TRACE_FORMAT" "0" }} xdebug.trace_options = {{ getenv "PHP_XDEBUG_TRACE_OPTIONS" "0" }} -xdebug.trace_output_dir = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_DIR" "/tmp" }} +xdebug.trace_output_dir = {{ getenv "FILES_DIR" }}/xdebug/traces xdebug.trace_output_name = {{ getenv "PHP_XDEBUG_TRACE_OUTPUT_NAME" "trace.%c" }} xdebug.var_display_max_children = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_CHILDREN" "128" }} xdebug.var_display_max_data = {{ getenv "PHP_XDEBUG_VAR_DISPLAY_MAX_DATA" "512" }} diff --git a/7/templates/gitconfig.tmpl b/7/templates/gitconfig.tmpl new file mode 100644 index 00000000..5f06d3fa --- /dev/null +++ b/7/templates/gitconfig.tmpl @@ -0,0 +1,3 @@ +[user] + name = {{ getenv "GIT_USER_NAME" }} + email = {{ getenv "GIT_USER_EMAIL" }} \ No newline at end of file diff --git a/5.6/templates/id_rsa.tpl b/7/templates/id_rsa.tmpl similarity index 100% rename from 5.6/templates/id_rsa.tpl rename to 7/templates/id_rsa.tmpl diff --git a/5.3/templates/ssh_config.tpl b/7/templates/ssh_config.tmpl similarity index 100% rename from 5.3/templates/ssh_config.tpl rename to 7/templates/ssh_config.tmpl diff --git a/7.1/templates/sshd_config.tpl b/7/templates/sshd_config.tmpl similarity index 92% rename from 7.1/templates/sshd_config.tpl rename to 7/templates/sshd_config.tmpl index ed4b4a99..0188d49d 100644 --- a/7.1/templates/sshd_config.tpl +++ b/7/templates/sshd_config.tmpl @@ -16,10 +16,10 @@ #ListenAddress :: {{ $keys_dir := (getenv "SSHD_HOST_KEYS_DIR" "/etc/ssh") }} -HostKey {{ $keys_dir }}/ssh_host_rsa_key -HostKey {{ $keys_dir }}/ssh_host_dsa_key -HostKey {{ $keys_dir }}/ssh_host_ecdsa_key -HostKey {{ $keys_dir }}/ssh_host_ed25519_key +HostKey {{ $keys_dir }}/ssh_rsa_key +HostKey {{ $keys_dir }}/ssh_dsa_key +HostKey {{ $keys_dir }}/ssh_ecdsa_key +HostKey {{ $keys_dir }}/ssh_ed25519_key # Ciphers and keying #RekeyLimit default none @@ -85,7 +85,7 @@ GatewayPorts {{ getenv "SSHD_GATEWAY_PORTS" "no" }} #PrintLastLog yes #TCPKeepAlive yes #UseLogin no -PermitUserEnvironment {{ getenv "SSHD_PERMIT_USER_ENV" "no" }} +PermitUserEnvironment {{ getenv "SSHD_PERMIT_USER_ENV" "yes" }} #Compression delayed #ClientAliveInterval 0 #ClientAliveCountMax 3 diff --git a/7/templates/wodby.settings.php.tmpl b/7/templates/wodby.settings.php.tmpl new file mode 100644 index 00000000..a48e7c97 --- /dev/null +++ b/7/templates/wodby.settings.php.tmpl @@ -0,0 +1,29 @@ + /mnt/files/cron diff --git a/7/tests/docker-compose.yml b/7/tests/docker-compose.yml new file mode 100644 index 00000000..ad11ef2f --- /dev/null +++ b/7/tests/docker-compose.yml @@ -0,0 +1,42 @@ +version: "2" + +services: + nginx: + image: wodby/nginx + environment: + NGINX_BACKEND_HOST: php + NGINX_VHOST_PRESET: php + depends_on: + - php + + sshd: + image: $IMAGE + command: sudo /usr/sbin/sshd -De + volumes: + - ./authorized_keys:/home/wodby/.ssh/authorized_keys + environment: + DEBUG: 1 + + php: + image: $IMAGE + environment: + SSH_DISABLE_STRICT_KEY_CHECKING: 1 + PHP_XDEBUG: 1 + PHP_XHPROF: 1 + PHP_BLACKFIRE: 1 + PHP_NEWRELIC_ENABLED: 1 + ROWS: 80 + volumes: + - ./tests.sh:/usr/local/bin/tests.sh + - ./php_modules:/home/wodby/php_modules + - ./id_rsa:/home/wodby/.ssh/id_rsa + depends_on: + - sshd + + crond: + image: $IMAGE + command: sudo -E LD_PRELOAD=/usr/lib/preloadable_libiconv.so crond -f -d 0 + volumes: + - ./crontab:/etc/crontabs/www-data + depends_on: + - sshd diff --git a/7/tests/id_rsa b/7/tests/id_rsa new file mode 100644 index 00000000..f7e7825b --- /dev/null +++ b/7/tests/id_rsa @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEAokwbFJ7hz+qItITGFlbMtqaomcdXOyruYngI+GOKn5MWi1kQ +LO8MW3HvOmFKD3n2do4ZZJucMLN+zfgFkGk17p4rGEfuQDHGDmvt7UCA2NuxIpJS +Dr45pBCNoTm0n6SeNhmEg+PkTJNcgyubazEPJ6WFZ5SVMg+/bEn4cl4k+jph6GBs +NoyT3Yyga4TzXjd4O7x7CXT3k689/z/YgtiwIk8jXtduTc3eKAH30lxDpsHmb2SU +jbQFpBRMNoK1g0pUih1V/mSTLBSdpwNgndYd5CDjKEYnTdKG3ze/cUjy/AOcX/4W +AfxbyscU6S4rebgdXnaw8EDHyRd26/LELMtEwY+Y1/4SRS0LF9PXpd7I+/ky21PP +tDYCcJ88bqtnf76Wu2gGFnA7CmOS+DmBg1yJ9ZHfWOTFL5gvo/mW7l3NrT9gacZG +TCmY+dg0WSpGNOqw2rqMFh/DiHk7x967NykhIkutmhf6RVZGDGksAXzzCTkaaiSD +NBt/irauYXYYYfdxooYjUofb48AvTHMZzcTGV9DIljGuiZxlRPFRUHpzjPUMxS7x +5F/KgxlnAUautHZc8DEmMJDNB/OZd/WbNkjh2gSuOl2qk1cUoXNrem/hyxsnIAfI +l9V3Iy2SnUeZidtiqqm/feOyWM844FI8VIgRasYvOsYKeJtQ1B3mAKHEsdkCAwEA +AQKCAgEAgUJj/xRbfKCqqDtnGLug54fsmC1viCw1GC/J1SpSaa1YMzuH6oGpMduY +UMLTnWfhp6KdDsfwqckLoTd8Fvv0fEt0vy3qzy3VM/85y8+nzw+KEKLAwAU5GzYj +1tiCxvLxHt1L8U87sNFcyQueCM1V6Jmnmkt4WBq6tqBjQ5M/mBuPhufkx71Gtxkd +WwTUX6GGHO2MgIer9u+HTReodO3nuiuVXB/wNf9UhECtA9l/9/xOb0GIHyPVqkyQ +Non7zskQc7/RkX7AyEbTGQVTmeHChMK8qILXIuAdkwJvcuZKv/SQQtO263X2FZZh +TSX8ckD1Axs86NxvQfVyPZFoNNTfuJTVJGaRoa5cwNQtCAKtQ9BmasAarlre02Jb +xplj6N4elzYFPr7iQzZ0ae2weWs3oAriAG3e2Z6WZTbIbwnqTCMbVQlXBh+VggRK +ja5VS3bkJDoX6C6dWjcFPkGhCSyKjjKJ3Ixw47EoZN+k+jlWNEOmpGpz/Q8DzctK +mmA50zgmdHsj41W/saZ4dRBHbo3bdNY7Z9Fmk+wNTZD7KMfv6Hr/ajiERDewkvDd +tIrODvZdDANPrtUEFa5lQKJ3e8yp8wx/FVXLX45b9kw4PwUlyyEHi2GD2nR8vHv6 +EqPInQA7YTeUC165wRFEz7POVWjnVDzQv+wHKoURnMz8uA4JQFECggEBAM4NzSs6 +3XlG9M1Kpn/sNvLOPbP9ALZM9EQMEJrHvjMOEAfwzSWo5WiqRpLhKo/Fee1RPRn8 +db4vVztSXfKPh+3C3PeaE/ZHMIiDr+f0Xl+3+nHzmWfiKvjH1amBlAk0FRwQYD4r +YxhAGJnRy90KeXTxRoTcsguYhk5E72nBd4+x+QUecxI1r+gbFJa4DpVqBLGDbszP +jkoW/goZ+aLHxgq71lzWtHjjKoNqdzCI8LOYsTX+VSz3yYPXdAPLrpVaaITEb91Z +hdca1B2NZiE9HsSuV1ou+KZtG00MTnnN/7tnGqzTYXdYbbdHFywAg3sCKo4Nl/K9 +383OLwgd/MxJoT8CggEBAMmjFp2bWiBXg5AgDk0zGQrQ2rkfq+snJLwblj8HXoBp +tIO1Nh+fEAs2sdY1bmGvdKp9TItciIEcPL+dCLUKXOQHpTqX0a6GS///XECtQDTZ +eLAK6PC/FoBHbQE4aDj/5C2h5k32Hq0pLU+qwNhFF/KkV5ZZbg5oPUkyd3f3ARMM +SdFBnmqq7vkWGpYvVVZuORmUYeRb56uuVxO/DOfBMr5A+ikU8eN3cxpUKu9ZaUJd +RvbIRAztz/4dKsVLyBuOgeN8T8OzxAVI8HiUW3THAQQy68AkqEPvy9djujmU/yTx +uf753mBb4ZVa/ocjbM4Pt1JWMKSIk8yHXRy4AFQNTucCggEAL0l7jDA2I17lTzeS +fkj3U0GBZ4zoXO3MINGj/eFZBN51T10ztzDLdPmeuJZz7gqjsJK0MwJ9AuhaXILK +jJ/j0eymSSxS6HHt8WZHODQcdFsEXqJI0k5VDkLOBdh24KXTMl2PuLS8SRRskOBU +qKV+uhek11jOg1q9d7jaOKrthUySmVojjkpD1EBiuTQEJMXvzc0b4GTBgr9EDY1o +fLLcABqbVzLut89qMj58m+bRVmX0RS/Y3DkBRgBr33Me3aeh1NY/1cx1qqe9hgqt +JXOhXAGmiku9RHRFj6kDWXCs/5Tpyj+4XmsswqLN7osvoUsd+Pulo09vzQtEP9ih +6z/6gQKCAQEAocgX8jbedkqhRbdiojBYbGQsyhIOV2udvswHneSkvzWQ34g6t95g ++g5VW8CdIwWq/svv6XVCFQ159Gfjv5Zj95XmzX9YfsZEHk9eTopzlLPUcLMgOWGo +hR5J6IvAm9M82hwnc/AApwD92QjxF9VAJLAVko2Ij0i1u5AhaQCnPQhEBgC3QXCK +sxI4HL43o1Rmvg5fCOFwnUARn8dPbHeH5jyuOt4SQmbp1Hspw8cifFvo/0KpzxHU +K1hto8Vs9ic+Mi7gtO38Xh0qzCSEyMqPFzZgD1eaJoA1NklO9rqEiLjmeh0zfm7a +LYLH69fRiff0J7z95FWs+JK3c75yjP3siwKCAQBOAf1hryhPigHfG1JAgY2IxQp5 +WNVg2ClDamAd6dfVCo4dn+NXf6WNjgGxopcaCEMv7YG+QMusWDNxy1h/Ai5xUovW +505qh8C1RF8/JBl/Ow9AU1Dc6zT6bX49wN7/ZDxwEinYz/2nuMl/15XL0iMcWQqH +jMb2UfWbuyvn9WJi8wlVKwEulQy5DyqJZ4f9u/1fxuiC3X/WsfTJp4PdyYG35gRn +c64EObY0Br/IXsZXqOx0aXwtEkhZq864QlBzwEvuj81oenkOzSt+fvwCNR5HjFxZ +iWFfSRvJbky07BoT7SLrcFDNyXVhhorCHXiwav2wS/OwHo3tBiZ6qy5/xLoJ +-----END RSA PRIVATE KEY----- diff --git a/7.0/test/php_modules b/7/tests/php_modules/7.2 similarity index 86% rename from 7.0/test/php_modules rename to 7/tests/php_modules/7.2 index 31d576e9..e4ece08e 100644 --- a/7.0/test/php_modules +++ b/7/tests/php_modules/7.2 @@ -11,14 +11,18 @@ ctype curl date dom +ds +event exif fileinfo filter ftp gd -geoip +gmp +grpc hash iconv +igbinary imagick imap intl @@ -31,6 +35,7 @@ memcached mongodb mysqli mysqlnd +newrelic OAuth openssl pcntl @@ -42,6 +47,7 @@ pdo_sqlite pgsql Phar posix +rdkafka readline redis Reflection @@ -49,11 +55,15 @@ session SimpleXML soap sockets +sodium SPL sqlite3 standard +tideways_xhprof +tidy tokenizer uploadprogress +uuid xdebug xml xmlreader diff --git a/7.1/test/php_modules b/7/tests/php_modules/7.3 similarity index 86% rename from 7.1/test/php_modules rename to 7/tests/php_modules/7.3 index 31d576e9..e4ece08e 100644 --- a/7.1/test/php_modules +++ b/7/tests/php_modules/7.3 @@ -11,14 +11,18 @@ ctype curl date dom +ds +event exif fileinfo filter ftp gd -geoip +gmp +grpc hash iconv +igbinary imagick imap intl @@ -31,6 +35,7 @@ memcached mongodb mysqli mysqlnd +newrelic OAuth openssl pcntl @@ -42,6 +47,7 @@ pdo_sqlite pgsql Phar posix +rdkafka readline redis Reflection @@ -49,11 +55,15 @@ session SimpleXML soap sockets +sodium SPL sqlite3 standard +tideways_xhprof +tidy tokenizer uploadprogress +uuid xdebug xml xmlreader diff --git a/5.6/test/php_modules b/7/tests/php_modules/7.4 similarity index 86% rename from 5.6/test/php_modules rename to 7/tests/php_modules/7.4 index 4845d331..e4ece08e 100644 --- a/5.6/test/php_modules +++ b/7/tests/php_modules/7.4 @@ -1,7 +1,7 @@ [PHP Modules] amqp -apc apcu +ast bcmath blackfire bz2 @@ -11,15 +11,18 @@ ctype curl date dom -ereg +ds +event exif fileinfo filter ftp gd -geoip +gmp +grpc hash iconv +igbinary imagick imap intl @@ -30,9 +33,9 @@ mbstring mcrypt memcached mongodb -mysql mysqli mysqlnd +newrelic OAuth openssl pcntl @@ -44,6 +47,7 @@ pdo_sqlite pgsql Phar posix +rdkafka readline redis Reflection @@ -51,11 +55,15 @@ session SimpleXML soap sockets +sodium SPL sqlite3 standard +tideways_xhprof +tidy tokenizer uploadprogress +uuid xdebug xml xmlreader diff --git a/7.0/test.sh b/7/tests/run.sh similarity index 64% rename from 7.0/test.sh rename to 7/tests/run.sh index 8bd14fb9..5654d5c1 100755 --- a/7.0/test.sh +++ b/7/tests/run.sh @@ -6,13 +6,13 @@ if [[ -n "${DEBUG}" ]]; then set -x fi -git_url=git@bitbucket.org:wodby/php-git-test.git +git_url=https://github.com/wodby/php.git wait_for_cron() { executed=0 for i in $(seq 1 13); do - if docker_exec crond cat /home/www-data/cron | grep -q "test"; then + if docker_exec crond cat /mnt/files/cron | grep -q "test"; then executed=1 break fi @@ -29,29 +29,29 @@ wait_for_cron() { } docker_exec() { - docker-compose -f test/docker-compose.yml exec "${@}" + docker-compose exec "${@}" } run_action() { docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk } -docker-compose -f test/docker-compose.yml up -d -run_action nginx check-ready max_try=10 +docker-compose up -d + run_action php check-ready max_try=10 +run_action php migrate from=4.4.0 to=5.0.0 # PHP tools docker_exec php tests.sh # SSH echo -n "Testing ssh... " -docker_exec php touch /home/www-data/.ssh/known_hosts -docker_exec php ssh www-data@sshd cat /home/www-data/.ssh/authorized_keys | grep -q admin@wodby.com +docker_exec php touch /home/wodby/.ssh/known_hosts +docker_exec php ssh wodby@sshd cat /home/wodby/.ssh/authorized_keys | grep -q admin@example.com echo "OK" # Git actions echo -n "Running git actions... " -docker_exec php bash -c 'echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config' run_action php git-clone url="${git_url}" branch=master run_action php git-checkout target=develop echo "OK" @@ -71,4 +71,4 @@ echo "OK" # Crond wait_for_cron -docker-compose -f test/docker-compose.yml down +docker-compose down diff --git a/7.1/test/tests.sh b/7/tests/tests.sh similarity index 79% rename from 7.1/test/tests.sh rename to 7/tests/tests.sh index 282e8d21..b103ebeb 100755 --- a/7.1/test/tests.sh +++ b/7/tests/tests.sh @@ -10,10 +10,11 @@ php -m > ~/php_modules.tmp echo -n "Checking PHP modules... " # Modify copy, keep the mounted version untouched. -cp ~/php_modules ~/expected_modules +cp ~/php_modules/"${PHP_VERSION:0:3}" ~/expected_modules -if [[ "${PHP_DEBUG}" == 1 ]]; then +if [[ -n "${PHP_DEBUG}" ]]; then sed -i '/blackfire/d' ~/expected_modules + sed -i '/newrelic/d' ~/expected_modules fi if ! cmp -s ~/php_modules.tmp ~/expected_modules; then @@ -31,7 +32,3 @@ echo "OK" echo -n "Checking walter... " walter -v | grep -q 'Walter version' echo "OK" - -echo -n "Checking PHPUnit... " -phpunit -version | grep -q 'PHPUnit' -echo "OK" diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..c3cec398 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,8 @@ +The MIT License (MIT) +Copyright (c) 2016 Wodby, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index f0dfd143..f283ea0f 100644 --- a/README.md +++ b/README.md @@ -4,308 +4,353 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/wodby/php.svg)](https://hub.docker.com/r/wodby/php) [![Docker Stars](https://img.shields.io/docker/stars/wodby/php.svg)](https://hub.docker.com/r/wodby/php) [![Docker Layers](https://images.microbadger.com/badges/image/wodby/php.svg)](https://microbadger.com/images/wodby/php) -[![Wodby Slack](http://slack.wodby.com/badge.svg)](http://slack.wodby.com) ## Table of Contents * [Docker Images](#docker-images) + * [`-dev`](#-dev) + * [`-dev-macos`](#-dev-macos) + * [`-debug`](#-debug) * [Environment Variables](#environment-variables) * [PHP and PHP-FPM configuration](#php-and-php-fpm-configuration) * [Additional configuration](#additional-configuration) - * [Deprecated environment variables](#deprecated-environment-variables) +* [Build arguments](#build-arguments) * [PHP Extensions](#php-extensions) * [Tools](#tools) -* [Global Composer Packages](#global-composer-packages) +* [Libraries](#libraries) +* [Changelog](#changelog) +* [Users and permissions](#users-and-permissions) +* [Crond](#crond) +* [SSHD](#sshd) +* [Adding SSH key](#adding-ssh-key) +* [Complete PHP-based stack](#complete-php-based-stacks) +* [Images based on `wodby/php`](#images-based-on-wodbyphp) * [Orchestration Actions](#orchestration-actions) ## Docker Images +❗For better reliability we release images with stability tags (`wodby/php:7.4-X.X.X`) which correspond to [git tags](https://github.com/wodby/php/releases). We strongly recommend using images only with stability tags. + +About images: + * All images are based on Alpine Linux -* Base image: [wodby/alpine](https://github.com/wodby/alpine) for 5.3, [wodby/base-php](https://github.com/wodby/base-php) for the rest +* Base image: [wodby/base-php](https://github.com/wodby/base-php) * [Travis CI builds](https://travis-ci.org/wodby/php) * [Docker Hub](https://hub.docker.com/r/wodby/php) -For better reliability we release images with stability tags (`wodby/php:7.1-X.X.X`) which correspond to git tags. We **strongly recommend** using images only with stability tags. Below listed basic tags: +Supported tags and respective `Dockerfile` links: + +* `7.4`, `7`, `latest` [_(7/Dockerfile)_] +* `7.3` [_(7/Dockerfile)_] +* `7.2` [_(7/Dockerfile)_] +* `7.4-dev`, `7-dev`, `dev` [_(7/Dockerfile)_] +* `7.3-dev` [_(7/Dockerfile)_] +* `7.2-dev` [_(7/Dockerfile)_] +* `7.4-dev-macos`, `7-dev-macos`, `dev-macos` [_(7/Dockerfile)_] +* `7.3-dev-macos` [_(7/Dockerfile)_] +* `7.2-dev-macos` [_(7/Dockerfile)_] + +### `-dev` + +Images with `-dev` tag have a few differences: + +* `sudo` allowed for all commands for `wodby` user +* PHP source code available under `/usr/src/php.tar.xz` +* `PHP_FPM_CLEAR_ENV` is set to `no` by default +* Additional packages installed: yarn + +### `-dev-macos` + +Same as `-dev` but the default user/group `wodby` has uid/gid `501`/`20` to match the macOS default user/group ids. + +### `-debug` -| Image tag (Dockerfile) | PHP | Alpine | -| ----------------------------------------------------------------------- | ------ | ------ | -| [7.1 (latest)](https://github.com/wodby/php/tree/master/7.1/Dockerfile) | 7.1.11 | 3.6 | -| [7.0](https://github.com/wodby/php/tree/master/7.0/Dockerfile) | 7.0.25 | 3.6 | -| [5.6](https://github.com/wodby/php/tree/master/5.6/Dockerfile) | 5.6.32 | 3.6 | -| [5.3](https://github.com/wodby/php/tree/master/5.3/Dockerfile) | 5.3.29 | 3.4 | -| [7.1-debug](https://github.com/wodby/php/tree/master/7.1/Dockerfile) | 7.1.11 | 3.6 | -| [7.0-debug](https://github.com/wodby/php/tree/master/7.0/Dockerfile) | 7.0.25 | 3.6 | -| [5.6-debug](https://github.com/wodby/php/tree/master/5.6/Dockerfile) | 5.6.32 | 3.6 | +Include all changes from `-dev` images and additionally: -> Images with -debug tag run php compiled with --enable-debug flag +* PHP compiled with `--enabled-debug` flag +* PHP binaries are not stripped from debug symbols +* Some extensions do not work with `--enabled-debug` such as newrelic and blackfire +* `PHP_FPM_LOG_LEVEL` is set to `debug` by default -> The 5.3 version is no longer supported by PHP team, we highly encourage switching to 5.6 +> We currently do not build -debug images to save build time ## Environment Variables #### PHP and PHP-FPM configuration -[xdebug71]: https://github.com/wodby/php/tree/master/7.1/templates/docker-php-ext-xdebug.ini.tpl -[xdebug70]: https://github.com/wodby/php/tree/master/7.0/templates/docker-php-ext-xdebug.ini.tpl -[xdebug56]: https://github.com/wodby/php/tree/master/5.6/templates/docker-php-ext-xdebug.ini.tpl -[xdebug53]: https://github.com/wodby/php/tree/master/5.3/templates/docker-php-ext-xdebug.ini.tpl -[opcache71]: https://github.com/wodby/php/tree/master/7.1/templates/docker-php-ext-opcache.ini.tpl -[opcache70]: https://github.com/wodby/php/tree/master/7.0/templates/docker-php-ext-opcache.ini.tpl -[opcache56]: https://github.com/wodby/php/tree/master/5.6/templates/docker-php-ext-opcache.ini.tpl -[opcache53]: https://github.com/wodby/php/tree/master/5.3/templates/docker-php-ext-opcache.ini.tpl -[apcu71]: https://github.com/wodby/php/tree/master/7.1/templates/docker-php-ext-apcu.ini.tpl -[apcu70]: https://github.com/wodby/php/tree/master/7.0/templates/docker-php-ext-apcu.ini.tpl - -[PHP_ALWAYS_POPULATE_RAW_POST_DATA]: http://php.net/always-populate-raw-post-data -[PHP_APCU_ENABLED]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.enabled -[PHP_ASSERT_ACTIVE]: http://php.net/assert.active -[PHP_DATE_TIMEZONE]: http://php.net/date.timezone -[PHP_DISPLAY_ERRORS]: http://php.net/display-errors -[PHP_DISPLAY_STARTUP_ERRORS]: http://php.net/display-startup-errors -[PHP_ERROR_REPORTING]: http://php.net/error-reporting -[PHP_EXPOSE]: http://php.net/expose-php -[PHP_GEOIP_CUSTOM_DIR]: http://php.net/manual/en/geoip.configuration.php#ini.geoip.custom-directory -[PHP_LOG_ERRORS_MAX_LEN]: http://php.net/log-errors-max-len -[PHP_MAX_EXECUTION_TIME]: http://php.net/max-execution-time -[PHP_MAX_FILE_UPLOADS]: http://php.net/manual/en/ini.core.php#ini.max-file-uploads -[PHP_MAX_INPUT_TIME]: http://php.net/max-input-time -[PHP_MAX_INPUT_VARS]: http://php.net/max-input-vars -[PHP_MBSTRING_HTTP_INPUT]: http://php.net/mbstring.http-input -[PHP_MBSTRING_HTTP_OUTPUT]: http://php.net/mbstring.http-output -[PHP_MBSTRING_ENCODING_TRANSLATION]: http://php.net/mbstring.encoding-translation -[PHP_MEMORY_LIMIT]: http://php.net/memory-limit -[PHP_MYSQLI_CACHE_SIZE]: http://php.net/mysqli.cache_size -[PHP_OPCACHE_ENABLE]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.enable -[PHP_OUTPUT_BUFFERING]: http://php.net/output-buffering -[PHP_PDO_MYSQL_CACHE_SIZE]: http://php.net/pdo_mysql.cache_size -[PHP_ZEND_ASSERTIONS]: http://php.net/zend.assertions -[PHP_XDEBUG_DEFAULT_ENABLE]: https://xdebug.org/docs/all_settings -[PHP_UPLOAD_MAX_FILESIZE]: http://php.net/upload-max-filesize -[PHP_TRACK_ERRORS]: http://php.net/track-errors -[PHP_SESSION_AUTO_START]: http://php.net/session.auto-start -[PHP_SESSION_BUG_COMPAT_42]: http://php.net/session.bug-compat-42 -[PHP_SESSION_BUG_COMPAT_WARN]: http://php.net/session.bug-compat-warn -[PHP_SENDMAIL_PATH]: http://php.net/sendmail-path -[PHP_REALPATH_CACHE_SIZE]: http://php.net/realpath-cache-size -[PHP_REALPATH_CACHE_TTL]: http://php.net/realpath-cache-ttl -[PHP_POST_MAX_SIZE]: http://php.net/post-max-size -[PHP_FPM_CLEAR_ENV]: http://php.net/manual/en/install.fpm.configuration.php#clear-env -[PHP_FPM_LOG_LEVEL]: http://php.net/manual/en/install.fpm.configuration.php#log-level -[PHP_FPM_MAX_CHILDREN]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-chidlren -[PHP_FPM_MAX_REQUESTS]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-requests -[PHP_FPM_MAX_SPARE_SERVERS]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-spare-servers -[PHP_FPM_MIN_SPARE_SERVERS]: http://php.net/manual/en/install.fpm.configuration.php#pm.min-spare-servers -[PHP_FPM_REQUEST_SLOWLOG_TIMEOUT]: http://php.net/manual/en/install.fpm.configuration.php#request-slowlog-timeout -[PHP_FPM_START_SERVERS]: http://php.net/manual/en/install.fpm.configuration.php#pm.start-servers -[PHP_FPM_STATUS_PATH]: http://php.net/manual/en/install.fpm.configuration.php#pm.status-path -[PHP_FPM_USER]: http://php.net/manual/en/install.fpm.configuration.php#user -[PHP_FPM_GROUP]: http://php.net/manual/en/install.fpm.configuration.php#group - The default configuration is not recommended to be used for production environment: -| Variable | 7.1 | 7.0 | 5.6 | 5.3 | -| ------------------------------------- | ----------- | ----------- | ----------- | ----------- | -| [PHP_ALWAYS_POPULATE_RAW_POST_DATA] | - | - | 0 | 0 | -| [PHP_APCU_ENABLED] | 1 | 1 | - | - | -| _SEE ALL APCU EXT OPTIONS_ | [apcu71] | [apcu70] | - | - | -| [PHP_ASSERT_ACTIVE] | On | On | On | On | -| PHP_BLACKFIRE | | | | - | -| PHP_BLACKFIRE_AGENT_HOST | blackfire | blackfire | blackfire | - | -| PHP_BLACKFIRE_AGENT_PORT | 8707 | 8707 | 8707 | - | -| PHP_CLI_MEMORY_LIMIT | -1 | -1 | -1 | -1 | -| [PHP_DATE_TIMEZONE] | UTC | UTC | UTC | UTC | -| [PHP_DISPLAY_ERRORS] | On | On | On | On | -| [PHP_DISPLAY_STARTUP_ERRORS] | On | On | On | On | -| [PHP_ERROR_REPORTING] | E_ALL | E_ALL | E_ALL | E_ALL | -| [PHP_EXPOSE] | Off | Off | Off | Off | -| [PHP_FPM_CLEAR_ENV] | yes | yes | yes | - | -| PHP_FPM_ENV_VARS | | | | | -| [PHP_FPM_LOG_LEVEL] | notice | notice | notice | notice | -| [PHP_FPM_PM] | dynamic | dynamic | dynamic | dynamic | -| [PHP_FPM_PM_MAX_CHILDREN] | 8 | 8 | 8 | 8 | -| [PHP_FPM_PM_MAX_REQUESTS] | 500 | 500 | 500 | 500 | -| [PHP_FPM_PM_MAX_SPARE_SERVERS] | 3 | 3 | 3 | 3 | -| [PHP_FPM_PM_MIN_SPARE_SERVERS] | 1 | 1 | 1 | 1 | -| [PHP_FPM_PM_STATUS_PATH] | | | | | -| [PHP_FPM_REQUEST_SLOWLOG_TIMEOUT] | | | | | -| [PHP_FPM_START_SERVERS] | 2 | 2 | 2 | 2 | -| [PHP_FPM_USER] | | | | | -| [PHP_FPM_GROUP] | | | | | -| [PHP_GEOIP_CUSTOM_DIR] | | | | - | -| [PHP_LOG_ERRORS_MAX_LEN] | 1024 | 1024 | 1024 | 1024 | -| [PHP_MAX_EXECUTION_TIME] | 120 | 120 | 120 | 120 | -| [PHP_MAX_FILE_UPLOADS] | 20 | 20 | 20 | 20 | -| [PHP_MAX_INPUT_TIME] | 60 | 60 | 60 | 60 | -| [PHP_MAX_INPUT_VARS] | 2000 | 2000 | 2000 | 2000 | -| [PHP_MBSTRING_HTTP_INPUT] | - | - | | | -| [PHP_MBSTRING_HTTP_OUTPUT] | - | - | | | -| [PHP_MBSTRING_ENCODING_TRANSLATION] | - | - | Off | Off | -| [PHP_MEMORY_LIMIT] | 512M | 512M | 512M | 512M | -| PHP_MYSQL_CACHE_SIZE | - | - | 2000 | 2000 | -| [PHP_MYSQLI_CACHE_SIZE] | 2000 | 2000 | 2000 | 2000 | -| [PHP_OPCACHE_ENABLE] | 1 | 1 | 1 | 1 | -| _SEE ALL OPCACHE EXT OPTIONS_ | [opcache71] | [opcache70] | [opcache56] | [opcache53] | -| [PHP_OUTPUT_BUFFERING] | 4096 | 4096 | 4096 | 4096 | -| [PHP_PDO_MYSQL_CACHE_SIZE] | 2000 | 2000 | 2000 | 2000 | -| [PHP_POST_MAX_SIZE] | 32M | 32M | 32M | 32M | -| [PHP_REALPATH_CACHE_SIZE] | 4096k | 4096k | 16k | 16k | -| [PHP_REALPATH_CACHE_TTL] | 120 | 120 | 120 | 120 | -| [PHP_SENDMAIL_PATH] | /bin/true | /bin/true | /bin/true | /bin/true | -| [PHP_SESSION_AUTO_START] | 0 | 0 | 0 | 0 | -| [PHP_SESSION_BUG_COMPAT_42] | - | - | - | On | -| [PHP_SESSION_BUG_COMPAT_WARN] | - | - | - | On | -| [PHP_TRACK_ERRORS] | - | - | - | On | -| [PHP_UPLOAD_MAX_FILESIZE] | 32M | 32M | 32M | 32M | -| PHP_XDEBUG | | | | | -| [PHP_XDEBUG_DEFAULT_ENABLE] | 0 | 0 | 0 | 0 | -| _SEE ALL XDEBUG EXT OPTIONS_ | [xdebug71] | [xdebug70] | [xdebug56] | [xdebug53] | -| [PHP_ZEND_ASSERTIONS] | 1 | 1 | 1 | - | +| Variable | 7.4 | 7.3 | 7.2 | +| ------------------------------------- | ------------- | ------------- | ------------- | +| [`PHP_ALLOW_URL_FOPEN`] | `On` | `On` | `On` | +| [`PHP_ALWAYS_POPULATE_RAW_POST_DATA`] | - | - | - | +| [`PHP_APCU_ENABLE_CLI`] | `0` | `0` | `0` | +| [`PHP_APCU_ENABLED`] | `1` | `1` | `1` | +| [`PHP_APCU_ENTRIES_HINT`] | `4096` | `4096` | `4096` | +| [`PHP_APCU_COREDUMP_UNMAP`] | `0` | `0` | `0` | +| [`PHP_APCU_GC_TTL`] | `3600` | `3600` | `3600` | +| [`PHP_APCU_PRELOAD_PATH`] | `NULL` | `NULL` | `NULL` | +| [`PHP_APCU_SERIALIZER`] | | | | +| [`PHP_APCU_SHM_SEGMENTS`] | `1` | `1` | `1` | +| [`PHP_APCU_SHM_SIZE`] | `32M` | `32M` | `32M` | +| [`PHP_APCU_SLAM_DEFENSE`] | `1` | `1` | `1` | +| [`PHP_APCU_TTL`] | `0` | `0` | `0` | +| [`PHP_APCU_USE_REQUEST_TIME`] | `1` | `1` | `1` | +| [`PHP_ASSERT_ACTIVE`] | `On` | `On` | `On` | +| [`PHP_AUTO_PREPEND_FILE`] | | | | +| [`PHP_AUTO_APPEND_FILE`] | | | | +| `PHP_BLACKFIRE` | | | | +| `PHP_BLACKFIRE_AGENT_HOST` | `blackfire` | `blackfire` | `blackfire` | +| `PHP_BLACKFIRE_AGENT_PORT` | `8707` | `8707` | `8707` | +| `PHP_CLI_MEMORY_LIMIT` | `-1` | `-1` | `-1` | +| [`PHP_DATE_TIMEZONE`] | `UTC` | `UTC` | `UTC` | +| [`PHP_DEFAULT_SOCKET_TIMEOUT`] | `60` | `60` | `60` | +| [`PHP_DISPLAY_ERRORS`] | `On` | `On` | `On` | +| [`PHP_DISPLAY_STARTUP_ERRORS`] | `On` | `On` | `On` | +| [`PHP_ERROR_REPORTING`] | `E_ALL` | `E_ALL` | `E_ALL` | +| [`PHP_EXPOSE`] | `Off` | `Off` | `Off` | +| `PHP_EXTENSIONS_DISABLE` | | | | +| [`PHP_FPM_CLEAR_ENV`]* | `yes` | `yes` | `yes` | +| `PHP_FPM_ENV_VARS` | | | | +| [`PHP_FPM_LOG_LEVEL`]* | `notice` | `notice` | `notice` | +| [`PHP_FPM_PM`] | `dynamic` | `dynamic` | `dynamic` | +| [`PHP_FPM_PM_MAX_CHILDREN`] | `8` | `8` | `8` | +| [`PHP_FPM_PM_MAX_REQUESTS`] | `500` | `500` | `500` | +| [`PHP_FPM_PM_MAX_SPARE_SERVERS`] | `3` | `3` | `3` | +| [`PHP_FPM_PM_MIN_SPARE_SERVERS`] | `1` | `1` | `1` | +| [`PHP_FPM_PM_STATUS_PATH`] | | | | +| [`PHP_FPM_REQUEST_SLOWLOG_TIMEOUT`] | | | | +| [`PHP_FPM_PM_START_SERVERS`] | `2` | `2` | `2` | +| [`PHP_FPM_USER`] | `www-data` | `www-data` | `www-data` | +| [`PHP_FPM_GROUP`] | `www-data` | `www-data` | `www-data` | +| `PHP_IGBINARY_COMPACT_STRINGS` | `On` | `On` | `On` | +| [`PHP_LOG_ERRORS`] | `On` | `On` | `On` | +| [`PHP_LOG_ERRORS_MAX_LEN`] | `0` | `0` | `0` | +| [`PHP_MAX_EXECUTION_TIME`] | `120` | `120` | `120` | +| [`PHP_MAX_FILE_UPLOADS`] | `20` | `20` | `20` | +| [`PHP_MAX_INPUT_TIME`] | `60` | `60` | `60` | +| [`PHP_MAX_INPUT_VARS`] | `2000` | `2000` | `2000` | +| [`PHP_MBSTRING_HTTP_INPUT`] | - | - | - | +| [`PHP_MBSTRING_HTTP_OUTPUT`] | - | - | - | +| [`PHP_MBSTRING_ENCODING_TRANSLATION`] | - | - | - | +| [`PHP_MEMORY_LIMIT`] | `512M` | `512M` | `512M` | +| `PHP_MYSQL_CACHE_SIZE` | - | - | - | +| [`PHP_MYSQLI_CACHE_SIZE`] | `2000` | `2000` | `2000` | +| [`PHP_NEWRELIC_ENABLED`] | `false` | `false` | `false` | +| [`PHP_NEWRELIC_LICENSE`] | | | | +| _see all newrelic ext options_ | [7.x newrelic] | [7.x newrelic] | [7.x newrelic] | +| [`PHP_OPCACHE_ENABLE`] | `1` | `1` | `1` | +| [`PHP_OPCACHE_ENABLE_CLI`] | `0` | `0` | `0` | +| [`PHP_OPCACHE_VALIDATE_TIMESTAMPS`] | `1` | `1` | `1` | +| [`PHP_OPCACHE_REVALIDATE_FREQ`] | `2` | `2` | `2` | +| [`PHP_OPCACHE_MAX_ACCELERATED_FILES`] | `4000` | `4000` | `4000` | +| [`PHP_OPCACHE_MEMORY_CONSUMPTION`] | `128` | `128` | `128` | +| [`PHP_OPCACHE_INTERNED_STRINGS_BUFFER`] | `8` | `8` | `8` | +| [`PHP_OPCACHE_FAST_SHUTDOWN`] | - | - | - | +| [`PHP_OPCACHE_HUGE_CODE_PAGES`] | `0` | `0` | `0` | +| [`PHP_OUTPUT_BUFFERING`] | `4096` | `4096` | `4096` | +| [`PHP_PDO_MYSQL_CACHE_SIZE`] | - | - | `2000` | +| [`PHP_PHAR_READONLY`] | `1` | `1` | `1` | +| [`PHP_PHAR_REQUIRE_HASH`] | `1` | `1` | `1` | +| [`PHP_PHAR_CACHE_LIST`] | | | | +| [`PHP_POST_MAX_SIZE`] | `32M` | `32M` | `32M` | +| [`PHP_REALPATH_CACHE_SIZE`] | `4096k` | `4096k` | `4096k` | +| [`PHP_REALPATH_CACHE_TTL`] | `120` | `120` | `120` | +| [`PHP_SENDMAIL_PATH`] | `/bin/true` | `/bin/true` | `/bin/true` | +| [`PHP_SESSION_SAVE_HANDLER`] | `files` | `files` | `files` | +| _see all session options_ | [7.4 session] | [7.3 session] | [7.2 session] | +| `PHP_XHPROF` | | | | +| [`PHP_TRACK_ERRORS`] | - | - | - | +| [`PHP_UPLOAD_MAX_FILESIZE`] | `32M` | `32M` | `32M` | +| `PHP_XDEBUG` | | | | +| [`PHP_XDEBUG_DEFAULT_ENABLE`] | `0` | `0` | `0` | +| _see all xdebug ext options_ | [7.x xdebug] | [7.x xdebug] | [7.x xdebug] | +| [`PHP_ZEND_ASSERTIONS`] | `1` | `1` | `1` | > "-" - Not available for this version +> Default value of environment variables marked with `*` is different for [`-dev`](#-dev) and [`-debug`](#-debug) images + #### Additional configuration -| Variable | Default value | -| ------------------------------- | -------------------- | -| GIT_USER_EMAIL | www-data@example.com | -| GIT_USER_NAME | www-data | -| SSH_PRIVATE_KEY | | -| SSH_DISABLE_STRICT_KEY_CHECKING | | -| SSHD_GATEWAY_PORTS | no | -| SSHD_HOST_KEYS_DIR | /etc/ssh | -| SSHD_LOG_LEVEL | INFO | -| SSHD_PASSWORD_AUTHENTICATION | no | -| SSHD_PERMIT_USER_ENV | no | -| SSHD_USE_DNS | yes | - -#### Deprecated environment variables - -Deprecated variables still supported but will be removed in future releases - -| Deprecated | Instead use | -| ------------------------------- | ------------------------------- | -| PHP_APCU_ENABLE | PHP_APCU_ENABLED | -| PHP_FPM_SLOWLOG_TIMEOUT | PHP_FPM_REQUEST_SLOWLOG_TIMEOUT | -| PHP_FPM_MAX_CHILDREN | PHP_FPM_PM_MAX_CHILDREN | -| PHP_FPM_START_SERVERS | PHP_FPM_PM_START_SERVERS | -| PHP_FPM_MIN_SPARE_SERVERS | PHP_FPM_PM_MIN_SPARE_SERVERS | -| PHP_FPM_MAX_SPARE_SERVERS | PHP_FPM_PM_MAX_SPARE_SERVERS | -| PHP_FPM_MAX_REQUESTS | PHP_FPM_PM_MAX_REQUESTS | -| PHP_FPM_STATUS_PATH | PHP_FPM_PM_STATUS_PATH | +| Variable | Default value | +| --------------------------------- | ------------------- | +| `GIT_USER_EMAIL` | `wodby@example.com` | +| `GIT_USER_NAME` | `wodby` | +| `SSH_PRIVATE_KEY` | | +| `SSH_DISABLE_STRICT_KEY_CHECKING` | | +| `SSHD_GATEWAY_PORTS` | `no` | +| `SSHD_HOST_KEYS_DIR` | `/etc/ssh` | +| `SSHD_LOG_LEVEL` | `INFO` | +| `SSHD_PASSWORD_AUTHENTICATION` | `no` | +| `SSHD_PERMIT_USER_ENV` | `yes` | +| `SSHD_USE_DNS` | `yes` | + +## Build arguments + +| Argument | Default value | +| ---------------- | ------------- | +| `PHP_VER` | | +| `PHP_DEV` | | +| `PHP_DEBUG` | | +| `WODBY_GROUP_ID` | `1000` | +| `WODBY_USER_ID` | `1000` | + +Change `WODBY_USER_ID` and `WODBY_GROUP_ID` mainly for local dev version of images, if it matches with existing system user/group ids the latter will be deleted. ## PHP Extensions -[amqp]: http://pecl.php.net/package/amqp -[apcu]: http://pecl.php.net/package/apcu -[ast]: https://github.com/nikic/php-ast -[geoip]: https://pecl.php.net/package/geoip -[imagick]: https://pecl.php.net/package/imagick -[memcached]: http://pecl.php.net/package/memcached -[mongo]: http://pecl.php.net/package/mongo -[mongodb]: http://pecl.php.net/package/mongodb -[OAuth]: http://pecl.php.net/package/oauth -[redis]: http://pecl.php.net/package/redis -[uploadprogress]: https://pecl.php.net/package/uploadprogress -[uploadprogress]: https://pecl.php.net/package/uploadprogress -[xdebug]: https://pecl.php.net/package/xdebug -[yaml]: https://pecl.php.net/package/yaml -[latest]: https://github.com/wodby/pecl-php-uploadprogress/releases/tag/latest -[7.0.5]: https://pecl.php.net/package/ZendOpcache -[blackfire]: https://blackfire.io/dashboard/mine/profiles - -| Extension | 7.1 | 7.0 | 5.6 | 5.3 | -| ---------------- | -------- | -------- | -------- | -------- | -| [amqp] | 1.9.1 | 1.9.1 | 1.9.1 | 1.9.1 | -| apc | - | - | - | | -| [apcu] | 5.1.8 | 5.1.8 | 4.0.11 | 4.0.11 | -| [ast] | 0.1.6 | 0.1.6 | - | - | -| [blackfire] | latest | latest | latest | - | -| bcmath | | | | | -| bz2 | | | | | -| calendar | | | | | -| Core | | | | | -| ctype | | | | | -| curl | | | | | -| date | | | | | -| dom | | | | | -| exif | | | | | -| ereg | - | - | | | -| fileinfo | | | | | -| filter | | | | | -| ftp | | | | | -| gd | | | | | -| [geoip] | 1.1.1 | 1.1.1 | 1.1.1 | - | -| hash | | | | | -| iconv | | | | | -| [imagick] | 3.4.3 | 3.4.3 | 3.4.3 | - | -| imap | | | | | -| intl | | | | | -| json | | | | | -| ldap | | | | | -| libxml | | | | | -| mbstring | | | | | -| mcrypt | | | | | -| [memcached] | 3.0.3 | 3.0.3 | 2.2.0 | 2.2.0 | -| [mongo] | - | - | - | 1.6.16 | -| [mongodb] | 1.3.2 | 1.3.2 | 1.3.2 | - | -| mysql | - | - | | | -| mysqli | | | | | -| mysqlnd | | | | | -| [OAuth] | 2.0.2 | 2.0.2 | 1.2.3 | 1.2.3 | -| openssl | | | | | -| pcntl | | | | | -| pcre | | | | | -| PDO | | | | | -| pdo_mysql | | | | | -| pdo_pgsql | | | | | -| pdo_sqlite | | | | | -| pgsql | | | | | -| Phar | | | | | -| posix | | | | | -| readline | | | | | -| [redis] | 3.1.4 | 3.1.4 | 3.1.4 | - | -| Reflection | | | | | -| session | | | | | -| SimpleXML | | | | | -| soap | | | | | -| sockets | | | | | -| SPL | | | | | -| SQLite | - | - | - | | -| sqlite3 | | | | | -| standard | | | | | -| tokenizer | | | | | -| [uploadprogress] | [latest] | [latest] | 1.0.3.1 | 1.0.3.1 | -| [xdebug] | 2.5.5 | 2.5.5 | 2.5.5 | 2.2.7 | -| xml | | | | | -| xmlreader | | | | | -| xmlrpc | | | | | -| xmlwriter | | | | | -| xsl | | | | | -| [yaml] | 2.0.2 | 2.0.2 | 1.3.1 | 1.3.1 | -| Zend OPcache | | | | [7.0.5] | -| zip | | | | | -| zlib | | | | | +You can disable extension by listing them in `$PHP_EXTENSIONS_DISABLE` separated by `,`, e.g. `$PHP_EXTENSIONS_DISABLE=event,ds` + +| Extension | 7.4 | 7.3 | 7.2 | +| ---------------- | -------- | -------- | -------- | +| [amqp] | 1.9.4 | 1.9.4 | 1.9.4 | +| apc | - | - | - | +| [apcu] | 5.1.18 | 5.1.18 | 5.1.18 | +| [ast] | 1.0.5 | 1.0.5 | 1.0.5 | +| [blackfire] | latest | latest | latest | +| bcmath | | | | +| bz2 | | | | +| calendar | | | | +| Core | | | | +| ctype | | | | +| curl | | | | +| date | | | | +| dom | | | | +| [ds] | 1.2.9 | 1.2.9 | 1.2.9 | +| exif | | | | +| ereg | - | - | - | +| [event] | 2.5.3 | 2.5.3 | 2.5.3 | +| fileinfo | | | | +| filter | | | | +| ftp | | | | +| gd | | | | +| [grpc] | 1.23.1 | 1.23.1 | 1.23.1 | +| hash | | | | +| iconv | | | | +| [igbinary] | 3.0.1 | 3.0.1 | 3.0.1 | +| [imagick] | 3.4.4 | 3.4.4 | 3.4.4 | +| imap | | | | +| intl | | | | +| json | | | | +| ldap | | | | +| libxml | | | | +| mbstring | | | | +| [mcrypt] | 1.0.3 | 1.0.3 | 1.0.3 | +| [memcached] | 3.1.4 | 3.1.4 | 3.1.4 | +| [mongodb] | 1.6.0 | 1.6.0 | 1.6.0 | +| mysql | - | - | - | +| mysqli | | | | +| mysqlnd | | | | +| [newrelic] | latest | latest | latest | +| [OAuth] | 2.0.4 | 2.0.4 | 2.0.4 | +| openssl | | | | +| pcntl | | | | +| pcre | | | | +| PDO | | | | +| pdo_mysql | | | | +| pdo_pgsql | | | | +| pdo_sqlite | | | | +| pgsql | | | | +| Phar | | | | +| posix | | | | +| [rdkafka] | 4.0.3 | 4.0.3 | 4.0.3 | +| readline | | | | +| [redis] | 4.3.0 | 4.3.0 | 4.3.0 | +| Reflection | | | | +| session | | | | +| SimpleXML | | | | +| soap | | | | +| sockets | | | | +| sodium | | | | +| SPL | | | | +| sqlite3 | | | | +| standard | | | | +| [tideways_xhprof] | v5.0-beta3 | v5.0-beta3 | v5.0-beta3 | +| tidy | | | | +| tokenizer | | | | +| [uploadprogress] | [latest] | [latest] | [latest] | +| [uuid] | 1.0.4 | 1.0.4 | 1.0.4 | +| [xdebug] | 2.9.4 | 2.9.4 | 2.9.4 | +| xml | | | | +| xmlreader | | | | +| xmlrpc | | | | +| xmlwriter | | | | +| xsl | | | | +| [yaml] | 2.0.4 | 2.0.4 | 2.0.4 | +| Zend OPcache | | | | +| zip | | | | +| zlib | | | | Legend: > - [EMPTY] – Core PHP extension > - "-" - Not exists in this version +> Some extensions may not be available in [`-dev`](#-dev) and [`-debug`](#-debug) images -Extensions xdebug and blackfire disabled by default. +Extensions xdebug, blackfire and xhprof disabled by default. ## Tools -| Tool | 7.1 | 7.0 | 5.6 | 5.3 | -| --------------------------------------------- | ------- | ------- | ------- | ------- | -| [Composer](https://getcomposer.org) | latest | latest | latest | latest | -| [PHPUnit](https://phpunit.de) | 6.4 | 6.4 | 5.7 | 4.8 | -| [Walter](https://github.com/walter-cd/walter) | 1.3.0 | 1.3.0 | 1.3.0 | 1.3.0 | +| Tool | 7.4 | 7.3 | 7.2 | +| ---------------------------------------------------------- | ------- | ------- | ------- | +| [Composer](https://getcomposer.org) | latest | latest | latest | +| [Walter](https://github.com/walter-cd/walter) (deprecated) | 1.4.0 | 1.4.0 | 1.4.0 | + +## Libraries + +All essential linux libraries are freezed and updates will be reflected in [changelog](#changelog). -## Global Composer Packages +## Changelog -| Package | Version | -| --------------------------------------------------------------------- | ------- | -| [hirak/prestissimo](https://packagist.org/packages/hirak/prestissimo) | ^0.3 | +Changes per stability tag reflected in git tags description under [releases](https://github.com/wodby/python/releases). + +## Crond + +You can run Crond with this image changing the command to `sudo -E LD_PRELOAD=/usr/lib/preloadable_libiconv.so crond -f -d 0` and mounting a crontab file to `./crontab:/etc/crontabs/www-data`. Example crontab file contents: + +``` +# min hour day month weekday command +*/1 * * * * echo "test" > /mnt/files/cron +``` + +## SSHD + +You can run SSHD with this image by changing the command to `sudo /usr/sbin/sshd -De` and mounting authorized public keys to `/home/wodby/.ssh/authorized_keys` + +## Adding SSH key + +You can add a private SSH key to the container by mounting it to `/home/wodby/.ssh/id_rsa` + +## Users and permissions + +Default container user is `wodby:wodby` (UID/GID `1000`). PHP-FPM runs from `www-data:www-data` user (UID/GID `82`) by default. User `wodby` is a part of `www-data` group. + +Codebase volume `$APP_ROOT` (`/var/www/html`) owned by `wodby:wodby`. Files volume `$FILES_DIR` (`/mnt/files`) owned by `www-data:www-data` with `775` mode. + +See https://github.com/wodby/php/issues/22 for more details. + +#### Helper scripts + +* `files_chmod` – in case you need write access for `wodby` user to a file/dir generated by `www-data` on this volume run `sudo files_chmod [FILEPATH]` script (FILEPATH must be under `/mnt/files`), it will recursively change the mode to `ug=rwX,o=rX` + +* `files_chown` – in case you manually uploaded files under `wodby` user to files volume and want to change the ownership of those files to `www-data` run `sudo files_chown [FILEPATH]` script (FILEPATH must be under `/mnt/files`), it will recursively change ownership to `www-data:www-data` + +## Complete PHP-based stacks + +* [wodby/docker4php](https://github.com/wodby/docker4php) +* [wodby/docker4drupal](https://github.com/wodby/docker4drupal) +* [wodby/docker4wordpress](https://github.com/wodby/docker4wordpress) + +## Images based on `wodby/php` + +* [wodby/drupal-php](https://github.com/wodby/drupal-php) +* [wodby/wordpress-php](https://github.com/wodby/wordpress-php) +* [wodby/adminer](https://github.com/wodby/adminer) +* [wodby/matomo](https://github.com/wodby/matomo) +* [wodby/cachet](https://github.com/wodby/cachet) +* [wodby/webgrind](https://github.com/wodby/webgrind) +* [wodby/xhprof](https://github.com/wodby/xhprof) ## Orchestration Actions @@ -314,9 +359,12 @@ Usage: make COMMAND [params ...] commands: + migrate check-ready [host max_try wait_seconds delay_seconds] git-clone url [branch] git-checkout target [is_hash] + files-import source + files-link public_dir update-keys walter @@ -324,3 +372,120 @@ default params values: is_hash 0 branch "" Branch, tag or hash commit ``` + +[_(7/Dockerfile)_]: https://github.com/wodby/php/tree/master/7/Dockerfile + +[7.x xdebug]: https://github.com/wodby/php/tree/master/7/templates/docker-php-ext-xdebug.ini.tmpl +[7.x newrelic]: https://github.com/wodby/php/tree/master/7/templates/docker-php-ext-newrelic.ini.tmpl +[7.4 session]: https://github.com/wodby/php/tree/master/7/templates/docker-php-7.4.ini.tmpl +[7.3 session]: https://github.com/wodby/php/tree/master/7/templates/docker-php-7.3.ini.tmpl +[7.2 session]: https://github.com/wodby/php/tree/master/7/templates/docker-php-7.2.ini.tmpl + +[`PHP_ALLOW_URL_FOPEN`]: http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen +[`PHP_ALWAYS_POPULATE_RAW_POST_DATA`]: http://php.net/always-populate-raw-post-data +[`PHP_APCU_COREDUMP_UNMAP`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.coredump-unmap +[`PHP_APCU_ENABLE_CLI`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.enable-cli +[`PHP_APCU_ENABLED`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.enabled +[`PHP_APCU_ENTRIES_HINT`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.entries-hint +[`PHP_APCU_GC_TTL`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.gc-ttl +[`PHP_APCU_PRELOAD_PATH`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.preload-path +[`PHP_APCU_SERIALIZER`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.serializer +[`PHP_APCU_SHM_SEGMENTS`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.shm-segments +[`PHP_APCU_SHM_SIZE`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.shm-size +[`PHP_APCU_SLAM_DEFENSE`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.slam-defense +[`PHP_APCU_TTL`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.ttl +[`PHP_APCU_USE_REQUEST_TIME`]: http://php.net/manual/en/apcu.configuration.php#ini.apcu.use-request-time +[`PHP_ASSERT_ACTIVE`]: http://php.net/assert.active +[`PHP_AUTO_APPEND_FILE`]: http://php.net/auto-append-file +[`PHP_AUTO_PREPEND_FILE`]: http://php.net/auto-prepend-file +[`PHP_DATE_TIMEZONE`]: http://php.net/date.timezone +[`PHP_DEFAULT_SOCKET_TIMEOUT`]: http://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout +[`PHP_DISPLAY_ERRORS`]: http://php.net/display-errors +[`PHP_DISPLAY_STARTUP_ERRORS`]: http://php.net/display-startup-errors +[`PHP_ERROR_REPORTING`]: http://php.net/error-reporting +[`PHP_EXPOSE`]: http://php.net/expose-php +[`PHP_FPM_CLEAR_ENV`]: http://php.net/manual/en/install.fpm.configuration.php#clear-env +[`PHP_FPM_GROUP`]: http://php.net/manual/en/install.fpm.configuration.php#group +[`PHP_FPM_LOG_LEVEL`]: http://php.net/manual/en/install.fpm.configuration.php#log-level +[`PHP_FPM_PM_MAX_CHILDREN`]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-chidlren +[`PHP_FPM_PM_MAX_REQUESTS`]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-requests +[`PHP_FPM_PM_MAX_SPARE_SERVERS`]: http://php.net/manual/en/install.fpm.configuration.php#pm.max-spare-servers +[`PHP_FPM_PM_MIN_SPARE_SERVERS`]: http://php.net/manual/en/install.fpm.configuration.php#pm.min-spare-servers +[`PHP_FPM_PM_START_SERVERS`]: http://php.net/manual/en/install.fpm.configuration.php#pm.start-servers +[`PHP_FPM_PM_STATUS_PATH`]: http://php.net/manual/en/install.fpm.configuration.php#pm.status-path +[`PHP_FPM_PM`]: http://php.net/manual/en/install.fpm.configuration.php#pm +[`PHP_FPM_REQUEST_SLOWLOG_TIMEOUT`]: http://php.net/manual/en/install.fpm.configuration.php#request-slowlog-timeout +[`PHP_FPM_USER`]: http://php.net/manual/en/install.fpm.configuration.php#user +[`PHP_LOG_ERRORS_MAX_LEN`]: http://php.net/log-errors-max-len +[`PHP_LOG_ERRORS`]: http://php.net/log-errors +[`PHP_MAX_EXECUTION_TIME`]: http://php.net/max-execution-time +[`PHP_MAX_FILE_UPLOADS`]: http://php.net/manual/en/ini.core.php#ini.max-file-uploads +[`PHP_MAX_INPUT_TIME`]: http://php.net/max-input-time +[`PHP_MAX_INPUT_VARS`]: http://php.net/max-input-vars +[`PHP_MBSTRING_ENCODING_TRANSLATION`]: http://php.net/mbstring.encoding-translation +[`PHP_MBSTRING_HTTP_INPUT`]: http://php.net/mbstring.http-input +[`PHP_MBSTRING_HTTP_OUTPUT`]: http://php.net/mbstring.http-output +[`PHP_MEMORY_LIMIT`]: http://php.net/memory-limit +[`PHP_MYSQLI_CACHE_SIZE`]: http://php.net/mysqli.cache_size +[`PHP_NEWRELIC_APPNAME`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-appname +[`PHP_NEWRELIC_BROWSER_MONITORING_AUTO_INSTRUMENT`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-autorum +[`PHP_NEWRELIC_CAPTURE_PARAMS`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-enabled +[`PHP_NEWRELIC_ENABLED`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-enabled +[`PHP_NEWRELIC_FRAMEWORK`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-framework +[`PHP_NEWRELIC_GUZZLE_ENABLED`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-autorum +[`PHP_NEWRELIC_HIGH_SECURITY`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-high-security +[`PHP_NEWRELIC_IGNORED_PARAMS`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-ignored_params +[`PHP_NEWRELIC_LABELS`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-labels +[`PHP_NEWRELIC_LICENSE`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-license +[`PHP_NEWRELIC_LOGLEVEL`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-loglevel +[`PHP_NEWRELIC_TRANSACTION_TRACER_DETAIL`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-detail +[`PHP_NEWRELIC_DISTRIBUTED_TRACING_ENABLED`]: https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-misctt-settings +[`PHP_OPCACHE_ENABLE_CLI`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.enable-cli +[`PHP_OPCACHE_ENABLE`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.enable +[`PHP_OPCACHE_FAST_SHUTDOWN`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.fast-shutdown +[`PHP_OPCACHE_HUGE_CODE_PAGES`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.huge_code_pages +[`PHP_OPCACHE_INTERNED_STRINGS_BUFFER`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.interned-strings-buffer +[`PHP_OPCACHE_MAX_ACCELERATED_FILES`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.max-accelerated-files +[`PHP_OPCACHE_MEMORY_CONSUMPTION`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.memory-consumption +[`PHP_OPCACHE_REVALIDATE_FREQ`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.revalidate-freq +[`PHP_OPCACHE_VALIDATE_TIMESTAMPS`]: http://php.net/manual/en/opcache.configuration.php#ini.opcache.validate-timestamps +[`PHP_OUTPUT_BUFFERING`]: http://php.net/output-buffering +[`PHP_PDO_MYSQL_CACHE_SIZE`]: http://php.net/pdo_mysql.cache_size +[`PHP_PHAR_CACHE_LIST`]: http://php.net/manual/en/phar.configuration.php#ini.phar.cache-list +[`PHP_PHAR_READONLY`]: http://php.net/manual/en/phar.configuration.php#ini.phar.readonly +[`PHP_PHAR_REQUIRE_HASH`]: http://php.net/manual/en/phar.configuration.php#ini.phar.require-hash +[`PHP_POST_MAX_SIZE`]: http://php.net/post-max-size +[`PHP_REALPATH_CACHE_SIZE`]: http://php.net/realpath-cache-size +[`PHP_REALPATH_CACHE_TTL`]: http://php.net/realpath-cache-ttl +[`PHP_SENDMAIL_PATH`]: http://php.net/sendmail-path +[`PHP_SESSION_SAVE_HANDLER`]: http://php.net/session.save-handler +[`PHP_TRACK_ERRORS`]: http://php.net/track-errors +[`PHP_UPLOAD_MAX_FILESIZE`]: http://php.net/upload-max-filesize +[`PHP_XDEBUG_DEFAULT_ENABLE`]: https://xdebug.org/docs/all_settings +[`PHP_ZEND_ASSERTIONS`]: http://php.net/zend.assertions + +[amqp]: http://pecl.php.net/package/amqp +[apcu]: http://pecl.php.net/package/apcu +[ast]: https://github.com/nikic/php-ast +[ds]: https://pecl.php.net/package/ds +[event]: https://pecl.php.net/package/event +[grpc]: https://pecl.php.net/package/grpc +[igbinary]: https://pecl.php.net/package/igbinary +[imagick]: https://pecl.php.net/package/imagick +[mcrypt]: http://pecl.php.net/package/mcrypt +[memcached]: http://pecl.php.net/package/memcached +[mongo]: http://pecl.php.net/package/mongo +[mongodb]: http://pecl.php.net/package/mongodb +[newrelic]: http://download.newrelic.com/php_agent/release +[OAuth]: http://pecl.php.net/package/oauth +[rdkafka]: https://pecl.php.net/package/rdkafka +[redis]: http://pecl.php.net/package/redis +[uploadprogress]: https://pecl.php.net/package/uploadprogress +[uuid]: https://pecl.php.net/package/uuid +[xdebug]: https://pecl.php.net/package/xdebug +[yaml]: https://pecl.php.net/package/yaml +[latest]: https://github.com/wodby/pecl-php-uploadprogress/releases/tag/latest +[7.0.5]: https://pecl.php.net/package/ZendOpcache +[1.0.1]: https://pecl.php.net/package/mcrypt +[blackfire]: https://blackfire.io/dashboard/mine/profiles +[tideways_xhprof]: https://github.com/tideways/php-xhprof-extension diff --git a/index.php b/index.php new file mode 100644 index 00000000..82755a36 --- /dev/null +++ b/index.php @@ -0,0 +1,4 @@ + "${PWD}/walter-command-stage" + directory: $PWD + only_if: test "${APP_ROOT}" = "/var/www/html" + - name: Run shell script + type: command + command: sh script.sh + directory: $PWD \ No newline at end of file