From 353f2e9dfa16040d3d9115111267b7b90a731d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Fri, 7 Apr 2023 15:03:48 +0200 Subject: [PATCH 01/29] Zou Co-authored-by: Vincent Le Quec --- .dockerignore | 4 + .editorconfig | 14 + .github/workflows/flake8.yml | 18 - .github/workflows/nose.yml | 18 - .gitignore | 21 +- HOW-TO-USE.md | 62 --- LICENSE | 3 +- README.md | 169 ++------ TODO.md | 26 ++ docker/alpine-base.Dockerfile | 71 ++++ .../debian-base.Dockerfile | 0 images/1.7.7.0/7.1-apache/Dockerfile | 13 - images/1.7.7.0/7.1-fpm/Dockerfile | 13 - images/1.7.7.0/7.2-apache/Dockerfile | 13 - images/1.7.7.0/7.2-fpm/Dockerfile | 13 - images/1.7.7.0/7.3-apache/Dockerfile | 13 - images/1.7.7.0/7.3-fpm/Dockerfile | 13 - images/1.7.7.1/7.1-apache/Dockerfile | 13 - images/1.7.7.1/7.1-fpm/Dockerfile | 13 - images/1.7.7.1/7.2-apache/Dockerfile | 13 - images/1.7.7.1/7.2-fpm/Dockerfile | 13 - images/1.7.7.1/7.3-apache/Dockerfile | 13 - images/1.7.7.1/7.3-fpm/Dockerfile | 13 - images/1.7.7.2/7.1-apache/Dockerfile | 13 - images/1.7.7.2/7.1-fpm/Dockerfile | 13 - images/1.7.7.2/7.2-apache/Dockerfile | 13 - images/1.7.7.2/7.2-fpm/Dockerfile | 13 - images/1.7.7.2/7.3-apache/Dockerfile | 13 - images/1.7.7.2/7.3-fpm/Dockerfile | 13 - images/1.7.7.3/7.1-apache/Dockerfile | 13 - images/1.7.7.3/7.1-fpm/Dockerfile | 13 - images/1.7.7.3/7.2-apache/Dockerfile | 13 - images/1.7.7.3/7.2-fpm/Dockerfile | 13 - images/1.7.7.3/7.3-apache/Dockerfile | 13 - images/1.7.7.3/7.3-fpm/Dockerfile | 13 - images/1.7.7.4/7.1-apache/Dockerfile | 13 - images/1.7.7.4/7.1-fpm/Dockerfile | 13 - images/1.7.7.4/7.2-apache/Dockerfile | 13 - images/1.7.7.4/7.2-fpm/Dockerfile | 13 - images/1.7.7.4/7.3-apache/Dockerfile | 13 - images/1.7.7.4/7.3-fpm/Dockerfile | 13 - images/1.7.7.5/7.1-apache/Dockerfile | 13 - images/1.7.7.5/7.1-fpm/Dockerfile | 13 - images/1.7.7.5/7.2-apache/Dockerfile | 13 - images/1.7.7.5/7.2-fpm/Dockerfile | 13 - images/1.7.7.5/7.3-apache/Dockerfile | 13 - images/1.7.7.5/7.3-fpm/Dockerfile | 13 - images/1.7.7.6/7.1-apache/Dockerfile | 13 - images/1.7.7.6/7.1-fpm/Dockerfile | 13 - images/1.7.7.6/7.2-apache/Dockerfile | 13 - images/1.7.7.6/7.2-fpm/Dockerfile | 13 - images/1.7.7.6/7.3-apache/Dockerfile | 13 - images/1.7.7.6/7.3-fpm/Dockerfile | 13 - images/1.7.7.7/7.1-apache/Dockerfile | 13 - images/1.7.7.7/7.1-fpm/Dockerfile | 13 - images/1.7.7.7/7.2-apache/Dockerfile | 13 - images/1.7.7.7/7.2-fpm/Dockerfile | 13 - images/1.7.7.7/7.3-apache/Dockerfile | 13 - images/1.7.7.7/7.3-fpm/Dockerfile | 13 - images/1.7.7.8/7.1-apache/Dockerfile | 13 - images/1.7.7.8/7.1-fpm/Dockerfile | 13 - images/1.7.7.8/7.2-apache/Dockerfile | 13 - images/1.7.7.8/7.2-fpm/Dockerfile | 13 - images/1.7.7.8/7.3-apache/Dockerfile | 13 - images/1.7.7.8/7.3-fpm/Dockerfile | 13 - images/1.7.8.0-beta.1/7.1-apache/Dockerfile | 13 - images/1.7.8.0-beta.1/7.1-fpm/Dockerfile | 13 - images/1.7.8.0-beta.1/7.2-apache/Dockerfile | 13 - images/1.7.8.0-beta.1/7.2-fpm/Dockerfile | 13 - images/1.7.8.0-beta.1/7.3-apache/Dockerfile | 13 - images/1.7.8.0-beta.1/7.3-fpm/Dockerfile | 13 - images/1.7.8.0-beta.1/7.4-apache/Dockerfile | 13 - images/1.7.8.0-beta.1/7.4-fpm/Dockerfile | 13 - images/1.7.8.0-rc.1/7.1-apache/Dockerfile | 13 - images/1.7.8.0-rc.1/7.1-fpm/Dockerfile | 13 - images/1.7.8.0-rc.1/7.2-apache/Dockerfile | 13 - images/1.7.8.0-rc.1/7.2-fpm/Dockerfile | 13 - images/1.7.8.0-rc.1/7.3-apache/Dockerfile | 13 - images/1.7.8.0-rc.1/7.3-fpm/Dockerfile | 13 - images/1.7.8.0-rc.1/7.4-apache/Dockerfile | 13 - images/1.7.8.0-rc.1/7.4-fpm/Dockerfile | 13 - images/1.7.8.0/7.1-apache/Dockerfile | 13 - images/1.7.8.0/7.1-fpm/Dockerfile | 13 - images/1.7.8.0/7.2-apache/Dockerfile | 13 - images/1.7.8.0/7.2-fpm/Dockerfile | 13 - images/1.7.8.0/7.3-apache/Dockerfile | 13 - images/1.7.8.0/7.3-fpm/Dockerfile | 13 - images/1.7.8.0/7.4-apache/Dockerfile | 13 - images/1.7.8.0/7.4-fpm/Dockerfile | 13 - images/1.7.8.1/7.1-apache/Dockerfile | 13 - images/1.7.8.1/7.1-fpm/Dockerfile | 13 - images/1.7.8.1/7.2-apache/Dockerfile | 13 - images/1.7.8.1/7.2-fpm/Dockerfile | 13 - images/1.7.8.1/7.3-apache/Dockerfile | 13 - images/1.7.8.1/7.3-fpm/Dockerfile | 13 - images/1.7.8.1/7.4-apache/Dockerfile | 13 - images/1.7.8.1/7.4-fpm/Dockerfile | 13 - images/1.7.8.2/7.1-apache/Dockerfile | 13 - images/1.7.8.2/7.1-fpm/Dockerfile | 13 - images/1.7.8.2/7.2-apache/Dockerfile | 13 - images/1.7.8.2/7.2-fpm/Dockerfile | 13 - images/1.7.8.2/7.3-apache/Dockerfile | 13 - images/1.7.8.2/7.3-fpm/Dockerfile | 13 - images/1.7.8.2/7.4-apache/Dockerfile | 13 - images/1.7.8.2/7.4-fpm/Dockerfile | 13 - images/1.7.8.3/7.1-apache/Dockerfile | 13 - images/1.7.8.3/7.1-fpm/Dockerfile | 13 - images/1.7.8.3/7.2-apache/Dockerfile | 13 - images/1.7.8.3/7.2-fpm/Dockerfile | 13 - images/1.7.8.3/7.3-apache/Dockerfile | 13 - images/1.7.8.3/7.3-fpm/Dockerfile | 13 - images/1.7.8.3/7.4-apache/Dockerfile | 13 - images/1.7.8.3/7.4-fpm/Dockerfile | 13 - images/1.7.8.4/7.1-apache/Dockerfile | 13 - images/1.7.8.4/7.1-fpm/Dockerfile | 13 - images/1.7.8.4/7.2-apache/Dockerfile | 13 - images/1.7.8.4/7.2-fpm/Dockerfile | 13 - images/1.7.8.4/7.3-apache/Dockerfile | 13 - images/1.7.8.4/7.3-fpm/Dockerfile | 13 - images/1.7.8.4/7.4-apache/Dockerfile | 13 - images/1.7.8.4/7.4-fpm/Dockerfile | 13 - images/1.7.8.5/7.1-apache/Dockerfile | 13 - images/1.7.8.5/7.1-fpm/Dockerfile | 13 - images/1.7.8.5/7.2-apache/Dockerfile | 13 - images/1.7.8.5/7.2-fpm/Dockerfile | 13 - images/1.7.8.5/7.3-apache/Dockerfile | 13 - images/1.7.8.5/7.3-fpm/Dockerfile | 13 - images/1.7.8.5/7.4-apache/Dockerfile | 13 - images/1.7.8.5/7.4-fpm/Dockerfile | 13 - images/1.7.8.6/7.1-apache/Dockerfile | 13 - images/1.7.8.6/7.1-fpm/Dockerfile | 13 - images/1.7.8.6/7.2-apache/Dockerfile | 13 - images/1.7.8.6/7.2-fpm/Dockerfile | 13 - images/1.7.8.6/7.3-apache/Dockerfile | 13 - images/1.7.8.6/7.3-fpm/Dockerfile | 13 - images/1.7.8.6/7.4-apache/Dockerfile | 13 - images/1.7.8.6/7.4-fpm/Dockerfile | 13 - images/1.7.8.7/7.1-apache/Dockerfile | 13 - images/1.7.8.7/7.1-fpm/Dockerfile | 13 - images/1.7.8.7/7.2-apache/Dockerfile | 13 - images/1.7.8.7/7.2-fpm/Dockerfile | 13 - images/1.7.8.7/7.3-apache/Dockerfile | 13 - images/1.7.8.7/7.3-fpm/Dockerfile | 13 - images/1.7.8.7/7.4-apache/Dockerfile | 13 - images/1.7.8.7/7.4-fpm/Dockerfile | 13 - images/1.7.8.8/7.1-apache/Dockerfile | 13 - images/1.7.8.8/7.1-fpm/Dockerfile | 13 - images/1.7.8.8/7.2-apache/Dockerfile | 13 - images/1.7.8.8/7.2-fpm/Dockerfile | 13 - images/1.7.8.8/7.3-apache/Dockerfile | 13 - images/1.7.8.8/7.3-fpm/Dockerfile | 13 - images/1.7.8.8/7.4-apache/Dockerfile | 13 - images/1.7.8.8/7.4-fpm/Dockerfile | 13 - images/8.0.0-beta.1/7.2-apache/Dockerfile | 13 - images/8.0.0-beta.1/7.2-fpm/Dockerfile | 13 - images/8.0.0-beta.1/7.3-apache/Dockerfile | 13 - images/8.0.0-beta.1/7.3-fpm/Dockerfile | 13 - images/8.0.0-beta.1/7.4-apache/Dockerfile | 13 - images/8.0.0-beta.1/7.4-fpm/Dockerfile | 13 - images/8.0.0-beta.1/8.0-apache/Dockerfile | 13 - images/8.0.0-beta.1/8.0-fpm/Dockerfile | 13 - images/8.0.0-beta.1/8.1-apache/Dockerfile | 13 - images/8.0.0-beta.1/8.1-fpm/Dockerfile | 13 - images/8.0.0-rc.1/7.2-apache/Dockerfile | 13 - images/8.0.0-rc.1/7.2-fpm/Dockerfile | 13 - images/8.0.0-rc.1/7.3-apache/Dockerfile | 13 - images/8.0.0-rc.1/7.3-fpm/Dockerfile | 13 - images/8.0.0-rc.1/7.4-apache/Dockerfile | 13 - images/8.0.0-rc.1/7.4-fpm/Dockerfile | 13 - images/8.0.0-rc.1/8.0-apache/Dockerfile | 13 - images/8.0.0-rc.1/8.0-fpm/Dockerfile | 13 - images/8.0.0-rc.1/8.1-apache/Dockerfile | 13 - images/8.0.0-rc.1/8.1-fpm/Dockerfile | 13 - images/8.0.0/7.2-apache/Dockerfile | 13 - images/8.0.0/7.2-fpm/Dockerfile | 13 - images/8.0.0/7.3-apache/Dockerfile | 13 - images/8.0.0/7.3-fpm/Dockerfile | 13 - images/8.0.0/7.4-apache/Dockerfile | 13 - images/8.0.0/7.4-fpm/Dockerfile | 13 - images/8.0.0/8.0-apache/Dockerfile | 13 - images/8.0.0/8.0-fpm/Dockerfile | 13 - images/8.0.0/8.1-apache/Dockerfile | 13 - images/8.0.0/8.1-fpm/Dockerfile | 13 - images/8.0.1/7.2-apache/Dockerfile | 13 - images/8.0.1/7.2-fpm/Dockerfile | 13 - images/8.0.1/7.3-apache/Dockerfile | 13 - images/8.0.1/7.3-fpm/Dockerfile | 13 - images/8.0.1/7.4-apache/Dockerfile | 13 - images/8.0.1/7.4-fpm/Dockerfile | 13 - images/8.0.1/8.0-apache/Dockerfile | 13 - images/8.0.1/8.0-fpm/Dockerfile | 13 - images/8.0.1/8.1-apache/Dockerfile | 13 - images/8.0.1/8.1-fpm/Dockerfile | 13 - images/8.0.2/7.2-apache/Dockerfile | 13 - images/8.0.2/7.2-fpm/Dockerfile | 13 - images/8.0.2/7.3-apache/Dockerfile | 13 - images/8.0.2/7.3-fpm/Dockerfile | 13 - images/8.0.2/7.4-apache/Dockerfile | 13 - images/8.0.2/7.4-fpm/Dockerfile | 13 - images/8.0.2/8.0-apache/Dockerfile | 13 - images/8.0.2/8.0-fpm/Dockerfile | 13 - images/8.0.2/8.1-apache/Dockerfile | 13 - images/8.0.2/8.1-fpm/Dockerfile | 13 - images/8.0.3/7.2-apache/Dockerfile | 13 - images/8.0.3/7.2-fpm/Dockerfile | 13 - images/8.0.3/7.3-apache/Dockerfile | 13 - images/8.0.3/7.3-fpm/Dockerfile | 13 - images/8.0.3/7.4-apache/Dockerfile | 13 - images/8.0.3/7.4-fpm/Dockerfile | 13 - images/8.0.3/8.0-apache/Dockerfile | 13 - images/8.0.3/8.0-fpm/Dockerfile | 13 - images/8.0.3/8.1-apache/Dockerfile | 13 - images/8.0.3/8.1-fpm/Dockerfile | 13 - images/nightly/7.2-apache/Dockerfile | 20 - images/nightly/7.2-fpm/Dockerfile | 20 - images/nightly/7.3-apache/Dockerfile | 20 - images/nightly/7.3-fpm/Dockerfile | 20 - images/nightly/7.4-apache/Dockerfile | 20 - images/nightly/7.4-fpm/Dockerfile | 20 - images/nightly/8.0-apache/Dockerfile | 20 - images/nightly/8.0-fpm/Dockerfile | 20 - images/nightly/8.1-apache/Dockerfile | 20 - images/nightly/8.1-fpm/Dockerfile | 20 - .../Dockerfile-nightly.model | 0 Dockerfile.model => old/Dockerfile.model | 0 {base => old/base}/Dockerfile.model | 77 ++-- .../base}/config_files/defines_custom.inc.php | 0 .../base}/config_files/docker_nightly_run.sh | 0 {base => old/base}/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 {base => old/base}/config_files/php.ini | 0 .../base}/config_files/ps-extractor.sh | 0 {base => old/base}/generate_tags.sh | 0 .../base}/images/7.1-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../7.1-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/7.1-apache/config_files/php.ini | 0 .../7.1-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/7.1-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/7.1-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/7.1-fpm/config_files/php.ini | 0 .../7.1-fpm/config_files/ps-extractor.sh | 0 .../base}/images/7.2-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../7.2-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/7.2-apache/config_files/php.ini | 0 .../7.2-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/7.2-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/7.2-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/7.2-fpm/config_files/php.ini | 0 .../7.2-fpm/config_files/ps-extractor.sh | 0 .../base}/images/7.3-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../7.3-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/7.3-apache/config_files/php.ini | 0 .../7.3-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/7.3-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/7.3-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/7.3-fpm/config_files/php.ini | 0 .../7.3-fpm/config_files/ps-extractor.sh | 0 .../base}/images/7.4-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../7.4-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/7.4-apache/config_files/php.ini | 0 .../7.4-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/7.4-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/7.4-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/7.4-fpm/config_files/php.ini | 0 .../7.4-fpm/config_files/ps-extractor.sh | 0 .../base}/images/8.0-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../8.0-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/8.0-apache/config_files/php.ini | 0 .../8.0-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/8.0-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/8.0-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/8.0-fpm/config_files/php.ini | 0 .../8.0-fpm/config_files/ps-extractor.sh | 0 .../base}/images/8.1-apache/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../8.1-apache/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../images/8.1-apache/config_files/php.ini | 0 .../8.1-apache/config_files/ps-extractor.sh | 0 {base => old/base}/images/8.1-fpm/Dockerfile | 0 .../config_files/defines_custom.inc.php | 0 .../config_files/docker_nightly_run.sh | 0 .../images/8.1-fpm/config_files/docker_run.sh | 0 .../config_files/docker_updt_ps_domains.php | 0 .../base}/images/8.1-fpm/config_files/php.ini | 0 .../8.1-fpm/config_files/ps-extractor.sh | 0 {base => old/base}/tags.txt | 0 .../prestashop_docker}/__init__.py | 0 .../prestashop_docker}/docker_api.py | 0 .../prestashop_docker}/generator.py | 0 .../prestashop_docker}/stream.py | 0 .../prestashop_docker}/tag_manager.py | 0 .../prestashop_docker}/version_manager.py | 0 prestashop-versions.json | 44 +++ prestashop_docker.py | 123 ------ requirements.in | 10 - requirements.txt | 27 -- setup.cfg | 21 - tests/prestashop_docker/__init__.py | 0 tests/prestashop_docker/test_generator.py | 117 ------ .../prestashop_docker/test_version_manager.py | 363 ------------------ versions.py | 162 -------- 333 files changed, 245 insertions(+), 3931 deletions(-) create mode 100644 .dockerignore create mode 100644 .editorconfig delete mode 100644 .github/workflows/flake8.yml delete mode 100644 .github/workflows/nose.yml delete mode 100644 HOW-TO-USE.md create mode 100644 TODO.md create mode 100644 docker/alpine-base.Dockerfile rename tests/__init__.py => docker/debian-base.Dockerfile (100%) delete mode 100644 images/1.7.7.0/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.0/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.0/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.0/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.0/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.0/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.1/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.1/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.1/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.1/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.1/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.1/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.2/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.2/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.2/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.2/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.2/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.2/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.3/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.3/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.3/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.3/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.3/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.3/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.4/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.4/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.4/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.4/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.4/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.4/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.5/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.5/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.5/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.5/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.5/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.5/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.6/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.6/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.6/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.6/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.6/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.6/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.7/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.7/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.7/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.7/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.7/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.7/7.3-fpm/Dockerfile delete mode 100644 images/1.7.7.8/7.1-apache/Dockerfile delete mode 100644 images/1.7.7.8/7.1-fpm/Dockerfile delete mode 100644 images/1.7.7.8/7.2-apache/Dockerfile delete mode 100644 images/1.7.7.8/7.2-fpm/Dockerfile delete mode 100644 images/1.7.7.8/7.3-apache/Dockerfile delete mode 100644 images/1.7.7.8/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.0-beta.1/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.0-rc.1/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.0/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.0/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.0/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.0/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.0/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.0/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.0/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.0/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.1/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.1/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.1/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.1/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.1/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.1/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.1/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.1/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.2/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.2/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.2/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.2/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.2/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.2/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.2/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.2/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.3/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.3/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.3/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.3/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.3/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.3/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.3/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.3/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.4/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.4/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.4/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.4/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.4/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.4/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.4/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.4/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.5/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.5/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.5/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.5/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.5/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.5/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.5/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.5/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.6/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.6/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.6/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.6/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.6/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.6/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.6/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.6/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.7/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.7/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.7/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.7/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.7/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.7/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.7/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.7/7.4-fpm/Dockerfile delete mode 100644 images/1.7.8.8/7.1-apache/Dockerfile delete mode 100644 images/1.7.8.8/7.1-fpm/Dockerfile delete mode 100644 images/1.7.8.8/7.2-apache/Dockerfile delete mode 100644 images/1.7.8.8/7.2-fpm/Dockerfile delete mode 100644 images/1.7.8.8/7.3-apache/Dockerfile delete mode 100644 images/1.7.8.8/7.3-fpm/Dockerfile delete mode 100644 images/1.7.8.8/7.4-apache/Dockerfile delete mode 100644 images/1.7.8.8/7.4-fpm/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.2-apache/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.2-fpm/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.3-apache/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.3-fpm/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.4-apache/Dockerfile delete mode 100644 images/8.0.0-beta.1/7.4-fpm/Dockerfile delete mode 100644 images/8.0.0-beta.1/8.0-apache/Dockerfile delete mode 100644 images/8.0.0-beta.1/8.0-fpm/Dockerfile delete mode 100644 images/8.0.0-beta.1/8.1-apache/Dockerfile delete mode 100644 images/8.0.0-beta.1/8.1-fpm/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.2-apache/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.2-fpm/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.3-apache/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.3-fpm/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.4-apache/Dockerfile delete mode 100644 images/8.0.0-rc.1/7.4-fpm/Dockerfile delete mode 100644 images/8.0.0-rc.1/8.0-apache/Dockerfile delete mode 100644 images/8.0.0-rc.1/8.0-fpm/Dockerfile delete mode 100644 images/8.0.0-rc.1/8.1-apache/Dockerfile delete mode 100644 images/8.0.0-rc.1/8.1-fpm/Dockerfile delete mode 100644 images/8.0.0/7.2-apache/Dockerfile delete mode 100644 images/8.0.0/7.2-fpm/Dockerfile delete mode 100644 images/8.0.0/7.3-apache/Dockerfile delete mode 100644 images/8.0.0/7.3-fpm/Dockerfile delete mode 100644 images/8.0.0/7.4-apache/Dockerfile delete mode 100644 images/8.0.0/7.4-fpm/Dockerfile delete mode 100644 images/8.0.0/8.0-apache/Dockerfile delete mode 100644 images/8.0.0/8.0-fpm/Dockerfile delete mode 100644 images/8.0.0/8.1-apache/Dockerfile delete mode 100644 images/8.0.0/8.1-fpm/Dockerfile delete mode 100644 images/8.0.1/7.2-apache/Dockerfile delete mode 100644 images/8.0.1/7.2-fpm/Dockerfile delete mode 100644 images/8.0.1/7.3-apache/Dockerfile delete mode 100644 images/8.0.1/7.3-fpm/Dockerfile delete mode 100644 images/8.0.1/7.4-apache/Dockerfile delete mode 100644 images/8.0.1/7.4-fpm/Dockerfile delete mode 100644 images/8.0.1/8.0-apache/Dockerfile delete mode 100644 images/8.0.1/8.0-fpm/Dockerfile delete mode 100644 images/8.0.1/8.1-apache/Dockerfile delete mode 100644 images/8.0.1/8.1-fpm/Dockerfile delete mode 100644 images/8.0.2/7.2-apache/Dockerfile delete mode 100644 images/8.0.2/7.2-fpm/Dockerfile delete mode 100644 images/8.0.2/7.3-apache/Dockerfile delete mode 100644 images/8.0.2/7.3-fpm/Dockerfile delete mode 100644 images/8.0.2/7.4-apache/Dockerfile delete mode 100644 images/8.0.2/7.4-fpm/Dockerfile delete mode 100644 images/8.0.2/8.0-apache/Dockerfile delete mode 100644 images/8.0.2/8.0-fpm/Dockerfile delete mode 100644 images/8.0.2/8.1-apache/Dockerfile delete mode 100644 images/8.0.2/8.1-fpm/Dockerfile delete mode 100644 images/8.0.3/7.2-apache/Dockerfile delete mode 100644 images/8.0.3/7.2-fpm/Dockerfile delete mode 100644 images/8.0.3/7.3-apache/Dockerfile delete mode 100644 images/8.0.3/7.3-fpm/Dockerfile delete mode 100644 images/8.0.3/7.4-apache/Dockerfile delete mode 100644 images/8.0.3/7.4-fpm/Dockerfile delete mode 100644 images/8.0.3/8.0-apache/Dockerfile delete mode 100644 images/8.0.3/8.0-fpm/Dockerfile delete mode 100644 images/8.0.3/8.1-apache/Dockerfile delete mode 100644 images/8.0.3/8.1-fpm/Dockerfile delete mode 100644 images/nightly/7.2-apache/Dockerfile delete mode 100644 images/nightly/7.2-fpm/Dockerfile delete mode 100644 images/nightly/7.3-apache/Dockerfile delete mode 100644 images/nightly/7.3-fpm/Dockerfile delete mode 100644 images/nightly/7.4-apache/Dockerfile delete mode 100644 images/nightly/7.4-fpm/Dockerfile delete mode 100644 images/nightly/8.0-apache/Dockerfile delete mode 100644 images/nightly/8.0-fpm/Dockerfile delete mode 100644 images/nightly/8.1-apache/Dockerfile delete mode 100644 images/nightly/8.1-fpm/Dockerfile rename Dockerfile-nightly.model => old/Dockerfile-nightly.model (100%) rename Dockerfile.model => old/Dockerfile.model (100%) rename {base => old/base}/Dockerfile.model (60%) rename {base => old/base}/config_files/defines_custom.inc.php (100%) rename {base => old/base}/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/config_files/docker_run.sh (100%) rename {base => old/base}/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/config_files/php.ini (100%) rename {base => old/base}/config_files/ps-extractor.sh (100%) rename {base => old/base}/generate_tags.sh (100%) rename {base => old/base}/images/7.1-apache/Dockerfile (100%) rename {base => old/base}/images/7.1-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.1-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.1-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.1-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.1-apache/config_files/php.ini (100%) rename {base => old/base}/images/7.1-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.1-fpm/Dockerfile (100%) rename {base => old/base}/images/7.1-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.1-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.1-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.1-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.1-fpm/config_files/php.ini (100%) rename {base => old/base}/images/7.1-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.2-apache/Dockerfile (100%) rename {base => old/base}/images/7.2-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.2-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.2-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.2-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.2-apache/config_files/php.ini (100%) rename {base => old/base}/images/7.2-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.2-fpm/Dockerfile (100%) rename {base => old/base}/images/7.2-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.2-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.2-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.2-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.2-fpm/config_files/php.ini (100%) rename {base => old/base}/images/7.2-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.3-apache/Dockerfile (100%) rename {base => old/base}/images/7.3-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.3-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.3-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.3-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.3-apache/config_files/php.ini (100%) rename {base => old/base}/images/7.3-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.3-fpm/Dockerfile (100%) rename {base => old/base}/images/7.3-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.3-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.3-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.3-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.3-fpm/config_files/php.ini (100%) rename {base => old/base}/images/7.3-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.4-apache/Dockerfile (100%) rename {base => old/base}/images/7.4-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.4-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.4-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.4-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.4-apache/config_files/php.ini (100%) rename {base => old/base}/images/7.4-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/7.4-fpm/Dockerfile (100%) rename {base => old/base}/images/7.4-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/7.4-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/7.4-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/7.4-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/7.4-fpm/config_files/php.ini (100%) rename {base => old/base}/images/7.4-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/8.0-apache/Dockerfile (100%) rename {base => old/base}/images/8.0-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/8.0-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/8.0-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/8.0-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/8.0-apache/config_files/php.ini (100%) rename {base => old/base}/images/8.0-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/8.0-fpm/Dockerfile (100%) rename {base => old/base}/images/8.0-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/8.0-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/8.0-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/8.0-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/8.0-fpm/config_files/php.ini (100%) rename {base => old/base}/images/8.0-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/8.1-apache/Dockerfile (100%) rename {base => old/base}/images/8.1-apache/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/8.1-apache/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/8.1-apache/config_files/docker_run.sh (100%) rename {base => old/base}/images/8.1-apache/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/8.1-apache/config_files/php.ini (100%) rename {base => old/base}/images/8.1-apache/config_files/ps-extractor.sh (100%) rename {base => old/base}/images/8.1-fpm/Dockerfile (100%) rename {base => old/base}/images/8.1-fpm/config_files/defines_custom.inc.php (100%) rename {base => old/base}/images/8.1-fpm/config_files/docker_nightly_run.sh (100%) rename {base => old/base}/images/8.1-fpm/config_files/docker_run.sh (100%) rename {base => old/base}/images/8.1-fpm/config_files/docker_updt_ps_domains.php (100%) rename {base => old/base}/images/8.1-fpm/config_files/php.ini (100%) rename {base => old/base}/images/8.1-fpm/config_files/ps-extractor.sh (100%) rename {base => old/base}/tags.txt (100%) rename {prestashop_docker => old/prestashop_docker}/__init__.py (100%) rename {prestashop_docker => old/prestashop_docker}/docker_api.py (100%) rename {prestashop_docker => old/prestashop_docker}/generator.py (100%) rename {prestashop_docker => old/prestashop_docker}/stream.py (100%) rename {prestashop_docker => old/prestashop_docker}/tag_manager.py (100%) rename {prestashop_docker => old/prestashop_docker}/version_manager.py (100%) create mode 100644 prestashop-versions.json delete mode 100755 prestashop_docker.py delete mode 100644 requirements.in delete mode 100644 requirements.txt delete mode 100644 setup.cfg delete mode 100644 tests/prestashop_docker/__init__.py delete mode 100644 tests/prestashop_docker/test_generator.py delete mode 100644 tests/prestashop_docker/test_version_manager.py delete mode 100644 versions.py diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..3aac610a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git +docker-compose.yml +Dockerfile +*.md \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..fe4420b9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: https://EditorConfig.org +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml deleted file mode 100644 index c980fca5..00000000 --- a/.github/workflows/flake8.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Flake8 - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: pip install -r requirements.txt - - name: Run tests - run: flake8 diff --git a/.github/workflows/nose.yml b/.github/workflows/nose.yml deleted file mode 100644 index d6a091fa..00000000 --- a/.github/workflows/nose.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run tests - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: pip install -r requirements.txt - - name: Run tests - run: nosetests diff --git a/.gitignore b/.gitignore index 685592ba..452c022f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,12 @@ -extracts/* -dist -*.egg-info -.eggs -cover -.coverage - -*.pyc -cache.sqlite +.idea +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets +.history/ +*~ +.DS_Store +.*.swp +.env \ No newline at end of file diff --git a/HOW-TO-USE.md b/HOW-TO-USE.md deleted file mode 100644 index 80d64e75..00000000 --- a/HOW-TO-USE.md +++ /dev/null @@ -1,62 +0,0 @@ -# How to use - -The PrestaShop Docker tool aims to easily configure, build and tag PrestaShop Docker images. -It requires Python 3.6+. - -## Installation - -```bash -$ pip install -r requirements.txt -``` - -## Usage - -Display the help: - -```bash -$ ./prestashop_docker.py --help -usage: prestashop_docker.py [-h] [--debug] [--cache] [subcommand] ... - -PrestaShop Docker manager. - -positional arguments: - [subcommand] - tag Tag managment - generate Generate Dockerfile - -optional arguments: - -h, --help show this help message and exit - --debug Use Debug - --cache Enable cache -``` - -### Generate - -It allows you to generate Dockerfile files related on what you defined in `versions.py` file. - -```bash -$ ./prestashop_docker.py generate --help -usage: prestashop_docker.py generate [-h] - -optional arguments: - -h, --help show this help message and exit -``` - -### Tag - -It builds docker images on local et allows you to push them on DockerHub. - -```bash -$ ./prestashop_docker.py tag --help -usage: prestashop_docker.py tag [-h] {exists,build,push,aliases} ... - -positional arguments: - {exists,build,push,aliases} - exists Check if tag exists on Docker Hub - build Build container and create docker tag - push Push docker tags - aliases Get aliases - -optional arguments: - -h, --help show this help message and exit -``` diff --git a/LICENSE b/LICENSE index 5a6cf311..da0c1409 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 PrestaShop +Copyright (c) 2019-2023 PrestaShop Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,4 +19,3 @@ 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. - diff --git a/README.md b/README.md index 467c56b0..d0e9c936 100644 --- a/README.md +++ b/README.md @@ -1,153 +1,50 @@ -# PrestaShop on Docker +# How to use -![Tests](https://github.com/PrestaShop/docker/workflows/Run%20tests/badge.svg) -![Codestyle](https://github.com/PrestaShop/docker/workflows/Run%20Flake8/badge.svg) +A PrestaShop Docker tool build, tag an publish production Docker images. +See: https://hub.docker.com/r/prestashop/prestashop -## Supported tags +## Requirements -### Images by PrestaShop version -* `8`, `latest`, `8-apache` -* `8-fpm` -* `nightly` (Latest but unstable release from git) +- Docker: https://docs.docker.com/engine/install -You can use tags for this. For example: -``` -$ docker run -ti --name my-docker-name -e PS_DEV_MODE=false -e PS_INSTALL_AUTO=0 -p 8080:80 -d prestashop/prestashop:8.0 -``` - -## What is PrestaShop - -PrestaShop is a free and open-source e-commerce web application, committed to providing the best shopping cart experience for both merchants and customers. It is written in PHP, is highly customizable, supports all the major payment services, is translated in many languages and localized for many countries, has a fully responsive design (both front and back office), etc. See all the available features. - -> [www.prestashop-project.org](https://www.prestashop-project.org/) - -![PrestaShop's back office dashboard](https://user-images.githubusercontent.com/1009343/61462749-8fb19f00-a949-11e9-801f-70ab0a84192d.png "PrestaShop's back office dashboard") - -## How to run these images - -These images are running with the latest version in the [official PHP repository](https://registry.hub.docker.com/_/php/). -For the database, you can use and link any SQL server related to MySQL. - -Currently if you do not have any MySQL server, the most simple way to run this container is: - -```bash -# create a network for containers to communicate -$ docker network create prestashop-net -# launch mysql 5.7 container -$ docker run -ti --name some-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7 -# launch prestashop container -$ docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -p 8080:80 -d prestashop/prestashop:latest -``` - -A new shop will be built, ready to be installed. - -You can then use the shop by reaching [http://localhost:8080](http://localhost:8080). - -The MySQL server can be reached: -- from the host using port 3307 (example: `$ mysql -uroot -padmin -h localhost --port 3307`) -- from a container in the network using the URL `some-mysql`. - -For example, when you reach the "database configuration" install step, the installer will ask for the "server database address": input `some-mysql`. - -
- -However, if you want to customize the container execution, here are many available options: - -* **PS_DEV_MODE**: The constant `_PS_MODE_DEV_` will be set at `true` *(default value: 0)* -* **PS_HOST_MODE**: The constant `_PS_HOST_MODE_` will be set at `true`. Useful to simulate a PrestaShop Cloud environment. *(default value: 0)* -* **PS_DEMO_MODE**: The constant `_PS_DEMO_MODE_` will be set at `true`. Use it to create a demonstration shop. *(default value: 0)* -* **DB_SERVER**: If set, the external MySQL database will be used instead of the volatile internal one *(default value: localhost)* -* **DB_USER**: Override default MySQL user *(default value: root)* -* **DB_PASSWD**: Override default MySQL password *(default value: admin)* -* **DB_PREFIX**: Override default tables prefix *(default value: ps_)* -* **DB_NAME**: Override default database name *(default value: prestashop)* -* **PS_INSTALL_AUTO=1**: The installation will be executed. Useful to initialize your image faster. In some configurations, you may need to set **PS_DOMAIN** or **PS_HANDLE_DYNAMIC_DOMAIN** as well. (Please note that PrestaShop can be installed automatically from PS 1.5) -* **PS_ERASE_DB**: Drop the mysql database. All previous mysql data will be lost *(default value: 0)* -* **PS_INSTALL_DB**: Create the mysql database. *(default value: 0)* -* **PS_DOMAIN**: When installing automatically your shop, you can tell the shop how it will be reached. For advanced users only *(no default value)* -* **PS_LANGUAGE**: Change the default language installed with PrestaShop *(default value: en)* -* **PS_COUNTRY**: Change the default country installed with PrestaShop *(default value: GB)* -* **PS_ALL_LANGUAGES**: Install all the existing languages for the current version. *(default value: 0)* -* **PS_FOLDER_ADMIN**: Change the name of the `admin` folder *(default value: admin. But will be automatically changed later)* -* **PS_FOLDER_INSTALL**: Change the name of the `install` folder *(default value: install. But must be changed anyway later)* -* **PS_ENABLE_SSL**: Enable SSL at PrestaShop installation. *(default value: 0)* - -By default, we use the employee existing on the [PrestaShop demo](http://demo.prestashop.com). But you can change it with the following parameters: - -* **ADMIN_MAIL**: Override default admin email *(default value: demo@prestashop.com)* -* **ADMIN_PASSWD**: Override default admin password *(default value: prestashop_demo)* - -If your IP / port (or domain) change between two executions of your container, you will need to modify this option: - -* **PS_HANDLE_DYNAMIC_DOMAIN**: Add specific configuration to handle dynamic domain *(default value: 0)* - -## Documentation +## Build -The user documentation (in English by default) is available [here](https://docs.prestashop-project.org/). +To build a PrestaShop 8.0 with PHP 8.1 apache2 and debian bullesye: -The developer documentation (English only) can be found [here](https://devdocs.prestashop.com/). - -## Troubleshooting - -#### Prestashop cannot be reached from the host browser - -When using Docker for Mac or Docker for Windows (throught WSL), Prestashop cannot be reached from the host browser (gets redirected to "dockeripaddress:8080") - -Docker for Mac has an issue with bridging networking and consequently cannot reach the container on its internal IP address. After installation, the browser on the host machine will be redirected from `http://localhost:8080` to `http://:8080` which fails. - -You need to set the `PS_DOMAIN` variable to `localhost:8080` for it to work correctly when browsing from the host computer. The command looks something like this: -``` -$ docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -e PS_DOMAIN=localhost:8080 -p 8080:80 -d prestashop/prestashop +```sh +docker build \ + --build-arg PHP_TAG=8.1-rc-apache-buster \ + --build-arg PS_VERSION=8.0 \ + --tag=prestashop/prestashop:8.0-apache2 + -f docker/debian-base.Dockerfile \ + . ``` -#### Cannot connect to mysql from host - authentication plugin cannot be loaded +## How to use +```sh +docker run --port 80:80 --detach --name prestashop prestashop/prestashop:8.0.1 ``` -ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: ... -``` - -If your `mysql` image uses MySQL 8, the authentication plugin changed from `mysql_native_password` to `caching_sha2_password`. You can bypass this by forcing the old authentication plugin: -```bash -$ docker run -ti -p 3307:3306 --network prestashop-net --name some-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql --default-authentication-plugin=mysql_native_password -``` +### Exemple: je release PrestaShop "8.0.1" -#### Cannot connect to mysql from host - cannot use socket +| TAGS | What's In | Alias to | +| ---------------- | ---------------- | ---------------- | +| 8.0.1 | apache + php 8.1 | 8.0.1-8.1-apache | +| 8.0.1-apache | apache + php 8.1 | 8.0.1-8.1-apache | +| 8.0.1-8.1 | apache + php 8.1 | 8.0.1-8.1-apache | +| 8.0.1-8.1-apache | apache + php 8.1 | N/A | +| 8.0.1-fpm | fpm + php 8.1 | 8.0.1-alpine | +| 8.0.1-8.1-fpm | fpm + php 8.1 | 8.0.1-alpine | +| 8.0.1-alpine | php 8.1 + alpine | N/A | -``` -ERROR 1045 (28000): Access denied for user '...'@'...' (using password: YES) -``` +=> mais pas de 8.0, car la version 8.0 n'est pas recommandée. -For some usecases, you might need to force using TCP instead of sockets: +# Images -```bash -$ mysql -u root -padmin -h localhost --port 3307 --protocol=tcp -``` - -#### During the installation, prestashop cannot connect to mysql - bad charset - -``` -Server sent charset (255) unknown to the client. Please, report to the developers -``` - -MySQL 8 changed the default charset to utfmb4. But some clients do not know this charset. This requires to modify the mysql configuration file. - -If you are using a `mysql` container, you need to : -- modify mysql configuration file `/etc/mysql/my/cnf` and add: -``` -[client] -default-character-set=utf8 - -[mysql] -default-character-set=utf8 - - -[mysqld] -collation-server = utf8_unicode_ci -character-set-server = utf8 -``` -- restart mysql container +\*\*debian\_\_: debian images are base on debian 11 Bullseye. -## How to use the builder script +# Questions pour l'OSPO -For more information, read [HOW-TO-USE.md](HOW-TO-USE.md) file +|8.0.1-8.1 | apache + php 8.1| +==> Si on veut proposer uniquement les versions recommandées pour la production ça simplifie le deal. diff --git a/TODO.md b/TODO.md new file mode 100644 index 00000000..e5dc970a --- /dev/null +++ b/TODO.md @@ -0,0 +1,26 @@ +# TODO + +## Steps de build dockerfile + +1. Se baser sur une image php. On prend PHP officiel https://hub.docker.com/_/php + +- fpm-alpine +- fpm-buster +- fpm-bullseye +- apache-buster +- apache-bullseye +- zts ? + +2. On installe les modules PHP nécessaires à PrestaShop + +3. On download & unzip prestashop + +4. on set les variables d'env nécessaires + +5. Pleins trucs à voir ^^' + +6. Config Apache + +## Compatibilité PHP / PrestaShop + +Quid de PrestaShop 8.1 et PrestaShop 9 ? diff --git a/docker/alpine-base.Dockerfile b/docker/alpine-base.Dockerfile new file mode 100644 index 00000000..f2ca2633 --- /dev/null +++ b/docker/alpine-base.Dockerfile @@ -0,0 +1,71 @@ +ARG PS_VERSION +ARG PHP_VERSION + +FROM php:${PHP_VERSION}-fpm-alpine AS alpine-base-prestashop +ARG PS_VERSION +ARG PS_FOLDER=/var/www/html + +# Install base tools +RUN \ + apk --no-cache add -U \ + bash less vim geoip git tzdata zip curl \ + nginx nginx-mod-http-headers-more nginx-mod-http-geoip \ + nginx-mod-stream nginx-mod-stream-geoip ca-certificates \ + libmcrypt gnu-libiconv-libs php81-common && \ + rm -rf /var/cache/apk/* + +# Install PHP requirements +# see: https://olvlvl.com/2019-06-install-php-ext-source +ENV GD_DEPS="zlib-dev libjpeg-turbo-dev libpng-dev" +ENV ZIP_DEPS="libzip-dev" +ENV INTL_DEPS="icu-dev" +RUN apk add -U $GD_DEPS $ZIP_DEPS $INTL_DEPS \ + && docker-php-ext-configure gd --with-jpeg \ + && docker-php-ext-install gd pdo_mysql zip intl; +# docker-php-ext-enable opcache + +# Get PrestaShop source code +ADD https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip /tmp/prestashop.zip + +# Extract the souces +ADD ./tools/ps-zip-extractor.sh /ps-zip-extractor.sh +RUN mkdir -p ${PS_FOLDER} \ + && unzip -q /tmp/prestashop.zip -d ${PS_FOLDER}/ \ + && bash /ps-zip-extractor.sh ${PS_FOLDER} www-data \ + && rm -rf /tmp/prestashop.zip /ps-zip-extractor.sh + +# ----------------------- +# Flashlight final image +# ----------------------- +FROM base-prestashop as optimize-prestashop +ARG PS_VERSION +ARG PHP_VERSION +ARG PS_FOLDER=/var/www/html +WORKDIR ${PS_FOLDER} + +# @TODO check opcache +# RUN echo '\ +# opcache.interned_strings_buffer=16\n\ +# opcache.load_comments=Off\n\ +# opcache.max_accelerated_files=16000\n\ +# opcache.save_comments=Off\n\ +# ' >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini + +# Disable IPv6 +RUN echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.conf + +# Setup default env +ENV MYSQL_HOST=mysql +ENV MYSQL_USER=prestashop +ENV MYSQL_PASSWORD=prestashop +ENV MYSQL_ROOT_PASSWORD=prestashop +ENV MYSQL_PORT=3306 +ENV MYSQL_DATABASE=prestashop + +# Ship the dump within the image +ADD ./dump-${PS_VERSION}-${PHP_VERSION}.sql /dump.sql + +# The new default runner +ADD ./tools/sql-restore-and-run-nginx.sh /run.sh + +ENTRYPOINT ["/run.sh"] \ No newline at end of file diff --git a/tests/__init__.py b/docker/debian-base.Dockerfile similarity index 100% rename from tests/__init__.py rename to docker/debian-base.Dockerfile diff --git a/images/1.7.7.0/7.1-apache/Dockerfile b/images/1.7.7.0/7.1-apache/Dockerfile deleted file mode 100644 index 56c8e58d..00000000 --- a/images/1.7.7.0/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.0/7.1-fpm/Dockerfile b/images/1.7.7.0/7.1-fpm/Dockerfile deleted file mode 100644 index 5be53882..00000000 --- a/images/1.7.7.0/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.0/7.2-apache/Dockerfile b/images/1.7.7.0/7.2-apache/Dockerfile deleted file mode 100644 index c902af58..00000000 --- a/images/1.7.7.0/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.0/7.2-fpm/Dockerfile b/images/1.7.7.0/7.2-fpm/Dockerfile deleted file mode 100644 index 5c69dfbb..00000000 --- a/images/1.7.7.0/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.0/7.3-apache/Dockerfile b/images/1.7.7.0/7.3-apache/Dockerfile deleted file mode 100644 index aaec84fe..00000000 --- a/images/1.7.7.0/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.0/7.3-fpm/Dockerfile b/images/1.7.7.0/7.3-fpm/Dockerfile deleted file mode 100644 index 12cb5e98..00000000 --- a/images/1.7.7.0/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.1-apache/Dockerfile b/images/1.7.7.1/7.1-apache/Dockerfile deleted file mode 100644 index 27d6889e..00000000 --- a/images/1.7.7.1/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.1-fpm/Dockerfile b/images/1.7.7.1/7.1-fpm/Dockerfile deleted file mode 100644 index 9edc97aa..00000000 --- a/images/1.7.7.1/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.2-apache/Dockerfile b/images/1.7.7.1/7.2-apache/Dockerfile deleted file mode 100644 index ce4a7332..00000000 --- a/images/1.7.7.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.2-fpm/Dockerfile b/images/1.7.7.1/7.2-fpm/Dockerfile deleted file mode 100644 index b2d5c430..00000000 --- a/images/1.7.7.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.3-apache/Dockerfile b/images/1.7.7.1/7.3-apache/Dockerfile deleted file mode 100644 index 608d0c87..00000000 --- a/images/1.7.7.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.1/7.3-fpm/Dockerfile b/images/1.7.7.1/7.3-fpm/Dockerfile deleted file mode 100644 index f2ca1ad5..00000000 --- a/images/1.7.7.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.1-apache/Dockerfile b/images/1.7.7.2/7.1-apache/Dockerfile deleted file mode 100644 index b4cd8724..00000000 --- a/images/1.7.7.2/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.1-fpm/Dockerfile b/images/1.7.7.2/7.1-fpm/Dockerfile deleted file mode 100644 index be77d963..00000000 --- a/images/1.7.7.2/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.2-apache/Dockerfile b/images/1.7.7.2/7.2-apache/Dockerfile deleted file mode 100644 index d08f2aa0..00000000 --- a/images/1.7.7.2/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.2-fpm/Dockerfile b/images/1.7.7.2/7.2-fpm/Dockerfile deleted file mode 100644 index 654ccdde..00000000 --- a/images/1.7.7.2/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.3-apache/Dockerfile b/images/1.7.7.2/7.3-apache/Dockerfile deleted file mode 100644 index 89b92264..00000000 --- a/images/1.7.7.2/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.2/7.3-fpm/Dockerfile b/images/1.7.7.2/7.3-fpm/Dockerfile deleted file mode 100644 index e2eb7e63..00000000 --- a/images/1.7.7.2/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.1-apache/Dockerfile b/images/1.7.7.3/7.1-apache/Dockerfile deleted file mode 100644 index bc17a92d..00000000 --- a/images/1.7.7.3/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.1-fpm/Dockerfile b/images/1.7.7.3/7.1-fpm/Dockerfile deleted file mode 100644 index c3b0b9ba..00000000 --- a/images/1.7.7.3/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.2-apache/Dockerfile b/images/1.7.7.3/7.2-apache/Dockerfile deleted file mode 100644 index 45ecf9f0..00000000 --- a/images/1.7.7.3/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.2-fpm/Dockerfile b/images/1.7.7.3/7.2-fpm/Dockerfile deleted file mode 100644 index 4e4592a7..00000000 --- a/images/1.7.7.3/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.3-apache/Dockerfile b/images/1.7.7.3/7.3-apache/Dockerfile deleted file mode 100644 index 0723492d..00000000 --- a/images/1.7.7.3/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.3/7.3-fpm/Dockerfile b/images/1.7.7.3/7.3-fpm/Dockerfile deleted file mode 100644 index 2b1424cc..00000000 --- a/images/1.7.7.3/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.1-apache/Dockerfile b/images/1.7.7.4/7.1-apache/Dockerfile deleted file mode 100644 index 0d1d364a..00000000 --- a/images/1.7.7.4/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.1-fpm/Dockerfile b/images/1.7.7.4/7.1-fpm/Dockerfile deleted file mode 100644 index eb01c082..00000000 --- a/images/1.7.7.4/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.2-apache/Dockerfile b/images/1.7.7.4/7.2-apache/Dockerfile deleted file mode 100644 index 0c27831a..00000000 --- a/images/1.7.7.4/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.2-fpm/Dockerfile b/images/1.7.7.4/7.2-fpm/Dockerfile deleted file mode 100644 index aa9b2b20..00000000 --- a/images/1.7.7.4/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.3-apache/Dockerfile b/images/1.7.7.4/7.3-apache/Dockerfile deleted file mode 100644 index 1f386dfd..00000000 --- a/images/1.7.7.4/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.4/7.3-fpm/Dockerfile b/images/1.7.7.4/7.3-fpm/Dockerfile deleted file mode 100644 index 560fa32a..00000000 --- a/images/1.7.7.4/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.1-apache/Dockerfile b/images/1.7.7.5/7.1-apache/Dockerfile deleted file mode 100644 index be3614d3..00000000 --- a/images/1.7.7.5/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.1-fpm/Dockerfile b/images/1.7.7.5/7.1-fpm/Dockerfile deleted file mode 100644 index 7398ebb5..00000000 --- a/images/1.7.7.5/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.2-apache/Dockerfile b/images/1.7.7.5/7.2-apache/Dockerfile deleted file mode 100644 index aaf193a3..00000000 --- a/images/1.7.7.5/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.2-fpm/Dockerfile b/images/1.7.7.5/7.2-fpm/Dockerfile deleted file mode 100644 index de26b8de..00000000 --- a/images/1.7.7.5/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.3-apache/Dockerfile b/images/1.7.7.5/7.3-apache/Dockerfile deleted file mode 100644 index 74959859..00000000 --- a/images/1.7.7.5/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.5/7.3-fpm/Dockerfile b/images/1.7.7.5/7.3-fpm/Dockerfile deleted file mode 100644 index e7dd9c5b..00000000 --- a/images/1.7.7.5/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.1-apache/Dockerfile b/images/1.7.7.6/7.1-apache/Dockerfile deleted file mode 100644 index 2db8524f..00000000 --- a/images/1.7.7.6/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.1-fpm/Dockerfile b/images/1.7.7.6/7.1-fpm/Dockerfile deleted file mode 100644 index 005754cc..00000000 --- a/images/1.7.7.6/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.2-apache/Dockerfile b/images/1.7.7.6/7.2-apache/Dockerfile deleted file mode 100644 index 88ac215c..00000000 --- a/images/1.7.7.6/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.2-fpm/Dockerfile b/images/1.7.7.6/7.2-fpm/Dockerfile deleted file mode 100644 index 222e7b62..00000000 --- a/images/1.7.7.6/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.3-apache/Dockerfile b/images/1.7.7.6/7.3-apache/Dockerfile deleted file mode 100644 index 0c08e4a4..00000000 --- a/images/1.7.7.6/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.6/7.3-fpm/Dockerfile b/images/1.7.7.6/7.3-fpm/Dockerfile deleted file mode 100644 index ca426083..00000000 --- a/images/1.7.7.6/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.1-apache/Dockerfile b/images/1.7.7.7/7.1-apache/Dockerfile deleted file mode 100644 index 1b523e87..00000000 --- a/images/1.7.7.7/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.1-fpm/Dockerfile b/images/1.7.7.7/7.1-fpm/Dockerfile deleted file mode 100644 index 1153f9e2..00000000 --- a/images/1.7.7.7/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.2-apache/Dockerfile b/images/1.7.7.7/7.2-apache/Dockerfile deleted file mode 100644 index e2dbca94..00000000 --- a/images/1.7.7.7/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.2-fpm/Dockerfile b/images/1.7.7.7/7.2-fpm/Dockerfile deleted file mode 100644 index 39534eef..00000000 --- a/images/1.7.7.7/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.3-apache/Dockerfile b/images/1.7.7.7/7.3-apache/Dockerfile deleted file mode 100644 index cfd74754..00000000 --- a/images/1.7.7.7/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.7/7.3-fpm/Dockerfile b/images/1.7.7.7/7.3-fpm/Dockerfile deleted file mode 100644 index 69165f2a..00000000 --- a/images/1.7.7.7/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.1-apache/Dockerfile b/images/1.7.7.8/7.1-apache/Dockerfile deleted file mode 100644 index 885a82a9..00000000 --- a/images/1.7.7.8/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.1-fpm/Dockerfile b/images/1.7.7.8/7.1-fpm/Dockerfile deleted file mode 100644 index 06dbae10..00000000 --- a/images/1.7.7.8/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.2-apache/Dockerfile b/images/1.7.7.8/7.2-apache/Dockerfile deleted file mode 100644 index 5e993fce..00000000 --- a/images/1.7.7.8/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.2-fpm/Dockerfile b/images/1.7.7.8/7.2-fpm/Dockerfile deleted file mode 100644 index 1bff1679..00000000 --- a/images/1.7.7.8/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.3-apache/Dockerfile b/images/1.7.7.8/7.3-apache/Dockerfile deleted file mode 100644 index d2da68d1..00000000 --- a/images/1.7.7.8/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.7.8/7.3-fpm/Dockerfile b/images/1.7.7.8/7.3-fpm/Dockerfile deleted file mode 100644 index ed506970..00000000 --- a/images/1.7.7.8/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.7.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.7.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.1-apache/Dockerfile b/images/1.7.8.0-beta.1/7.1-apache/Dockerfile deleted file mode 100644 index 2d976697..00000000 --- a/images/1.7.8.0-beta.1/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.1-fpm/Dockerfile b/images/1.7.8.0-beta.1/7.1-fpm/Dockerfile deleted file mode 100644 index 9881c9ad..00000000 --- a/images/1.7.8.0-beta.1/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.2-apache/Dockerfile b/images/1.7.8.0-beta.1/7.2-apache/Dockerfile deleted file mode 100644 index 16a1308f..00000000 --- a/images/1.7.8.0-beta.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.2-fpm/Dockerfile b/images/1.7.8.0-beta.1/7.2-fpm/Dockerfile deleted file mode 100644 index ded40f8f..00000000 --- a/images/1.7.8.0-beta.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.3-apache/Dockerfile b/images/1.7.8.0-beta.1/7.3-apache/Dockerfile deleted file mode 100644 index 859404de..00000000 --- a/images/1.7.8.0-beta.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.3-fpm/Dockerfile b/images/1.7.8.0-beta.1/7.3-fpm/Dockerfile deleted file mode 100644 index 39b3bd9c..00000000 --- a/images/1.7.8.0-beta.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.4-apache/Dockerfile b/images/1.7.8.0-beta.1/7.4-apache/Dockerfile deleted file mode 100644 index 3b0ef603..00000000 --- a/images/1.7.8.0-beta.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-beta.1/7.4-fpm/Dockerfile b/images/1.7.8.0-beta.1/7.4-fpm/Dockerfile deleted file mode 100644 index 2a692127..00000000 --- a/images/1.7.8.0-beta.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-beta.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.1-apache/Dockerfile b/images/1.7.8.0-rc.1/7.1-apache/Dockerfile deleted file mode 100644 index e16a82b2..00000000 --- a/images/1.7.8.0-rc.1/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.1-fpm/Dockerfile b/images/1.7.8.0-rc.1/7.1-fpm/Dockerfile deleted file mode 100644 index 410255de..00000000 --- a/images/1.7.8.0-rc.1/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.2-apache/Dockerfile b/images/1.7.8.0-rc.1/7.2-apache/Dockerfile deleted file mode 100644 index 97fe9cf1..00000000 --- a/images/1.7.8.0-rc.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.2-fpm/Dockerfile b/images/1.7.8.0-rc.1/7.2-fpm/Dockerfile deleted file mode 100644 index b7fb4c23..00000000 --- a/images/1.7.8.0-rc.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.3-apache/Dockerfile b/images/1.7.8.0-rc.1/7.3-apache/Dockerfile deleted file mode 100644 index 7ae15526..00000000 --- a/images/1.7.8.0-rc.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.3-fpm/Dockerfile b/images/1.7.8.0-rc.1/7.3-fpm/Dockerfile deleted file mode 100644 index 6c196d98..00000000 --- a/images/1.7.8.0-rc.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.4-apache/Dockerfile b/images/1.7.8.0-rc.1/7.4-apache/Dockerfile deleted file mode 100644 index bbd8fe40..00000000 --- a/images/1.7.8.0-rc.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0-rc.1/7.4-fpm/Dockerfile b/images/1.7.8.0-rc.1/7.4-fpm/Dockerfile deleted file mode 100644 index e73aab8f..00000000 --- a/images/1.7.8.0-rc.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0-rc.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.1-apache/Dockerfile b/images/1.7.8.0/7.1-apache/Dockerfile deleted file mode 100644 index bbdf33c0..00000000 --- a/images/1.7.8.0/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.1-fpm/Dockerfile b/images/1.7.8.0/7.1-fpm/Dockerfile deleted file mode 100644 index 9bdadeaf..00000000 --- a/images/1.7.8.0/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.2-apache/Dockerfile b/images/1.7.8.0/7.2-apache/Dockerfile deleted file mode 100644 index 48490620..00000000 --- a/images/1.7.8.0/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.2-fpm/Dockerfile b/images/1.7.8.0/7.2-fpm/Dockerfile deleted file mode 100644 index 1e7faeea..00000000 --- a/images/1.7.8.0/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.3-apache/Dockerfile b/images/1.7.8.0/7.3-apache/Dockerfile deleted file mode 100644 index dd1f97bb..00000000 --- a/images/1.7.8.0/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.3-fpm/Dockerfile b/images/1.7.8.0/7.3-fpm/Dockerfile deleted file mode 100644 index 0fbd64a5..00000000 --- a/images/1.7.8.0/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.4-apache/Dockerfile b/images/1.7.8.0/7.4-apache/Dockerfile deleted file mode 100644 index 678120de..00000000 --- a/images/1.7.8.0/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.0/7.4-fpm/Dockerfile b/images/1.7.8.0/7.4-fpm/Dockerfile deleted file mode 100644 index 1f5eb585..00000000 --- a/images/1.7.8.0/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.0 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.1-apache/Dockerfile b/images/1.7.8.1/7.1-apache/Dockerfile deleted file mode 100644 index fd748f26..00000000 --- a/images/1.7.8.1/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.1-fpm/Dockerfile b/images/1.7.8.1/7.1-fpm/Dockerfile deleted file mode 100644 index 2e05d469..00000000 --- a/images/1.7.8.1/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.2-apache/Dockerfile b/images/1.7.8.1/7.2-apache/Dockerfile deleted file mode 100644 index 69c7ac19..00000000 --- a/images/1.7.8.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.2-fpm/Dockerfile b/images/1.7.8.1/7.2-fpm/Dockerfile deleted file mode 100644 index 168a62ff..00000000 --- a/images/1.7.8.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.3-apache/Dockerfile b/images/1.7.8.1/7.3-apache/Dockerfile deleted file mode 100644 index 686cc2c5..00000000 --- a/images/1.7.8.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.3-fpm/Dockerfile b/images/1.7.8.1/7.3-fpm/Dockerfile deleted file mode 100644 index 687b1b68..00000000 --- a/images/1.7.8.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.4-apache/Dockerfile b/images/1.7.8.1/7.4-apache/Dockerfile deleted file mode 100644 index b0ee187b..00000000 --- a/images/1.7.8.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.1/7.4-fpm/Dockerfile b/images/1.7.8.1/7.4-fpm/Dockerfile deleted file mode 100644 index 09b60483..00000000 --- a/images/1.7.8.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.1 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.1-apache/Dockerfile b/images/1.7.8.2/7.1-apache/Dockerfile deleted file mode 100644 index 5896b538..00000000 --- a/images/1.7.8.2/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.1-fpm/Dockerfile b/images/1.7.8.2/7.1-fpm/Dockerfile deleted file mode 100644 index 81568712..00000000 --- a/images/1.7.8.2/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.2-apache/Dockerfile b/images/1.7.8.2/7.2-apache/Dockerfile deleted file mode 100644 index 8edc46da..00000000 --- a/images/1.7.8.2/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.2-fpm/Dockerfile b/images/1.7.8.2/7.2-fpm/Dockerfile deleted file mode 100644 index 5b5d62de..00000000 --- a/images/1.7.8.2/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.3-apache/Dockerfile b/images/1.7.8.2/7.3-apache/Dockerfile deleted file mode 100644 index d0595115..00000000 --- a/images/1.7.8.2/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.3-fpm/Dockerfile b/images/1.7.8.2/7.3-fpm/Dockerfile deleted file mode 100644 index 901e6fc0..00000000 --- a/images/1.7.8.2/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.4-apache/Dockerfile b/images/1.7.8.2/7.4-apache/Dockerfile deleted file mode 100644 index 310abebf..00000000 --- a/images/1.7.8.2/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.2/7.4-fpm/Dockerfile b/images/1.7.8.2/7.4-fpm/Dockerfile deleted file mode 100644 index c0ca5a26..00000000 --- a/images/1.7.8.2/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.2 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.1-apache/Dockerfile b/images/1.7.8.3/7.1-apache/Dockerfile deleted file mode 100644 index c09e5192..00000000 --- a/images/1.7.8.3/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.1-fpm/Dockerfile b/images/1.7.8.3/7.1-fpm/Dockerfile deleted file mode 100644 index 7f3f5da5..00000000 --- a/images/1.7.8.3/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.2-apache/Dockerfile b/images/1.7.8.3/7.2-apache/Dockerfile deleted file mode 100644 index 761661e4..00000000 --- a/images/1.7.8.3/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.2-fpm/Dockerfile b/images/1.7.8.3/7.2-fpm/Dockerfile deleted file mode 100644 index f3b379ce..00000000 --- a/images/1.7.8.3/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.3-apache/Dockerfile b/images/1.7.8.3/7.3-apache/Dockerfile deleted file mode 100644 index fb646cf7..00000000 --- a/images/1.7.8.3/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.3-fpm/Dockerfile b/images/1.7.8.3/7.3-fpm/Dockerfile deleted file mode 100644 index 2b6dd0f7..00000000 --- a/images/1.7.8.3/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.4-apache/Dockerfile b/images/1.7.8.3/7.4-apache/Dockerfile deleted file mode 100644 index 8d13981f..00000000 --- a/images/1.7.8.3/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.3/7.4-fpm/Dockerfile b/images/1.7.8.3/7.4-fpm/Dockerfile deleted file mode 100644 index fd8b21fd..00000000 --- a/images/1.7.8.3/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.3 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.1-apache/Dockerfile b/images/1.7.8.4/7.1-apache/Dockerfile deleted file mode 100644 index 4a4d3112..00000000 --- a/images/1.7.8.4/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.1-fpm/Dockerfile b/images/1.7.8.4/7.1-fpm/Dockerfile deleted file mode 100644 index 486fd246..00000000 --- a/images/1.7.8.4/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.2-apache/Dockerfile b/images/1.7.8.4/7.2-apache/Dockerfile deleted file mode 100644 index e4eb822d..00000000 --- a/images/1.7.8.4/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.2-fpm/Dockerfile b/images/1.7.8.4/7.2-fpm/Dockerfile deleted file mode 100644 index 36d82806..00000000 --- a/images/1.7.8.4/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.3-apache/Dockerfile b/images/1.7.8.4/7.3-apache/Dockerfile deleted file mode 100644 index 3944c13b..00000000 --- a/images/1.7.8.4/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.3-fpm/Dockerfile b/images/1.7.8.4/7.3-fpm/Dockerfile deleted file mode 100644 index 2ed6281c..00000000 --- a/images/1.7.8.4/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.4-apache/Dockerfile b/images/1.7.8.4/7.4-apache/Dockerfile deleted file mode 100644 index 84f4d831..00000000 --- a/images/1.7.8.4/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.4/7.4-fpm/Dockerfile b/images/1.7.8.4/7.4-fpm/Dockerfile deleted file mode 100644 index 34f71e07..00000000 --- a/images/1.7.8.4/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.4 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.4.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.1-apache/Dockerfile b/images/1.7.8.5/7.1-apache/Dockerfile deleted file mode 100644 index babc286f..00000000 --- a/images/1.7.8.5/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.1-fpm/Dockerfile b/images/1.7.8.5/7.1-fpm/Dockerfile deleted file mode 100644 index 3770e848..00000000 --- a/images/1.7.8.5/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.2-apache/Dockerfile b/images/1.7.8.5/7.2-apache/Dockerfile deleted file mode 100644 index ba6c6846..00000000 --- a/images/1.7.8.5/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.2-fpm/Dockerfile b/images/1.7.8.5/7.2-fpm/Dockerfile deleted file mode 100644 index 8181a648..00000000 --- a/images/1.7.8.5/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.3-apache/Dockerfile b/images/1.7.8.5/7.3-apache/Dockerfile deleted file mode 100644 index 34f02fb8..00000000 --- a/images/1.7.8.5/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.3-fpm/Dockerfile b/images/1.7.8.5/7.3-fpm/Dockerfile deleted file mode 100644 index 7cb7fed8..00000000 --- a/images/1.7.8.5/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.4-apache/Dockerfile b/images/1.7.8.5/7.4-apache/Dockerfile deleted file mode 100644 index cde56b58..00000000 --- a/images/1.7.8.5/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.5/7.4-fpm/Dockerfile b/images/1.7.8.5/7.4-fpm/Dockerfile deleted file mode 100644 index 13e8e7f9..00000000 --- a/images/1.7.8.5/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.5 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.5.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.1-apache/Dockerfile b/images/1.7.8.6/7.1-apache/Dockerfile deleted file mode 100644 index 48003ea4..00000000 --- a/images/1.7.8.6/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.1-fpm/Dockerfile b/images/1.7.8.6/7.1-fpm/Dockerfile deleted file mode 100644 index c20a1b7d..00000000 --- a/images/1.7.8.6/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.2-apache/Dockerfile b/images/1.7.8.6/7.2-apache/Dockerfile deleted file mode 100644 index 42dbea3e..00000000 --- a/images/1.7.8.6/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.2-fpm/Dockerfile b/images/1.7.8.6/7.2-fpm/Dockerfile deleted file mode 100644 index ee8b9fec..00000000 --- a/images/1.7.8.6/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.3-apache/Dockerfile b/images/1.7.8.6/7.3-apache/Dockerfile deleted file mode 100644 index f96cf533..00000000 --- a/images/1.7.8.6/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.3-fpm/Dockerfile b/images/1.7.8.6/7.3-fpm/Dockerfile deleted file mode 100644 index 4eccacc4..00000000 --- a/images/1.7.8.6/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.4-apache/Dockerfile b/images/1.7.8.6/7.4-apache/Dockerfile deleted file mode 100644 index 0c1196ce..00000000 --- a/images/1.7.8.6/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.6/7.4-fpm/Dockerfile b/images/1.7.8.6/7.4-fpm/Dockerfile deleted file mode 100644 index 74ff7b4a..00000000 --- a/images/1.7.8.6/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.6 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.6.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.1-apache/Dockerfile b/images/1.7.8.7/7.1-apache/Dockerfile deleted file mode 100644 index 0a603fdf..00000000 --- a/images/1.7.8.7/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.1-fpm/Dockerfile b/images/1.7.8.7/7.1-fpm/Dockerfile deleted file mode 100644 index e2a57f25..00000000 --- a/images/1.7.8.7/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.2-apache/Dockerfile b/images/1.7.8.7/7.2-apache/Dockerfile deleted file mode 100644 index ff503c39..00000000 --- a/images/1.7.8.7/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.2-fpm/Dockerfile b/images/1.7.8.7/7.2-fpm/Dockerfile deleted file mode 100644 index 41d26eb7..00000000 --- a/images/1.7.8.7/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.3-apache/Dockerfile b/images/1.7.8.7/7.3-apache/Dockerfile deleted file mode 100644 index 212f7667..00000000 --- a/images/1.7.8.7/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.3-fpm/Dockerfile b/images/1.7.8.7/7.3-fpm/Dockerfile deleted file mode 100644 index e8341ab4..00000000 --- a/images/1.7.8.7/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.4-apache/Dockerfile b/images/1.7.8.7/7.4-apache/Dockerfile deleted file mode 100644 index 5d0f1fe0..00000000 --- a/images/1.7.8.7/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.7/7.4-fpm/Dockerfile b/images/1.7.8.7/7.4-fpm/Dockerfile deleted file mode 100644 index a3ce9375..00000000 --- a/images/1.7.8.7/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.7 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.7.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.1-apache/Dockerfile b/images/1.7.8.8/7.1-apache/Dockerfile deleted file mode 100644 index 88ab439b..00000000 --- a/images/1.7.8.8/7.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.1-fpm/Dockerfile b/images/1.7.8.8/7.1-fpm/Dockerfile deleted file mode 100644 index e9da1952..00000000 --- a/images/1.7.8.8/7.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.2-apache/Dockerfile b/images/1.7.8.8/7.2-apache/Dockerfile deleted file mode 100644 index 4b7494b6..00000000 --- a/images/1.7.8.8/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.2-fpm/Dockerfile b/images/1.7.8.8/7.2-fpm/Dockerfile deleted file mode 100644 index 44b1bcdf..00000000 --- a/images/1.7.8.8/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.3-apache/Dockerfile b/images/1.7.8.8/7.3-apache/Dockerfile deleted file mode 100644 index 06a59367..00000000 --- a/images/1.7.8.8/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.3-fpm/Dockerfile b/images/1.7.8.8/7.3-fpm/Dockerfile deleted file mode 100644 index cc7b433a..00000000 --- a/images/1.7.8.8/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.4-apache/Dockerfile b/images/1.7.8.8/7.4-apache/Dockerfile deleted file mode 100644 index 3ba8047f..00000000 --- a/images/1.7.8.8/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/1.7.8.8/7.4-fpm/Dockerfile b/images/1.7.8.8/7.4-fpm/Dockerfile deleted file mode 100644 index c29548d6..00000000 --- a/images/1.7.8.8/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 1.7.8.8 - -# Get PrestaShop -ADD https://www.prestashop.com/download/old/prestashop_1.7.8.8.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.2-apache/Dockerfile b/images/8.0.0-beta.1/7.2-apache/Dockerfile deleted file mode 100644 index c28d64b9..00000000 --- a/images/8.0.0-beta.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.2-fpm/Dockerfile b/images/8.0.0-beta.1/7.2-fpm/Dockerfile deleted file mode 100644 index e13924f4..00000000 --- a/images/8.0.0-beta.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.3-apache/Dockerfile b/images/8.0.0-beta.1/7.3-apache/Dockerfile deleted file mode 100644 index 9a2c1152..00000000 --- a/images/8.0.0-beta.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.3-fpm/Dockerfile b/images/8.0.0-beta.1/7.3-fpm/Dockerfile deleted file mode 100644 index c3955388..00000000 --- a/images/8.0.0-beta.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.4-apache/Dockerfile b/images/8.0.0-beta.1/7.4-apache/Dockerfile deleted file mode 100644 index 5ba529b8..00000000 --- a/images/8.0.0-beta.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/7.4-fpm/Dockerfile b/images/8.0.0-beta.1/7.4-fpm/Dockerfile deleted file mode 100644 index 33687011..00000000 --- a/images/8.0.0-beta.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/8.0-apache/Dockerfile b/images/8.0.0-beta.1/8.0-apache/Dockerfile deleted file mode 100644 index afbec0b5..00000000 --- a/images/8.0.0-beta.1/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/8.0-fpm/Dockerfile b/images/8.0.0-beta.1/8.0-fpm/Dockerfile deleted file mode 100644 index 2cc5e0c7..00000000 --- a/images/8.0.0-beta.1/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/8.1-apache/Dockerfile b/images/8.0.0-beta.1/8.1-apache/Dockerfile deleted file mode 100644 index 208fb932..00000000 --- a/images/8.0.0-beta.1/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-beta.1/8.1-fpm/Dockerfile b/images/8.0.0-beta.1/8.1-fpm/Dockerfile deleted file mode 100644 index c2a6db17..00000000 --- a/images/8.0.0-beta.1/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-beta.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-beta.1/prestashop_8.0.0-beta.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.2-apache/Dockerfile b/images/8.0.0-rc.1/7.2-apache/Dockerfile deleted file mode 100644 index b6431f1b..00000000 --- a/images/8.0.0-rc.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.2-fpm/Dockerfile b/images/8.0.0-rc.1/7.2-fpm/Dockerfile deleted file mode 100644 index 98050732..00000000 --- a/images/8.0.0-rc.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.3-apache/Dockerfile b/images/8.0.0-rc.1/7.3-apache/Dockerfile deleted file mode 100644 index c86889dd..00000000 --- a/images/8.0.0-rc.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.3-fpm/Dockerfile b/images/8.0.0-rc.1/7.3-fpm/Dockerfile deleted file mode 100644 index 8818ee87..00000000 --- a/images/8.0.0-rc.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.4-apache/Dockerfile b/images/8.0.0-rc.1/7.4-apache/Dockerfile deleted file mode 100644 index 3cdf8d5c..00000000 --- a/images/8.0.0-rc.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/7.4-fpm/Dockerfile b/images/8.0.0-rc.1/7.4-fpm/Dockerfile deleted file mode 100644 index 53844736..00000000 --- a/images/8.0.0-rc.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/8.0-apache/Dockerfile b/images/8.0.0-rc.1/8.0-apache/Dockerfile deleted file mode 100644 index 866a9fcd..00000000 --- a/images/8.0.0-rc.1/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/8.0-fpm/Dockerfile b/images/8.0.0-rc.1/8.0-fpm/Dockerfile deleted file mode 100644 index 3fa70f77..00000000 --- a/images/8.0.0-rc.1/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/8.1-apache/Dockerfile b/images/8.0.0-rc.1/8.1-apache/Dockerfile deleted file mode 100644 index 51c72a66..00000000 --- a/images/8.0.0-rc.1/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0-rc.1/8.1-fpm/Dockerfile b/images/8.0.0-rc.1/8.1-fpm/Dockerfile deleted file mode 100644 index 8a071194..00000000 --- a/images/8.0.0-rc.1/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0-rc.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0-rc.1/prestashop_8.0.0-rc.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.2-apache/Dockerfile b/images/8.0.0/7.2-apache/Dockerfile deleted file mode 100644 index e2bde898..00000000 --- a/images/8.0.0/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.2-fpm/Dockerfile b/images/8.0.0/7.2-fpm/Dockerfile deleted file mode 100644 index 0bf727ac..00000000 --- a/images/8.0.0/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.3-apache/Dockerfile b/images/8.0.0/7.3-apache/Dockerfile deleted file mode 100644 index 5a1953f8..00000000 --- a/images/8.0.0/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.3-fpm/Dockerfile b/images/8.0.0/7.3-fpm/Dockerfile deleted file mode 100644 index 50293023..00000000 --- a/images/8.0.0/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.4-apache/Dockerfile b/images/8.0.0/7.4-apache/Dockerfile deleted file mode 100644 index 25597626..00000000 --- a/images/8.0.0/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/7.4-fpm/Dockerfile b/images/8.0.0/7.4-fpm/Dockerfile deleted file mode 100644 index 7a63b691..00000000 --- a/images/8.0.0/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/8.0-apache/Dockerfile b/images/8.0.0/8.0-apache/Dockerfile deleted file mode 100644 index e932efc5..00000000 --- a/images/8.0.0/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/8.0-fpm/Dockerfile b/images/8.0.0/8.0-fpm/Dockerfile deleted file mode 100644 index 70f278bb..00000000 --- a/images/8.0.0/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/8.1-apache/Dockerfile b/images/8.0.0/8.1-apache/Dockerfile deleted file mode 100644 index b968bcfb..00000000 --- a/images/8.0.0/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.0/8.1-fpm/Dockerfile b/images/8.0.0/8.1-fpm/Dockerfile deleted file mode 100644 index eca5c8fd..00000000 --- a/images/8.0.0/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.0 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.0/prestashop_8.0.0.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.2-apache/Dockerfile b/images/8.0.1/7.2-apache/Dockerfile deleted file mode 100644 index ed40f593..00000000 --- a/images/8.0.1/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.2-fpm/Dockerfile b/images/8.0.1/7.2-fpm/Dockerfile deleted file mode 100644 index 046ad2a2..00000000 --- a/images/8.0.1/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.3-apache/Dockerfile b/images/8.0.1/7.3-apache/Dockerfile deleted file mode 100644 index b4489460..00000000 --- a/images/8.0.1/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.3-fpm/Dockerfile b/images/8.0.1/7.3-fpm/Dockerfile deleted file mode 100644 index c9d3f3b9..00000000 --- a/images/8.0.1/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.4-apache/Dockerfile b/images/8.0.1/7.4-apache/Dockerfile deleted file mode 100644 index 409c9ed4..00000000 --- a/images/8.0.1/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/7.4-fpm/Dockerfile b/images/8.0.1/7.4-fpm/Dockerfile deleted file mode 100644 index 55a5ff3f..00000000 --- a/images/8.0.1/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/8.0-apache/Dockerfile b/images/8.0.1/8.0-apache/Dockerfile deleted file mode 100644 index 1f63db11..00000000 --- a/images/8.0.1/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/8.0-fpm/Dockerfile b/images/8.0.1/8.0-fpm/Dockerfile deleted file mode 100644 index 73b582a7..00000000 --- a/images/8.0.1/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/8.1-apache/Dockerfile b/images/8.0.1/8.1-apache/Dockerfile deleted file mode 100644 index faef9230..00000000 --- a/images/8.0.1/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.1/8.1-fpm/Dockerfile b/images/8.0.1/8.1-fpm/Dockerfile deleted file mode 100644 index 4b26f7eb..00000000 --- a/images/8.0.1/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.1 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.1/prestashop_8.0.1.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.2-apache/Dockerfile b/images/8.0.2/7.2-apache/Dockerfile deleted file mode 100644 index 32c95594..00000000 --- a/images/8.0.2/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.2-fpm/Dockerfile b/images/8.0.2/7.2-fpm/Dockerfile deleted file mode 100644 index 1b49c161..00000000 --- a/images/8.0.2/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.3-apache/Dockerfile b/images/8.0.2/7.3-apache/Dockerfile deleted file mode 100644 index 5706891d..00000000 --- a/images/8.0.2/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.3-fpm/Dockerfile b/images/8.0.2/7.3-fpm/Dockerfile deleted file mode 100644 index 9b8e64c2..00000000 --- a/images/8.0.2/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.4-apache/Dockerfile b/images/8.0.2/7.4-apache/Dockerfile deleted file mode 100644 index 0bd3933f..00000000 --- a/images/8.0.2/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/7.4-fpm/Dockerfile b/images/8.0.2/7.4-fpm/Dockerfile deleted file mode 100644 index 39591bba..00000000 --- a/images/8.0.2/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/8.0-apache/Dockerfile b/images/8.0.2/8.0-apache/Dockerfile deleted file mode 100644 index 20d2c874..00000000 --- a/images/8.0.2/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/8.0-fpm/Dockerfile b/images/8.0.2/8.0-fpm/Dockerfile deleted file mode 100644 index 0cf51c4a..00000000 --- a/images/8.0.2/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/8.1-apache/Dockerfile b/images/8.0.2/8.1-apache/Dockerfile deleted file mode 100644 index f07379f1..00000000 --- a/images/8.0.2/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.2/8.1-fpm/Dockerfile b/images/8.0.2/8.1-fpm/Dockerfile deleted file mode 100644 index a537568e..00000000 --- a/images/8.0.2/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.2 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.2-apache/Dockerfile b/images/8.0.3/7.2-apache/Dockerfile deleted file mode 100644 index ed4c57cb..00000000 --- a/images/8.0.3/7.2-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.2-fpm/Dockerfile b/images/8.0.3/7.2-fpm/Dockerfile deleted file mode 100644 index 076b2c84..00000000 --- a/images/8.0.3/7.2-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.3-apache/Dockerfile b/images/8.0.3/7.3-apache/Dockerfile deleted file mode 100644 index 960a4d50..00000000 --- a/images/8.0.3/7.3-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.3-fpm/Dockerfile b/images/8.0.3/7.3-fpm/Dockerfile deleted file mode 100644 index 2f8fa374..00000000 --- a/images/8.0.3/7.3-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.4-apache/Dockerfile b/images/8.0.3/7.4-apache/Dockerfile deleted file mode 100644 index 0af9f4d0..00000000 --- a/images/8.0.3/7.4-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/7.4-fpm/Dockerfile b/images/8.0.3/7.4-fpm/Dockerfile deleted file mode 100644 index 9e01dbb4..00000000 --- a/images/8.0.3/7.4-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/8.0-apache/Dockerfile b/images/8.0.3/8.0-apache/Dockerfile deleted file mode 100644 index 34d31b23..00000000 --- a/images/8.0.3/8.0-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/8.0-fpm/Dockerfile b/images/8.0.3/8.0-fpm/Dockerfile deleted file mode 100644 index 0d661f17..00000000 --- a/images/8.0.3/8.0-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/8.1-apache/Dockerfile b/images/8.0.3/8.1-apache/Dockerfile deleted file mode 100644 index af0f1ce6..00000000 --- a/images/8.0.3/8.1-apache/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/8.0.3/8.1-fpm/Dockerfile b/images/8.0.3/8.1-fpm/Dockerfile deleted file mode 100644 index 7f06da0b..00000000 --- a/images/8.0.3/8.1-fpm/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION 8.0.3 - -# Get PrestaShop -ADD https://github.com/PrestaShop/PrestaShop/releases/download/8.0.3/prestashop_8.0.3.zip /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/images/nightly/7.2-apache/Dockerfile b/images/nightly/7.2-apache/Dockerfile deleted file mode 100644 index c1e2f19a..00000000 --- a/images/nightly/7.2-apache/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/7.2-fpm/Dockerfile b/images/nightly/7.2-fpm/Dockerfile deleted file mode 100644 index f72589c9..00000000 --- a/images/nightly/7.2-fpm/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/7.3-apache/Dockerfile b/images/nightly/7.3-apache/Dockerfile deleted file mode 100644 index 5b30a624..00000000 --- a/images/nightly/7.3-apache/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/7.3-fpm/Dockerfile b/images/nightly/7.3-fpm/Dockerfile deleted file mode 100644 index 6cfc8385..00000000 --- a/images/nightly/7.3-fpm/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/7.4-apache/Dockerfile b/images/nightly/7.4-apache/Dockerfile deleted file mode 100644 index 733b8552..00000000 --- a/images/nightly/7.4-apache/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/7.4-fpm/Dockerfile b/images/nightly/7.4-fpm/Dockerfile deleted file mode 100644 index f4ce0d97..00000000 --- a/images/nightly/7.4-fpm/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/8.0-apache/Dockerfile b/images/nightly/8.0-apache/Dockerfile deleted file mode 100644 index 8320fe58..00000000 --- a/images/nightly/8.0-apache/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/8.0-fpm/Dockerfile b/images/nightly/8.0-fpm/Dockerfile deleted file mode 100644 index e1613c81..00000000 --- a/images/nightly/8.0-fpm/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/8.1-apache/Dockerfile b/images/nightly/8.1-apache/Dockerfile deleted file mode 100644 index e86082ac..00000000 --- a/images/nightly/8.1-apache/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/images/nightly/8.1-fpm/Dockerfile b/images/nightly/8.1-fpm/Dockerfile deleted file mode 100644 index 4498fae2..00000000 --- a/images/nightly/8.1-fpm/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION nightly - -ENV PATH /root/google-cloud-sdk/bin/:$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/Dockerfile-nightly.model b/old/Dockerfile-nightly.model similarity index 100% rename from Dockerfile-nightly.model rename to old/Dockerfile-nightly.model diff --git a/Dockerfile.model b/old/Dockerfile.model similarity index 100% rename from Dockerfile.model rename to old/Dockerfile.model diff --git a/base/Dockerfile.model b/old/base/Dockerfile.model similarity index 60% rename from base/Dockerfile.model rename to old/base/Dockerfile.model index 6f7328d3..0a431656 100644 --- a/base/Dockerfile.model +++ b/old/base/Dockerfile.model @@ -1,48 +1,51 @@ -FROM php:{PHP_TAG} +FROM php:{PHP_VERSION}-{PHP-FLAVOUR} LABEL maintainer="PrestaShop Core Team " -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - +# Install PrestaShop PHP requirements RUN apt-get update \ && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - + libjpeg62-turbo-dev \ + libpcre3-dev \ + libpng-dev \ + libwebp-dev \ + libfreetype6-dev \ + libxml2-dev \ + libicu-dev \ + libzip-dev \ + default-mysql-client \ + wget \ + unzip \ + libonig-dev RUN rm -rf /var/lib/apt/lists/* RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath + +ENV PS_DOMAIN="" \ + DB_SERVER="" \ + DB_PORT=3306 \ + DB_NAME=prestashop \ + DB_USER=root \ + DB_PASSWD=admin \ + DB_PREFIX=ps_ \ + ADMIN_MAIL=demo@prestashop.com \ + ADMIN_PASSWD=prestashop_demo \ + PS_LANGUAGE=en \ + PS_COUNTRY=GB \ + PS_ALL_LANGUAGES=0 \ + PS_INSTALL_AUTO=0 \ + PS_ERASE_DB=0 \ + PS_INSTALL_DB=0 \ + PS_DEV_MODE=0 \ + PS_HOST_MODE=0 \ + PS_DEMO_MODE=0 \ + PS_ENABLE_SSL=0 \ + PS_HANDLE_DYNAMIC_DOMAIN=0 \ + PS_FOLDER_ADMIN=admin \ + PS_FOLDER_INSTALL=install + + + RUN docker-php-source extract \ && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ diff --git a/base/config_files/defines_custom.inc.php b/old/base/config_files/defines_custom.inc.php similarity index 100% rename from base/config_files/defines_custom.inc.php rename to old/base/config_files/defines_custom.inc.php diff --git a/base/config_files/docker_nightly_run.sh b/old/base/config_files/docker_nightly_run.sh similarity index 100% rename from base/config_files/docker_nightly_run.sh rename to old/base/config_files/docker_nightly_run.sh diff --git a/base/config_files/docker_run.sh b/old/base/config_files/docker_run.sh similarity index 100% rename from base/config_files/docker_run.sh rename to old/base/config_files/docker_run.sh diff --git a/base/config_files/docker_updt_ps_domains.php b/old/base/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/config_files/docker_updt_ps_domains.php rename to old/base/config_files/docker_updt_ps_domains.php diff --git a/base/config_files/php.ini b/old/base/config_files/php.ini similarity index 100% rename from base/config_files/php.ini rename to old/base/config_files/php.ini diff --git a/base/config_files/ps-extractor.sh b/old/base/config_files/ps-extractor.sh similarity index 100% rename from base/config_files/ps-extractor.sh rename to old/base/config_files/ps-extractor.sh diff --git a/base/generate_tags.sh b/old/base/generate_tags.sh similarity index 100% rename from base/generate_tags.sh rename to old/base/generate_tags.sh diff --git a/base/images/7.1-apache/Dockerfile b/old/base/images/7.1-apache/Dockerfile similarity index 100% rename from base/images/7.1-apache/Dockerfile rename to old/base/images/7.1-apache/Dockerfile diff --git a/base/images/7.1-apache/config_files/defines_custom.inc.php b/old/base/images/7.1-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.1-apache/config_files/defines_custom.inc.php rename to old/base/images/7.1-apache/config_files/defines_custom.inc.php diff --git a/base/images/7.1-apache/config_files/docker_nightly_run.sh b/old/base/images/7.1-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.1-apache/config_files/docker_nightly_run.sh rename to old/base/images/7.1-apache/config_files/docker_nightly_run.sh diff --git a/base/images/7.1-apache/config_files/docker_run.sh b/old/base/images/7.1-apache/config_files/docker_run.sh similarity index 100% rename from base/images/7.1-apache/config_files/docker_run.sh rename to old/base/images/7.1-apache/config_files/docker_run.sh diff --git a/base/images/7.1-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.1-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.1-apache/config_files/php.ini b/old/base/images/7.1-apache/config_files/php.ini similarity index 100% rename from base/images/7.1-apache/config_files/php.ini rename to old/base/images/7.1-apache/config_files/php.ini diff --git a/base/images/7.1-apache/config_files/ps-extractor.sh b/old/base/images/7.1-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.1-apache/config_files/ps-extractor.sh rename to old/base/images/7.1-apache/config_files/ps-extractor.sh diff --git a/base/images/7.1-fpm/Dockerfile b/old/base/images/7.1-fpm/Dockerfile similarity index 100% rename from base/images/7.1-fpm/Dockerfile rename to old/base/images/7.1-fpm/Dockerfile diff --git a/base/images/7.1-fpm/config_files/defines_custom.inc.php b/old/base/images/7.1-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.1-fpm/config_files/defines_custom.inc.php rename to old/base/images/7.1-fpm/config_files/defines_custom.inc.php diff --git a/base/images/7.1-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.1-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.1-fpm/config_files/docker_nightly_run.sh rename to old/base/images/7.1-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/7.1-fpm/config_files/docker_run.sh b/old/base/images/7.1-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/7.1-fpm/config_files/docker_run.sh rename to old/base/images/7.1-fpm/config_files/docker_run.sh diff --git a/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.1-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.1-fpm/config_files/php.ini b/old/base/images/7.1-fpm/config_files/php.ini similarity index 100% rename from base/images/7.1-fpm/config_files/php.ini rename to old/base/images/7.1-fpm/config_files/php.ini diff --git a/base/images/7.1-fpm/config_files/ps-extractor.sh b/old/base/images/7.1-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.1-fpm/config_files/ps-extractor.sh rename to old/base/images/7.1-fpm/config_files/ps-extractor.sh diff --git a/base/images/7.2-apache/Dockerfile b/old/base/images/7.2-apache/Dockerfile similarity index 100% rename from base/images/7.2-apache/Dockerfile rename to old/base/images/7.2-apache/Dockerfile diff --git a/base/images/7.2-apache/config_files/defines_custom.inc.php b/old/base/images/7.2-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.2-apache/config_files/defines_custom.inc.php rename to old/base/images/7.2-apache/config_files/defines_custom.inc.php diff --git a/base/images/7.2-apache/config_files/docker_nightly_run.sh b/old/base/images/7.2-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.2-apache/config_files/docker_nightly_run.sh rename to old/base/images/7.2-apache/config_files/docker_nightly_run.sh diff --git a/base/images/7.2-apache/config_files/docker_run.sh b/old/base/images/7.2-apache/config_files/docker_run.sh similarity index 100% rename from base/images/7.2-apache/config_files/docker_run.sh rename to old/base/images/7.2-apache/config_files/docker_run.sh diff --git a/base/images/7.2-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.2-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.2-apache/config_files/php.ini b/old/base/images/7.2-apache/config_files/php.ini similarity index 100% rename from base/images/7.2-apache/config_files/php.ini rename to old/base/images/7.2-apache/config_files/php.ini diff --git a/base/images/7.2-apache/config_files/ps-extractor.sh b/old/base/images/7.2-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.2-apache/config_files/ps-extractor.sh rename to old/base/images/7.2-apache/config_files/ps-extractor.sh diff --git a/base/images/7.2-fpm/Dockerfile b/old/base/images/7.2-fpm/Dockerfile similarity index 100% rename from base/images/7.2-fpm/Dockerfile rename to old/base/images/7.2-fpm/Dockerfile diff --git a/base/images/7.2-fpm/config_files/defines_custom.inc.php b/old/base/images/7.2-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.2-fpm/config_files/defines_custom.inc.php rename to old/base/images/7.2-fpm/config_files/defines_custom.inc.php diff --git a/base/images/7.2-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.2-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.2-fpm/config_files/docker_nightly_run.sh rename to old/base/images/7.2-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/7.2-fpm/config_files/docker_run.sh b/old/base/images/7.2-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/7.2-fpm/config_files/docker_run.sh rename to old/base/images/7.2-fpm/config_files/docker_run.sh diff --git a/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.2-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.2-fpm/config_files/php.ini b/old/base/images/7.2-fpm/config_files/php.ini similarity index 100% rename from base/images/7.2-fpm/config_files/php.ini rename to old/base/images/7.2-fpm/config_files/php.ini diff --git a/base/images/7.2-fpm/config_files/ps-extractor.sh b/old/base/images/7.2-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.2-fpm/config_files/ps-extractor.sh rename to old/base/images/7.2-fpm/config_files/ps-extractor.sh diff --git a/base/images/7.3-apache/Dockerfile b/old/base/images/7.3-apache/Dockerfile similarity index 100% rename from base/images/7.3-apache/Dockerfile rename to old/base/images/7.3-apache/Dockerfile diff --git a/base/images/7.3-apache/config_files/defines_custom.inc.php b/old/base/images/7.3-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.3-apache/config_files/defines_custom.inc.php rename to old/base/images/7.3-apache/config_files/defines_custom.inc.php diff --git a/base/images/7.3-apache/config_files/docker_nightly_run.sh b/old/base/images/7.3-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.3-apache/config_files/docker_nightly_run.sh rename to old/base/images/7.3-apache/config_files/docker_nightly_run.sh diff --git a/base/images/7.3-apache/config_files/docker_run.sh b/old/base/images/7.3-apache/config_files/docker_run.sh similarity index 100% rename from base/images/7.3-apache/config_files/docker_run.sh rename to old/base/images/7.3-apache/config_files/docker_run.sh diff --git a/base/images/7.3-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.3-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.3-apache/config_files/php.ini b/old/base/images/7.3-apache/config_files/php.ini similarity index 100% rename from base/images/7.3-apache/config_files/php.ini rename to old/base/images/7.3-apache/config_files/php.ini diff --git a/base/images/7.3-apache/config_files/ps-extractor.sh b/old/base/images/7.3-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.3-apache/config_files/ps-extractor.sh rename to old/base/images/7.3-apache/config_files/ps-extractor.sh diff --git a/base/images/7.3-fpm/Dockerfile b/old/base/images/7.3-fpm/Dockerfile similarity index 100% rename from base/images/7.3-fpm/Dockerfile rename to old/base/images/7.3-fpm/Dockerfile diff --git a/base/images/7.3-fpm/config_files/defines_custom.inc.php b/old/base/images/7.3-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.3-fpm/config_files/defines_custom.inc.php rename to old/base/images/7.3-fpm/config_files/defines_custom.inc.php diff --git a/base/images/7.3-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.3-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.3-fpm/config_files/docker_nightly_run.sh rename to old/base/images/7.3-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/7.3-fpm/config_files/docker_run.sh b/old/base/images/7.3-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/7.3-fpm/config_files/docker_run.sh rename to old/base/images/7.3-fpm/config_files/docker_run.sh diff --git a/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.3-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.3-fpm/config_files/php.ini b/old/base/images/7.3-fpm/config_files/php.ini similarity index 100% rename from base/images/7.3-fpm/config_files/php.ini rename to old/base/images/7.3-fpm/config_files/php.ini diff --git a/base/images/7.3-fpm/config_files/ps-extractor.sh b/old/base/images/7.3-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.3-fpm/config_files/ps-extractor.sh rename to old/base/images/7.3-fpm/config_files/ps-extractor.sh diff --git a/base/images/7.4-apache/Dockerfile b/old/base/images/7.4-apache/Dockerfile similarity index 100% rename from base/images/7.4-apache/Dockerfile rename to old/base/images/7.4-apache/Dockerfile diff --git a/base/images/7.4-apache/config_files/defines_custom.inc.php b/old/base/images/7.4-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.4-apache/config_files/defines_custom.inc.php rename to old/base/images/7.4-apache/config_files/defines_custom.inc.php diff --git a/base/images/7.4-apache/config_files/docker_nightly_run.sh b/old/base/images/7.4-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.4-apache/config_files/docker_nightly_run.sh rename to old/base/images/7.4-apache/config_files/docker_nightly_run.sh diff --git a/base/images/7.4-apache/config_files/docker_run.sh b/old/base/images/7.4-apache/config_files/docker_run.sh similarity index 100% rename from base/images/7.4-apache/config_files/docker_run.sh rename to old/base/images/7.4-apache/config_files/docker_run.sh diff --git a/base/images/7.4-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.4-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.4-apache/config_files/php.ini b/old/base/images/7.4-apache/config_files/php.ini similarity index 100% rename from base/images/7.4-apache/config_files/php.ini rename to old/base/images/7.4-apache/config_files/php.ini diff --git a/base/images/7.4-apache/config_files/ps-extractor.sh b/old/base/images/7.4-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.4-apache/config_files/ps-extractor.sh rename to old/base/images/7.4-apache/config_files/ps-extractor.sh diff --git a/base/images/7.4-fpm/Dockerfile b/old/base/images/7.4-fpm/Dockerfile similarity index 100% rename from base/images/7.4-fpm/Dockerfile rename to old/base/images/7.4-fpm/Dockerfile diff --git a/base/images/7.4-fpm/config_files/defines_custom.inc.php b/old/base/images/7.4-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/7.4-fpm/config_files/defines_custom.inc.php rename to old/base/images/7.4-fpm/config_files/defines_custom.inc.php diff --git a/base/images/7.4-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.4-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/7.4-fpm/config_files/docker_nightly_run.sh rename to old/base/images/7.4-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/7.4-fpm/config_files/docker_run.sh b/old/base/images/7.4-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/7.4-fpm/config_files/docker_run.sh rename to old/base/images/7.4-fpm/config_files/docker_run.sh diff --git a/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/7.4-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/7.4-fpm/config_files/php.ini b/old/base/images/7.4-fpm/config_files/php.ini similarity index 100% rename from base/images/7.4-fpm/config_files/php.ini rename to old/base/images/7.4-fpm/config_files/php.ini diff --git a/base/images/7.4-fpm/config_files/ps-extractor.sh b/old/base/images/7.4-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/7.4-fpm/config_files/ps-extractor.sh rename to old/base/images/7.4-fpm/config_files/ps-extractor.sh diff --git a/base/images/8.0-apache/Dockerfile b/old/base/images/8.0-apache/Dockerfile similarity index 100% rename from base/images/8.0-apache/Dockerfile rename to old/base/images/8.0-apache/Dockerfile diff --git a/base/images/8.0-apache/config_files/defines_custom.inc.php b/old/base/images/8.0-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/8.0-apache/config_files/defines_custom.inc.php rename to old/base/images/8.0-apache/config_files/defines_custom.inc.php diff --git a/base/images/8.0-apache/config_files/docker_nightly_run.sh b/old/base/images/8.0-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/8.0-apache/config_files/docker_nightly_run.sh rename to old/base/images/8.0-apache/config_files/docker_nightly_run.sh diff --git a/base/images/8.0-apache/config_files/docker_run.sh b/old/base/images/8.0-apache/config_files/docker_run.sh similarity index 100% rename from base/images/8.0-apache/config_files/docker_run.sh rename to old/base/images/8.0-apache/config_files/docker_run.sh diff --git a/base/images/8.0-apache/config_files/docker_updt_ps_domains.php b/old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/8.0-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/8.0-apache/config_files/php.ini b/old/base/images/8.0-apache/config_files/php.ini similarity index 100% rename from base/images/8.0-apache/config_files/php.ini rename to old/base/images/8.0-apache/config_files/php.ini diff --git a/base/images/8.0-apache/config_files/ps-extractor.sh b/old/base/images/8.0-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/8.0-apache/config_files/ps-extractor.sh rename to old/base/images/8.0-apache/config_files/ps-extractor.sh diff --git a/base/images/8.0-fpm/Dockerfile b/old/base/images/8.0-fpm/Dockerfile similarity index 100% rename from base/images/8.0-fpm/Dockerfile rename to old/base/images/8.0-fpm/Dockerfile diff --git a/base/images/8.0-fpm/config_files/defines_custom.inc.php b/old/base/images/8.0-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/8.0-fpm/config_files/defines_custom.inc.php rename to old/base/images/8.0-fpm/config_files/defines_custom.inc.php diff --git a/base/images/8.0-fpm/config_files/docker_nightly_run.sh b/old/base/images/8.0-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/8.0-fpm/config_files/docker_nightly_run.sh rename to old/base/images/8.0-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/8.0-fpm/config_files/docker_run.sh b/old/base/images/8.0-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/8.0-fpm/config_files/docker_run.sh rename to old/base/images/8.0-fpm/config_files/docker_run.sh diff --git a/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/8.0-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/8.0-fpm/config_files/php.ini b/old/base/images/8.0-fpm/config_files/php.ini similarity index 100% rename from base/images/8.0-fpm/config_files/php.ini rename to old/base/images/8.0-fpm/config_files/php.ini diff --git a/base/images/8.0-fpm/config_files/ps-extractor.sh b/old/base/images/8.0-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/8.0-fpm/config_files/ps-extractor.sh rename to old/base/images/8.0-fpm/config_files/ps-extractor.sh diff --git a/base/images/8.1-apache/Dockerfile b/old/base/images/8.1-apache/Dockerfile similarity index 100% rename from base/images/8.1-apache/Dockerfile rename to old/base/images/8.1-apache/Dockerfile diff --git a/base/images/8.1-apache/config_files/defines_custom.inc.php b/old/base/images/8.1-apache/config_files/defines_custom.inc.php similarity index 100% rename from base/images/8.1-apache/config_files/defines_custom.inc.php rename to old/base/images/8.1-apache/config_files/defines_custom.inc.php diff --git a/base/images/8.1-apache/config_files/docker_nightly_run.sh b/old/base/images/8.1-apache/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/8.1-apache/config_files/docker_nightly_run.sh rename to old/base/images/8.1-apache/config_files/docker_nightly_run.sh diff --git a/base/images/8.1-apache/config_files/docker_run.sh b/old/base/images/8.1-apache/config_files/docker_run.sh similarity index 100% rename from base/images/8.1-apache/config_files/docker_run.sh rename to old/base/images/8.1-apache/config_files/docker_run.sh diff --git a/base/images/8.1-apache/config_files/docker_updt_ps_domains.php b/old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/8.1-apache/config_files/docker_updt_ps_domains.php rename to old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php diff --git a/base/images/8.1-apache/config_files/php.ini b/old/base/images/8.1-apache/config_files/php.ini similarity index 100% rename from base/images/8.1-apache/config_files/php.ini rename to old/base/images/8.1-apache/config_files/php.ini diff --git a/base/images/8.1-apache/config_files/ps-extractor.sh b/old/base/images/8.1-apache/config_files/ps-extractor.sh similarity index 100% rename from base/images/8.1-apache/config_files/ps-extractor.sh rename to old/base/images/8.1-apache/config_files/ps-extractor.sh diff --git a/base/images/8.1-fpm/Dockerfile b/old/base/images/8.1-fpm/Dockerfile similarity index 100% rename from base/images/8.1-fpm/Dockerfile rename to old/base/images/8.1-fpm/Dockerfile diff --git a/base/images/8.1-fpm/config_files/defines_custom.inc.php b/old/base/images/8.1-fpm/config_files/defines_custom.inc.php similarity index 100% rename from base/images/8.1-fpm/config_files/defines_custom.inc.php rename to old/base/images/8.1-fpm/config_files/defines_custom.inc.php diff --git a/base/images/8.1-fpm/config_files/docker_nightly_run.sh b/old/base/images/8.1-fpm/config_files/docker_nightly_run.sh similarity index 100% rename from base/images/8.1-fpm/config_files/docker_nightly_run.sh rename to old/base/images/8.1-fpm/config_files/docker_nightly_run.sh diff --git a/base/images/8.1-fpm/config_files/docker_run.sh b/old/base/images/8.1-fpm/config_files/docker_run.sh similarity index 100% rename from base/images/8.1-fpm/config_files/docker_run.sh rename to old/base/images/8.1-fpm/config_files/docker_run.sh diff --git a/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php similarity index 100% rename from base/images/8.1-fpm/config_files/docker_updt_ps_domains.php rename to old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php diff --git a/base/images/8.1-fpm/config_files/php.ini b/old/base/images/8.1-fpm/config_files/php.ini similarity index 100% rename from base/images/8.1-fpm/config_files/php.ini rename to old/base/images/8.1-fpm/config_files/php.ini diff --git a/base/images/8.1-fpm/config_files/ps-extractor.sh b/old/base/images/8.1-fpm/config_files/ps-extractor.sh similarity index 100% rename from base/images/8.1-fpm/config_files/ps-extractor.sh rename to old/base/images/8.1-fpm/config_files/ps-extractor.sh diff --git a/base/tags.txt b/old/base/tags.txt similarity index 100% rename from base/tags.txt rename to old/base/tags.txt diff --git a/prestashop_docker/__init__.py b/old/prestashop_docker/__init__.py similarity index 100% rename from prestashop_docker/__init__.py rename to old/prestashop_docker/__init__.py diff --git a/prestashop_docker/docker_api.py b/old/prestashop_docker/docker_api.py similarity index 100% rename from prestashop_docker/docker_api.py rename to old/prestashop_docker/docker_api.py diff --git a/prestashop_docker/generator.py b/old/prestashop_docker/generator.py similarity index 100% rename from prestashop_docker/generator.py rename to old/prestashop_docker/generator.py diff --git a/prestashop_docker/stream.py b/old/prestashop_docker/stream.py similarity index 100% rename from prestashop_docker/stream.py rename to old/prestashop_docker/stream.py diff --git a/prestashop_docker/tag_manager.py b/old/prestashop_docker/tag_manager.py similarity index 100% rename from prestashop_docker/tag_manager.py rename to old/prestashop_docker/tag_manager.py diff --git a/prestashop_docker/version_manager.py b/old/prestashop_docker/version_manager.py similarity index 100% rename from prestashop_docker/version_manager.py rename to old/prestashop_docker/version_manager.py diff --git a/prestashop-versions.json b/prestashop-versions.json new file mode 100644 index 00000000..d584e669 --- /dev/null +++ b/prestashop-versions.json @@ -0,0 +1,44 @@ +{ + "^1.6.1": { + "php": { + "recommended": "7.1", + "compatible": ["5.2", "5.3", "5.4", "5.5", "5.6", "7.0", "7.1"] + } + }, + "^1.7.[0-3]": { + "php": { + "recommended": "7.1", + "compatible": ["5.4", "5.5", "5.6", "7.0", "7.1"] + } + }, + "^1.7.7.4": { + "php": { + "recommended": "7.1", + "compatible": ["5.6", "7.0", "7.1"] + } + }, + "^1.7.[5-6]": { + "php": { + "recommended": "7.2", + "compatible": ["5.6", "7.0", "7.1", "7.2"] + } + }, + "^1.7.7": { + "php": { + "recommended": "7.3", + "compatible": ["7.1", "7.2", "7.3"] + } + }, + "^1.7.8": { + "php": { + "recommended": "7.4", + "compatible": ["7.1", "7.2", "7.3", "7.4"] + } + }, + "^8.0": { + "php": { + "recommended": "8.1", + "compatible": ["7.2", "7.3", "7.4", "8.0", "8.1"] + } + } +} diff --git a/prestashop_docker.py b/prestashop_docker.py deleted file mode 100755 index 3e91eddc..00000000 --- a/prestashop_docker.py +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/env python - -import docker -from versions import VERSIONS -from prestashop_docker.generator import Generator -from prestashop_docker.tag_manager import TagManager -from prestashop_docker.docker_api import DockerApi -from prestashop_docker.version_manager import VersionManager -from os import path -import argparse -import logging - - -def get_parser(): - parser = argparse.ArgumentParser(description='PrestaShop Docker manager.') - parser.add_argument('--debug', action='store_const', const=True, help='Use Debug', default=False) - parser.add_argument('--quiet', action='store_const', const=True, help='Use Debug', default=False) - parser.add_argument('--cache', action='store_const', const=True, help='Enable cache', default=False) - - return parser - - -def get_subparser(parser): - return parser.add_subparsers( - dest='subcommand', - metavar='[subcommand]' - ) - - -def get_tag_parser(subparser): - tag_parser = subparser.add_parser( - 'tag', - help='Tag managment' - ) - tag_subparser = tag_parser.add_subparsers( - dest='tag_subcommand' - ) - - exist_parser = tag_subparser.add_parser( - 'exists', - help='Check if tag exists on Docker Hub' - ) - exist_parser.add_argument('version', type=str, help='Version name') - - build_parser = tag_subparser.add_parser( - 'build', - help='Build container and create docker tag' - ) - build_parser.add_argument('version', type=str, help='Version name', nargs='?') - build_parser.add_argument('--force', action='store_const', const=True, help='Force build even if image already exists on Docker hub', default=False) - - push_parser = tag_subparser.add_parser( - 'push', - help='Push docker tags' - ) - push_parser.add_argument('version', type=str, help='Version name', nargs='?') - push_parser.add_argument('--force', action='store_const', const=True, help='Force build even if image already exists on Docker hub', default=False) - - aliases_parser = tag_subparser.add_parser( - 'aliases', - help='Get aliases' - ) - aliases_parser.add_argument('version', type=str, help='Version name', nargs='?') - - return tag_parser - - -def get_generate_parser(subparser): - generate_parser = subparser.add_parser( - 'generate', - help='Generate Dockerfile' - ) - - return generate_parser - - -def main(): - parser = get_parser() - subparser = get_subparser(parser) - tag_parser = get_tag_parser(subparser) - get_generate_parser(subparser) - - args = parser.parse_args() - - logging.basicConfig() - if args.debug: - logging.getLogger().setLevel(logging.DEBUG) - - if args.subcommand == 'generate': - generator = Generator( - path.join(path.dirname(path.realpath(__file__)), 'images'), - open('./Dockerfile.model').read(), - open('./Dockerfile-nightly.model').read() - ) - generator.generate_all(VERSIONS) - elif args.subcommand == 'tag': - tag_manager = TagManager( - DockerApi(args.cache, args.debug), - docker.from_env(), - VersionManager(path.join(path.dirname(path.realpath(__file__)), 'images')), - args.cache, - args.quiet - ) - if args.tag_subcommand is None: - tag_parser.print_help() - else: - if args.tag_subcommand == 'exists': - if tag_manager.exists(args.version): - exit(0) - else: - exit(1) - elif args.tag_subcommand == 'build': - tag_manager.build(args.version, args.force) - elif args.tag_subcommand == 'push': - tag_manager.push(args.version, args.force) - elif args.tag_subcommand == 'aliases': - tag_manager.get_aliases(args.version) - else: - parser.print_help() - - -if __name__ == '__main__': - main() diff --git a/requirements.in b/requirements.in deleted file mode 100644 index e952f2ad..00000000 --- a/requirements.in +++ /dev/null @@ -1,10 +0,0 @@ -pip-tools -pyfakefs -flake8 -nose -coverage -docker -requests -requests_cache -semver -packaging diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 61cf872e..00000000 --- a/requirements.txt +++ /dev/null @@ -1,27 +0,0 @@ -attrs==21.4.0 -certifi==2022.12.7 -charset-normalizer==2.0.12 -click==8.0.4 -coverage==6.2 -docker==5.0.3 -flake8==5.0.4 -idna==3.4 -itsdangerous==2.0.1 -mccabe==0.7.0 -nose==1.3.7 -packaging==21.3 -pep517==0.13.0 -pip-tools==6.4.0 -pycodestyle==2.9.1 -pyfakefs==4.6.3 -pyflakes==2.5.0 -pyparsing==3.0.9 -pyyaml==6.0 -requests==2.27.1 -requests-cache==0.7.5 -semver==2.13.0 -six==1.16.0 -url-normalize==1.4.3 -urllib3==1.26.12 -websocket-client==1.3.1 -wheel==0.38.4 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index eb03533d..00000000 --- a/setup.cfg +++ /dev/null @@ -1,21 +0,0 @@ -[nosetests] -verbosity=3 -with-doctest=1 -detailed-errors=1 -with-coverage=1 -cover-html=1 -cover-tests=1 -cover-erase=1 -cover-package=prestashop_docker - -[metadata] -description-file = README.md - -[flake8] -ignore = E501 -max-line-length = 120 - -[pycodestyle] -ignore = E501 -exclude = .git,__pycache__,node_modules -max-line-length = 120 diff --git a/tests/prestashop_docker/__init__.py b/tests/prestashop_docker/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/prestashop_docker/test_generator.py b/tests/prestashop_docker/test_generator.py deleted file mode 100644 index 215fd59f..00000000 --- a/tests/prestashop_docker/test_generator.py +++ /dev/null @@ -1,117 +0,0 @@ -from pyfakefs.fake_filesystem_unittest import TestCase -from prestashop_docker.generator import Generator -from os import path - - -class GeneratorTestCase(TestCase): - generator = None - - def setUp(self): - self.setUpPyfakefs() - self.fs.create_dir('/tmp/images') - self.fs.create_file( - 'Dockerfile.model', - contents=''' - PS_URL: $ps_url - PS_VERSION: $ps_version - CONTAINER_VERSION: $container_version - ''' - ) - self.fs.create_file( - 'Dockerfile-nightly.model', - contents=''' - PS_VERSION: $ps_version - CONTAINER_VERSION: $container_version - ''' - ) - - self.generator = Generator( - '/tmp/images', - open('Dockerfile.model').read(), - open('Dockerfile-nightly.model').read() - ) - - def test_create_directory(self): - self.assertFalse(path.exists('/tmp/images/test')) - self.generator.create_directory('/tmp/images/test') - self.assertTrue(path.exists('/tmp/images/test')) - - def test_generate_image(self): - dockerfile = '/tmp/images/1.7.8/7.4-alpine/Dockerfile' - self.assertFalse(path.exists(dockerfile)) - self.generator.generate_image( - '1.7.8', - '7.4-alpine' - ) - self.assertTrue(path.exists(dockerfile)) - - with open(dockerfile) as f: - content = f.read() - self.assertIn( - 'PS_URL: https://www.prestashop.com/download/old/' - 'prestashop_1.7.8.zip', - content - ) - self.assertIn('PS_VERSION: 1.7.8', content) - self.assertIn('CONTAINER_VERSION: 7.4-alpine', content) - - def test_generate_image_80(self): - dockerfile = '/tmp/images/8.0/7.4-alpine/Dockerfile' - self.assertFalse(path.exists(dockerfile)) - self.generator.generate_image( - '8.0', - '7.4-alpine' - ) - self.assertTrue(path.exists(dockerfile)) - - with open(dockerfile) as f: - content = f.read() - self.assertIn( - 'PS_URL: https://github.com/PrestaShop/PrestaShop/releases/download/8.0/' - 'prestashop_8.0.zip', - content - ) - self.assertIn('PS_VERSION: 8.0', content) - self.assertIn('CONTAINER_VERSION: 7.4-alpine', content) - - def test_generate_nightly_image(self): - dockerfile = '/tmp/images/nightly/7.2-alpine/Dockerfile' - self.assertFalse(path.exists(dockerfile)) - self.generator.generate_image( - 'nightly', - '7.2-alpine' - ) - self.assertTrue(path.exists(dockerfile)) - - with open(dockerfile) as f: - content = f.read() - self.assertNotIn( - 'PS_URL', - content - ) - self.assertIn('PS_VERSION: nightly', content) - self.assertIn('CONTAINER_VERSION: 7.2-alpine', content) - - def test_generate_all(self): - files = ( - '/tmp/images/7.0/7.3-apache/Dockerfile', - '/tmp/images/7.0/7.3-fpm/Dockerfile', - '/tmp/images/7.0/7.2-apache/Dockerfile', - '/tmp/images/7.0/7.2-fpm/Dockerfile', - '/tmp/images/8.0/7.1-apache/Dockerfile', - '/tmp/images/8.0/7.1-fpm/Dockerfile', - '/tmp/images/8.0/5.6-apache/Dockerfile', - '/tmp/images/8.0/5.6-fpm/Dockerfile', - ) - for f in files: - self.assertFalse(path.exists(f)) - - self.generator.generate_all( - { - '7.0': ('7.2', '7.3'), - '8.0': ('7.1', '5.6'), - } - ) - - for f in files: - self.assertTrue(path.exists(f), msg='{} doesn''t exists'.format(f)) diff --git a/tests/prestashop_docker/test_version_manager.py b/tests/prestashop_docker/test_version_manager.py deleted file mode 100644 index 2d90da23..00000000 --- a/tests/prestashop_docker/test_version_manager.py +++ /dev/null @@ -1,363 +0,0 @@ -from pyfakefs.fake_filesystem_unittest import TestCase -from prestashop_docker.version_manager import VersionManager -from unittest.mock import patch - - -class VersionManagerTestCase(TestCase): - @patch('prestashop_docker.docker_api.DockerApi') - def setUp(self, docker_api): - self.setUpPyfakefs() - self.fs.create_dir('/tmp/images') - self.fs.create_dir('/tmp/images/1.7.6.8/5.6-fpm') - self.fs.create_dir('/tmp/images/1.7.6.8/5.6-apache') - self.fs.create_dir('/tmp/images/1.7.6.8/7.1-fpm') - self.fs.create_dir('/tmp/images/1.7.6.8/7.1-apache') - self.fs.create_dir('/tmp/images/8.0.0/7.2-apache') - self.fs.create_dir('/tmp/images/8.0.0/7.2-fpm') - self.fs.create_dir('/tmp/images/8.0.0/8.0-apache') - self.fs.create_dir('/tmp/images/8.0.0/8.0-fpm') - self.fs.create_dir('/tmp/images/8.1.0/7.2-apache') - self.fs.create_dir('/tmp/images/8.1.0/7.2-fpm') - self.fs.create_dir('/tmp/images/8.1.3/7.2-apache') - self.fs.create_dir('/tmp/images/8.1.3/7.2-fpm') - self.fs.create_dir('/tmp/images/nightly/7.1-fpm') - self.fs.create_dir('/tmp/images/nightly/7.1-apache') - self.version_manager = self.create_instance() - - def create_instance(self): - return VersionManager( - '/tmp/images' - ) - - all_versions = { - '1.7.5.1': ('5.6', '5.4'), - '1.7.5.0': ('5.6', '5.4'), - '1.7.6.4': ('5.6', '7.1'), - '1.7.6.5': ('5.6', '7.1'), - '1.7.6.8': ('5.6', '7.1', '7.2'), - '1.7.7.0-rc.1': ('7.1', '7.2', '7.3'), - '8.0.0': ('7.2', '7.3', '7.4', '8.0', '8.1'), - '8.0.0-rc.1': ('7.2', '7.3', '7.4', '8.0', '8.1'), - '8.1.0': ('7.2', '7.3', '7.4', '8.0', '8.1'), - '8.1.3': ('7.2', '7.3', '7.4', '8.0', '8.1'), - 'nightly': ('7.1',) - } - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_ps_version(self): - result = self.version_manager.get_version_from_string('1.7.6.8') - self.assertEqual( - {'ps_version': '1.7.6.8', 'php_versions': ('5.6', '7.1', '7.2'), 'container_version': None}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0') - self.assertEqual( - {'ps_version': '8.0.0', 'php_versions': ('7.2', '7.3', '7.4', '8.0', '8.1'), 'container_version': None}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_invalid_version(self): - result = self.version_manager.get_version_from_string('1.7.6.42') - self.assertIsNone(result) - result = self.version_manager.get_version_from_string('8.0.42') - self.assertIsNone(result) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_container_version(self): - result = self.version_manager.get_version_from_string('1.7.6.8-5.6') - self.assertEqual( - {'ps_version': '1.7.6.8', 'php_versions': ('5.6',), 'container_version': None}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0-7.2') - self.assertEqual( - {'ps_version': '8.0.0', 'php_versions': ('7.2',), 'container_version': None}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_container_version_and_type(self): - result = self.version_manager.get_version_from_string('1.7.6.8-5.6-fpm') - self.assertEqual( - {'ps_version': '1.7.6.8', 'php_versions': ('5.6',), 'container_version': 'fpm'}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0-7.2-fpm') - self.assertEqual( - {'ps_version': '8.0.0', 'php_versions': ('7.2',), 'container_version': 'fpm'}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_pre_release_and_without_container_version_and_type(self): - result = self.version_manager.get_version_from_string('1.7.7.0-rc.1') - self.assertEqual( - {'ps_version': '1.7.7.0-rc.1', 'php_versions': ('7.1', '7.2', '7.3'), 'container_version': None}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0-rc.1') - self.assertEqual( - {'ps_version': '8.0.0-rc.1', 'php_versions': ('7.2', '7.3', '7.4', '8.0', '8.1'), 'container_version': None}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_pre_release_and_php_version_and_without_container_version(self): - result = self.version_manager.get_version_from_string('1.7.7.0-rc.1-7.3') - self.assertEqual( - {'ps_version': '1.7.7.0-rc.1', 'php_versions': ('7.3',), 'container_version': None}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0-rc.1-7.3') - self.assertEqual( - {'ps_version': '8.0.0-rc.1', 'php_versions': ('7.3',), 'container_version': None}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_version_from_string_with_pre_release_and_php_version_and_with_container_version(self): - result = self.version_manager.get_version_from_string('1.7.7.0-rc.1-7.3-apache') - self.assertEqual( - {'ps_version': '1.7.7.0-rc.1', 'php_versions': ('7.3',), 'container_version': 'apache'}, - result - ) - result = self.version_manager.get_version_from_string('8.0.0-rc.1-7.3-apache') - self.assertEqual( - {'ps_version': '8.0.0-rc.1', 'php_versions': ('7.3',), 'container_version': 'apache'}, - result - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_parse_version_with_invalid_version(self): - with self.assertRaises(ValueError): - self.version_manager.parse_version('0.0.0.1') - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_parse_version_with_valid_version(self): - self.assertEqual( - { - '1.7.6.8-5.6-apache': '/tmp/images/1.7.6.8/5.6-apache', - '1.7.6.8-5.6-fpm': '/tmp/images/1.7.6.8/5.6-fpm', - '1.7.6.8-7.1-apache': '/tmp/images/1.7.6.8/7.1-apache', - '1.7.6.8-7.1-fpm': '/tmp/images/1.7.6.8/7.1-fpm' - }, - self.version_manager.parse_version('1.7.6.8') - ) - self.assertEqual( - { - '8.0.0-7.2-apache': '/tmp/images/8.0.0/7.2-apache', - '8.0.0-7.2-fpm': '/tmp/images/8.0.0/7.2-fpm', - '8.0.0-8.0-apache': '/tmp/images/8.0.0/8.0-apache', - '8.0.0-8.0-fpm': '/tmp/images/8.0.0/8.0-fpm' - }, - self.version_manager.parse_version('8.0.0') - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_parse_version_with_valid_version_and_php_version(self): - self.assertEqual( - { - '1.7.6.8-5.6-apache': '/tmp/images/1.7.6.8/5.6-apache', - '1.7.6.8-5.6-fpm': '/tmp/images/1.7.6.8/5.6-fpm', - }, - self.version_manager.parse_version('1.7.6.8-5.6') - ) - self.assertEqual( - { - '8.1.0-7.2-apache': '/tmp/images/8.1.0/7.2-apache', - '8.1.0-7.2-fpm': '/tmp/images/8.1.0/7.2-fpm', - }, - self.version_manager.parse_version('8.1.0-7.2') - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_parse_version_with_valid_version_php_version_and_container(self): - self.assertEqual( - { - '1.7.6.8-5.6-apache': '/tmp/images/1.7.6.8/5.6-apache', - }, - self.version_manager.parse_version('1.7.6.8-5.6-apache') - ) - self.assertEqual( - { - '8.1.3-7.2-apache': '/tmp/images/8.1.3/7.2-apache', - }, - self.version_manager.parse_version('8.1.3-7.2-apache') - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_versions(self): - print(self.version_manager.get_versions()) - self.assertEqual( - { - '1.7.5.0-5.6-fpm': '/tmp/images/1.7.5.0/5.6-fpm', - '1.7.5.0-5.6-apache': '/tmp/images/1.7.5.0/5.6-apache', - '1.7.5.0-5.4-fpm': '/tmp/images/1.7.5.0/5.4-fpm', - '1.7.5.0-5.4-apache': '/tmp/images/1.7.5.0/5.4-apache', - '1.7.5.1-5.6-fpm': '/tmp/images/1.7.5.1/5.6-fpm', - '1.7.5.1-5.6-apache': '/tmp/images/1.7.5.1/5.6-apache', - '1.7.5.1-5.4-fpm': '/tmp/images/1.7.5.1/5.4-fpm', - '1.7.5.1-5.4-apache': '/tmp/images/1.7.5.1/5.4-apache', - '1.7.6.4-5.6-fpm': '/tmp/images/1.7.6.4/5.6-fpm', - '1.7.6.4-5.6-apache': '/tmp/images/1.7.6.4/5.6-apache', - '1.7.6.4-7.1-fpm': '/tmp/images/1.7.6.4/7.1-fpm', - '1.7.6.4-7.1-apache': '/tmp/images/1.7.6.4/7.1-apache', - '1.7.6.5-5.6-fpm': '/tmp/images/1.7.6.5/5.6-fpm', - '1.7.6.5-5.6-apache': '/tmp/images/1.7.6.5/5.6-apache', - '1.7.6.5-7.1-fpm': '/tmp/images/1.7.6.5/7.1-fpm', - '1.7.6.5-7.1-apache': '/tmp/images/1.7.6.5/7.1-apache', - '1.7.6.8-5.6-fpm': '/tmp/images/1.7.6.8/5.6-fpm', - '1.7.6.8-5.6-apache': '/tmp/images/1.7.6.8/5.6-apache', - '1.7.6.8-7.1-fpm': '/tmp/images/1.7.6.8/7.1-fpm', - '1.7.6.8-7.1-apache': '/tmp/images/1.7.6.8/7.1-apache', - '1.7.6.8-7.2-fpm': '/tmp/images/1.7.6.8/7.2-fpm', - '1.7.6.8-7.2-apache': '/tmp/images/1.7.6.8/7.2-apache', - '1.7.7.0-rc.1-7.1-fpm': '/tmp/images/1.7.7.0-rc.1/7.1-fpm', - '1.7.7.0-rc.1-7.1-apache': '/tmp/images/1.7.7.0-rc.1/7.1-apache', - '1.7.7.0-rc.1-7.2-fpm': '/tmp/images/1.7.7.0-rc.1/7.2-fpm', - '1.7.7.0-rc.1-7.2-apache': '/tmp/images/1.7.7.0-rc.1/7.2-apache', - '1.7.7.0-rc.1-7.3-fpm': '/tmp/images/1.7.7.0-rc.1/7.3-fpm', - '1.7.7.0-rc.1-7.3-apache': '/tmp/images/1.7.7.0-rc.1/7.3-apache', - '8.0.0-7.2-fpm': '/tmp/images/8.0.0/7.2-fpm', - '8.0.0-7.2-apache': '/tmp/images/8.0.0/7.2-apache', - '8.0.0-7.3-fpm': '/tmp/images/8.0.0/7.3-fpm', - '8.0.0-7.3-apache': '/tmp/images/8.0.0/7.3-apache', - '8.0.0-7.4-fpm': '/tmp/images/8.0.0/7.4-fpm', - '8.0.0-7.4-apache': '/tmp/images/8.0.0/7.4-apache', - '8.0.0-8.0-fpm': '/tmp/images/8.0.0/8.0-fpm', - '8.0.0-8.0-apache': '/tmp/images/8.0.0/8.0-apache', - '8.0.0-8.1-fpm': '/tmp/images/8.0.0/8.1-fpm', - '8.0.0-8.1-apache': '/tmp/images/8.0.0/8.1-apache', - '8.0.0-rc.1-7.2-fpm': '/tmp/images/8.0.0-rc.1/7.2-fpm', - '8.0.0-rc.1-7.2-apache': '/tmp/images/8.0.0-rc.1/7.2-apache', - '8.0.0-rc.1-7.3-fpm': '/tmp/images/8.0.0-rc.1/7.3-fpm', - '8.0.0-rc.1-7.3-apache': '/tmp/images/8.0.0-rc.1/7.3-apache', - '8.0.0-rc.1-7.4-fpm': '/tmp/images/8.0.0-rc.1/7.4-fpm', - '8.0.0-rc.1-7.4-apache': '/tmp/images/8.0.0-rc.1/7.4-apache', - '8.0.0-rc.1-8.0-fpm': '/tmp/images/8.0.0-rc.1/8.0-fpm', - '8.0.0-rc.1-8.0-apache': '/tmp/images/8.0.0-rc.1/8.0-apache', - '8.0.0-rc.1-8.1-fpm': '/tmp/images/8.0.0-rc.1/8.1-fpm', - '8.0.0-rc.1-8.1-apache': '/tmp/images/8.0.0-rc.1/8.1-apache', - '8.1.0-7.2-fpm': '/tmp/images/8.1.0/7.2-fpm', - '8.1.0-7.2-apache': '/tmp/images/8.1.0/7.2-apache', - '8.1.0-7.3-fpm': '/tmp/images/8.1.0/7.3-fpm', - '8.1.0-7.3-apache': '/tmp/images/8.1.0/7.3-apache', - '8.1.0-7.4-fpm': '/tmp/images/8.1.0/7.4-fpm', - '8.1.0-7.4-apache': '/tmp/images/8.1.0/7.4-apache', - '8.1.0-8.0-fpm': '/tmp/images/8.1.0/8.0-fpm', - '8.1.0-8.0-apache': '/tmp/images/8.1.0/8.0-apache', - '8.1.0-8.1-fpm': '/tmp/images/8.1.0/8.1-fpm', - '8.1.0-8.1-apache': '/tmp/images/8.1.0/8.1-apache', - '8.1.0-7.2-fpm': '/tmp/images/8.1.0/7.2-fpm', - '8.1.3-7.2-fpm': '/tmp/images/8.1.3/7.2-fpm', - '8.1.3-7.2-apache': '/tmp/images/8.1.3/7.2-apache', - '8.1.3-7.3-fpm': '/tmp/images/8.1.3/7.3-fpm', - '8.1.3-7.3-apache': '/tmp/images/8.1.3/7.3-apache', - '8.1.3-7.4-fpm': '/tmp/images/8.1.3/7.4-fpm', - '8.1.3-7.4-apache': '/tmp/images/8.1.3/7.4-apache', - '8.1.3-8.0-fpm': '/tmp/images/8.1.3/8.0-fpm', - '8.1.3-8.0-apache': '/tmp/images/8.1.3/8.0-apache', - '8.1.3-8.1-fpm': '/tmp/images/8.1.3/8.1-fpm', - '8.1.3-8.1-apache': '/tmp/images/8.1.3/8.1-apache', - 'nightly-7.1-fpm': '/tmp/images/nightly/7.1-fpm', - 'nightly-7.1-apache': '/tmp/images/nightly/7.1-apache' - - }, - - self.version_manager.get_versions(), - ) - - @patch('prestashop_docker.version_manager.VERSIONS', all_versions) - def test_get_aliases(self): - self.assertEqual( - { - '1.7.6.8-5.6-apache': ['1.7-5.6', '1.7.6-5.6', '1.7.6.8-5.6'], - '1.7.6.8-7.1-apache': ['1.7-7.1', '1.7.6-7.1', '1.7.6.8-7.1'], - '1.7.6.8-7.2-apache': [ - '1.7-7.2', - '1.7', - '1.7-apache', - '1.7.6-7.2', - '1.7.6', - '1.7.6-apache', - '1.7.6.8-7.2', - '1.7.6.8', - '1.7.6.8-apache', - ], - '1.7.6.8-7.2-fpm': ['1.7-fpm', '1.7.6-fpm', '1.7.6.8-fpm'], - '1.7.5.1-5.6-apache': [ - '1.7.5-5.6', - '1.7.5', - '1.7.5-apache', - '1.7.5.1-5.6', - '1.7.5.1', - '1.7.5.1-apache', - ], - '1.7.5.1-5.4-apache': ['1.7.5-5.4', '1.7.5.1-5.4'], - '1.7.5.1-5.6-fpm': ['1.7.5-fpm', '1.7.5.1-fpm'], - '1.7.6.4-5.6-apache': ['1.7.6.4-5.6'], - '1.7.6.4-7.1-apache': ['1.7.6.4-7.1', '1.7.6.4', '1.7.6.4-apache'], - '1.7.6.4-7.1-fpm': ['1.7.6.4-fpm'], - '1.7.6.5-5.6-apache': ['1.7.6.5-5.6'], - '1.7.6.5-7.1-apache': ['1.7.6.5-7.1', '1.7.6.5', '1.7.6.5-apache'], - '1.7.6.5-7.1-fpm': ['1.7.6.5-fpm'], - '1.7.7.0-rc.1-7.1-apache': ['1.7.7.0-rc.1-7.1'], - '1.7.7.0-rc.1-7.2-apache': ['1.7.7.0-rc.1-7.2'], - '1.7.7.0-rc.1-7.3-apache': [ - '1.7.7.0-rc.1-7.3', - '1.7.7.0-rc.1', - '1.7.7.0-rc.1-apache', - ], - '1.7.7.0-rc.1-7.3-fpm': ['1.7.7.0-rc.1-fpm'], - '8.0.0-7.2-apache': ['8.0-7.2', '8.0.0-7.2'], - '8.0.0-7.3-apache': ['8.0-7.3', '8.0.0-7.3'], - '8.0.0-7.4-apache': ['8.0-7.4', '8.0.0-7.4'], - '8.0.0-8.0-apache': ['8.0-8.0', '8.0.0-8.0'], - '8.0.0-8.1-apache': [ - '8.0-8.1', - '8.0', - '8.0-apache', - '8.0.0-8.1', - '8.0.0', - '8.0.0-apache' - ], - '8.0.0-8.1-fpm': ['8.0-fpm', '8.0.0-fpm'], - '8.0.0-rc.1-7.2-apache': ['8.0.0-rc.1-7.2'], - '8.0.0-rc.1-7.3-apache': ['8.0.0-rc.1-7.3'], - '8.0.0-rc.1-7.4-apache': ['8.0.0-rc.1-7.4'], - '8.0.0-rc.1-8.0-apache': ['8.0.0-rc.1-8.0'], - '8.0.0-rc.1-8.1-apache': [ - '8.0.0-rc.1-8.1', - '8.0.0-rc.1', - '8.0.0-rc.1-apache' - ], - '8.0.0-rc.1-8.1-fpm': ['8.0.0-rc.1-fpm'], - '8.1.0-7.2-apache': ['8.1.0-7.2'], - '8.1.0-7.3-apache': ['8.1.0-7.3'], - '8.1.0-7.4-apache': ['8.1.0-7.4'], - '8.1.0-8.0-apache': ['8.1.0-8.0'], - '8.1.0-8.1-apache': ['8.1.0-8.1', '8.1.0', '8.1.0-apache'], - '8.1.0-8.1-fpm': ['8.1.0-fpm'], - '8.1.3-7.2-apache': ['8-7.2', '8.1-7.2', '8.1.3-7.2'], - '8.1.3-7.3-apache': ['8-7.3', '8.1-7.3', '8.1.3-7.3'], - '8.1.3-7.4-apache': ['8-7.4', '8.1-7.4', '8.1.3-7.4'], - '8.1.3-8.0-apache': ['8-8.0', '8.1-8.0', '8.1.3-8.0'], - '8.1.3-8.1-apache': [ - 'latest', - '8-8.1', - '8', - '8-apache', - '8.1-8.1', - '8.1', - '8.1-apache', - '8.1.3-8.1', - '8.1.3', - '8.1.3-apache', - ], - '8.1.3-8.1-fpm': ['8-fpm', '8.1-fpm', '8.1.3-fpm'], - 'nightly-7.1-apache': ['nightly-7.1', 'nightly', 'nightly-apache'], - 'nightly-7.1-fpm': ['nightly-fpm'], - }, - self.version_manager.get_aliases(), - ) diff --git a/versions.py b/versions.py deleted file mode 100644 index 484e9b8f..00000000 --- a/versions.py +++ /dev/null @@ -1,162 +0,0 @@ -VERSIONS = { - '1.7.7.0': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.1': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.2': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.3': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.4': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.5': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.6': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.7': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.7.8': ( - '7.1', - '7.2', - '7.3', - ), - '1.7.8.0-beta.1': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.0-rc.1': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.0': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.1': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.2': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.3': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.4': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.5': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.6': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.7': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '1.7.8.8': ( - '7.1', - '7.2', - '7.3', - '7.4', - ), - '8.0.0-beta.1': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - '8.0.0-rc.1': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - '8.0.0': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - '8.0.1': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - '8.0.2': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - '8.0.3': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), - 'nightly': ( - '7.2', - '7.3', - '7.4', - '8.0', - '8.1', - ), -} From 01ef63b41eeede9cc1c4392af7699b12bd6aa7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Fri, 7 Apr 2023 16:42:25 +0200 Subject: [PATCH 02/29] Next Co-authored-by: Vincent Le Quec --- README.md | 54 ++++++++++++++++++++++++++++++----- arch.json | 1 + base.json | 1 + build.sh | 35 +++++++++++++++++++++++ docker/alpine-base.Dockerfile | 18 ++---------- docker/debian-base.Dockerfile | 6 ++++ flavour.json | 1 + prestashop-tags.json | 30 +++++++++++++++++++ 8 files changed, 123 insertions(+), 23 deletions(-) create mode 100644 arch.json create mode 100644 base.json create mode 100644 build.sh create mode 100644 flavour.json create mode 100644 prestashop-tags.json diff --git a/README.md b/README.md index d0e9c936..74c4db06 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,45 @@ See: https://hub.docker.com/r/prestashop/prestashop ## Requirements - Docker: https://docs.docker.com/engine/install +- [jq](https://stedolan.github.io/jq/): + +```bash +apt install jq +brew install jq +apk add jq +``` + +- (optional) BuildX to cross compile ## Build -To build a PrestaShop 8.0 with PHP 8.1 apache2 and debian bullesye: +To build a PrestaShop 8.0.1: ```sh -docker build \ - --build-arg PHP_TAG=8.1-rc-apache-buster \ - --build-arg PS_VERSION=8.0 \ - --tag=prestashop/prestashop:8.0-apache2 - -f docker/debian-base.Dockerfile \ - . +> PS_VERSION=8.0.1 ./build.sh --push +prestashop/prestashop:8.0.1 +prestashop/prestashop:8.0.1-apache +prestashop/prestashop:8.0.1-8.1 +prestashop/prestashop:8.0.1-8.1-apache ``` +Available env vars: + +| Env var | Description | Default | +| ---------------------- | ----------------------------------------------------------------------------------- | ---------------------------------- | +| **BUILDPLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | +| **LINUX_DISTRIBUTION** | `debian` or `alpine` | `debian` | +| **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | +| **PHP_FLAVOUR** | `fpm`, `apache` or `zts` | `apache` | +| **PS_VERSION** | PrestaShop version | `latest` | +| **DOCKER_REPOSITORY** | the Docker image repository | `prestashop/prestashop` | + +> Note: default debian distribution is set to Debian 11 Bullseye. + +--- + +# WIP: Notes + ## How to use ```sh @@ -48,3 +73,18 @@ docker run --port 80:80 --detach --name prestashop prestashop/prestashop:8.0.1 |8.0.1-8.1 | apache + php 8.1| ==> Si on veut proposer uniquement les versions recommandées pour la production ça simplifie le deal. + +Je publie le 01/01/2023 une 1.7.7.8 : le tag 1.7.7 et 1.7 bouge +Je publie le 02/01/2023 une 1.7.7.9 : le tag 1.7.7 et 1.7 bouge + +8.0.1 => 8.0 bouge -> 8 bouge + +## BuildX + +``` +docker run --privileged --rm tonistiigi/binfmt --install arm64,arm,amd64 +docker buildx create --name multiarch --use +docker buildx build --platform linux/amd64,linux/arm64 + +--push to publish +``` diff --git a/arch.json b/arch.json new file mode 100644 index 00000000..a6e312bd --- /dev/null +++ b/arch.json @@ -0,0 +1 @@ +["linux/amd64", "linux/arm64", "linux/arm"] diff --git a/base.json b/base.json new file mode 100644 index 00000000..a3b0a2bd --- /dev/null +++ b/base.json @@ -0,0 +1 @@ +["debian", "alpine"] diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..a51d85a8 --- /dev/null +++ b/build.sh @@ -0,0 +1,35 @@ +#/bin/sh +set -e -x + +function get_latest_prestashop_version { + curl 'http://github.com/prestashop/prestashop/blablabla' +} + +function get_recommended_php_version { + PS_VERSION=$0 + return cat prestashop-versions.json | jq -r '.["'$PS_VERSION'"].php.recommended'; +} + +function get_tag_aliases { + # --tag="${DOCKER_REPOSITORY}:${TAG}"\ + for tag in tags; do + return "--tag ${DOCKER_REPOSITORY}/" + done; +} + +DOCKER_REPOSITORY="${DOCKER_REPOSITORY:-prestashop/prestashop}" +PS_VERSION="${PS_VERSION:-get_latest_prestashop_version}" +PHP_VERSION="${PHP_VERSION}:-$(get_recommended_php_version)" +LINUX_DISTRIBUTION="${LINUX_DISTRIBUTION}-debian" +PHP_DOCKER_TAG="${PHP_VERSION}-${PHP_FLAVOUR}" +# check here if php=$PHP_DOCKER_TAG exists + + +TAGS=$(get_tag_aliases $PS_VERSION $PS) + +docker build \ + -f docker/${LINUX_DISTRIBUTION}-base.Dockerfile \ + --build-arg PHP_DOCKER_TAG=${PHP_DOCKER_TAG} \ + --build-arg PS_VERSION=${PS_VERSION} \ + $TAGS \ + . \ No newline at end of file diff --git a/docker/alpine-base.Dockerfile b/docker/alpine-base.Dockerfile index f2ca2633..94130a02 100644 --- a/docker/alpine-base.Dockerfile +++ b/docker/alpine-base.Dockerfile @@ -1,7 +1,7 @@ ARG PS_VERSION -ARG PHP_VERSION +ARG PHP_DOCKER_TAG -FROM php:${PHP_VERSION}-fpm-alpine AS alpine-base-prestashop +FROM php:${PHP_DOCKER_TAG} AS alpine-base-prestashop ARG PS_VERSION ARG PS_FOLDER=/var/www/html @@ -34,14 +34,6 @@ RUN mkdir -p ${PS_FOLDER} \ && bash /ps-zip-extractor.sh ${PS_FOLDER} www-data \ && rm -rf /tmp/prestashop.zip /ps-zip-extractor.sh -# ----------------------- -# Flashlight final image -# ----------------------- -FROM base-prestashop as optimize-prestashop -ARG PS_VERSION -ARG PHP_VERSION -ARG PS_FOLDER=/var/www/html -WORKDIR ${PS_FOLDER} # @TODO check opcache # RUN echo '\ @@ -62,10 +54,4 @@ ENV MYSQL_ROOT_PASSWORD=prestashop ENV MYSQL_PORT=3306 ENV MYSQL_DATABASE=prestashop -# Ship the dump within the image -ADD ./dump-${PS_VERSION}-${PHP_VERSION}.sql /dump.sql - -# The new default runner -ADD ./tools/sql-restore-and-run-nginx.sh /run.sh - ENTRYPOINT ["/run.sh"] \ No newline at end of file diff --git a/docker/debian-base.Dockerfile b/docker/debian-base.Dockerfile index e69de29b..5b99237b 100644 --- a/docker/debian-base.Dockerfile +++ b/docker/debian-base.Dockerfile @@ -0,0 +1,6 @@ +ARG PS_VERSION +ARG PHP_DOCKER_TAG + +FROM php:${PHP_DOCKER_TAG} AS alpine-base-prestashop +ARG PS_VERSION +ARG PS_FOLDER=/var/www/html \ No newline at end of file diff --git a/flavour.json b/flavour.json new file mode 100644 index 00000000..dff7d3a0 --- /dev/null +++ b/flavour.json @@ -0,0 +1 @@ +["apache", "fpm", "zts"] diff --git a/prestashop-tags.json b/prestashop-tags.json new file mode 100644 index 00000000..c518ba6f --- /dev/null +++ b/prestashop-tags.json @@ -0,0 +1,30 @@ +{ + "^1.6.1": { + "fpm": ["^1.6.1-7.1-fpm"], + "apache": ["^1.6.1-7.1-apache", "^1.6.1-7.1"] + }, + "^1.7.[0-3]": { + "fpm": ["^1.7.[0-3]-7.1-fpm"], + "apache": ["^1.7.[0-3]-7.1-apache", "^1.7.[0-3]-7.1"] + }, + "^1.7.7.4": { + "fpm": ["^1.7.7.4-7.1-fpm"], + "apache": ["^1.7.7.4-7.1-apache", "^1.7.7.4-7.1"] + }, + "^1.7.[5-6]": { + "fpm": ["^1.7.[5-6]-7.2-fpm"], + "apache": ["^1.7.[5-6]-7.2-apache", "^1.7.[5-6]-7.2"] + }, + "^1.7.7": { + "fpm": ["^1.7.7-7.3-fpm"], + "apache": ["^1.7.7-7.3-apache", "^1.7.7-7.3"] + }, + "^1.7.8": { + "fpm": ["^1.7.8-7.4-fpm"], + "apache": ["^1.7.8-7.4-apache", "^1.7.8-7.4"] + }, + "^8.0": { + "fpm": ["^8.0-8.1-fpm"], + "apache": ["^8.0-8.1-apache", "^8.0-8.1", "^8.0", "latest"] + } +} From 6ec792d9f34060536bea748cc7d22b15fc5871d2 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 7 Apr 2023 17:55:58 +0200 Subject: [PATCH 03/29] chore: some updates --- .github/workflows/publish.yml | 37 +++++++++++++++++++++++------------ build.sh | 23 +++++++++++++++++----- 2 files changed, 42 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d74479d..e2cb3760 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,28 +5,39 @@ on: push: branches: master +env: + REGISTRY: docker.io + jobs: publish: runs-on: ubuntu-latest steps: - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Checkout repository + uses: actions/checkout@v3 - - uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - name: Set up Docker BuildX + uses: docker/setup-buildx-action@v2 with: - python-version: 3.8 + use: true +# platforms: ${{ env.TARGET_PLATFORMS }} + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Install dependencies - run: pip install -r requirements.txt +# - name: Install dependencies +# run: apt install jq - name: Build Docker images - run: ./prestashop_docker.py --quiet tag build + run: echo "WIP" - name: Push Docker images - run: ./prestashop_docker.py --quiet tag push + run: echo "WIP" diff --git a/build.sh b/build.sh index a51d85a8..9e606d8d 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,14 @@ -#/bin/sh +#!/bin/bash set -e -x function get_latest_prestashop_version { - curl 'http://github.com/prestashop/prestashop/blablabla' + return "$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name')" } +# TODO: remove regex from prestashop-versions function get_recommended_php_version { PS_VERSION=$0 - return cat prestashop-versions.json | jq -r '.["'$PS_VERSION'"].php.recommended'; + return "$(jq -r '.["$PS_VERSION"].php.recommended' < prestashop-versions.json)" } function get_tag_aliases { @@ -24,12 +25,24 @@ LINUX_DISTRIBUTION="${LINUX_DISTRIBUTION}-debian" PHP_DOCKER_TAG="${PHP_VERSION}-${PHP_FLAVOUR}" # check here if php=$PHP_DOCKER_TAG exists +# TODO: +# - Check if image already exists on Docker Hub before pushing ? +# - Check if release exists before ? + +## Specific version +#DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases'| jq -r '.[] | select(.tag_name | contains("$PS_VERSION")) | .assets[] | select(.name | contains(".zip")) | .browser_download_url') +## latest +#DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url') +#curl -o ./prestashop.zip -L $DOWNLOAD_URL +## Nightly +#git clone 'https://github.com/PrestaShop/PrestaShop.git' TAGS=$(get_tag_aliases $PS_VERSION $PS) -docker build \ +# --platform linux/amd64,linux/arm64,linux/arm +docker buildx build \ -f docker/${LINUX_DISTRIBUTION}-base.Dockerfile \ --build-arg PHP_DOCKER_TAG=${PHP_DOCKER_TAG} \ --build-arg PS_VERSION=${PS_VERSION} \ $TAGS \ - . \ No newline at end of file + . From 6c80456782eebefd311b5abf8eaf6e700310e66f Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Tue, 11 Apr 2023 15:10:06 +0200 Subject: [PATCH 04/29] chore: some updates --- build.sh | 51 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 18 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 9e606d8d..5d337130 --- a/build.sh +++ b/build.sh @@ -1,14 +1,20 @@ #!/bin/bash -set -e -x +#set -e -x function get_latest_prestashop_version { - return "$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name')" + curl -s --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } # TODO: remove regex from prestashop-versions function get_recommended_php_version { - PS_VERSION=$0 - return "$(jq -r '.["$PS_VERSION"].php.recommended' < prestashop-versions.json)" + PS_VERSION=$1 + jq -r '.["$PS_VERSION"].php.recommended' < prestashop-versions.json +} + +function check_if_image_exist() { + DOCKER_IMAGE=$1 + docker manifest inspect "$DOCKER_IMAGE" > /dev/null + echo $? } function get_tag_aliases { @@ -19,16 +25,25 @@ function get_tag_aliases { } DOCKER_REPOSITORY="${DOCKER_REPOSITORY:-prestashop/prestashop}" -PS_VERSION="${PS_VERSION:-get_latest_prestashop_version}" -PHP_VERSION="${PHP_VERSION}:-$(get_recommended_php_version)" -LINUX_DISTRIBUTION="${LINUX_DISTRIBUTION}-debian" +PS_VERSION="${PS_VERSION:-$(get_latest_prestashop_version)}" +PHP_VERSION="${PHP_VERSION:-$(get_recommended_php_version $PS_VERSION)}" +PHP_FLAVOUR="${PHP_FLAVOUR:-apache}" PHP_DOCKER_TAG="${PHP_VERSION}-${PHP_FLAVOUR}" -# check here if php=$PHP_DOCKER_TAG exists +LINUX_DISTRIBUTION="${LINUX_DISTRIBUTION:-debian}" + +echo "$DOCKER_REPOSITORY" +echo "$PS_VERSION" +echo "$PHP_VERSION" +echo "$LINUX_DISTRIBUTION" +echo "$PHP_DOCKER_TAG" -# TODO: +## TODO: +# - check here if php=$PHP_DOCKER_TAG exists # - Check if image already exists on Docker Hub before pushing ? # - Check if release exists before ? +#docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" + ## Specific version #DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases'| jq -r '.[] | select(.tag_name | contains("$PS_VERSION")) | .assets[] | select(.name | contains(".zip")) | .browser_download_url') ## latest @@ -37,12 +52,12 @@ PHP_DOCKER_TAG="${PHP_VERSION}-${PHP_FLAVOUR}" ## Nightly #git clone 'https://github.com/PrestaShop/PrestaShop.git' -TAGS=$(get_tag_aliases $PS_VERSION $PS) - -# --platform linux/amd64,linux/arm64,linux/arm -docker buildx build \ - -f docker/${LINUX_DISTRIBUTION}-base.Dockerfile \ - --build-arg PHP_DOCKER_TAG=${PHP_DOCKER_TAG} \ - --build-arg PS_VERSION=${PS_VERSION} \ - $TAGS \ - . +#TAGS=$(get_tag_aliases $PS_VERSION $PS) +# +## --platform linux/amd64,linux/arm64,linux/arm +#docker buildx build \ +# -f docker/${LINUX_DISTRIBUTION}-base.Dockerfile \ +# --build-arg PHP_DOCKER_TAG=${PHP_DOCKER_TAG} \ +# --build-arg PS_VERSION=${PS_VERSION} \ +# $TAGS \ +# . From 93c318effc60dcd6ea08af06dc579655014ce5a9 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Tue, 11 Apr 2023 17:51:22 +0200 Subject: [PATCH 05/29] chore: some updates --- build.sh | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 5d337130..ecbdd6cd 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ #set -e -x function get_latest_prestashop_version { - curl -s --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' + curl --silent --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } # TODO: remove regex from prestashop-versions @@ -11,11 +11,19 @@ function get_recommended_php_version { jq -r '.["$PS_VERSION"].php.recommended' < prestashop-versions.json } -function check_if_image_exist() { +function check_if_image_exists { DOCKER_IMAGE=$1 docker manifest inspect "$DOCKER_IMAGE" > /dev/null echo $? } +# https://docs.docker.com/docker-hub/api/latest +function check_if_image_exists_on_hub { + namespace=$1 + repository=$2 + tag=$3 + curl --silent --location --head --fail "https://hub.docker.com/v2/namespaces/$namespace/repositories/$repository/tags/$tag" > /dev/null + echo $? +} function get_tag_aliases { # --tag="${DOCKER_REPOSITORY}:${TAG}"\ @@ -37,13 +45,18 @@ echo "$PHP_VERSION" echo "$LINUX_DISTRIBUTION" echo "$PHP_DOCKER_TAG" +#if [[ $(check_if_image_exists "php:$PHP_DOCKER_TAG") -ne 0 ]]; then +if [[ $(check_if_image_exists_on_hub library php "$PHP_DOCKER_TAG") -ne 0 ]]; then + echo "Please check that this tag exists: $PHP_DOCKER_TAG" + echo "https://hub.docker.com/" +fi + ## TODO: -# - check here if php=$PHP_DOCKER_TAG exists +# - penser au docker login avant -> docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" ou Action Github +# - [x] check here if php=$PHP_DOCKER_TAG exists # - Check if image already exists on Docker Hub before pushing ? # - Check if release exists before ? -#docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" - ## Specific version #DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases'| jq -r '.[] | select(.tag_name | contains("$PS_VERSION")) | .assets[] | select(.name | contains(".zip")) | .browser_download_url') ## latest From b5915de68589aaac730829d6c8b1c37c1af2c5b1 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 26 May 2023 14:46:26 +0200 Subject: [PATCH 06/29] feat: some updates --- .github/TODO.md | 3 ++ build.sh | 122 +++++++++++++++++++++++++++++++++++------------- 2 files changed, 93 insertions(+), 32 deletions(-) create mode 100644 .github/TODO.md diff --git a/.github/TODO.md b/.github/TODO.md new file mode 100644 index 00000000..a0072ea3 --- /dev/null +++ b/.github/TODO.md @@ -0,0 +1,3 @@ +# TODO CI + +- [ ] penser au docker login avant -> docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" dans l'Action Github diff --git a/build.sh b/build.sh index ecbdd6cd..65d00275 100755 --- a/build.sh +++ b/build.sh @@ -1,60 +1,122 @@ #!/bin/bash -#set -e -x +# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425 +set -eu +function error { + echo -e "\e[1;31m${1:-Unknown error}\e[0m" + exit "${2:-1}" +} + +# Get latest version of PrestaShop (via GitHub) function get_latest_prestashop_version { curl --silent --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } -# TODO: remove regex from prestashop-versions +# Get recommended PHP version from `prestashop-versions.json` +# +# $1 - PrestaShop version +# +# Examples: +# - get_recommended_php_version "8.0.4" function get_recommended_php_version { PS_VERSION=$1 - jq -r '.["$PS_VERSION"].php.recommended' < prestashop-versions.json -} + RECOMMENDED_VERSION= + REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' /dev/null - echo $? + while IFS= read -r regExp; do + if [[ $PS_VERSION =~ $regExp ]]; then + RECOMMENDED_VERSION=$(jq -r '."'"${regExp}"'".php.recommended' /dev/null + curl --silent --location --head --fail "https://hub.docker.com/v2/namespaces/$namespace/repositories/$repository/tags/$tag" >/dev/null echo $? } function get_tag_aliases { + DOCKER_REPOSITORY=$1 + PS_VERSION=$2 + PHP_FLAVOUR=$3 + + REGEXP_TAGS= + REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" ou Action Github # - [x] check here if php=$PHP_DOCKER_TAG exists -# - Check if image already exists on Docker Hub before pushing ? # - Check if release exists before ? ## Specific version @@ -65,12 +127,8 @@ fi ## Nightly #git clone 'https://github.com/PrestaShop/PrestaShop.git' -#TAGS=$(get_tag_aliases $PS_VERSION $PS) -# -## --platform linux/amd64,linux/arm64,linux/arm -#docker buildx build \ -# -f docker/${LINUX_DISTRIBUTION}-base.Dockerfile \ -# --build-arg PHP_DOCKER_TAG=${PHP_DOCKER_TAG} \ -# --build-arg PS_VERSION=${PS_VERSION} \ -# $TAGS \ -# . +function check_if_image_exists { + DOCKER_IMAGE=$1 + docker manifest inspect "$DOCKER_IMAGE" >/dev/null + echo $? +} From 9c5d953efc56c48d6a9432c170dd92132e2d0764 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 26 May 2023 17:23:26 +0200 Subject: [PATCH 07/29] feat: ps_version & nightly --- .dockerignore | 3 +- .github/TODO.md | 3 - build.sh | 88 +- docker/config_files/defines_custom.inc.php | 32 + docker/config_files/docker_run.sh | 140 ++ .../config_files/docker_updt_ps_domains.php | 62 + docker/config_files/php.ini | 1953 +++++++++++++++++ docker/debian-base.Dockerfile | 106 +- prestashop-versions.json | 5 + 9 files changed, 2342 insertions(+), 50 deletions(-) delete mode 100644 .github/TODO.md create mode 100644 docker/config_files/defines_custom.inc.php create mode 100755 docker/config_files/docker_run.sh create mode 100644 docker/config_files/docker_updt_ps_domains.php create mode 100644 docker/config_files/php.ini diff --git a/.dockerignore b/.dockerignore index 3aac610a..bcb8135a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ .git docker-compose.yml Dockerfile -*.md \ No newline at end of file +*.Dockerfile +*.md diff --git a/.github/TODO.md b/.github/TODO.md deleted file mode 100644 index a0072ea3..00000000 --- a/.github/TODO.md +++ /dev/null @@ -1,3 +0,0 @@ -# TODO CI - -- [ ] penser au docker login avant -> docker login -u "$USER" -p "$PASSWORD" "$REGISTRY" dans l'Action Github diff --git a/build.sh b/build.sh index 65d00275..206443f7 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash # https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425 -set -eu +set -euo pipefail function error { echo -e "\e[1;31m${1:-Unknown error}\e[0m" @@ -50,73 +50,51 @@ function check_if_image_exists_on_hub { echo $? } -function get_tag_aliases { - DOCKER_REPOSITORY=$1 - PS_VERSION=$2 - PHP_FLAVOUR=$3 - - REGEXP_TAGS= - REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' /dev/null echo $? } + +function get_tag_aliases { + DOCKER_REPOSITORY=$1 + PS_VERSION=$2 + PHP_FLAVOUR=$3 + + REGEXP_TAGS= + REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ +if ((bool) getenv('PS_DEV_MODE')) { + define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); +} +// FYI: Defining env var _PS_HOST_MODE_ as true also works natively +if ((bool) getenv('PS_HOST_MODE')) { + define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); +} diff --git a/docker/config_files/docker_run.sh b/docker/config_files/docker_run.sh new file mode 100755 index 00000000..4d6d42b3 --- /dev/null +++ b/docker/config_files/docker_run.sh @@ -0,0 +1,140 @@ +#!/bin/sh + +if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then + echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' + echo >&2 ' You need to specify DB_SERVER in order to proceed' + exit 1 +elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then + RET=1 + while [ $RET -ne 0 ]; do + echo "\n* Checking if $DB_SERVER is available..." + mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 + RET=$? + + if [ $RET -ne 0 ]; then + echo "\n* Waiting for confirmation of MySQL service startup"; + sleep 5 + fi + done + echo "\n* DB server $DB_SERVER is available, let's continue !" +fi + +# From now, stop at error +set -e + +if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then + + echo "\n* Setting up install lock file..." + touch ./install.lock + + echo "\n* Reapplying PrestaShop files for enabled volumes ..."; + + if [ -d /tmp/data-ps ]; then + # init if empty + cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html + fi + + if [ -f /tmp/defines_custom.inc.php ]; then + cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php + fi + + if [ -d /tmp/pre-install-scripts/ ]; then + echo "\n* Running pre-install script(s)..." + + for i in `ls /tmp/pre-install-scripts/`;do + /tmp/pre-install-scripts/$i + done + else + echo "\n* No pre-install script found, let's continue..." + fi + + if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then + echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; + mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ + fi + + if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then + echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; + mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ + fi + + if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then + cp /tmp/docker_updt_ps_domains.php /var/www/html + sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf + fi + + if [ $PS_ERASE_DB = 1 ]; then + echo "\n* Drop mysql database..."; + echo "\n* Dropping existing database $DB_NAME..." + mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" + fi + + if [ $PS_INSTALL_DB = 1 ]; then + echo "\n* Create mysql database..."; + echo "\n* Creating database $DB_NAME..." + mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; + fi + + if [ $PS_INSTALL_AUTO = 1 ]; then + echo "\n* Installing PrestaShop, this may take a while ..."; + + if [ "$PS_DOMAIN" = "" ]; then + export PS_DOMAIN=$(hostname -i) + fi + + echo "\n* Launching the installer script..." + runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ + --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ + --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ + --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ + --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL + + if [ $? -ne 0 ]; then + echo 'warning: PrestaShop installation failed.' + else + echo "\n* Removing install folder..." + rm -r /var/www/html/$PS_FOLDER_INSTALL/ + fi + fi + + if [ -d /tmp/post-install-scripts/ ]; then + echo "\n* Running post-install script(s)..." + + for i in `ls /tmp/post-install-scripts/`;do + /tmp/post-install-scripts/$i + done + else + echo "\n* No post-install script found, let's continue..." + fi + + echo "\n* Setup completed, removing lock file..." + rm ./install.lock +elif [ -f ./install.lock ]; then + if [ -f ./config/settings.inc.php ]; then + echo "\n* Shop seems setup but remaining install lock still present..." + else + echo "\n* Another setup is currently running..." + fi + sleep 10 + exit 42 +else + echo "\n* PrestaShop Core already installed..."; +fi + +if [ $PS_DEMO_MODE -ne 0 ]; then + echo "\n* Enabling DEMO mode ..."; + sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php +fi + +echo "\n* Almost ! Starting web server now\n"; + +if [ -d /tmp/init-scripts/ ]; then + echo "\n* Running init script(s)..." + for i in `ls /tmp/init-scripts/`;do + /tmp/init-scripts/$i + done +else + echo "\n* No init script found, let's continue..." +fi + +exec {PHP_CMD} diff --git a/docker/config_files/docker_updt_ps_domains.php b/docker/config_files/docker_updt_ps_domains.php new file mode 100644 index 00000000..87cb4c39 --- /dev/null +++ b/docker/config_files/docker_updt_ps_domains.php @@ -0,0 +1,62 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + +// Workaround for redirection on init +$_POST['id_shop'] = 1; + +require_once 'config/config.inc.php'; + +if (!defined('_PS_VERSION_')) + exit; + +// First, we get the URL used to reach this page. +$domain = Tools::getHttpHost(); +$old_domain = Configuration::get('PS_SHOP_DOMAIN'); + +if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) +{ + $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); + if ($url) + { + $url->domain = $domain; + $url->domain_ssl = $domain; + $url->save(); + + // Then, we update the configuration table + Configuration::updateValue('PS_SHOP_DOMAIN', $domain); + Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); + + // Finally, update all the files that depend on the domain name + Tools::generateHtaccess(); + Tools::generateRobotsFile(); + Tools::clearSmartyCache(); + Media::clearCache(); + } +} + +//unlink(__FILE__); +Tools::redirect("index.php"); +die(); diff --git a/docker/config_files/php.ini b/docker/config_files/php.ini new file mode 100644 index 00000000..1277a840 --- /dev/null +++ b/docker/config_files/php.ini @@ -0,0 +1,1953 @@ +[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 (C:\windows or C:\winnt) +; 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 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.hash_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 + +; 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" +; 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 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 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 + +; 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 +; will send that data in chunks of roughly the size you specify. +; Turning on this setting and managing its maximum buffer size can yield some +; interesting side-effects depending on your application and web server. +; You may be able to send headers and cookies after you've already sent output +; through print or echo. You also may see performance benefits if your server is +; emitting less packets due to buffered output versus PHP streaming the output +; as it gets it. On production servers, 4096 bytes is a good setting for performance +; reasons. +; Note: Output buffering can also be controlled via Output Buffering Control +; functions. +; Possible Values: +; On = Enabled and buffer is unlimited. (Use with caution) +; Off = Disabled +; Integer = Enables the buffer and sets its maximum size in bytes. +; Note: This directive is hardcoded to Off for the CLI SAPI +; Default Value: Off +; Development Value: 4096 +; Production Value: 4096 +; http://php.net/output-buffering +output_buffering = 4096 + +; You can redirect all of the output of your scripts to a function. For +; example, if you set output_handler to "mb_output_handler", character +; encoding will be transparently converted to the specified encoding. +; Setting any output handler automatically turns on output buffering. +; Note: People who wrote portable scripts should not depend on this ini +; directive. Instead, explicitly set the output handler using ob_start(). +; Using this ini directive may cause problems unless you know what script +; is doing. +; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" +; and you cannot use both "ob_gzhandler" and "zlib.output_compression". +; Note: output_handler must be empty if this is set 'On' !!!! +; Instead you must use zlib.output_handler. +; http://php.net/output-handler +;output_handler = + +; 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) +; Note: Resulting chunk size may vary due to nature of compression. PHP +; outputs chunks that are few hundreds bytes each as a result of +; compression. If you prefer a larger chunk size for better +; performance, enable output_buffering in addition. +; Note: You need to use zlib.output_handler instead of the standard +; output_handler, or otherwise the output will be corrupted. +; http://php.net/zlib.output-compression +zlib.output_compression = Off + +; http://php.net/zlib.output-compression-level +;zlib.output_compression_level = -1 + +; You cannot specify additional output handlers if zlib.output_compression +; is activated here. This setting does the same as output_handler but in +; a different order. +; http://php.net/zlib.output-handler +;zlib.output_handler = + +; Implicit flush tells PHP to tell the output layer to flush itself +; automatically after every output block. This is equivalent to calling the +; PHP function flush() after each and every call to print() or echo() and each +; and every HTML block. Turning this option on has serious performance +; implications and is generally recommended for debugging purposes only. +; http://php.net/implicit-flush +; Note: This directive is hardcoded to On for the CLI SAPI +implicit_flush = Off + +; The unserialize callback function will be called (with the undefined class' +; name as parameter), if the unserializer finds an undefined class +; which should be instantiated. A warning appears if the specified function is +; not defined, or if the function doesn't include/implement the missing class. +; So only set this entry, if you really want to implement such a +; callback-function. +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 + +; 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. +; 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. +; http://php.net/disable-functions +disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, + +; This directive allows you to disable certain classes for security reasons. +; It receives a comma-delimited list of class names. +; http://php.net/disable-classes +disable_classes = + +; Colors for Syntax Highlighting mode. Anything that's acceptable in +; 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. +; 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 = 600 + +; 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 = Off + +;;;;;;;;;;;;;;;;;;; +; 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 = 20000 + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 256M + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; 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. +; Default Value: Off +; Development Value: On +; 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 + +;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 = 20M + +; 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 character encoding using +; the Content-type: header. To disable sending of the charset, simply +; set it to be empty. +; +; PHP's built-in default is 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. +; mbstring or iconv output handler is used. +; See also output_buffer. +; 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 ; +;;;;;;;;;;;;;;;;;;;;;;;;; + +; UNIX: "/path1:/path2" +;include_path = ".:/usr/share/php" +; +; 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 + +; 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 +; 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 + +;;;;;;;;;;;;;;;; +; 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 = 20M + +; 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.extension +; +; For example, on Windows: +; +; extension=msql.dll +; +; ... or under UNIX: +; +; extension=msql.so +; +; ... or with a path: +; +; extension=/path/to/extension/msql.so +; +; If you only provide the name of the extension, PHP will look for it in its +; default extension directory. +; + +;;;;;;;;;;;;;;;;;;; +; 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 = Europe/Paris + +; 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 < 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 = + +[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 + +[sqlite] +; http://php.net/sqlite.assoc-case +;sqlite.assoc_case = 0 + +[sqlite3] +;sqlite3.extension_dir = + +[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 + +[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] +; If mysqlnd is used: Number of cache slots for the internal result set cache +; http://php.net/pdo_mysql.cache_size +pdo_mysql.cache_size = 2000 + +; Default socket name for local MySQL connects. If empty, uses the built-in +; MySQL defaults. +; http://php.net/pdo_mysql.default-socket +pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock + +[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 = On + +; 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 + +[SQL] +; http://php.net/sql.safe-mode +sql.safe_mode = Off + +[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 + +;birdstep.max_links = -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" + +[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 = /var/run/mysqld/mysqld.sock + +; 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. +; 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 + +; If mysqlnd is used: Number of cache slots for the internal result set cache +; http://php.net/mysqli.cache_size +mysqli.cache_size = 2000 + +; 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. +; http://php.net/mysqlnd.collect_statistics +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 = Off + +; 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 + +; Size of a pre-allocated buffer used for reading data sent by the server in +; bytes. +; http://php.net/mysqlnd.net_read_buffer_size +;mysqlnd.net_read_buffer_size = 32768 + +[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 + +[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 +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 = "/var/lib/php5/sessions" + +; 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 + +; 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 = + +; 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 give request. +; Default Value: 1 +; Development Value: 1 +; Production Value: 1 +; http://php.net/session.gc-probability +session.gc_probability = 0 + +; 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 1 +; when the session.gc_divisor value is 100 will give you approximately a 1% chance +; the gc will run on any give request. Increasing this value to 1000 will give you +; a 0.1% chance the gc will run on any give 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 = + +; 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 +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 + +; 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 + +; 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.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" + +; 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" + +[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" + +[Assertion] +; Assert(expr); active by default. +; http://php.net/assert.active +;assert.active = On + +; Issue a PHP warning for each failed assertion. +; 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 components 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 mbstrig.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_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 = + +; 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= + +[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 + +[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 + +[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=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=256 + +; The amount of memory for interned strings in Mbytes. +opcache.interned_strings_buffer=16 + +; The maximum number of keys (scripts) in the OPcache hash table. +; Only numbers between 200 and 100000 are allowed. +opcache.max_accelerated_files=20000 + +; The maximum percentage of "wasted" memory until a restart is scheduled. +opcache.max_wasted_percentage=10 + +; 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=0 + +; 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 + +; 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=1 + +; 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 + +[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/docker/debian-base.Dockerfile b/docker/debian-base.Dockerfile index 5b99237b..212086ee 100644 --- a/docker/debian-base.Dockerfile +++ b/docker/debian-base.Dockerfile @@ -1,6 +1,108 @@ ARG PS_VERSION ARG PHP_DOCKER_TAG -FROM php:${PHP_DOCKER_TAG} AS alpine-base-prestashop +# ================================== +# Stage 1/3: PHP base configuration +# ================================== +FROM php:${PHP_DOCKER_TAG} AS debian-base-prestashop ARG PS_VERSION -ARG PS_FOLDER=/var/www/html \ No newline at end of file + +ENV PS_DOMAIN="" \ +DB_SERVER="" \ +DB_PORT=3306 \ +DB_NAME=prestashop \ +DB_USER=root \ +DB_PASSWD=admin \ +DB_PREFIX=ps_ \ +ADMIN_MAIL=demo@prestashop.com \ +ADMIN_PASSWD=prestashop_demo \ +PS_LANGUAGE=en \ +PS_COUNTRY=GB \ +PS_ALL_LANGUAGES=0 \ +PS_INSTALL_AUTO=0 \ +PS_ERASE_DB=0 \ +PS_INSTALL_DB=0 \ +PS_DEV_MODE=0 \ +PS_HOST_MODE=0 \ +PS_DEMO_MODE=0 \ +PS_ENABLE_SSL=0 \ +PS_HANDLE_DYNAMIC_DOMAIN=0 \ +PS_FOLDER_ADMIN=admin \ +PS_FOLDER_INSTALL=install + +RUN DEBIAN_FRONTEND=noninteractive \ + apt-get update \ + && apt-get install -y libmcrypt-dev \ + libjpeg62-turbo-dev \ + libpcre3-dev \ + libpng-dev \ + libwebp-dev \ + libfreetype6-dev \ + libxml2-dev \ + libicu-dev \ + libzip-dev \ + default-mysql-client \ + wget \ + unzip \ + libonig-dev \ + && rm -rf /var/lib/apt/lists/* + +RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include +RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath + +RUN docker-php-source extract \ + && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ + && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ + && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ + && docker-php-source delete + +# The PrestaShop docker entrypoint +COPY config_files/docker_run.sh /tmp/ + +# Handling a dynamic domain +COPY config_files/docker_updt_ps_domains.php /tmp/ + +# PHP env for dev / demo modes +COPY config_files/defines_custom.inc.php /tmp/ +RUN chown www-data:www-data /tmp/defines_custom.inc.php + +# Apache configuration +RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi + +# PHP configuration +COPY config_files/php.ini /usr/local/etc/php/ + +# ========================================= +# Stage 2/3: PrestaShop sources downloader +# ========================================= +FROM debian-base-prestashop AS debian-download-prestashop +ARG PS_VERSION + +RUN DEBIAN_FRONTEND=noninteractive \ + apt-get update \ + && apt-get install -y git jq make + +RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ + git clone --depth 1 'https://github.com/PrestaShop/PrestaShop.git' /tmp/prestashop; \ + rm -rf /tmp/prestashop/.git; \ + make install; \ + else \ + DOWNLOAD_URL=$(curl -s -L --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url'); \ + curl -s -L -o /tmp/prestashop.zip "${DOWNLOAD_URL}"; \ + unzip -n -q /tmp/prestashop.zip -d /tmp/prestashop; \ + fi + +# ============================ +# Stage 3/3: Production image +# ============================ +FROM debian-base-prestashop +ARG PS_FOLDER=/var/www/html + +LABEL maintainer="PrestaShop Core Team " + +ENV PS_VERSION $PS_VERSION + +# Copy the PrestaShop sources +COPY --chown=www-data:www-data --from=debian-download-prestashop /tmp/prestashop ${PS_FOLDER}/prestashop + +CMD ["/tmp/docker_run.sh"] diff --git a/prestashop-versions.json b/prestashop-versions.json index d584e669..3cf45426 100644 --- a/prestashop-versions.json +++ b/prestashop-versions.json @@ -40,5 +40,10 @@ "recommended": "8.1", "compatible": ["7.2", "7.3", "7.4", "8.0", "8.1"] } + }, + "nightly": { + "php": { + "recommended": "8.2" + } } } From 6f7995e43d8889f90b4f78180db83f8c714e9787 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 8 Sep 2023 09:57:59 +0200 Subject: [PATCH 08/29] feat: Update with PrestaShop 8.1 --- README.md | 6 ++++++ prestashop-tags.json | 6 +++--- prestashop-versions.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 74c4db06..e5b43e9d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ Available env vars: > Note: default debian distribution is set to Debian 11 Bullseye. +## Update + +If you want to add a new version of PrestaShop, you should edit the: +- (prestashop-versions.json)[prestashop-versions.json] to add the new version with PHP recommended & compatibles version +- (prestashop-tags.json)[prestashop-tags.json] + --- # WIP: Notes diff --git a/prestashop-tags.json b/prestashop-tags.json index c518ba6f..074d744a 100644 --- a/prestashop-tags.json +++ b/prestashop-tags.json @@ -23,8 +23,8 @@ "fpm": ["^1.7.8-7.4-fpm"], "apache": ["^1.7.8-7.4-apache", "^1.7.8-7.4"] }, - "^8.0": { - "fpm": ["^8.0-8.1-fpm"], - "apache": ["^8.0-8.1-apache", "^8.0-8.1", "^8.0", "latest"] + "^8.[0-1]": { + "fpm": ["^8.[0-1]-8.1-fpm"], + "apache": ["^8.[0-1]-8.1-apache", "^8.[0-1]-8.1", "^8.[0-1]", "latest"] } } diff --git a/prestashop-versions.json b/prestashop-versions.json index 3cf45426..92c48a46 100644 --- a/prestashop-versions.json +++ b/prestashop-versions.json @@ -35,7 +35,7 @@ "compatible": ["7.1", "7.2", "7.3", "7.4"] } }, - "^8.0": { + "^8.[0-1]": { "php": { "recommended": "8.1", "compatible": ["7.2", "7.3", "7.4", "8.0", "8.1"] From ed1adb83face1d7217ffb9eabd909ee48672be85 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 8 Sep 2023 10:17:31 +0200 Subject: [PATCH 09/29] ci: Some updates --- .github/workflows/publish.yml | 23 +++++++++++++++++------ README.md | 5 +++-- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2cb3760..2557550c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,10 +3,15 @@ name: Publish containers on: push: - branches: master + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +# TODO: nightly -> cron ? env: REGISTRY: docker.io + TARGET_PLATFORMS: 'linux/amd64,linux/arm64,linux/arm' jobs: publish: @@ -22,7 +27,7 @@ jobs: uses: docker/setup-buildx-action@v2 with: use: true -# platforms: ${{ env.TARGET_PLATFORMS }} + platforms: ${{ env.TARGET_PLATFORMS }} # Login against a Docker registry except on PR # https://github.com/docker/login-action @@ -33,11 +38,17 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} -# - name: Install dependencies -# run: apt install jq + - name: Install dependencies + shell: bash + run: apt install jq curl - name: Build Docker images - run: echo "WIP" + shell: bash + run: ./build.sh - name: Push Docker images - run: echo "WIP" + if: ${{ github.event_name != 'pull_request' }} + shell: bash + run: | + echo "WIP" + docker image ls diff --git a/README.md b/README.md index e5b43e9d..fd5bb081 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ prestashop/prestashop:8.0.1-8.1-apache Available env vars: | Env var | Description | Default | -| ---------------------- | ----------------------------------------------------------------------------------- | ---------------------------------- | +|------------------------|-------------------------------------------------------------------------------------|------------------------------------| | **BUILDPLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | | **LINUX_DISTRIBUTION** | `debian` or `alpine` | `debian` | | **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | @@ -44,6 +44,7 @@ Available env vars: ## Update If you want to add a new version of PrestaShop, you should edit the: + - (prestashop-versions.json)[prestashop-versions.json] to add the new version with PHP recommended & compatibles version - (prestashop-tags.json)[prestashop-tags.json] @@ -60,7 +61,7 @@ docker run --port 80:80 --detach --name prestashop prestashop/prestashop:8.0.1 ### Exemple: je release PrestaShop "8.0.1" | TAGS | What's In | Alias to | -| ---------------- | ---------------- | ---------------- | +|------------------|------------------|------------------| | 8.0.1 | apache + php 8.1 | 8.0.1-8.1-apache | | 8.0.1-apache | apache + php 8.1 | 8.0.1-8.1-apache | | 8.0.1-8.1 | apache + php 8.1 | 8.0.1-8.1-apache | From 4ebcf8b07f57fe48540393430a5e67b4e955c3bf Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 24 Nov 2023 15:27:21 +0100 Subject: [PATCH 10/29] refacto: Restructure Docker build process and update supporting files The build process for creating the Docker image for Prestashop has been significantly restructured. This change was due to the necessity to support different PHP versions, OS flavours, and server types, which all affected the creation of the Docker images. Thus, build.sh was updated to get PHP version and flavour based on the Prestashop version and considered OS and server types. Also, all the json files that were used to get info for build.sh and were not relevant anymore were removed. In addition, the Github workflows have been updated to work with the new build process structure. Also, Dockerfile names have been simplified removing '-base' from the names. --- .github/workflows/publish.yml | 12 +- .github/workflows/pull-request.yml | 45 ++++ README.md | 16 +- arch.json | 1 - base.json | 1 - build.sh | 211 +++++++++++------- ...pine-base.Dockerfile => alpine.Dockerfile} | 8 +- ...bian-base.Dockerfile => debian.Dockerfile} | 5 +- flavour.json | 1 - php-flavours.json | 34 +++ prestashop-tags.json | 30 --- prestashop-versions.json | 10 +- 12 files changed, 235 insertions(+), 139 deletions(-) create mode 100644 .github/workflows/pull-request.yml delete mode 100644 arch.json delete mode 100644 base.json rename docker/{alpine-base.Dockerfile => alpine.Dockerfile} (91%) rename docker/{debian-base.Dockerfile => debian.Dockerfile} (97%) delete mode 100644 flavour.json create mode 100644 php-flavours.json delete mode 100644 prestashop-tags.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2557550c..3525bc19 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,28 +11,28 @@ on: env: REGISTRY: docker.io - TARGET_PLATFORMS: 'linux/amd64,linux/arm64,linux/arm' + PLATFORM: 'linux/amd64,linux/arm64' jobs: publish: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: use: true - platforms: ${{ env.TARGET_PLATFORMS }} + platforms: ${{ env.PLATFORM }} # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..16995b5a --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,45 @@ +name: Pull Request +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + lint_shell: + name: "Lint: shell" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + + lint_dockerfile: + name: "Lint: dockerfile" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + recursive: true + dockerfile: "*.Dockerfile" + + docker_build: + name: "Docker build: ${{ matrix.os_flavour }} for ${{ matrix.ps_version }}" + runs-on: ubuntu-latest + strategy: + matrix: + os_flavour: ["alpine", "debian"] + ps_version: ["1.6.1.24", "1.7.8.10", "8.1.1"] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Call the docker build chain + run: ./build.sh + env: + OS_FLAVOUR: ${{ matrix.os_flavour }} + PS_VERSION: ${{ matrix.ps_version }} + + - name: Test the image with a dry run + run: docker run --env PS_DOMAIN='localhost:80' $DOCKER_IMAGE cat VERSION + env: + DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/README.md b/README.md index fd5bb081..ad699325 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ prestashop/prestashop:8.0.1-8.1-apache Available env vars: -| Env var | Description | Default | -|------------------------|-------------------------------------------------------------------------------------|------------------------------------| -| **BUILDPLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | -| **LINUX_DISTRIBUTION** | `debian` or `alpine` | `debian` | -| **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | -| **PHP_FLAVOUR** | `fpm`, `apache` or `zts` | `apache` | -| **PS_VERSION** | PrestaShop version | `latest` | -| **DOCKER_REPOSITORY** | the Docker image repository | `prestashop/prestashop` | +| Env var | Description | Default | +|-----------------------|-------------------------------------------------------------------------------------|------------------------------------| +| **PLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | +| **OS_FLAVOUR** | `debian` or `alpine` | `debian` | +| **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | +| **PHP_FLAVOUR** | `fpm`, `apache` or `zts` | `apache` | +| **PS_VERSION** | PrestaShop version | `latest` | +| **DOCKER_REPOSITORY** | the Docker image repository | `prestashop/prestashop` | > Note: default debian distribution is set to Debian 11 Bullseye. diff --git a/arch.json b/arch.json deleted file mode 100644 index a6e312bd..00000000 --- a/arch.json +++ /dev/null @@ -1 +0,0 @@ -["linux/amd64", "linux/arm64", "linux/arm"] diff --git a/base.json b/base.json deleted file mode 100644 index a3b0a2bd..00000000 --- a/base.json +++ /dev/null @@ -1 +0,0 @@ -["debian", "alpine"] diff --git a/build.sh b/build.sh index 206443f7..8114f25d 100755 --- a/build.sh +++ b/build.sh @@ -1,15 +1,33 @@ #!/bin/bash -# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425 -set -euo pipefail - -function error { +set -e + +# Available variables +# ------------------- +declare PLATFORM; # -- a comma separated list of target platforms (defaults to "linux/amd64") +declare OS_FLAVOUR; # -- either "debian" (default) or "alpine" +declare PHP_VERSION; # -- PHP version, defaults to recommended version for PrestaShop +declare PHP_FLAVOUR; # -- PHP flavour, defaults apache +declare PS_VERSION; # -- PrestaShop version, defaults to latest +declare TARGET_IMAGE; # -- docker image name, defaults to "prestashop/prestashop-flashlight" +declare PUSH; # -- set it to "true" if you want to push the resulting image + +# Static configuration +# -------------------- +DEFAULT_OS="debian"; +DEFAULT_SERVER="apache"; +DEFAULT_DOCKER_IMAGE=prestashop/prestashop +DEFAULT_PLATFORM=linux/amd64 +GIT_SHA=$(git rev-parse HEAD) + +error() { echo -e "\e[1;31m${1:-Unknown error}\e[0m" exit "${2:-1}" } # Get latest version of PrestaShop (via GitHub) -function get_latest_prestashop_version { - curl --silent --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' +get_latest_prestashop_version() { + curl --silent --location --request GET \ + 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } # Get recommended PHP version from `prestashop-versions.json` @@ -18,18 +36,17 @@ function get_latest_prestashop_version { # # Examples: # - get_recommended_php_version "8.0.4" -function get_recommended_php_version { - PS_VERSION=$1 - RECOMMENDED_VERSION= +get_recommended_php_version() { + local PS_VERSION=$1; + local RECOMMENDED_VERSION=; REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' /dev/null || true docker buildx build \ - ${BUILDPLATFORM:+"--platform=$BUILDPLATFORM"} \ - --build-arg PHP_DOCKER_TAG="${PHP_DOCKER_TAG}" \ - --build-arg PS_VERSION="${PS_VERSION}" \ - --cache-from type=registry,ref=$DOCKER_REPOSITORY:latest \ + --file "./docker/${OS_FLAVOUR}.Dockerfile" \ + --platform "${PLATFORM:-$DEFAULT_PLATFORM}" \ + --build-arg PHP_VERSION="$PHP_VERSION" \ + --build-arg PHP_FLAVOUR="$PHP_FLAVOUR" \ + --build-arg PS_VERSION="$PS_VERSION" \ + --build-arg GIT_SHA="$GIT_SHA" \ + --cache-from type=registry,ref="$CACHE_IMAGE" \ --cache-to type=inline \ - --file ./docker/$LINUX_DISTRIBUTION-base.Dockerfile \ - $TAGS \ + --label org.opencontainers.image.title="PrestaShop" \ + --label org.opencontainers.image.description="PrestaShop docker image" \ + --label org.opencontainers.image.source=https://github.com/PrestaShop/docker \ + --label org.opencontainers.image.url=https://github.com/PrestaShop/docker \ + --label org.opencontainers.image.licenses=MIT \ + --label org.opencontainers.image.created="$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")" \ + "${TARGET_IMAGES[@]}" \ + "$([ "${PUSH}" == "true" ] && echo "--push" || echo "--load")" \ ./docker -# -------------------------------- -# - Check if release exists before ? - -## Specific version -#DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases'| jq -r '.[] | select(.tag_name | contains("$PS_VERSION")) | .assets[] | select(.name | contains(".zip")) | .browser_download_url') -## latest -#DOWNLOAD_URL=$(curl --location --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url') -#curl -o ./prestashop.zip -L $DOWNLOAD_URL -## Nightly -#git clone 'https://github.com/PrestaShop/PrestaShop.git' - -function check_if_image_exists { - DOCKER_IMAGE=$1 - docker manifest inspect "$DOCKER_IMAGE" >/dev/null - echo $? -} - -function get_tag_aliases { - DOCKER_REPOSITORY=$1 - PS_VERSION=$2 - PHP_FLAVOUR=$3 - - REGEXP_TAGS= - REGEXP_LIST=$(jq -r 'keys_unsorted | .[]' Date: Thu, 21 Dec 2023 10:16:05 +0100 Subject: [PATCH 11/29] Some clean --- .dockerignore | 4 +- .github/workflows/pull-request.yml | 6 +- TODO.md | 26 - docker/alpine.Dockerfile | 77 +- old/Dockerfile-nightly.model | 20 - old/Dockerfile.model | 13 - old/base/Dockerfile.model | 72 - old/base/config_files/defines_custom.inc.php | 32 - old/base/config_files/docker_nightly_run.sh | 16 - old/base/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 62 - old/base/config_files/php.ini | 1953 ----------------- old/base/config_files/ps-extractor.sh | 17 - old/base/generate_tags.sh | 54 - old/base/images/7.1-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../7.1-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/7.1-apache/config_files/php.ini | 1953 ----------------- .../7.1-apache/config_files/ps-extractor.sh | 17 - old/base/images/7.1-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/7.1-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/7.1-fpm/config_files/php.ini | 1953 ----------------- .../7.1-fpm/config_files/ps-extractor.sh | 17 - old/base/images/7.2-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../7.2-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/7.2-apache/config_files/php.ini | 1953 ----------------- .../7.2-apache/config_files/ps-extractor.sh | 17 - old/base/images/7.2-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/7.2-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/7.2-fpm/config_files/php.ini | 1953 ----------------- .../7.2-fpm/config_files/ps-extractor.sh | 17 - old/base/images/7.3-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../7.3-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/7.3-apache/config_files/php.ini | 1953 ----------------- .../7.3-apache/config_files/ps-extractor.sh | 17 - old/base/images/7.3-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/7.3-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/7.3-fpm/config_files/php.ini | 1953 ----------------- .../7.3-fpm/config_files/ps-extractor.sh | 17 - old/base/images/7.4-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../7.4-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/7.4-apache/config_files/php.ini | 1953 ----------------- .../7.4-apache/config_files/ps-extractor.sh | 17 - old/base/images/7.4-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/7.4-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/7.4-fpm/config_files/php.ini | 1953 ----------------- .../7.4-fpm/config_files/ps-extractor.sh | 17 - old/base/images/8.0-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../8.0-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/8.0-apache/config_files/php.ini | 1953 ----------------- .../8.0-apache/config_files/ps-extractor.sh | 17 - old/base/images/8.0-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/8.0-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/8.0-fpm/config_files/php.ini | 1953 ----------------- .../8.0-fpm/config_files/ps-extractor.sh | 17 - old/base/images/8.1-apache/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../8.1-apache/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - .../images/8.1-apache/config_files/php.ini | 1953 ----------------- .../8.1-apache/config_files/ps-extractor.sh | 17 - old/base/images/8.1-fpm/Dockerfile | 69 - .../config_files/defines_custom.inc.php | 32 - .../config_files/docker_nightly_run.sh | 16 - .../images/8.1-fpm/config_files/docker_run.sh | 145 -- .../config_files/docker_updt_ps_domains.php | 56 - old/base/images/8.1-fpm/config_files/php.ini | 1953 ----------------- .../8.1-fpm/config_files/ps-extractor.sh | 17 - old/base/tags.txt | 12 - old/prestashop_docker/__init__.py | 6 - old/prestashop_docker/docker_api.py | 86 - old/prestashop_docker/generator.py | 100 - old/prestashop_docker/stream.py | 41 - old/prestashop_docker/tag_manager.py | 156 -- old/prestashop_docker/version_manager.py | 235 -- 105 files changed, 66 insertions(+), 30523 deletions(-) delete mode 100644 TODO.md delete mode 100644 old/Dockerfile-nightly.model delete mode 100644 old/Dockerfile.model delete mode 100644 old/base/Dockerfile.model delete mode 100644 old/base/config_files/defines_custom.inc.php delete mode 100755 old/base/config_files/docker_nightly_run.sh delete mode 100755 old/base/config_files/docker_run.sh delete mode 100644 old/base/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/config_files/php.ini delete mode 100644 old/base/config_files/ps-extractor.sh delete mode 100755 old/base/generate_tags.sh delete mode 100644 old/base/images/7.1-apache/Dockerfile delete mode 100644 old/base/images/7.1-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.1-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.1-apache/config_files/docker_run.sh delete mode 100644 old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.1-apache/config_files/php.ini delete mode 100644 old/base/images/7.1-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.1-fpm/Dockerfile delete mode 100644 old/base/images/7.1-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.1-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.1-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.1-fpm/config_files/php.ini delete mode 100644 old/base/images/7.1-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.2-apache/Dockerfile delete mode 100644 old/base/images/7.2-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.2-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.2-apache/config_files/docker_run.sh delete mode 100644 old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.2-apache/config_files/php.ini delete mode 100644 old/base/images/7.2-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.2-fpm/Dockerfile delete mode 100644 old/base/images/7.2-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.2-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.2-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.2-fpm/config_files/php.ini delete mode 100644 old/base/images/7.2-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.3-apache/Dockerfile delete mode 100644 old/base/images/7.3-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.3-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.3-apache/config_files/docker_run.sh delete mode 100644 old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.3-apache/config_files/php.ini delete mode 100644 old/base/images/7.3-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.3-fpm/Dockerfile delete mode 100644 old/base/images/7.3-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.3-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.3-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.3-fpm/config_files/php.ini delete mode 100644 old/base/images/7.3-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.4-apache/Dockerfile delete mode 100644 old/base/images/7.4-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.4-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.4-apache/config_files/docker_run.sh delete mode 100644 old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.4-apache/config_files/php.ini delete mode 100644 old/base/images/7.4-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/7.4-fpm/Dockerfile delete mode 100644 old/base/images/7.4-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/7.4-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/7.4-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/7.4-fpm/config_files/php.ini delete mode 100644 old/base/images/7.4-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/images/8.0-apache/Dockerfile delete mode 100644 old/base/images/8.0-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/8.0-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/8.0-apache/config_files/docker_run.sh delete mode 100644 old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/8.0-apache/config_files/php.ini delete mode 100644 old/base/images/8.0-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/8.0-fpm/Dockerfile delete mode 100644 old/base/images/8.0-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/8.0-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/8.0-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/8.0-fpm/config_files/php.ini delete mode 100644 old/base/images/8.0-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/images/8.1-apache/Dockerfile delete mode 100644 old/base/images/8.1-apache/config_files/defines_custom.inc.php delete mode 100755 old/base/images/8.1-apache/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/8.1-apache/config_files/docker_run.sh delete mode 100644 old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/8.1-apache/config_files/php.ini delete mode 100644 old/base/images/8.1-apache/config_files/ps-extractor.sh delete mode 100644 old/base/images/8.1-fpm/Dockerfile delete mode 100644 old/base/images/8.1-fpm/config_files/defines_custom.inc.php delete mode 100755 old/base/images/8.1-fpm/config_files/docker_nightly_run.sh delete mode 100755 old/base/images/8.1-fpm/config_files/docker_run.sh delete mode 100644 old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php delete mode 100644 old/base/images/8.1-fpm/config_files/php.ini delete mode 100644 old/base/images/8.1-fpm/config_files/ps-extractor.sh delete mode 100644 old/base/tags.txt delete mode 100644 old/prestashop_docker/__init__.py delete mode 100644 old/prestashop_docker/docker_api.py delete mode 100644 old/prestashop_docker/generator.py delete mode 100644 old/prestashop_docker/stream.py delete mode 100644 old/prestashop_docker/tag_manager.py delete mode 100644 old/prestashop_docker/version_manager.py diff --git a/.dockerignore b/.dockerignore index bcb8135a..622a9994 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,5 @@ .git -docker-compose.yml -Dockerfile +.github *.Dockerfile *.md +.editorconfig diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 16995b5a..e93b038c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -3,6 +3,9 @@ on: pull_request: types: [opened, reopened, synchronize] +env: + TARGET_PLATFORM: "linux/amd64" + jobs: lint_shell: name: "Lint: shell" @@ -38,8 +41,9 @@ jobs: env: OS_FLAVOUR: ${{ matrix.os_flavour }} PS_VERSION: ${{ matrix.ps_version }} + TARGET_PLATFORM: ${{ env.TARGET_PLATFORM }} - - name: Test the image with a dry run + - name: Test the image run: docker run --env PS_DOMAIN='localhost:80' $DOCKER_IMAGE cat VERSION env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/TODO.md b/TODO.md deleted file mode 100644 index e5dc970a..00000000 --- a/TODO.md +++ /dev/null @@ -1,26 +0,0 @@ -# TODO - -## Steps de build dockerfile - -1. Se baser sur une image php. On prend PHP officiel https://hub.docker.com/_/php - -- fpm-alpine -- fpm-buster -- fpm-bullseye -- apache-buster -- apache-bullseye -- zts ? - -2. On installe les modules PHP nécessaires à PrestaShop - -3. On download & unzip prestashop - -4. on set les variables d'env nécessaires - -5. Pleins trucs à voir ^^' - -6. Config Apache - -## Compatibilité PHP / PrestaShop - -Quid de PrestaShop 8.1 et PrestaShop 9 ? diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 538b1705..d0740520 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -1,6 +1,10 @@ ARG PS_VERSION +ARG PHP_VERSION ARG PHP_FLAVOUR +# ================================== +# Stage 1/3: PHP base configuration +# ================================== FROM php:${PHP_FLAVOUR} AS alpine-base-prestashop ARG PS_VERSION ARG PS_FOLDER=/var/www/html @@ -19,21 +23,35 @@ RUN \ ENV GD_DEPS="zlib-dev libjpeg-turbo-dev libpng-dev" ENV ZIP_DEPS="libzip-dev" ENV INTL_DEPS="icu-dev" -RUN apk add -U "$GD_DEPS" "$ZIP_DEPS" "$INTL_DEPS" \ +RUN apk --no-cache add -U $GD_DEPS $ZIP_DEPS $INTL_DEPS \ && docker-php-ext-configure gd --with-jpeg \ && docker-php-ext-install gd pdo_mysql zip intl; # docker-php-ext-enable opcache -# Get PrestaShop source code -ADD https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip /tmp/prestashop.zip +RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include +RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath -# Extract the souces -ADD ./tools/ps-zip-extractor.sh /ps-zip-extractor.sh -RUN mkdir -p ${PS_FOLDER} \ - && unzip -q /tmp/prestashop.zip -d ${PS_FOLDER}/ \ - && bash /ps-zip-extractor.sh ${PS_FOLDER} www-data \ - && rm -rf /tmp/prestashop.zip /ps-zip-extractor.sh +RUN docker-php-source extract \ + && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ + && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ + && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ + && docker-php-source delete +# The PrestaShop docker entrypoint +COPY config_files/docker_run.sh /tmp/ + +# Handling a dynamic domain +COPY config_files/docker_updt_ps_domains.php /tmp/ + +# PHP env for dev / demo modes +COPY config_files/defines_custom.inc.php /tmp/ +RUN chown www-data:www-data /tmp/defines_custom.inc.php + +# Apache configuration +RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi + +# PHP configuration +COPY config_files/php.ini /usr/local/etc/php/ # @TODO check opcache # RUN echo '\ @@ -44,14 +62,37 @@ RUN mkdir -p ${PS_FOLDER} \ # ' >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini # Disable IPv6 -RUN echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.conf +# RUN echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.conf + +# ========================================= +# Stage 2/3: PrestaShop sources downloader +# ========================================= +FROM alpine-base-prestashop AS alpine-download-prestashop +ARG PS_VERSION + +RUN apk --no-cache add -U git jq make + +RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ + git clone --depth 1 'https://github.com/PrestaShop/PrestaShop.git' /tmp/prestashop; \ + rm -rf /tmp/prestashop/.git; \ + make install; \ + else \ + DOWNLOAD_URL=$(curl -s -L --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url'); \ + curl -s -L -o /tmp/prestashop.zip "${DOWNLOAD_URL}"; \ + unzip -n -q /tmp/prestashop.zip -d /tmp/prestashop; \ + fi + +# ============================ +# Stage 3/3: Production image +# ============================ +FROM alpine-base-prestashop +ARG PS_FOLDER=/var/www/html + +LABEL maintainer="PrestaShop Core Team " + +ENV PS_VERSION $PS_VERSION -# Setup default env -ENV MYSQL_HOST=mysql -ENV MYSQL_USER=prestashop -ENV MYSQL_PASSWORD=prestashop -ENV MYSQL_ROOT_PASSWORD=prestashop -ENV MYSQL_PORT=3306 -ENV MYSQL_DATABASE=prestashop +# Copy the PrestaShop sources +COPY --chown=www-data:www-data --from=alpine-download-prestashop /tmp/prestashop ${PS_FOLDER}/prestashop -ENTRYPOINT ["/run.sh"] +CMD ["/tmp/docker_run.sh"] diff --git a/old/Dockerfile-nightly.model b/old/Dockerfile-nightly.model deleted file mode 100644 index 1fe887c9..00000000 --- a/old/Dockerfile-nightly.model +++ /dev/null @@ -1,20 +0,0 @@ -FROM prestashop/base:$container_version -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION $ps_version - -ENV PATH /root/google-cloud-sdk/bin/:$$PATH - -RUN apt update -RUN apt -y install \ - python3 \ - curl \ - bash - -RUN curl -sSL https://sdk.cloud.google.com | bash -RUN gcloud config set core/disable_usage_reporting true && \ - gcloud config set component_manager/disable_update_check true && \ - gcloud config set metrics/environment github_docker_image && \ - gcloud --version - -CMD ["/tmp/docker_nightly_run.sh"] diff --git a/old/Dockerfile.model b/old/Dockerfile.model deleted file mode 100644 index 4a4542c8..00000000 --- a/old/Dockerfile.model +++ /dev/null @@ -1,13 +0,0 @@ -FROM prestashop/base:$container_version -LABEL maintainer="PrestaShop Core Team " - -ENV PS_VERSION $ps_version - -# Get PrestaShop -ADD $ps_url /tmp/prestashop.zip - -# Extract -RUN mkdir -p /tmp/data-ps \ - && unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ \ - && bash /tmp/ps-extractor.sh /tmp/data-ps \ - && rm /tmp/prestashop.zip diff --git a/old/base/Dockerfile.model b/old/base/Dockerfile.model deleted file mode 100644 index 0a431656..00000000 --- a/old/base/Dockerfile.model +++ /dev/null @@ -1,72 +0,0 @@ -FROM php:{PHP_VERSION}-{PHP-FLAVOUR} -LABEL maintainer="PrestaShop Core Team " - -# Install PrestaShop PHP requirements -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - - -ENV PS_DOMAIN="" \ - DB_SERVER="" \ - DB_PORT=3306 \ - DB_NAME=prestashop \ - DB_USER=root \ - DB_PASSWD=admin \ - DB_PREFIX=ps_ \ - ADMIN_MAIL=demo@prestashop.com \ - ADMIN_PASSWD=prestashop_demo \ - PS_LANGUAGE=en \ - PS_COUNTRY=GB \ - PS_ALL_LANGUAGES=0 \ - PS_INSTALL_AUTO=0 \ - PS_ERASE_DB=0 \ - PS_INSTALL_DB=0 \ - PS_DEV_MODE=0 \ - PS_HOST_MODE=0 \ - PS_DEMO_MODE=0 \ - PS_ENABLE_SSL=0 \ - PS_HANDLE_DYNAMIC_DOMAIN=0 \ - PS_FOLDER_ADMIN=admin \ - PS_FOLDER_INSTALL=install - - - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/config_files/defines_custom.inc.php b/old/base/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/config_files/docker_nightly_run.sh b/old/base/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/config_files/docker_run.sh b/old/base/config_files/docker_run.sh deleted file mode 100755 index 27c4f35b..00000000 --- a/old/base/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec {PHP_CMD} diff --git a/old/base/config_files/docker_updt_ps_domains.php b/old/base/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 87cb4c39..00000000 --- a/old/base/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - - // Finally, update all the files that depend on the domain name - Tools::generateHtaccess(); - Tools::generateRobotsFile(); - Tools::clearSmartyCache(); - Media::clearCache(); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/config_files/php.ini b/old/base/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/config_files/ps-extractor.sh b/old/base/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/generate_tags.sh b/old/base/generate_tags.sh deleted file mode 100755 index 24aa434f..00000000 --- a/old/base/generate_tags.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -cd $(cd "$( dirname "$0" )" && pwd) - -if [ -z "$1" ] || [ "$1" == "-f" ]; then - PS_VERSIONS_FILE="tags.txt"; -else - PS_VERSIONS_FILE="$1"; -fi - -while getopts ":f" option; do - case $option in - f) - FORCE=true - ;; - esac -done - -generate_image() -{ - echo "Generate Dockerfile for PHP $version" - - local version=$1 - local folder="${version}"; - local exec="apache2-foreground"; - - if [[ $version = *"fpm"* ]]; then - exec='php-fpm' - fi - - - if [ -d images/$folder ] && [ -z "$FORCE" ]; then - # Do not erase what we already defined in the directory - return - fi - - mkdir -p images/$folder/ - - sed ' - s/{PHP_TAG}/'"${version}"'/ - ' Dockerfile.model > images/$folder/Dockerfile - - cp -R config_files images/$folder/ - sed ' - s/{PHP_CMD}/'"${exec}"'/ - ' config_files/docker_run.sh > images/$folder/config_files/docker_run.sh -} - - -# Generate base images for PHP tags -echo "Reading tags in ${PS_VERSIONS_FILE} ..." -while read version; do - generate_image $version -done < $PS_VERSIONS_FILE diff --git a/old/base/images/7.1-apache/Dockerfile b/old/base/images/7.1-apache/Dockerfile deleted file mode 100644 index 52029a2a..00000000 --- a/old/base/images/7.1-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.1-apache/config_files/defines_custom.inc.php b/old/base/images/7.1-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.1-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.1-apache/config_files/docker_nightly_run.sh b/old/base/images/7.1-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.1-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.1-apache/config_files/docker_run.sh b/old/base/images/7.1-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/7.1-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.1-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.1-apache/config_files/php.ini b/old/base/images/7.1-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.1-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.1-apache/config_files/ps-extractor.sh b/old/base/images/7.1-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.1-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.1-fpm/Dockerfile b/old/base/images/7.1-fpm/Dockerfile deleted file mode 100644 index e74c08ba..00000000 --- a/old/base/images/7.1-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.1-fpm/config_files/defines_custom.inc.php b/old/base/images/7.1-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.1-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.1-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.1-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.1-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.1-fpm/config_files/docker_run.sh b/old/base/images/7.1-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/7.1-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.1-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.1-fpm/config_files/php.ini b/old/base/images/7.1-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.1-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.1-fpm/config_files/ps-extractor.sh b/old/base/images/7.1-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.1-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.2-apache/Dockerfile b/old/base/images/7.2-apache/Dockerfile deleted file mode 100644 index 5c7e9725..00000000 --- a/old/base/images/7.2-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.2-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.2-apache/config_files/defines_custom.inc.php b/old/base/images/7.2-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.2-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.2-apache/config_files/docker_nightly_run.sh b/old/base/images/7.2-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.2-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.2-apache/config_files/docker_run.sh b/old/base/images/7.2-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/7.2-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.2-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.2-apache/config_files/php.ini b/old/base/images/7.2-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.2-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.2-apache/config_files/ps-extractor.sh b/old/base/images/7.2-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.2-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.2-fpm/Dockerfile b/old/base/images/7.2-fpm/Dockerfile deleted file mode 100644 index 40a14332..00000000 --- a/old/base/images/7.2-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.2-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.2-fpm/config_files/defines_custom.inc.php b/old/base/images/7.2-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.2-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.2-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.2-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.2-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.2-fpm/config_files/docker_run.sh b/old/base/images/7.2-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/7.2-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.2-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.2-fpm/config_files/php.ini b/old/base/images/7.2-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.2-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.2-fpm/config_files/ps-extractor.sh b/old/base/images/7.2-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.2-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.3-apache/Dockerfile b/old/base/images/7.3-apache/Dockerfile deleted file mode 100644 index 63b07642..00000000 --- a/old/base/images/7.3-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.3-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.3-apache/config_files/defines_custom.inc.php b/old/base/images/7.3-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.3-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.3-apache/config_files/docker_nightly_run.sh b/old/base/images/7.3-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.3-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.3-apache/config_files/docker_run.sh b/old/base/images/7.3-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/7.3-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.3-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.3-apache/config_files/php.ini b/old/base/images/7.3-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.3-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.3-apache/config_files/ps-extractor.sh b/old/base/images/7.3-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.3-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.3-fpm/Dockerfile b/old/base/images/7.3-fpm/Dockerfile deleted file mode 100644 index cc94bf6b..00000000 --- a/old/base/images/7.3-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.3-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.3-fpm/config_files/defines_custom.inc.php b/old/base/images/7.3-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.3-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.3-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.3-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.3-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.3-fpm/config_files/docker_run.sh b/old/base/images/7.3-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/7.3-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.3-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.3-fpm/config_files/php.ini b/old/base/images/7.3-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.3-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.3-fpm/config_files/ps-extractor.sh b/old/base/images/7.3-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.3-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.4-apache/Dockerfile b/old/base/images/7.4-apache/Dockerfile deleted file mode 100644 index c45609db..00000000 --- a/old/base/images/7.4-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.4-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.4-apache/config_files/defines_custom.inc.php b/old/base/images/7.4-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.4-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.4-apache/config_files/docker_nightly_run.sh b/old/base/images/7.4-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.4-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.4-apache/config_files/docker_run.sh b/old/base/images/7.4-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/7.4-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php b/old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.4-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.4-apache/config_files/php.ini b/old/base/images/7.4-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.4-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.4-apache/config_files/ps-extractor.sh b/old/base/images/7.4-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.4-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/7.4-fpm/Dockerfile b/old/base/images/7.4-fpm/Dockerfile deleted file mode 100644 index ff9e156d..00000000 --- a/old/base/images/7.4-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:7.4-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/7.4-fpm/config_files/defines_custom.inc.php b/old/base/images/7.4-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/7.4-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/7.4-fpm/config_files/docker_nightly_run.sh b/old/base/images/7.4-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/7.4-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/7.4-fpm/config_files/docker_run.sh b/old/base/images/7.4-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/7.4-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/7.4-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/7.4-fpm/config_files/php.ini b/old/base/images/7.4-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/7.4-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/7.4-fpm/config_files/ps-extractor.sh b/old/base/images/7.4-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/7.4-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/8.0-apache/Dockerfile b/old/base/images/8.0-apache/Dockerfile deleted file mode 100644 index da958f9f..00000000 --- a/old/base/images/8.0-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:8.0-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/8.0-apache/config_files/defines_custom.inc.php b/old/base/images/8.0-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/8.0-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/8.0-apache/config_files/docker_nightly_run.sh b/old/base/images/8.0-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/8.0-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/8.0-apache/config_files/docker_run.sh b/old/base/images/8.0-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/8.0-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php b/old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/8.0-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/8.0-apache/config_files/php.ini b/old/base/images/8.0-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/8.0-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/8.0-apache/config_files/ps-extractor.sh b/old/base/images/8.0-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/8.0-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/8.0-fpm/Dockerfile b/old/base/images/8.0-fpm/Dockerfile deleted file mode 100644 index b317858e..00000000 --- a/old/base/images/8.0-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:8.0-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/8.0-fpm/config_files/defines_custom.inc.php b/old/base/images/8.0-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/8.0-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/8.0-fpm/config_files/docker_nightly_run.sh b/old/base/images/8.0-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/8.0-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/8.0-fpm/config_files/docker_run.sh b/old/base/images/8.0-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/8.0-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/8.0-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/8.0-fpm/config_files/php.ini b/old/base/images/8.0-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/8.0-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/8.0-fpm/config_files/ps-extractor.sh b/old/base/images/8.0-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/8.0-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/8.1-apache/Dockerfile b/old/base/images/8.1-apache/Dockerfile deleted file mode 100644 index b762d70c..00000000 --- a/old/base/images/8.1-apache/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:8.1-apache -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/8.1-apache/config_files/defines_custom.inc.php b/old/base/images/8.1-apache/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/8.1-apache/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/8.1-apache/config_files/docker_nightly_run.sh b/old/base/images/8.1-apache/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/8.1-apache/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/8.1-apache/config_files/docker_run.sh b/old/base/images/8.1-apache/config_files/docker_run.sh deleted file mode 100755 index d87eb37f..00000000 --- a/old/base/images/8.1-apache/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec apache2-foreground diff --git a/old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php b/old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/8.1-apache/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/8.1-apache/config_files/php.ini b/old/base/images/8.1-apache/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/8.1-apache/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/8.1-apache/config_files/ps-extractor.sh b/old/base/images/8.1-apache/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/8.1-apache/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/images/8.1-fpm/Dockerfile b/old/base/images/8.1-fpm/Dockerfile deleted file mode 100644 index 9863f518..00000000 --- a/old/base/images/8.1-fpm/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM php:8.1-fpm -LABEL maintainer="PrestaShop Core Team " - -ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev - -RUN rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - -# Prepare install and CMD script -COPY config_files/ps-extractor.sh config_files/docker_run.sh config_files/docker_nightly_run.sh /tmp/ - -# If handle dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ - -# PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php - -# Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# Run -CMD ["/tmp/docker_run.sh"] diff --git a/old/base/images/8.1-fpm/config_files/defines_custom.inc.php b/old/base/images/8.1-fpm/config_files/defines_custom.inc.php deleted file mode 100644 index 59128057..00000000 --- a/old/base/images/8.1-fpm/config_files/defines_custom.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ -if ((bool) getenv('PS_DEV_MODE')) { - define('_PS_MODE_DEV_', (bool) getenv('PS_DEV_MODE')); -} -// FYI: Defining env var _PS_HOST_MODE_ as true also works natively -if ((bool) getenv('PS_HOST_MODE')) { - define('_PS_HOST_MODE_', (bool) getenv('PS_HOST_MODE')); -} diff --git a/old/base/images/8.1-fpm/config_files/docker_nightly_run.sh b/old/base/images/8.1-fpm/config_files/docker_nightly_run.sh deleted file mode 100755 index f88c8a67..00000000 --- a/old/base/images/8.1-fpm/config_files/docker_nightly_run.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Download nightly build -if [ ! -d /tmp/data-ps ]; then - gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E 'develop.+\.zip$$' | tail -1` /tmp/prestashop.zip - - mkdir -p /tmp/data-ps - unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ - - bash /tmp/ps-extractor.sh /tmp/data-ps - - # Remove downloaded zip - rm /tmp/prestashop.zip -fi - -/tmp/docker_run.sh diff --git a/old/base/images/8.1-fpm/config_files/docker_run.sh b/old/base/images/8.1-fpm/config_files/docker_run.sh deleted file mode 100755 index a0f45af4..00000000 --- a/old/base/images/8.1-fpm/config_files/docker_run.sh +++ /dev/null @@ -1,145 +0,0 @@ -#!/bin/sh - -if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then - echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' - echo >&2 ' You need to specify DB_SERVER in order to proceed' - exit 1 -elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then - RET=1 - while [ $RET -ne 0 ]; do - echo "\n* Checking if $DB_SERVER is available..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "status" > /dev/null 2>&1 - RET=$? - - if [ $RET -ne 0 ]; then - echo "\n* Waiting for confirmation of MySQL service startup"; - sleep 5 - fi - done - echo "\n* DB server $DB_SERVER is available, let's continue !" -fi - -# From now, stop at error -set -e - -if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then - - echo "\n* Setting up install lock file..." - touch ./install.lock - - echo "\n* Reapplying PrestaShop files for enabled volumes ..."; - - if [ -d /tmp/data-ps ]; then - # init if empty - cp -n -R -p /tmp/data-ps/prestashop/* /var/www/html - fi - - if [ -f /tmp/defines_custom.inc.php ]; then - cp -n -p /tmp/defines_custom.inc.php /var/www/html/config/defines_custom.inc.php - fi - - if [ -d /tmp/pre-install-scripts/ ]; then - echo "\n* Running pre-install script(s)..." - - for i in `ls /tmp/pre-install-scripts/`;do - /tmp/pre-install-scripts/$i - done - else - echo "\n* No pre-install script found, let's continue..." - fi - - if [ $PS_FOLDER_INSTALL != "install" ] && [ -d /var/www/html/install ]; then - echo "\n* Renaming install folder as $PS_FOLDER_INSTALL ..."; - mv /var/www/html/install /var/www/html/$PS_FOLDER_INSTALL/ - fi - - if [ $PS_FOLDER_ADMIN != "admin" ] && [ -d /var/www/html/admin ]; then - echo "\n* Renaming admin folder as $PS_FOLDER_ADMIN ..."; - mv /var/www/html/admin /var/www/html/$PS_FOLDER_ADMIN/ - fi - - if [ $PS_HANDLE_DYNAMIC_DOMAIN = 1 ]; then - cp /tmp/docker_updt_ps_domains.php /var/www/html - sed -ie "s/DirectoryIndex\ index.php\ index.html/DirectoryIndex\ docker_updt_ps_domains.php\ index.php\ index.html/g" $APACHE_CONFDIR/conf-available/docker-php.conf - fi - - if [ $PS_ERASE_DB = 1 ]; then - echo "\n* Drop mysql database..."; - echo "\n* Dropping existing database $DB_NAME..." - mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" - fi - - if [ $PS_INSTALL_DB = 1 ]; then - echo "\n* Create mysql database..."; - echo "\n* Creating database $DB_NAME..." - mysqladmin -h $DB_SERVER -P $DB_PORT -u $DB_USER create $DB_NAME -p$DB_PASSWD --force; - fi - - if [ $PS_INSTALL_AUTO = 1 ]; then - echo "\n* Installing PrestaShop, this may take a while ..."; - - if [ "$PS_DOMAIN" = "" ]; then - export PS_DOMAIN=$(hostname -i) - fi - - echo "\n* Launching the installer script..." - runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \ - --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \ - --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \ - --password=$ADMIN_PASSWD --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \ - --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL - - if [ $? -ne 0 ]; then - echo 'warning: PrestaShop installation failed.' - else - echo "\n* Removing install folder..." - rm -r /var/www/html/$PS_FOLDER_INSTALL/ - fi - fi - - if [ -d /tmp/post-install-scripts/ ]; then - echo "\n* Running post-install script(s)..." - - for i in `ls /tmp/post-install-scripts/`;do - /tmp/post-install-scripts/$i - done - else - echo "\n* No post-install script found, let's continue..." - fi - - echo "\n* Setup completed, removing lock file..." - rm ./install.lock - -elif [ ! -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Another setup is currently running..." - sleep 10 - exit 42 - -elif [ -f ./config/settings.inc.php ] && [ -f ./install.lock ]; then - - echo "\n* Shop seems setup but remaining install lock still present..." - sleep 10 - exit 42 - -else - echo "\n* PrestaShop Core already installed..."; -fi - -if [ $PS_DEMO_MODE -ne 0 ]; then - echo "\n* Enabling DEMO mode ..."; - sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php -fi - -echo "\n* Almost ! Starting web server now\n"; - -if [ -d /tmp/init-scripts/ ]; then - echo "\n* Running init script(s)..." - for i in `ls /tmp/init-scripts/`;do - /tmp/init-scripts/$i - done -else - echo "\n* No init script found, let's continue..." -fi - -exec php-fpm diff --git a/old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php b/old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php deleted file mode 100644 index 838e6e71..00000000 --- a/old/base/images/8.1-fpm/config_files/docker_updt_ps_domains.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) - */ - -// Workaround for redirection on init -$_POST['id_shop'] = 1; - -require_once 'config/config.inc.php'; - -if (!defined('_PS_VERSION_')) - exit; - -// First, we get the URL used to reach this page. -$domain = Tools::getHttpHost(); -$old_domain = Configuration::get('PS_SHOP_DOMAIN'); - -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) -{ - $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); - if ($url) - { - $url->domain = $domain; - $url->domain_ssl = $domain; - $url->save(); - - // Then, we update the configuration table - Configuration::updateValue('PS_SHOP_DOMAIN', $domain); - Configuration::updateValue('PS_SHOP_DOMAIN_SSL', $domain); - } -} - -//unlink(__FILE__); -Tools::redirect("index.php"); -die(); diff --git a/old/base/images/8.1-fpm/config_files/php.ini b/old/base/images/8.1-fpm/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/old/base/images/8.1-fpm/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/old/base/images/8.1-fpm/config_files/ps-extractor.sh b/old/base/images/8.1-fpm/config_files/ps-extractor.sh deleted file mode 100644 index edeee96f..00000000 --- a/old/base/images/8.1-fpm/config_files/ps-extractor.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -folder=$1 - -if [[ -n "$folder" ]]; then - - # dwl version contains zip file with tree structure (1.7) - if [ ! -d $folder/prestashop ]; then - unzip -n -q $folder/prestashop.zip -d $folder/prestashop - rm -rf $folder/prestashop.zip - fi - - chown www-data:www-data -R $folder/prestashop/ - cp -n -R -p $folder/prestashop/* /var/www/html -else - echo "Missing folder to move" -fi diff --git a/old/base/tags.txt b/old/base/tags.txt deleted file mode 100644 index 6c9cd44f..00000000 --- a/old/base/tags.txt +++ /dev/null @@ -1,12 +0,0 @@ -7.1-apache -7.2-apache -7.3-apache -7.4-apache -8.0-apache -8.1-apache -7.1-fpm -7.2-fpm -7.3-fpm -7.4-fpm -8.0-fpm -8.1-fpm diff --git a/old/prestashop_docker/__init__.py b/old/prestashop_docker/__init__.py deleted file mode 100644 index 01a787dc..00000000 --- a/old/prestashop_docker/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -CONTAINERS = ( - 'fpm', - 'apache', -) - -PREFERED_CONTAINER = 'apache' diff --git a/old/prestashop_docker/docker_api.py b/old/prestashop_docker/docker_api.py deleted file mode 100644 index d1c5667f..00000000 --- a/old/prestashop_docker/docker_api.py +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf-8 -*- -import requests_cache -import logging -import requests -import ssl -import time - -logger = logging.getLogger(__name__) -ssl._create_default_https_context = ssl._create_unverified_context - - -# Docker api -# -class DockerApi(): - retries = 0 - - def __init__(self, cache, debug): - """Constructor - - @param cache: Enable cache - @type cache: bool - @param debug: Is debug mode enabled - @type debug: bool - """ - self.sleep_time = 1 - self.url = 'https://hub.docker.com/v2/repositories/prestashop/prestashop' - self.cache = cache - self.is_debug = debug - - if self.cache: - requests_cache.install_cache('cache') - - def get_tags(self): - """Generate return tags - - @return: The json content - @rtype: dict - - """ - logger.debug( - 'Processing request for tags' - ) - - data = self.execute( - self.url + '/tags' - ) - - return data['results'] - - def execute(self, request_url): - """Execute url - - @param request_url: The url to execute - @return: The HTTP Response - @rtype: dict - """ - logger.debug( - 'Execute URL: ' + request_url - ) - - resp = requests.get( - request_url - ) - - data = resp.json() - - if resp.status_code != 200: - # Something went wrong, retry - time.sleep(self.sleep_time) - DockerApi.retries += 1 - if DockerApi.retries >= 10: - raise requests.HTTPError(resp.text) - - return self.execute(request_url) - else: - DockerApi.retries = 0 - # Data not in cache - if not hasattr(resp, 'from_cache') or not resp.from_cache: - time.sleep(self.sleep_time) - - if 'next' in data and data['next'] is not None: - # Compute items if there is a next url - data['results'] += self.execute( - data['next'] - )['results'] - return data diff --git a/old/prestashop_docker/generator.py b/old/prestashop_docker/generator.py deleted file mode 100644 index e807f877..00000000 --- a/old/prestashop_docker/generator.py +++ /dev/null @@ -1,100 +0,0 @@ -from errno import EEXIST -from os import path, makedirs -from string import Template -from packaging import version -from . import CONTAINERS - - -class Generator: - NIGHTLY = 'nightly' - - def __init__(self, directory_path, template, nightly_template): - """Constructor - - @param directory_path: Directory path - @type directory_path: str - @param template: Base template - @type template: str - @param nightly_template: Nightly template - @type nightly_template: str - """ - self.download_url = 'https://www.prestashop.com/download/old/' \ - 'prestashop_{}.zip' - self.download_url_github = 'https://github.com/PrestaShop/PrestaShop/releases/download/{}/prestashop_{}.zip' - self.directory_path = directory_path - self.template = Template(template) - self.nightly_template = Template(nightly_template) - - def create_directory(self, directory_path): - """Try to create a directory if it's possible - - @param directory_path: Directory path - @type directory_path: str - """ - try: - makedirs(directory_path, 0o755, exist_ok=True) - except OSError as e: - if e.errno != EEXIST: - raise - pass - - def generate_image(self, ps_version, container_version): - """Generate Dockerfile image - - @param ps_version: PrestaShop version - @type ps_version: str - @param container_version: Container version - @type container_version: str - """ - directory_path = path.join( - self.directory_path, - ps_version, - container_version - ) - - self.create_directory(directory_path) - - file_path = path.join(directory_path, 'Dockerfile') - template = self.nightly_template if ( - ps_version == self.NIGHTLY - ) else self.template - - with open(file_path, 'w+') as f: - # We use 1.7.9 as the comparison base because it will never exist and it will always be higher than the latest 1.7.8, - # however we can't use 8.0 as the base because 8.0.0-beta is lower than 8.0 and we need beta versions of 8 to use the new url - if version.parse(ps_version) > version.parse('1.7.9'): - ps_url = self.download_url_github.format(ps_version, ps_version) - else: - ps_url = self.download_url.format(ps_version) - f.write( - template.substitute( - { - 'ps_version': ps_version, - 'container_version': container_version, - 'ps_url': ps_url - } - ) - ) - - def generate_all(self, versions): - """Generate all Docker files from a dict - - @param versions: Versions - @type versions: dict - """ - for ps_version, php_versions in versions.items(): - print( - 'Generate Dockerfile for PrestaShop {}'.format( - ps_version, - ) - ) - for php_version in php_versions: - for container in CONTAINERS: - container_version = '{}-{}'.format(php_version, container) - print( - "\tContainer - {}".format( - container_version - ) - ) - - self.generate_image(ps_version, container_version) diff --git a/old/prestashop_docker/stream.py b/old/prestashop_docker/stream.py deleted file mode 100644 index db3cea1a..00000000 --- a/old/prestashop_docker/stream.py +++ /dev/null @@ -1,41 +0,0 @@ -class Stream: - def __init__(self, quiet): - """ - Set up quiet mode - """ - self.quiet = quiet - - def display(self, logs): - ''' - Display in stdout depending on the Stream Generator - It also considers when the stream is targeting a line, to reproduce - what there are in the original docker binary. - ''' - lines = {} - previous_len = 0 - for log in logs: - if self.quiet: - continue - - if 'stream' in log: - print(log['stream']) - # reset lines - lines = {} - if 'status' in log: - if 'id' not in log: - log['id'] = '0' - - if 'progress' in log: - lines[log['id']] = log['status'] + ' ' + log['progress'] - else: - lines[log['id']] = log['status'] - - if previous_len > 0: - print('\033[F' * previous_len, end='') - previous_len = len(lines) - for line in lines.values(): - print('\033[K', end='') - print(line, end='\n') - print(end='\r') - - print('') diff --git a/old/prestashop_docker/tag_manager.py b/old/prestashop_docker/tag_manager.py deleted file mode 100644 index 4b0420db..00000000 --- a/old/prestashop_docker/tag_manager.py +++ /dev/null @@ -1,156 +0,0 @@ -import logging -from .stream import Stream - -logger = logging.getLogger(__name__) - - -class TagManager(): - def __init__(self, docker_api, docker_client, version_manager, cache, quiet): - ''' - Constructor - - @param docker_api: Customer docker API - @type docker_api: DockerApi - @param docker_client: Docker client - @type docker_client: docker - @param version_manager: Version manager - @type version_manager: VersionManager - @param cache: Use cache - @type cache: bool - @param quiet: Quiet mode - @type quiet: bool - ''' - self.docker_api = docker_api - self.docker_client = docker_client - self.stream = Stream(quiet) - self.version_manager = version_manager - self.cache = cache - self.tags = None - - def build(self, version=None, force=False): - ''' - Build version on the current machine - - @param version: Optional version you want to build - @type version: str - ''' - versions = self.get_versions(version) - - for version, version_path in versions.items(): - print( - 'Building {}'.format(version) - ) - - if not force and self.exists(version): - print('Image already exists') - # Do not build images that already exists on Docker Hub - continue - - log = self.docker_client.api.build( - path=str(version_path), - tag='prestashop/prestashop:' + version, - rm=True, - nocache=(not self.cache), - decode=True - ) - - self.stream.display(log) - - aliases = self.version_manager.get_aliases() - if version in aliases: - for alias in aliases[version]: - print( - 'Create tag {}'.format(alias) - ) - self.docker_client.api.tag( - 'prestashop/prestashop:' + version, - 'prestashop/prestashop', - alias - ) - - def push(self, version=None, force=False): - ''' - Push version on Docker Hub - - @param version: Optional version you want to build - @type version: str - ''' - versions = self.get_versions(version) - - for version in versions.keys(): - print( - 'Pushing {}'.format(version) - ) - - if not force and self.exists(version): - continue - - log = self.docker_client.api.push( - repository='prestashop/prestashop', - tag=version, - decode=True, - stream=True - ) - - self.stream.display(log) - - aliases = self.version_manager.get_aliases() - if version in aliases: - for alias in aliases[version]: - print( - 'Pushing tag {}'.format(alias) - ) - log = self.docker_client.api.push( - repository='prestashop/prestashop', - tag=alias, - decode=True, - stream=True - ) - self.stream.display(log) - - def exists(self, version): - ''' - Test if a version is already on Docker Hub - - @param version: The version you want to check - @type version: str - @return: True if tag exists - @rtype: dict - ''' - - if self.tags is None: - self.tags = self.docker_api.get_tags() - - for tag in self.tags: - if tag['name'] == version: - return True - - return False - - def get_versions(self, version): - ''' - Version checker - - @param version: Version - @type version: str - @return: List of versions - @rtype: dict - ''' - if version is None: - return self.version_manager.get_versions() - - return self.version_manager.parse_version(version) - - def get_aliases(self, version): - ''' - Get all aliases - - @param version: Version - @type version: str - ''' - versions = self.get_versions(version) - aliases = self.version_manager.get_aliases() - for version in versions: - if version in aliases: - print('Aliases for {}'.format(version)) - [print("\t{}".format(alias)) for alias in aliases[version]] diff --git a/old/prestashop_docker/version_manager.py b/old/prestashop_docker/version_manager.py deleted file mode 100644 index 37673d00..00000000 --- a/old/prestashop_docker/version_manager.py +++ /dev/null @@ -1,235 +0,0 @@ -from versions import VERSIONS -from . import CONTAINERS -from . import PREFERED_CONTAINER -from pathlib import Path -import logging -import re -import semver - -logger = logging.getLogger(__name__) - - -class VersionManager: - def __init__(self, directory_path): - ''' - Constructor - - @param directory_path: Path where images are stored - @type directory_path: str - ''' - self.directory_path = Path(directory_path) - - def get_versions(self): - ''' - Return list of versions based on the images directory - - @return: Return list of versions - @rtype: dict - ''' - versions = {} - for ps_version, php_versions in VERSIONS.items(): - versions = {**versions, **self.get_containers_versions( - ps_version, - php_versions - )} - return versions - - def get_containers_versions(self, ps_version, php_versions): - ''' - Get containers versions - - :param path: - ''' - versions = {} - for php_version in php_versions: - for container_version in CONTAINERS: - versions[self.create_version(ps_version, php_version, container_version)] = str(self.directory_path / ps_version / (php_version + '-' + container_version)) - return versions - - def parse_version(self, version): - ''' - Parse version and return associated paths. - - 1. Only with PrestaShop version - - 1.7.6.8 => {'1.7.6.8-5.6-fpm': '/path/to/prestashop/docker/images/1.7.6.8/5.6-fpm', '1.7.6.8-7.2-fpm': '/path/to/prestashop/docker/images/1.7.6.8/7.2-fpm', '1.7.6.8-7.1-fpm': '/path/to/prestashop/docker/images/1.7.6.8/7.1-fpm', '1.7.6.8-7.2-apache': '/path/to/prestashop/docker/images/1.7.6.8/7.2-apache', '1.7.6.8-7.1-apache': '/path/to/prestashop/docker/images/1.7.6.8/7.1-apache', '1.7.6.8-5.6-apache': '/path/to/prestashop/docker/images/1.7.6.8/5.6-apache'} - - 2. With specific version - - 1.7.6.8-5.6-fpm => {'1.7.6.8-5.6-fpm': PosixPath('/path/to/prestashop/docker/images/1.7.6.8/5.6-fpm')} - - @param version: The version you want - @type version: str - @return: A list with tags and their paths - @rtype: dict - ''' - - data = self.get_version_from_string(version) - if data is None or not (self.directory_path / data['ps_version']).exists(): - raise ValueError('{} is not a valid version'.format(version)) - - if data['container_version'] is None: - containers = ('fpm', 'apache',) - else: - containers = (data['container_version'],) - - ps_version_path = self.directory_path / data['ps_version'] - result = {} - for php_version in data['php_versions']: - for container in containers: - container_path = ps_version_path / (php_version + '-' + container) - if container_path.exists(): - result[self.create_version(data['ps_version'], php_version, container)] = str(container_path) - - return result - - def get_version_from_string(self, version): - ''' - Split version to find PrestaShop version, PHP version and container type - - @param version: The version you want - @type version: str - @return: A tuple containing ('PS_VERSION', (PHP_VERSIONS), 'CONTAINER_TYPE') - or ('PS_VERSION', 'PHP_VERSION', 'CONTAINER_TYPE') - @rtype: tuple - ''' - matches = self.parse_version_from_string(version) - if not matches: - return None - - ps_version = matches.group('version') - if matches.group('php'): - php_versions = (matches.group('php'),) - else: - if ps_version not in VERSIONS: - return None - - php_versions = VERSIONS[ps_version] - - container_version = None - if matches.group('container'): - container_version = matches.group('container') - - return { - 'ps_version': ps_version, - 'php_versions': php_versions, - 'container_version': container_version - } - - def parse_version_from_string(self, version): - ''' - Parse version from string based on a regex - @param version: The version you want to parse - @type version: str - @return: Return None if no position in the string matches the pattern otherwise a Match object. - @rtpe: None|Match - ''' - regex = r"^(?P(?:[0-9]+\.){0,3}(?:[0-9]+|nightly)(?:-(?:alpha|beta|rc)(?:\.\d+)?(?:\+\d+)?)?)(?:-(?P\d+\.\d+))?(?:-(?Pfpm|apache))?$" - return re.search(regex, version) - - def get_aliases(self): - ''' - Build aliases from VERSIONS constants - - @return: All aliases associated to their image name - @rtype: dict - ''' - - aliases_ps_version = self.get_ps_versions_aliases() - - aliases = {} - for alias_version, ps_version_data in aliases_ps_version.items(): - ps_version = ps_version_data['value'] - previous_php_version = None - # Check PHP versions - for php_version in VERSIONS[ps_version]: - current_php_version = semver.VersionInfo.parse(php_version + '.0') - - if previous_php_version is None or previous_php_version < current_php_version: - alias_php_version = php_version - previous_php_version = current_php_version - - if alias_version != 'latest': - self.append_to_aliases(aliases, ps_version, php_version, PREFERED_CONTAINER, alias_version + '-' + php_version) - - # Check prefered container - self.append_to_aliases(aliases, ps_version, alias_php_version, PREFERED_CONTAINER, alias_version) - - # Check containers - if alias_version != 'latest': - for container_version in CONTAINERS: - self.append_to_aliases(aliases, ps_version, alias_php_version, container_version, alias_version + '-' + container_version) - - return aliases - - def append_to_aliases(self, aliases, ps_version, php_version, container_version, alias_version): - created_version = self.create_version(ps_version, php_version, container_version) - if created_version not in aliases: - aliases[created_version] = [] - - aliases[created_version].append(alias_version) - - def get_ps_versions_aliases(self): - ''' - Get list of PrestaShop aliases associated with their real version - - @return: List of aliases - @rtype: dict - ''' - aliases = {} - previous_version = {} - for ps_version in VERSIONS.keys(): - full_splitted_version = ps_version.split('.') - if len(full_splitted_version) < 3 or int(full_splitted_version[0]) < 8 and len(full_splitted_version) < 4: - aliases[ps_version] = { - 'value': ps_version - } - continue - - # PrestaShop versions before 8 are in format 1.MAJOR.MINOR.PATCH - # Starting version 8, format is MAJOR.MINOR.PATCH - splitted_version = ps_version.split('.', 1) - if int(splitted_version[0]) >= 8: - current_version = semver.VersionInfo.parse(ps_version) - else: - current_version = semver.VersionInfo.parse(splitted_version[1]) - # Ignore prerelease versions - if current_version.prerelease: - aliases[ps_version] = { - 'value': ps_version - } - continue - - if int(splitted_version[0]) >= 8: - version_name = str(current_version.major) - else: - version_name = splitted_version[0] + '.' + str(current_version.major) - if version_name not in previous_version or aliases[version_name]['version'] < current_version: - aliases[version_name] = { - 'version': current_version, - 'value': ps_version - } - - if int(splitted_version[0]) >= 8: - version_with_major_name = str(current_version.major) + '.' + str(current_version.minor) - else: - version_with_major_name = splitted_version[0] + '.' + str(current_version.major) + '.' + str(current_version.minor) - if version_with_major_name not in aliases or aliases[version_with_major_name]['version'] < current_version: - aliases[version_with_major_name] = { - 'version': current_version, - 'value': ps_version - } - aliases[ps_version] = aliases[version_name] - aliases['latest'] = aliases[version_name] - - return aliases - - def create_version(self, ps_version, php_version, container_version): - ''' - Create version string - @param ps_version: PrestaShop version - @type ps_version: str - @param php_version: PHP version - @type php_version: str - @param container_version: Container version - @type container_version: str - ''' - return ps_version + '-' + php_version + '-' + container_version From 415b82e3b0a2acacdf9c3b7ea6c379b9e09bb3d6 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 21 Dec 2023 17:08:08 +0100 Subject: [PATCH 12/29] refacto: Update dockerfiles --- .../defines_custom.inc.php | 0 {docker/config_files => assets}/docker_run.sh | 2 +- .../docker_updt_ps_domains.php | 2 +- assets/php-configuration.sh | 38 + build.sh | 3 +- docker/alpine.Dockerfile | 110 +- docker/config_files/php.ini | 1953 ----------------- docker/debian.Dockerfile | 93 +- 8 files changed, 144 insertions(+), 2057 deletions(-) rename {docker/config_files => assets}/defines_custom.inc.php (100%) rename {docker/config_files => assets}/docker_run.sh (99%) rename {docker/config_files => assets}/docker_updt_ps_domains.php (95%) create mode 100755 assets/php-configuration.sh delete mode 100644 docker/config_files/php.ini diff --git a/docker/config_files/defines_custom.inc.php b/assets/defines_custom.inc.php similarity index 100% rename from docker/config_files/defines_custom.inc.php rename to assets/defines_custom.inc.php diff --git a/docker/config_files/docker_run.sh b/assets/docker_run.sh similarity index 99% rename from docker/config_files/docker_run.sh rename to assets/docker_run.sh index 4d6d42b3..73a486e5 100755 --- a/docker/config_files/docker_run.sh +++ b/assets/docker_run.sh @@ -112,7 +112,7 @@ if [ ! -f ./config/settings.inc.php ] && [ ! -f ./install.lock ]; then elif [ -f ./install.lock ]; then if [ -f ./config/settings.inc.php ]; then echo "\n* Shop seems setup but remaining install lock still present..." - else + else echo "\n* Another setup is currently running..." fi sleep 10 diff --git a/docker/config_files/docker_updt_ps_domains.php b/assets/docker_updt_ps_domains.php similarity index 95% rename from docker/config_files/docker_updt_ps_domains.php rename to assets/docker_updt_ps_domains.php index 87cb4c39..fb35ca87 100644 --- a/docker/config_files/docker_updt_ps_domains.php +++ b/assets/docker_updt_ps_domains.php @@ -36,7 +36,7 @@ $domain = Tools::getHttpHost(); $old_domain = Configuration::get('PS_SHOP_DOMAIN'); -if (version_compare(_PS_VERSION_, '1.5', '>=') && $domain != $old_domain && !Shop::isFeatureActive()) +if $domain != $old_domain && !Shop::isFeatureActive()) { $url = ShopUrl::getShopUrls(Configuration::get('PS_SHOP_DEFAULT'))->where('main', '=', 1)->getFirst(); if ($url) diff --git a/assets/php-configuration.sh b/assets/php-configuration.sh new file mode 100755 index 00000000..ef13f432 --- /dev/null +++ b/assets/php-configuration.sh @@ -0,0 +1,38 @@ +#!/bin/sh +set -eu + +error() { + printf "\e[1;31m%s\e[0m" "${1:-Unknown error}" + exit "${2:-1}" +} + +[ -z "$PHP_ENV" ] && error "PHP_ENV is not set" 2 +[ -z "$PHP_VERSION" ] && error "PHP_VERSION is not set" 3 + +PS_PHP_EXT="bcmath fileinfo gd intl mbstring pdo_mysql simplexml soap zip"; +PHP_GD_CONFIG="--with-jpeg"; +#gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include + +if [ "7.1" = "$PHP_VERSION" ]; then + PS_PHP_EXT="$PS_PHP_EXT mcrypt"; + PHP_GD_CONFIG="--with-gd --with-jpeg --with-jpeg-dir --with-zlib-dir"; +elif [ "7.2" = "$PHP_VERSION" ] || [ "7.3" = "$PHP_VERSION" ]; then + PHP_GD_CONFIG="--with-jpeg-dir --with-zlib-dir"; +fi + +# shellcheck disable=SC2086 +docker-php-ext-configure gd $PHP_GD_CONFIG +# shellcheck disable=SC2086 +docker-php-ext-install $PS_PHP_EXT; + +if [ "production" = "$PHP_ENV" ]; then + mv "${PHP_INI_DIR}/php.ini-production" "${PHP_INI_DIR}/php.ini" + rm -f "${PHP_INI_DIR}/php.ini-development"; +else + mv "${PHP_INI_DIR}/php.ini-development" "${PHP_INI_DIR}/php.ini" + rm -f "${PHP_INI_DIR}/php.ini-production"; + sed -i 's/memory_limit = .*/memory_limit = -1/' "${PHP_INI_DIR}/php.ini" +fi + +# Remove php assets that might have been installed by package unaware of $PHP_INI_DIR +rm -rf /etc/php* /usr/lib/php* diff --git a/build.sh b/build.sh index 8114f25d..0c4644f0 100755 --- a/build.sh +++ b/build.sh @@ -173,5 +173,4 @@ docker buildx build \ --label org.opencontainers.image.created="$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")" \ "${TARGET_IMAGES[@]}" \ "$([ "${PUSH}" == "true" ] && echo "--push" || echo "--load")" \ - ./docker - + . diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index d0740520..b455f98f 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -7,92 +7,94 @@ ARG PHP_FLAVOUR # ================================== FROM php:${PHP_FLAVOUR} AS alpine-base-prestashop ARG PS_VERSION -ARG PS_FOLDER=/var/www/html + +ENV PS_DOMAIN="" \ +DB_SERVER="" \ +DB_PORT=3306 \ +DB_NAME=prestashop \ +DB_USER=root \ +DB_PASSWD=admin \ +DB_PREFIX=ps_ \ +ADMIN_MAIL=demo@prestashop.com \ +ADMIN_PASSWD=prestashop_demo \ +PS_LANGUAGE=en \ +PS_COUNTRY=GB \ +PS_ALL_LANGUAGES=0 \ +PS_INSTALL_AUTO=0 \ +PS_ERASE_DB=0 \ +PS_INSTALL_DB=0 \ +PS_DEV_MODE=0 \ +PS_HOST_MODE=0 \ +PS_DEMO_MODE=0 \ +PS_ENABLE_SSL=0 \ +PS_HANDLE_DYNAMIC_DOMAIN=0 \ +PS_FOLDER_ADMIN=admin \ +PS_FOLDER_INSTALL=install \ +PHP_ENV=production + +# The PHP configuration script +COPY ./assets/php-configuration.sh /tmp/ # Install base tools RUN \ apk --no-cache add -U \ - bash less vim geoip git tzdata zip curl \ - nginx nginx-mod-http-headers-more nginx-mod-http-geoip \ - nginx-mod-stream nginx-mod-stream-geoip ca-certificates \ - libmcrypt gnu-libiconv-libs php81-common && \ - rm -rf /var/cache/apk/* - -# Install PHP requirements -# see: https://olvlvl.com/2019-06-install-php-ext-source -ENV GD_DEPS="zlib-dev libjpeg-turbo-dev libpng-dev" -ENV ZIP_DEPS="libzip-dev" -ENV INTL_DEPS="icu-dev" -RUN apk --no-cache add -U $GD_DEPS $ZIP_DEPS $INTL_DEPS \ - && docker-php-ext-configure gd --with-jpeg \ - && docker-php-ext-install gd pdo_mysql zip intl; -# docker-php-ext-enable opcache - -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete + ca-certificates geoip tzdata zip curl jq make \ + gnu-libiconv php-common mariadb-client oniguruma-dev \ + zlib-dev libzip-dev libjpeg-turbo-dev libpng-dev \ + icu-dev libmcrypt-dev libxml2 libxml2-dev \ + && /tmp/php-configuration.sh \ + && apk del make \ + && rm -rf /var/cache/apk/* # The PrestaShop docker entrypoint -COPY config_files/docker_run.sh /tmp/ +COPY ./assets/docker_run.sh /tmp/ # Handling a dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ +# Probably, or at least its usage must be described in the README file +# COPY ./assets/docker_updt_ps_domains.php /tmp/ # PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php +# COPY ./assets/defines_custom.inc.php /tmp/ +# RUN chown www-data:www-data /tmp/defines_custom.inc.php # Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ - -# @TODO check opcache -# RUN echo '\ -# opcache.interned_strings_buffer=16\n\ -# opcache.load_comments=Off\n\ -# opcache.max_accelerated_files=16000\n\ -# opcache.save_comments=Off\n\ -# ' >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini - -# Disable IPv6 -# RUN echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.conf +RUN if [ -x "$(command -v apache2-foreground)" ]; then \ + a2enmod rewrite;\ + fi # ========================================= # Stage 2/3: PrestaShop sources downloader # ========================================= FROM alpine-base-prestashop AS alpine-download-prestashop ARG PS_VERSION +ENV PS_FOLDER=/tmp/prestashop -RUN apk --no-cache add -U git jq make - +# Get PrestaShop source code RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ - git clone --depth 1 'https://github.com/PrestaShop/PrestaShop.git' /tmp/prestashop; \ - rm -rf /tmp/prestashop/.git; \ - make install; \ + echo "Unsupported yet: https://prestashop.slack.com/archives/C03LFE4KV6K/p1703170152828039" \ + && exit 1; \ else \ - DOWNLOAD_URL=$(curl -s -L --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url'); \ - curl -s -L -o /tmp/prestashop.zip "${DOWNLOAD_URL}"; \ - unzip -n -q /tmp/prestashop.zip -d /tmp/prestashop; \ + curl -s -L -o /tmp/prestashop.zip "https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip"; \ fi +# Extract the souces +RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ + && unzip -n -q /tmp/prestashop.zip -d /tmp/unzip-ps \ + && ([ -f /tmp/unzip-ps/prestashop.zip ] \ + && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ + || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") + # ============================ # Stage 3/3: Production image # ============================ FROM alpine-base-prestashop -ARG PS_FOLDER=/var/www/html +ARG PS_FOLDER=/var/www/html/prestashop LABEL maintainer="PrestaShop Core Team " ENV PS_VERSION $PS_VERSION # Copy the PrestaShop sources -COPY --chown=www-data:www-data --from=alpine-download-prestashop /tmp/prestashop ${PS_FOLDER}/prestashop +COPY --chown=www-data:www-data --from=alpine-download-prestashop /tmp/prestashop ${PS_FOLDER} CMD ["/tmp/docker_run.sh"] diff --git a/docker/config_files/php.ini b/docker/config_files/php.ini deleted file mode 100644 index 1277a840..00000000 --- a/docker/config_files/php.ini +++ /dev/null @@ -1,1953 +0,0 @@ -[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 (C:\windows or C:\winnt) -; 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 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.hash_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 - -; 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" -; 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 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 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 - -; 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 -; will send that data in chunks of roughly the size you specify. -; Turning on this setting and managing its maximum buffer size can yield some -; interesting side-effects depending on your application and web server. -; You may be able to send headers and cookies after you've already sent output -; through print or echo. You also may see performance benefits if your server is -; emitting less packets due to buffered output versus PHP streaming the output -; as it gets it. On production servers, 4096 bytes is a good setting for performance -; reasons. -; Note: Output buffering can also be controlled via Output Buffering Control -; functions. -; Possible Values: -; On = Enabled and buffer is unlimited. (Use with caution) -; Off = Disabled -; Integer = Enables the buffer and sets its maximum size in bytes. -; Note: This directive is hardcoded to Off for the CLI SAPI -; Default Value: Off -; Development Value: 4096 -; Production Value: 4096 -; http://php.net/output-buffering -output_buffering = 4096 - -; You can redirect all of the output of your scripts to a function. For -; example, if you set output_handler to "mb_output_handler", character -; encoding will be transparently converted to the specified encoding. -; Setting any output handler automatically turns on output buffering. -; Note: People who wrote portable scripts should not depend on this ini -; directive. Instead, explicitly set the output handler using ob_start(). -; Using this ini directive may cause problems unless you know what script -; is doing. -; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" -; and you cannot use both "ob_gzhandler" and "zlib.output_compression". -; Note: output_handler must be empty if this is set 'On' !!!! -; Instead you must use zlib.output_handler. -; http://php.net/output-handler -;output_handler = - -; 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) -; Note: Resulting chunk size may vary due to nature of compression. PHP -; outputs chunks that are few hundreds bytes each as a result of -; compression. If you prefer a larger chunk size for better -; performance, enable output_buffering in addition. -; Note: You need to use zlib.output_handler instead of the standard -; output_handler, or otherwise the output will be corrupted. -; http://php.net/zlib.output-compression -zlib.output_compression = Off - -; http://php.net/zlib.output-compression-level -;zlib.output_compression_level = -1 - -; You cannot specify additional output handlers if zlib.output_compression -; is activated here. This setting does the same as output_handler but in -; a different order. -; http://php.net/zlib.output-handler -;zlib.output_handler = - -; Implicit flush tells PHP to tell the output layer to flush itself -; automatically after every output block. This is equivalent to calling the -; PHP function flush() after each and every call to print() or echo() and each -; and every HTML block. Turning this option on has serious performance -; implications and is generally recommended for debugging purposes only. -; http://php.net/implicit-flush -; Note: This directive is hardcoded to On for the CLI SAPI -implicit_flush = Off - -; The unserialize callback function will be called (with the undefined class' -; name as parameter), if the unserializer finds an undefined class -; which should be instantiated. A warning appears if the specified function is -; not defined, or if the function doesn't include/implement the missing class. -; So only set this entry, if you really want to implement such a -; callback-function. -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 - -; 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. -; 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. -; http://php.net/disable-functions -disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, - -; This directive allows you to disable certain classes for security reasons. -; It receives a comma-delimited list of class names. -; http://php.net/disable-classes -disable_classes = - -; Colors for Syntax Highlighting mode. Anything that's acceptable in -; 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. -; 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 = 600 - -; 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 = Off - -;;;;;;;;;;;;;;;;;;; -; 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 = 20000 - -; Maximum amount of memory a script may consume (128MB) -; http://php.net/memory-limit -memory_limit = 256M - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; 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. -; Default Value: Off -; Development Value: On -; 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 - -;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 = 20M - -; 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 character encoding using -; the Content-type: header. To disable sending of the charset, simply -; set it to be empty. -; -; PHP's built-in default is 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. -; mbstring or iconv output handler is used. -; See also output_buffer. -; 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 ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; UNIX: "/path1:/path2" -;include_path = ".:/usr/share/php" -; -; 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 - -; 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 -; 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 - -;;;;;;;;;;;;;;;; -; 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 = 20M - -; 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.extension -; -; For example, on Windows: -; -; extension=msql.dll -; -; ... or under UNIX: -; -; extension=msql.so -; -; ... or with a path: -; -; extension=/path/to/extension/msql.so -; -; If you only provide the name of the extension, PHP will look for it in its -; default extension directory. -; - -;;;;;;;;;;;;;;;;;;; -; 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 = Europe/Paris - -; 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 < 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 = - -[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 - -[sqlite] -; http://php.net/sqlite.assoc-case -;sqlite.assoc_case = 0 - -[sqlite3] -;sqlite3.extension_dir = - -[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 - -[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] -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/pdo_mysql.cache_size -pdo_mysql.cache_size = 2000 - -; Default socket name for local MySQL connects. If empty, uses the built-in -; MySQL defaults. -; http://php.net/pdo_mysql.default-socket -pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock - -[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 = On - -; 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 - -[SQL] -; http://php.net/sql.safe-mode -sql.safe_mode = Off - -[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 - -;birdstep.max_links = -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" - -[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 = /var/run/mysqld/mysqld.sock - -; 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. -; 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 - -; If mysqlnd is used: Number of cache slots for the internal result set cache -; http://php.net/mysqli.cache_size -mysqli.cache_size = 2000 - -; 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. -; http://php.net/mysqlnd.collect_statistics -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 = Off - -; 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 - -; Size of a pre-allocated buffer used for reading data sent by the server in -; bytes. -; http://php.net/mysqlnd.net_read_buffer_size -;mysqlnd.net_read_buffer_size = 32768 - -[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 - -[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 -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 = "/var/lib/php5/sessions" - -; 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 - -; 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 = - -; 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 give request. -; Default Value: 1 -; Development Value: 1 -; Production Value: 1 -; http://php.net/session.gc-probability -session.gc_probability = 0 - -; 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 1 -; when the session.gc_divisor value is 100 will give you approximately a 1% chance -; the gc will run on any give request. Increasing this value to 1000 will give you -; a 0.1% chance the gc will run on any give 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 = - -; 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 -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 - -; 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 - -; 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.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" - -; 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" - -[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" - -[Assertion] -; Assert(expr); active by default. -; http://php.net/assert.active -;assert.active = On - -; Issue a PHP warning for each failed assertion. -; 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 components 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 mbstrig.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_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 = - -; 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= - -[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 - -[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 - -[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=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=256 - -; The amount of memory for interned strings in Mbytes. -opcache.interned_strings_buffer=16 - -; The maximum number of keys (scripts) in the OPcache hash table. -; Only numbers between 200 and 100000 are allowed. -opcache.max_accelerated_files=20000 - -; The maximum percentage of "wasted" memory until a restart is scheduled. -opcache.max_wasted_percentage=10 - -; 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=0 - -; 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 - -; 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=1 - -; 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 - -[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/docker/debian.Dockerfile b/docker/debian.Dockerfile index 70cb18bc..5ab85dda 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -29,81 +29,82 @@ PS_DEMO_MODE=0 \ PS_ENABLE_SSL=0 \ PS_HANDLE_DYNAMIC_DOMAIN=0 \ PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install - -RUN DEBIAN_FRONTEND=noninteractive \ - apt-get update \ - && apt-get install -y libmcrypt-dev \ - libjpeg62-turbo-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libfreetype6-dev \ - libxml2-dev \ - libicu-dev \ - libzip-dev \ - default-mysql-client \ - wget \ - unzip \ - libonig-dev \ +PS_FOLDER_INSTALL=install \ +PHP_ENV=production + +# The PHP configuration script +COPY ./assets/php-configuration.sh /tmp/ + +RUN export DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install --no-install-recommends -qqy \ + default-mysql-client \ + jq \ + libfreetype6-dev \ + libicu-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libonig-dev \ + libpcre3-dev \ + libpng-dev \ + libwebp-dev \ + libxml2-dev \ + libzip-dev \ + unzip \ + wget \ + && /tmp/php-configuration.sh \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include -RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath - -RUN docker-php-source extract \ - && if [ -d "/usr/src/php/ext/mysql" ]; then docker-php-ext-install mysql; fi \ - && if [ -d "/usr/src/php/ext/mcrypt" ]; then docker-php-ext-install mcrypt; fi \ - && if [ -d "/usr/src/php/ext/opcache" ]; then docker-php-ext-install opcache; fi \ - && docker-php-source delete - # The PrestaShop docker entrypoint -COPY config_files/docker_run.sh /tmp/ +COPY ./assets/docker_run.sh /tmp/ # Handling a dynamic domain -COPY config_files/docker_updt_ps_domains.php /tmp/ +# Probably, or at least its usage must be described in the README file +# COPY ./assets/docker_updt_ps_domains.php /tmp/ # PHP env for dev / demo modes -COPY config_files/defines_custom.inc.php /tmp/ -RUN chown www-data:www-data /tmp/defines_custom.inc.php +# COPY ./assets/defines_custom.inc.php /tmp/ +# RUN chown www-data:www-data /tmp/defines_custom.inc.php # Apache configuration -RUN if [ -x "$(command -v apache2-foreground)" ]; then a2enmod rewrite; fi - -# PHP configuration -COPY config_files/php.ini /usr/local/etc/php/ +RUN if [ -x "$(command -v apache2-foreground)" ]; then\ + a2enmod rewrite;\ + fi # ========================================= # Stage 2/3: PrestaShop sources downloader # ========================================= FROM debian-base-prestashop AS debian-download-prestashop ARG PS_VERSION +ENV PS_FOLDER=/tmp/prestashop -RUN DEBIAN_FRONTEND=noninteractive \ - apt-get update \ - && apt-get install -y git jq make - +# Get PrestaShop source code RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ - git clone --depth 1 'https://github.com/PrestaShop/PrestaShop.git' /tmp/prestashop; \ - rm -rf /tmp/prestashop/.git; \ - make install; \ + echo "Unsupported yet: https://prestashop.slack.com/archives/C03LFE4KV6K/p1703170152828039" \ + && exit 1; \ else \ - DOWNLOAD_URL=$(curl -s -L --request GET 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.assets[] | select(.name | contains(".zip")) | .browser_download_url'); \ - curl -s -L -o /tmp/prestashop.zip "${DOWNLOAD_URL}"; \ - unzip -n -q /tmp/prestashop.zip -d /tmp/prestashop; \ + curl -s -L -o /tmp/prestashop.zip "https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip"; \ fi +# Extract the souces +RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ + && unzip -n -q /tmp/prestashop.zip -d /tmp/unzip-ps \ + && ([ -f /tmp/unzip-ps/prestashop.zip ] \ + && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ + || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") + # ============================ # Stage 3/3: Production image # ============================ FROM debian-base-prestashop -ARG PS_FOLDER=/var/www/html +ARG PS_FOLDER=/var/www/html/prestashop LABEL maintainer="PrestaShop Core Team " ENV PS_VERSION $PS_VERSION # Copy the PrestaShop sources -COPY --chown=www-data:www-data --from=debian-download-prestashop /tmp/prestashop ${PS_FOLDER}/prestashop +COPY --chown=www-data:www-data --from=debian-download-prestashop /tmp/prestashop ${PS_FOLDER} CMD ["/tmp/docker_run.sh"] From 2a8d6ae69b5475b11fba5c1667b29e8454f9824b Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 8 Mar 2024 16:14:56 +0100 Subject: [PATCH 13/29] rafacto: Some examples --- .dockerignore | 9 ++-- .editorconfig | 10 +++- README.md | 2 +- examples/demo-example/README.md | 45 +++++++++++++++++ examples/demo-example/docker-compose.yml | 55 +++++++++++++++++++++ examples/ngrok-tunnel/.env.dist | 3 ++ examples/ngrok-tunnel/README.md | 49 ++++++++++++++++++ examples/ngrok-tunnel/docker-compose.yml | 51 +++++++++++++++++++ examples/ngrok-tunnel/ngrok.yml | 11 +++++ examples/nightly-example/README.md | 29 +++++++++++ examples/nightly-example/docker-compose.yml | 54 ++++++++++++++++++++ 11 files changed, 311 insertions(+), 7 deletions(-) create mode 100644 examples/demo-example/README.md create mode 100644 examples/demo-example/docker-compose.yml create mode 100644 examples/ngrok-tunnel/.env.dist create mode 100644 examples/ngrok-tunnel/README.md create mode 100644 examples/ngrok-tunnel/docker-compose.yml create mode 100644 examples/ngrok-tunnel/ngrok.yml create mode 100644 examples/nightly-example/README.md create mode 100644 examples/nightly-example/docker-compose.yml diff --git a/.dockerignore b/.dockerignore index 622a9994..1dd6234e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ -.git -.github -*.Dockerfile -*.md -.editorconfig +* +!./assets +!./php-flavours.json +!./prestashop-versions.json diff --git a/.editorconfig b/.editorconfig index fe4420b9..fe9671f6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,14 +1,22 @@ # EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file root = true +# Unix-style newlines with a newline ending every file [*] end_of_line = lf -insert_final_newline = true charset = utf-8 indent_style = space indent_size = 2 trim_trailing_whitespace = true +# this is good for diff and version control systems insert_final_newline = true [*.md] trim_trailing_whitespace = false + +[{Makefile,makefile,**.mk}] +indent_style = tab +indent_size = 4 + diff --git a/README.md b/README.md index ad699325..dd5ba21e 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ If you want to add a new version of PrestaShop, you should edit the: ## How to use ```sh -docker run --port 80:80 --detach --name prestashop prestashop/prestashop:8.0.1 +docker run -p 80:80 --detach --name prestashop prestashop/prestashop:latest ``` ### Exemple: je release PrestaShop "8.0.1" diff --git a/examples/demo-example/README.md b/examples/demo-example/README.md new file mode 100644 index 00000000..6e8f4009 --- /dev/null +++ b/examples/demo-example/README.md @@ -0,0 +1,45 @@ +# Example: basic example + +This example runs the latest available image of PrestaShop with demo mode. + +## Test this example + +The expected output of this example is: + +TODO: full logs +```sh +docker compose up prestashop --force-recreate +[+] Running 3/3 + ✔ Network prestashop-demo-example_default Created 0.1s + ✔ Container prestashop-demo-example-mysql-1 Created 0.0s + ✔ Container prestashop-demo-example-prestashop-1 Created 0.0s +Attaching to prestashop-1 +prestashop-1 | +prestashop-1 | * Setting up install lock file... +prestashop-1 | +prestashop-1 | * Reapplying PrestaShop files for enabled volumes ... +prestashop-1 | +prestashop-1 | * No pre-install script found, let's continue... +prestashop-1 | +prestashop-1 | * No post-install script found, let's continue... +prestashop-1 | +prestashop-1 | * Setup completed, removing lock file... +prestashop-1 | +prestashop-1 | * Enabling DEMO mode ... +``` + +You can access to PrestaShop in your browser: + +- http://localhost:8000 +- http://localhost:8000/admin-dev/ (back office, login/password described [here](../../README.md)) + +## Running phpMyAdmin + +If you want to start a phpMyAdmin instance, it can be done easily like so: + +```sh +docker compose up +# or "docker compose up prestashop php-my-admin" +``` + +You can now access phpMyAdmin at http://localhost:6060 diff --git a/examples/demo-example/docker-compose.yml b/examples/demo-example/docker-compose.yml new file mode 100644 index 00000000..53b2b365 --- /dev/null +++ b/examples/demo-example/docker-compose.yml @@ -0,0 +1,55 @@ +name: prestashop-demo-example +services: + prestashop: + image: prestashop/prestashop:latest + depends_on: + mysql: + condition: service_healthy + environment: + - PS_DOMAIN=localhost:8000 + - PS_DEMO_MODE=1 + # - DEBUG_MODE=true + ports: + - 8000:80 + + mysql: + image: mariadb:lts + healthcheck: + test: + [ + "CMD", + "mysqladmin", + "ping", + "--host=localhost", + "--user=root", + "--password=prestashop", + ] + interval: 10s + timeout: 10s + retries: 5 + environment: + - MYSQL_HOST=mysql + - MYSQL_USER=prestashop + - MYSQL_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + - MYSQL_PORT=3306 + - MYSQL_DATABASE=prestashop + + phpmyadmin: + image: phpmyadmin:latest + depends_on: + mysql: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-Isf", "http://localhost/robots.txt"] + interval: 30s + timeout: 10s + retries: 5 + environment: + - PMA_HOST=mysql + - PMA_PORT=3306 + - PMA_USER=prestashop + - PMA_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + ports: + - 6060:80 diff --git a/examples/ngrok-tunnel/.env.dist b/examples/ngrok-tunnel/.env.dist new file mode 100644 index 00000000..0fb058ad --- /dev/null +++ b/examples/ngrok-tunnel/.env.dist @@ -0,0 +1,3 @@ +# copy the .env.dist file as a .env file +# and fill the xxxx with a valid Ngrok token +NGROK_AUTHTOKEN=xxxxxxx diff --git a/examples/ngrok-tunnel/README.md b/examples/ngrok-tunnel/README.md new file mode 100644 index 00000000..a07b4ea5 --- /dev/null +++ b/examples/ngrok-tunnel/README.md @@ -0,0 +1,49 @@ +# Example: ngrok tunnel example + +[Ngrok](https://ngrok.com) is a handy http tunnel you can use to expose your local environment to the Web and inspect incoming requests. + +## Test the example + +1. First, you will have to Sign up to your ngrok account. For this use case, the free plan is sufficient. Once it's done, on the left menu clic on "Getting Started > Your Auth token" + +2. Copy this token to your own .env file (`mv .env.dist .env`) + +3. Run PrestaShop alongside a Ngrok agent: + +TODO: Full logs + Ngrok tunnel url + +```sh +docker compose up prestashop --force-recreate +[+] Running 3/0 + ✔ Container prestashop-ngrok-tunnel-mysql-1 Running 0.0s + ✔ Container prestashop-ngrok-tunnel-ngrok-1 Running 0.0s + ✔ Container prestashop-ngrok-tunnel-prestashop-1 Recreated 0.1s +Attaching to prestashop-1 +prestashop-1 | +prestashop-1 | * Setting up install lock file... +prestashop-1 | +prestashop-1 | * Reapplying PrestaShop files for enabled volumes ... +prestashop-1 | +prestashop-1 | * Copying files from tmp directory ... +prestashop-1 | +prestashop-1 | * No pre-install script found, let's continue... +prestashop-1 | +prestashop-1 | * No post-install script found, let's continue... +prestashop-1 | +prestashop-1 | * Setup completed, removing lock file... +prestashop-1 | +prestashop-1 | * Enabling DEMO mode ... +prestashop-1 | +prestashop-1 | * Almost ! Starting web server now +prestashop-1 | +prestashop-1 | +prestashop-1 | * No init script found, let's continue... +``` + +From the logs you can guess where to connect to: + +- http://4452-37-170-242-21.ngrok.app + +But you will also be redirected to the public URL by PrestaShop if you make a local call to: + +- http://localhost:8000 diff --git a/examples/ngrok-tunnel/docker-compose.yml b/examples/ngrok-tunnel/docker-compose.yml new file mode 100644 index 00000000..bdc2aca3 --- /dev/null +++ b/examples/ngrok-tunnel/docker-compose.yml @@ -0,0 +1,51 @@ +name: prestashop-ngrok-tunnel +services: + prestashop: + image: prestashop/prestashop:latest + depends_on: + mysql: + condition: service_healthy + ngrok: + condition: service_started + environment: + - PS_DOMAIN=http://ngrok:4040 + - PS_DEMO_MODE=1 + ports: + - 8000:80 + + mysql: + image: mariadb:lts + healthcheck: + test: + [ + "CMD", + "mysqladmin", + "ping", + "--host=localhost", + "--user=root", + "--password=prestashop", + ] + interval: 10s + timeout: 10s + retries: 5 + environment: + - MYSQL_HOST=mysql + - MYSQL_USER=prestashop + - MYSQL_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + - MYSQL_PORT=3306 + - MYSQL_DATABASE=prestashop + + ngrok: + image: ngrok/ngrok:latest + env_file: + - .env + healthcheck: + test: ["CMD-SHELL", "curl -sf http://localhost:4040 || exit 1"] + interval: 10s + timeout: 2s + start_period: 10s + volumes: + - ./ngrok.yml:/var/lib/ngrok/ngrok.yml + expose: + - 4040 diff --git a/examples/ngrok-tunnel/ngrok.yml b/examples/ngrok-tunnel/ngrok.yml new file mode 100644 index 00000000..abafa095 --- /dev/null +++ b/examples/ngrok-tunnel/ngrok.yml @@ -0,0 +1,11 @@ +version: 2 +region: eu +log_level: debug +web_addr: 0.0.0.0:4040 +tunnels: + prestashop: + proto: http + addr: prestashop:80 + inspect: true + schemes: + - https diff --git a/examples/nightly-example/README.md b/examples/nightly-example/README.md new file mode 100644 index 00000000..517be342 --- /dev/null +++ b/examples/nightly-example/README.md @@ -0,0 +1,29 @@ +TODO + +# Example: nightly example + +This example runs the latest nightly image of PrestaShop, which is based on the unstable release from Git. Be cautious when you're using this image. + +## Test this example + +The expected output of this example is: + +```sh +docker compose up prestashop --force-recreate +``` + +You can access to PrestaShop in your browser: + +- http://localhost:8000 +- http://localhost:8000/admin-dev/ (back office, login/password described [here](../../README.md)) + +## Running phpMyAdmin + +If you want to start a phpMyAdmin instance, it can be done easily like so: + +```sh +docker compose up +# or "docker compose up prestashop php-my-admin" +``` + +You can now access phpMyAdmin at http://localhost:6060 diff --git a/examples/nightly-example/docker-compose.yml b/examples/nightly-example/docker-compose.yml new file mode 100644 index 00000000..480b4396 --- /dev/null +++ b/examples/nightly-example/docker-compose.yml @@ -0,0 +1,54 @@ +name: prestashop-nightly-example +services: + prestashop: + image: prestashop/prestashop:nightly + depends_on: + mysql: + condition: service_healthy + environment: + - PS_DOMAIN=localhost:8000 + # - DEBUG_MODE=true + ports: + - 8000:80 + + mysql: + image: mariadb:lts + healthcheck: + test: + [ + "CMD", + "mysqladmin", + "ping", + "--host=localhost", + "--user=root", + "--password=prestashop", + ] + interval: 10s + timeout: 10s + retries: 5 + environment: + - MYSQL_HOST=mysql + - MYSQL_USER=prestashop + - MYSQL_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + - MYSQL_PORT=3306 + - MYSQL_DATABASE=prestashop + + phpmyadmin: + image: phpmyadmin:latest + depends_on: + mysql: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-Isf", "http://localhost/robots.txt"] + interval: 30s + timeout: 10s + retries: 5 + environment: + - PMA_HOST=mysql + - PMA_PORT=3306 + - PMA_USER=prestashop + - PMA_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + ports: + - 6060:80 From 2a06251b37ddba3062c96acd1d25a7cd6a2c9553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+jokesterfr@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:36:01 +0100 Subject: [PATCH 14/29] Next ! --- .hadolint.yaml | 9 +++ assets/robots.txt | 5 ++ build.sh | 62 +++++++++---------- docker/alpine.Dockerfile | 101 +++++++++++++++++------------- docker/debian.Dockerfile | 130 ++++++++++++++++++++++----------------- lint.sh | 9 +++ 6 files changed, 185 insertions(+), 131 deletions(-) create mode 100644 .hadolint.yaml create mode 100644 assets/robots.txt create mode 100755 lint.sh diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 00000000..0a7a438c --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,9 @@ +ignored: + - DL3006 + - DL3008 + - DL3009 + - DL3018 + - DL4006 + - DL4001 + - SC1091 + - SC2086 diff --git a/assets/robots.txt b/assets/robots.txt new file mode 100644 index 00000000..15d1da2c --- /dev/null +++ b/assets/robots.txt @@ -0,0 +1,5 @@ +# www.robotstxt.org/ +# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 + +User-agent: * +Allow: / diff --git a/build.sh b/build.sh index 0c4644f0..dd31d573 100755 --- a/build.sh +++ b/build.sh @@ -1,41 +1,39 @@ #!/bin/bash set -e +cd "$(dirname "$0")" # Available variables # ------------------- -declare PLATFORM; # -- a comma separated list of target platforms (defaults to "linux/amd64") -declare OS_FLAVOUR; # -- either "debian" (default) or "alpine" -declare PHP_VERSION; # -- PHP version, defaults to recommended version for PrestaShop -declare PHP_FLAVOUR; # -- PHP flavour, defaults apache declare PS_VERSION; # -- PrestaShop version, defaults to latest +declare PHP_VERSION; # -- PHP version, defaults to recommended version for PrestaShop +declare OS_FLAVOUR; # -- either "alpine" (default) or "debian" +declare SERVER_FLAVOUR; # -- not implemented, either "nginx" (default) or "apache" +declare TARGET_PLATFORM; # -- a comma separated list of target platforms (defaults to "linux/amd64") +declare PLATFORM; # -- alias for $TARGET_PLATFORM declare TARGET_IMAGE; # -- docker image name, defaults to "prestashop/prestashop-flashlight" declare PUSH; # -- set it to "true" if you want to push the resulting image +declare ZIP_SOURCE; # -- the zip to unpack in flashlight +declare DRY_RUN; # -- if used, won't really build the image. Useful to check tags compliance # Static configuration # -------------------- DEFAULT_OS="debian"; DEFAULT_SERVER="apache"; DEFAULT_DOCKER_IMAGE=prestashop/prestashop -DEFAULT_PLATFORM=linux/amd64 +DEFAULT_PLATFORM=$(docker system info --format '{{.OSType}}/{{.Architecture}}') GIT_SHA=$(git rev-parse HEAD) +TARGET_PLATFORM="${TARGET_PLATFORM:-${PLATFORM:-$DEFAULT_PLATFORM}}" error() { echo -e "\e[1;31m${1:-Unknown error}\e[0m" exit "${2:-1}" } -# Get latest version of PrestaShop (via GitHub) get_latest_prestashop_version() { - curl --silent --location --request GET \ - 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' + curl --silent --show-error --fail --location --request GET \ + 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } -# Get recommended PHP version from `prestashop-versions.json` -# -# $1 - PrestaShop version -# -# Examples: -# - get_recommended_php_version "8.0.4" get_recommended_php_version() { local PS_VERSION=$1; local RECOMMENDED_VERSION=; @@ -96,6 +94,7 @@ get_php_version() { # # if the build is for the latest image of the default OS with the recommended PHP version, these tags will be like: # * latest +# * php-8.2 # * 8.1.1 # * 8.1.1-8.2 # * 8.1.1-8.2-alpine @@ -134,37 +133,36 @@ if [ "$PHP_FLAVOUR" == "null" ]; then error "Could not find a PHP flavour for $OS_FLAVOUR + $SERVER_FLAVOUR + $PHP_VERSION" 2; fi if [ -z "${TARGET_IMAGE:+x}" ]; then - read -ra TARGET_IMAGES <<<"$(get_target_images "$PHP_FLAVOUR" "$PS_VERSION" "$PHP_VERSION" "$OS_FLAVOUR" "$LATEST")" + read -ra TARGET_IMAGES <<<"$(get_target_images "$PHP_FLAVOUR" "$PS_VERSION" "$PHP_VERSION" "$OS_FLAVOUR")" else read -ra TARGET_IMAGES <<<"-t $TARGET_IMAGE" fi - -#if [[ "$PS_VERSION" == "nightly" ]]; then -# TAGS="--tag $TARGET_IMAGE:nightly"; -# echo "Ready to create: $TARGET_IMAGE:nightly" -#else -# TAGS="--tag $TARGET_IMAGE:$PS_VERSION-$PHP_FLAVOUR --tag $TARGET_IMAGE:latest"; -# echo "Ready to create: $TARGET_IMAGE:$PS_VERSION-$PHP_FLAVOUR" -#fi - -# Info -# ---------------------- -echo "🐳 Use $DEFAULT_DOCKER_IMAGE" -echo "Use PrestaShop $PS_VERSION with PHP $PHP_VERSION on $OS_FLAVOUR" +if [ "$PS_VERSION" == "nightly" ]; then + ZIP_SOURCE="https://storage.googleapis.com/prestashop-core-nightly/nightly.zip" +else + ZIP_SOURCE="https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip" +fi # Build the docker image # ---------------------- CACHE_IMAGE=${TARGET_IMAGES[1]} +if [ -n "${DRY_RUN}" ]; then + docker() { + echo docker "$@" + } +fi docker pull "$CACHE_IMAGE" 2> /dev/null || true docker buildx build \ + --progress=plain \ --file "./docker/${OS_FLAVOUR}.Dockerfile" \ - --platform "${PLATFORM:-$DEFAULT_PLATFORM}" \ - --build-arg PHP_VERSION="$PHP_VERSION" \ + --platform "$TARGET_PLATFORM" \ + --cache-from type=registry,ref="$CACHE_IMAGE" \ + --cache-to type=inline \ --build-arg PHP_FLAVOUR="$PHP_FLAVOUR" \ --build-arg PS_VERSION="$PS_VERSION" \ + --build-arg PHP_VERSION="$PHP_VERSION" \ --build-arg GIT_SHA="$GIT_SHA" \ - --cache-from type=registry,ref="$CACHE_IMAGE" \ - --cache-to type=inline \ + --build-arg ZIP_SOURCE="$ZIP_SOURCE" \ --label org.opencontainers.image.title="PrestaShop" \ --label org.opencontainers.image.description="PrestaShop docker image" \ --label org.opencontainers.image.source=https://github.com/PrestaShop/docker \ diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index b455f98f..b3f787b5 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -1,36 +1,39 @@ ARG PS_VERSION ARG PHP_VERSION ARG PHP_FLAVOUR +ARG GIT_SHA +ARG ZIP_SOURCE # ================================== # Stage 1/3: PHP base configuration # ================================== FROM php:${PHP_FLAVOUR} AS alpine-base-prestashop ARG PS_VERSION +ARG PHP_VERSION ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install \ -PHP_ENV=production + DB_SERVER="" \ + DB_PORT=3306 \ + DB_NAME=prestashop \ + DB_USER=root \ + DB_PASSWD=admin \ + DB_PREFIX=ps_ \ + ADMIN_MAIL=demo@prestashop.com \ + ADMIN_PASSWD=prestashop_demo \ + PS_LANGUAGE=en \ + PS_COUNTRY=GB \ + PS_ALL_LANGUAGES=0 \ + PS_INSTALL_AUTO=0 \ + PS_ERASE_DB=0 \ + PS_INSTALL_DB=0 \ + PS_DEV_MODE=0 \ + PS_HOST_MODE=0 \ + PS_DEMO_MODE=0 \ + PS_ENABLE_SSL=0 \ + PS_HANDLE_DYNAMIC_DOMAIN=0 \ + PS_FOLDER_ADMIN=admin \ + PS_FOLDER_INSTALL=install \ + PHP_ENV=production # The PHP configuration script COPY ./assets/php-configuration.sh /tmp/ @@ -38,10 +41,10 @@ COPY ./assets/php-configuration.sh /tmp/ # Install base tools RUN \ apk --no-cache add -U \ - ca-certificates geoip tzdata zip curl jq make \ - gnu-libiconv php-common mariadb-client oniguruma-dev \ - zlib-dev libzip-dev libjpeg-turbo-dev libpng-dev \ - icu-dev libmcrypt-dev libxml2 libxml2-dev \ + ca-certificates geoip tzdata zip curl jq make \ + gnu-libiconv php-common mariadb-client oniguruma-dev \ + zlib-dev libzip-dev libjpeg-turbo-dev libpng-dev \ + icu-dev libmcrypt-dev libxml2 libxml2-dev \ && /tmp/php-configuration.sh \ && apk del make \ && rm -rf /var/cache/apk/* @@ -59,42 +62,56 @@ COPY ./assets/docker_run.sh /tmp/ # Apache configuration RUN if [ -x "$(command -v apache2-foreground)" ]; then \ - a2enmod rewrite;\ - fi + a2enmod rewrite;\ + fi # ========================================= # Stage 2/3: PrestaShop sources downloader # ========================================= FROM alpine-base-prestashop AS alpine-download-prestashop ARG PS_VERSION -ENV PS_FOLDER=/tmp/prestashop +ARG GIT_SHA +ARG PHP_VERSION +ARG PS_FOLDER=/var/www/html +ARG ZIP_SOURCE # Get PrestaShop source code -RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ - echo "Unsupported yet: https://prestashop.slack.com/archives/C03LFE4KV6K/p1703170152828039" \ - && exit 1; \ - else \ - curl -s -L -o /tmp/prestashop.zip "https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip"; \ - fi +# hadolint ignore=DL3020 +ADD ${ZIP_SOURCE} /tmp/prestashop.zip # Extract the souces RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ && unzip -n -q /tmp/prestashop.zip -d /tmp/unzip-ps \ && ([ -f /tmp/unzip-ps/prestashop.zip ] \ - && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ - || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") + && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ + || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") \ + && chown -R www-data:www-data "$PS_FOLDER" \ + && rm -rf /tmp/prestashop.zip /tmp/unzip-ps + +# Ship a VERSION file +RUN echo "PrestaShop $PS_VERSION" > "$PS_FOLDER/VERSION" \ + && echo "PHP $PHP_VERSION" >> "$PS_FOLDER/VERSION" \ + && echo "Flashlight $GIT_SHA" >> "$PS_FOLDER/VERSION" + +# Adds a robots.txt file +ADD ./assets/robots.txt $PS_FOLDER # ============================ # Stage 3/3: Production image # ============================ FROM alpine-base-prestashop -ARG PS_FOLDER=/var/www/html/prestashop +ARG PS_FOLDER=/var/www/html +ARG PS_VERSION LABEL maintainer="PrestaShop Core Team " -ENV PS_VERSION $PS_VERSION +COPY --chown=www-data:www-data --from=alpine-download-prestashop ${PS_FOLDER} ${PS_FOLDER} + +HEALTHCHECK --interval=5s --timeout=5s --retries=10 --start-period=10s \ + CMD curl -Isf http://localhost:80/robots.txt || exit 1 + +EXPOSE 80 -# Copy the PrestaShop sources -COPY --chown=www-data:www-data --from=alpine-download-prestashop /tmp/prestashop ${PS_FOLDER} +STOPSIGNAL SIGQUIT -CMD ["/tmp/docker_run.sh"] +ENTRYPOINT ["/tmp/docker_run.sh"] diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 5ab85dda..ac890878 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -1,6 +1,8 @@ ARG PS_VERSION ARG PHP_VERSION ARG PHP_FLAVOUR +ARG GIT_SHA +ARG ZIP_SOURCE # ================================== # Stage 1/3: PHP base configuration @@ -9,52 +11,52 @@ FROM php:${PHP_FLAVOUR} AS debian-base-prestashop ARG PS_VERSION ENV PS_DOMAIN="" \ -DB_SERVER="" \ -DB_PORT=3306 \ -DB_NAME=prestashop \ -DB_USER=root \ -DB_PASSWD=admin \ -DB_PREFIX=ps_ \ -ADMIN_MAIL=demo@prestashop.com \ -ADMIN_PASSWD=prestashop_demo \ -PS_LANGUAGE=en \ -PS_COUNTRY=GB \ -PS_ALL_LANGUAGES=0 \ -PS_INSTALL_AUTO=0 \ -PS_ERASE_DB=0 \ -PS_INSTALL_DB=0 \ -PS_DEV_MODE=0 \ -PS_HOST_MODE=0 \ -PS_DEMO_MODE=0 \ -PS_ENABLE_SSL=0 \ -PS_HANDLE_DYNAMIC_DOMAIN=0 \ -PS_FOLDER_ADMIN=admin \ -PS_FOLDER_INSTALL=install \ -PHP_ENV=production + DB_SERVER="" \ + DB_PORT=3306 \ + DB_NAME=prestashop \ + DB_USER=root \ + DB_PASSWD=admin \ + DB_PREFIX=ps_ \ + ADMIN_MAIL=demo@prestashop.com \ + ADMIN_PASSWD=prestashop_demo \ + PS_LANGUAGE=en \ + PS_COUNTRY=GB \ + PS_ALL_LANGUAGES=0 \ + PS_INSTALL_AUTO=0 \ + PS_ERASE_DB=0 \ + PS_INSTALL_DB=0 \ + PS_DEV_MODE=0 \ + PS_HOST_MODE=0 \ + PS_DEMO_MODE=0 \ + PS_ENABLE_SSL=0 \ + PS_HANDLE_DYNAMIC_DOMAIN=0 \ + PS_FOLDER_ADMIN=admin \ + PS_FOLDER_INSTALL=install \ + PHP_ENV=production # The PHP configuration script COPY ./assets/php-configuration.sh /tmp/ RUN export DEBIAN_FRONTEND=noninteractive \ - && apt-get update \ - && apt-get install --no-install-recommends -qqy \ - default-mysql-client \ - jq \ - libfreetype6-dev \ - libicu-dev \ - libjpeg62-turbo-dev \ - libmcrypt-dev \ - libonig-dev \ - libpcre3-dev \ - libpng-dev \ - libwebp-dev \ - libxml2-dev \ - libzip-dev \ - unzip \ - wget \ - && /tmp/php-configuration.sh \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && apt-get update \ + && apt-get install --no-install-recommends -qqy \ + default-mysql-client \ + jq \ + libfreetype6-dev \ + libicu-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libonig-dev \ + libpcre3-dev \ + libpng-dev \ + libwebp-dev \ + libxml2-dev \ + libzip-dev \ + unzip \ + wget \ + && /tmp/php-configuration.sh \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ @@ -69,42 +71,56 @@ COPY ./assets/docker_run.sh /tmp/ # Apache configuration RUN if [ -x "$(command -v apache2-foreground)" ]; then\ - a2enmod rewrite;\ - fi + a2enmod rewrite;\ + fi # ========================================= # Stage 2/3: PrestaShop sources downloader # ========================================= FROM debian-base-prestashop AS debian-download-prestashop ARG PS_VERSION -ENV PS_FOLDER=/tmp/prestashop +ARG GIT_SHA +ARG PHP_VERSION +ARG PS_FOLDER=/var/www/html +ARG ZIP_SOURCE # Get PrestaShop source code -RUN if [[ "$PS_VERSION" == "nightly" ]]; then \ - echo "Unsupported yet: https://prestashop.slack.com/archives/C03LFE4KV6K/p1703170152828039" \ - && exit 1; \ - else \ - curl -s -L -o /tmp/prestashop.zip "https://github.com/PrestaShop/PrestaShop/releases/download/${PS_VERSION}/prestashop_${PS_VERSION}.zip"; \ - fi +# hadolint ignore=DL3020 +ADD ${ZIP_SOURCE} /tmp/prestashop.zip # Extract the souces RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ && unzip -n -q /tmp/prestashop.zip -d /tmp/unzip-ps \ && ([ -f /tmp/unzip-ps/prestashop.zip ] \ - && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ - || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") + && unzip -n -q /tmp/unzip-ps/prestashop.zip -d "$PS_FOLDER" \ + || mv /tmp/unzip-ps/prestashop/* "$PS_FOLDER") \ + && chown -R www-data:www-data "$PS_FOLDER" \ + && rm -rf /tmp/prestashop.zip /tmp/unzip-ps + +# Ship a VERSION file +RUN echo "PrestaShop $PS_VERSION" > "$PS_FOLDER/VERSION" \ + && echo "PHP $PHP_VERSION" >> "$PS_FOLDER/VERSION" \ + && echo "Flashlight $GIT_SHA" >> "$PS_FOLDER/VERSION" + +# Adds a robots.txt file +ADD ./assets/robots.txt $PS_FOLDER # ============================ # Stage 3/3: Production image # ============================ FROM debian-base-prestashop -ARG PS_FOLDER=/var/www/html/prestashop +ARG PS_FOLDER=/var/www/html +ARG PS_VERSION LABEL maintainer="PrestaShop Core Team " -ENV PS_VERSION $PS_VERSION +COPY --chown=www-data:www-data --from=debian-download-prestashop ${PS_FOLDER} ${PS_FOLDER} + +HEALTHCHECK --interval=5s --timeout=5s --retries=10 --start-period=10s \ + CMD curl -Isf http://localhost:80/robots.txt || exit 1 + +EXPOSE 80 -# Copy the PrestaShop sources -COPY --chown=www-data:www-data --from=debian-download-prestashop /tmp/prestashop ${PS_FOLDER} +STOPSIGNAL SIGQUIT -CMD ["/tmp/docker_run.sh"] +ENTRYPOINT ["/tmp/docker_run.sh"] diff --git a/lint.sh b/lint.sh new file mode 100755 index 00000000..8d3265cf --- /dev/null +++ b/lint.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +cd "$(dirname "$0")" + +# Lint bash scripts +find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x; + +# Lint docker files +find . -type f -name '*.Dockerfile' -print0 | xargs -0 hadolint; From 68de351e4515150539eb74cac43ddd2f09c3b1a4 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 15:06:04 +0200 Subject: [PATCH 15/29] ci: Test time --- .github/workflows/pull-request.yml | 9 ++- README.md | 4 +- assets/docker_run.sh | 2 + build.sh | 8 ++- docker/alpine.Dockerfile | 14 ++++- docker/debian.Dockerfile | 13 +++- php-flavours.json | 96 +++++++++++++++++++++++++----- 7 files changed, 119 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e93b038c..91b46901 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -4,7 +4,8 @@ on: types: [opened, reopened, synchronize] env: - TARGET_PLATFORM: "linux/amd64" + TARGET_PLATFORM: "linux/amd64" # TODO: 'linux/amd64,linux/arm64,linux/arm' ? 32 bits ? + jobs: lint_shell: @@ -14,6 +15,8 @@ jobs: - uses: actions/checkout@v4 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + with: + ignore_paths: ./assets/docker_run.sh lint_dockerfile: name: "Lint: dockerfile" @@ -31,7 +34,8 @@ jobs: strategy: matrix: os_flavour: ["alpine", "debian"] - ps_version: ["1.6.1.24", "1.7.8.10", "8.1.1"] + ps_version: ["1.6.1.24", "1.7.8.10", "8.1.5"] + server_flavour: ["fpm", "nginx", "apache"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -41,6 +45,7 @@ jobs: env: OS_FLAVOUR: ${{ matrix.os_flavour }} PS_VERSION: ${{ matrix.ps_version }} + SERVER_FLAVOUR: ${{ matrix.server_flavour }} TARGET_PLATFORM: ${{ env.TARGET_PLATFORM }} - name: Test the image diff --git a/README.md b/README.md index dd5ba21e..7e331ac5 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Available env vars: | **PLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | | **OS_FLAVOUR** | `debian` or `alpine` | `debian` | | **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | -| **PHP_FLAVOUR** | `fpm`, `apache` or `zts` | `apache` | +| **PHP_FLAVOUR** | `fpm`, `apache` or `nginx` | `apache` | | **PS_VERSION** | PrestaShop version | `latest` | | **DOCKER_REPOSITORY** | the Docker image repository | `prestashop/prestashop` | @@ -45,7 +45,7 @@ Available env vars: If you want to add a new version of PrestaShop, you should edit the: -- (prestashop-versions.json)[prestashop-versions.json] to add the new version with PHP recommended & compatibles version +- (prestashop-versions.json)[prestashop-versions.json] to add the new version with a PHP recommended & compatibles version - (prestashop-tags.json)[prestashop-tags.json] --- diff --git a/assets/docker_run.sh b/assets/docker_run.sh index 73a486e5..bcc0f9e0 100755 --- a/assets/docker_run.sh +++ b/assets/docker_run.sh @@ -1,5 +1,7 @@ #!/bin/sh +# TODO: clean this -> lint + if [ "$DB_SERVER" = "" -a $PS_INSTALL_AUTO = 1 ]; then echo >&2 'error: You requested automatic PrestaShop installation but MySQL server address is not provided ' echo >&2 ' You need to specify DB_SERVER in order to proceed' diff --git a/build.sh b/build.sh index dd31d573..892275f9 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ cd "$(dirname "$0")" declare PS_VERSION; # -- PrestaShop version, defaults to latest declare PHP_VERSION; # -- PHP version, defaults to recommended version for PrestaShop declare OS_FLAVOUR; # -- either "alpine" (default) or "debian" -declare SERVER_FLAVOUR; # -- not implemented, either "nginx" (default) or "apache" +declare SERVER_FLAVOUR; # -- either "apache" (default), "fpm" (no web server) or "nginx" declare TARGET_PLATFORM; # -- a comma separated list of target platforms (defaults to "linux/amd64") declare PLATFORM; # -- alias for $TARGET_PLATFORM declare TARGET_IMAGE; # -- docker image name, defaults to "prestashop/prestashop-flashlight" @@ -69,7 +69,7 @@ get_php_flavour() { local OS_FLAVOUR=${1:-}; local SERVER_FLAVOUR=${2:-}; local PHP_VERSION=${3:-}; - jq -r '."'"${PHP_VERSION}"'".'"${OS_FLAVOUR}" "$PS_FOLDER/VERSION" \ && echo "PHP $PHP_VERSION" >> "$PS_FOLDER/VERSION" \ - && echo "Flashlight $GIT_SHA" >> "$PS_FOLDER/VERSION" + && echo "Server $SERVER_FLAVOUR" >> "$PS_FOLDER/VERSION" \ + && echo "Git SHA $GIT_SHA" >> "$PS_FOLDER/VERSION" \ # Adds a robots.txt file -ADD ./assets/robots.txt $PS_FOLDER +COPY ./assets/robots.txt $PS_FOLDER # ============================ # Stage 3/3: Production image diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index ac890878..9a891cf1 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -1,6 +1,7 @@ ARG PS_VERSION ARG PHP_VERSION ARG PHP_FLAVOUR +ARG SERVER_FLAVOUR ARG GIT_SHA ARG ZIP_SOURCE @@ -61,6 +62,12 @@ RUN export DEBIAN_FRONTEND=noninteractive \ # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ +RUN if [[ ${SERVER_FLAVOUR} = *"fpm"* ]]; \ + then sed 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ + else \ + sed 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ + fi + # Handling a dynamic domain # Probably, or at least its usage must be described in the README file # COPY ./assets/docker_updt_ps_domains.php /tmp/ @@ -81,6 +88,7 @@ FROM debian-base-prestashop AS debian-download-prestashop ARG PS_VERSION ARG GIT_SHA ARG PHP_VERSION +ARG SERVER_FLAVOUR ARG PS_FOLDER=/var/www/html ARG ZIP_SOURCE @@ -100,10 +108,11 @@ RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ # Ship a VERSION file RUN echo "PrestaShop $PS_VERSION" > "$PS_FOLDER/VERSION" \ && echo "PHP $PHP_VERSION" >> "$PS_FOLDER/VERSION" \ - && echo "Flashlight $GIT_SHA" >> "$PS_FOLDER/VERSION" + && echo "Server $SERVER_FLAVOUR" >> "$PS_FOLDER/VERSION" \ + && echo "Git SHA $GIT_SHA" >> "$PS_FOLDER/VERSION" # Adds a robots.txt file -ADD ./assets/robots.txt $PS_FOLDER +COPY ./assets/robots.txt $PS_FOLDER # ============================ # Stage 3/3: Production image diff --git a/php-flavours.json b/php-flavours.json index f69642ef..b55a6223 100644 --- a/php-flavours.json +++ b/php-flavours.json @@ -1,34 +1,98 @@ { "7.1": { - "alpine": "7.1-fpm-alpine", - "debian": "7.1-fpm-buster" + "alpine": { + "fpm": "7.1-fpm-alpine", + "nginx": "7.1-fpm-alpine", + "apache": "7.1-fpm-alpine" + }, + "debian": { + "fpm": "7.1-fpm-buster", + "nginx": "7.1-fpm-buster", + "apache": "7.1-apache-buster" + } }, "7.2": { - "alpine": "7.2-fpm-alpine", - "debian": "7.2-fpm-buster" + "alpine": { + "fpm": "7.2-fpm-alpine", + "nginx": "7.2-fpm-alpine", + "apache": "7.2-fpm-alpine" + }, + "debian": { + "fpm": "7.2-fpm-buster", + "nginx": "7.2-fpm-buster", + "apache": "7.2-apache-buster" + } }, "7.3": { - "alpine": "7.3-fpm-alpine", - "debian": "7.3-fpm-buster" + "alpine": { + "fpm": "7.3-fpm-alpine", + "nginx": "7.3-fpm-alpine", + "apache": "7.3-fpm-alpine" + }, + "debian": { + "fpm": "7.3-fpm-buster", + "nginx": "7.3-fpm-buster", + "apache": "7.3-apache-buster" + } }, "7.4": { - "alpine": "7.4-fpm-alpine", - "debian": "7.4-fpm-buster" + "alpine": { + "fpm": "7.4-fpm-alpine", + "nginx": "7.4-fpm-alpine", + "apache": "7.4-fpm-alpine" + }, + "debian": { + "fpm": "7.4-fpm-buster", + "nginx": "7.4-fpm-buster", + "apache": "7.4-apache-buster" + } }, "8.0": { - "alpine": "8.0-fpm-alpine", - "debian": "8.0-fpm-bullseye" + "alpine": { + "fpm": "8.0-fpm-alpine", + "nginx": "8.0-fpm-alpine", + "apache": "8.0-fpm-alpine" + }, + "debian": { + "fpm": "8.0-fpm-bullseye", + "nginx": "8.0-fpm-bullseye", + "apache": "8.0-apache-bullseye" + } }, "8.1": { - "alpine": "8.1-fpm-alpine", - "debian": "8.1-fpm-bookworm" + "alpine": { + "fpm": "8.1-fpm-alpine", + "nginx": "8.1-fpm-alpine", + "apache": "8.1-fpm-alpine" + }, + "debian": { + "fpm": "8.1-fpm-bookworm", + "nginx": "8.1-fpm-bookworm", + "apache": "8.1-apache-bookworm" + } }, "8.2": { - "alpine": "8.2-fpm-alpine", - "debian": "8.2-fpm-bookworm" + "alpine": { + "fpm": "8.2-fpm-alpine", + "nginx": "8.2-fpm-alpine", + "apache": "8.2-fpm-alpine" + }, + "debian": { + "fpm": "8.2-fpm-bookworm", + "nginx": "8.2-fpm-bookworm", + "apache": "8.2-apache-bookworm" + } }, "8.3": { - "alpine": "8.3-fpm-alpine", - "debian": "8.3-fpm-bookworm" + "alpine": { + "fpm": "8.3-fpm-alpine", + "nginx": "8.3-fpm-alpine", + "apache": "8.3-fpm-alpine" + }, + "debian": { + "fpm": "8.3-fpm-bookworm", + "nginx": "8.3-fpm-bookworm", + "apache": "8.3-apache-bookworm" + } } } From e814599fd17f276ae6529fa7de35ef70ea406053 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 15:14:41 +0200 Subject: [PATCH 16/29] ci: Test time --- .github/workflows/pull-request.yml | 2 +- docker/alpine.Dockerfile | 2 +- docker/debian.Dockerfile | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 91b46901..bcda91f0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -29,7 +29,7 @@ jobs: dockerfile: "*.Dockerfile" docker_build: - name: "Docker build: ${{ matrix.os_flavour }} for ${{ matrix.ps_version }}" + name: "Docker build: ${{ matrix.os_flavour }} for ${{ matrix.ps_version }} with ${{ matrix.server_flavour }}" runs-on: ubuntu-latest strategy: matrix: diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index c86cc491..40437674 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -52,7 +52,7 @@ RUN \ # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ -RUN if [[ ${SERVER_FLAVOUR} = *"fpm"* ]]; \ +RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ then sed 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ else \ sed 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 9a891cf1..593aff4f 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -62,12 +62,13 @@ RUN export DEBIAN_FRONTEND=noninteractive \ # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ -RUN if [[ ${SERVER_FLAVOUR} = *"fpm"* ]]; \ +RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ then sed 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ else \ sed 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ fi + # Handling a dynamic domain # Probably, or at least its usage must be described in the README file # COPY ./assets/docker_updt_ps_domains.php /tmp/ From df0587b95161a10469c9d387e6350ef5ee820f9c Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 15:25:48 +0200 Subject: [PATCH 17/29] ci: Test time --- docker/alpine.Dockerfile | 4 ++-- docker/debian.Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 40437674..878787b3 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -53,9 +53,9 @@ RUN \ COPY ./assets/docker_run.sh /tmp/ RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ - then sed 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ + then sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ else \ - sed 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ + sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ fi # Handling a dynamic domain diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 593aff4f..960ba784 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -63,9 +63,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \ COPY ./assets/docker_run.sh /tmp/ RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ - then sed 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ + then sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ else \ - sed 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ + sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ fi From f190c830dfd6142aed56d500a74ac6179bda62c2 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 16:40:02 +0200 Subject: [PATCH 18/29] ci: Test time --- docker/alpine.Dockerfile | 23 +++++++++++++++++++++-- docker/debian.Dockerfile | 14 ++++++++++++++ lint.sh | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 878787b3..0fe6f2e0 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -49,11 +49,30 @@ RUN \ && apk del make \ && rm -rf /var/cache/apk/* +RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ + apk --no-cache add -U apache2 apache2-proxy apache2-tools; \ + echo -e '\ +#!/bin/sh\ +# Only for Alpine linux, not supporting this file by default\ +php-fpm -D\ +/usr/sbin/httpd -D FOREGROUND\ + '> /usr/bin/apache-foreground; \ + chmod +x /usr/bin/apache-foreground; \ +fi + +# https://stackoverflow.com/a/68349357 +# RUN < /home/docker/.bashrc +# Virtualenvwrapper configuration. +# export WORKON_HOME=\$HOME/.virtualenvs +# export PROJECT_HOME=\$HOME/Devel +# source /usr/local/bin/virtualenvwrapper.sh +# EOF + # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ -RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ - then sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ +RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; then \ + sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ else \ sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ fi diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 960ba784..0293ea21 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -59,6 +59,20 @@ RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# see: https://github.com/docker-library/php/blob/master/8.3/bullseye/apache/apache2-foreground +RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ + export DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install --no-install-recommends -qqy \ + apache2 \ + apache2-proxy \ + apache2-utils \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground" \ + chmod +x /usr/local/bin/apache2-foreground \ +fi + # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ diff --git a/lint.sh b/lint.sh index 8d3265cf..2742d34c 100755 --- a/lint.sh +++ b/lint.sh @@ -3,7 +3,7 @@ set -e cd "$(dirname "$0")" # Lint bash scripts -find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x; +find . -type f -name '*.sh' ! -name 'docker_run.sh' -print0 | xargs -0 shellcheck -x; # Lint docker files find . -type f -name '*.Dockerfile' -print0 | xargs -0 hadolint; From db314248d93747a3e5ba708b97874337334e91de Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 17:54:27 +0200 Subject: [PATCH 19/29] fix(docker): dockerfile for apache --- docker/alpine.Dockerfile | 21 +++++++-------------- docker/debian.Dockerfile | 17 +++++++++-------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 0fe6f2e0..813e33f8 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -10,6 +10,7 @@ ARG ZIP_SOURCE # ================================== FROM php:${PHP_FLAVOUR} AS alpine-base-prestashop ARG PS_VERSION +ARG SERVER_FLAVOUR ENV PS_DOMAIN="" \ DB_SERVER="" \ @@ -51,23 +52,15 @@ RUN \ RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ apk --no-cache add -U apache2 apache2-proxy apache2-tools; \ - echo -e '\ -#!/bin/sh\ -# Only for Alpine linux, not supporting this file by default\ -php-fpm -D\ -/usr/sbin/httpd -D FOREGROUND\ - '> /usr/bin/apache-foreground; \ + printf '\ +#!/bin/sh\n\ +# Only for Alpine linux, not supporting this file by default\n\ +php-fpm -D\n\ +/usr/sbin/httpd -D FOREGROUND\n\ + ' > /usr/bin/apache-foreground; \ chmod +x /usr/bin/apache-foreground; \ fi -# https://stackoverflow.com/a/68349357 -# RUN < /home/docker/.bashrc -# Virtualenvwrapper configuration. -# export WORKON_HOME=\$HOME/.virtualenvs -# export PROJECT_HOME=\$HOME/Devel -# source /usr/local/bin/virtualenvwrapper.sh -# EOF - # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 0293ea21..7304038d 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -10,6 +10,7 @@ ARG ZIP_SOURCE # ================================== FROM php:${PHP_FLAVOUR} AS debian-base-prestashop ARG PS_VERSION +ARG SERVER_FLAVOUR ENV PS_DOMAIN="" \ DB_SERVER="" \ @@ -61,16 +62,16 @@ RUN export DEBIAN_FRONTEND=noninteractive \ # see: https://github.com/docker-library/php/blob/master/8.3/bullseye/apache/apache2-foreground RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ - export DEBIAN_FRONTEND=noninteractive \ - && apt-get update \ - && apt-get install --no-install-recommends -qqy \ - apache2 \ - apache2-proxy \ - apache2-utils \ + export DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install --no-install-recommends -qqy \ + apache2 \ + apache2-proxy \ + apache2-utils \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ - wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground" \ - chmod +x /usr/local/bin/apache2-foreground \ + wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground"; \ + chmod +x /usr/local/bin/apache2-foreground; \ fi # The PrestaShop docker entrypoint From 1889e54b8816f75c2afb1f2c334bb949a817dcf9 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 11 Apr 2024 17:59:47 +0200 Subject: [PATCH 20/29] ci: Tests --- .github/workflows/pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index bcda91f0..28c81fd6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -32,6 +32,7 @@ jobs: name: "Docker build: ${{ matrix.os_flavour }} for ${{ matrix.ps_version }} with ${{ matrix.server_flavour }}" runs-on: ubuntu-latest strategy: + fail-fast: false # TODO: Test only should be removed matrix: os_flavour: ["alpine", "debian"] ps_version: ["1.6.1.24", "1.7.8.10", "8.1.5"] From 6a6038acdd7886092ae81e50c1282343264a399c Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 14 Jun 2024 14:08:59 +0200 Subject: [PATCH 21/29] ci: Tests --- .github/workflows/pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 28c81fd6..c00c7e01 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -51,5 +51,6 @@ jobs: - name: Test the image run: docker run --env PS_DOMAIN='localhost:80' $DOCKER_IMAGE cat VERSION +# run: docker run --env PS_DOMAIN='localhost:80' --entrypoint cat $DOCKER_IMAGE cat VERSION env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} From ab42d55593ccb613ac026a31b9d4cc771f78fcd6 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 14 Jun 2024 16:39:47 +0200 Subject: [PATCH 22/29] chore: Add server configuration --- .github/workflows/pull-request.yml | 6 +- assets/docker_run.sh | 4 +- assets/nginx.conf | 147 +++++++++++++++++++ assets/php-fpm-local.conf | 21 +++ assets/php-fpm-standalone.conf | 21 +++ build.sh | 31 ++-- docker/alpine.Dockerfile | 46 +++++- docker/debian.Dockerfile | 60 ++++++-- examples/demo-example/docker-compose.yml | 10 +- examples/fpm-example/docker-compose.yml | 45 ++++++ examples/fpm-example/nginx.conf | 149 ++++++++++++++++++++ examples/ngrok-tunnel/docker-compose.yml | 10 +- examples/nightly-example/docker-compose.yml | 12 +- 13 files changed, 505 insertions(+), 57 deletions(-) create mode 100644 assets/nginx.conf create mode 100644 assets/php-fpm-local.conf create mode 100644 assets/php-fpm-standalone.conf create mode 100644 examples/fpm-example/docker-compose.yml create mode 100644 examples/fpm-example/nginx.conf diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c00c7e01..f5d5ea16 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false # TODO: Test only should be removed matrix: os_flavour: ["alpine", "debian"] - ps_version: ["1.6.1.24", "1.7.8.10", "8.1.5"] + ps_version: ["1.6.1.24", "1.7.8.10", "8.1.6"] server_flavour: ["fpm", "nginx", "apache"] steps: - name: Checkout repository @@ -50,7 +50,7 @@ jobs: TARGET_PLATFORM: ${{ env.TARGET_PLATFORM }} - name: Test the image - run: docker run --env PS_DOMAIN='localhost:80' $DOCKER_IMAGE cat VERSION -# run: docker run --env PS_DOMAIN='localhost:80' --entrypoint cat $DOCKER_IMAGE cat VERSION + timeout-minutes: 10 + run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint /bin/sh $DOCKER_IMAGE cat VERSION env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/assets/docker_run.sh b/assets/docker_run.sh index bcc0f9e0..ba7dc2e1 100755 --- a/assets/docker_run.sh +++ b/assets/docker_run.sh @@ -18,7 +18,7 @@ elif [ "$DB_SERVER" != "" -a $PS_INSTALL_AUTO = 1 ]; then sleep 5 fi done - echo "\n* DB server $DB_SERVER is available, let's continue !" + echo "\n* DB server $DB_SERVER is available, let's continue!" fi # From now, stop at error @@ -128,7 +128,7 @@ if [ $PS_DEMO_MODE -ne 0 ]; then sed -ie "s/define('_PS_MODE_DEMO_', false);/define('_PS_MODE_DEMO_',\ true);/g" /var/www/html/config/defines.inc.php fi -echo "\n* Almost ! Starting web server now\n"; +echo "\n* Almost! Starting web server now\n"; if [ -d /tmp/init-scripts/ ]; then echo "\n* Running init script(s)..." diff --git a/assets/nginx.conf b/assets/nginx.conf new file mode 100644 index 00000000..b9ccfe19 --- /dev/null +++ b/assets/nginx.conf @@ -0,0 +1,147 @@ +user www-data www-data; +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + + gzip on; + gzip_disable "msie6"; + gzip_vary on; + gzip_proxied any; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/x-javascript + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/svg+xml + text/css + text/javascript + text/plain + text/xml; + + # Source: https://devdocs.prestashop-project.org/8/basics/installation/nginx/ + # Other optimizasions: https://medium.com/@jituboss/nginx-and-php-fpm-optimization-for-high-traffic-web-applications-f790bf1b30fb + server { + listen 80; + server_name localhost; + + error_log /dev/stdout notice; + access_log /dev/stdout; + + root /var/www/html; + + index index.php; + + # This should match the `post_max_size` and/or `upload_max_filesize` in your php.ini. + client_max_body_size 40M; + + # Uploaded files temporary dir + client_body_temp_path /tmp/client_body; + + error_page 404 /index.php?controller=404; + + # Enable browser cache + location ~* \.(?:css|eot|gif|ico|jpe?g|otf|png|ttf|woff2?)$ { + expires 1d; + add_header Cache-Control "public"; + } + + # Disable logs + location = /favicon.ico { + access_log off; + log_not_found off; + } + + location = /admin-dev/robots.txt { + access_log off; + log_not_found off; + } + + # Images + rewrite ^/(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last; + rewrite ^/(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last; + rewrite ^/(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last; + rewrite ^/c/([\w.-]+)/.+\.jpg$ /img/c/$1.jpg last; + + # AlphaImageLoader for IE and FancyBox. + rewrite ^images_ie/?([^/]+)\.(gif|jpe?g|png)$ js/jquery/plugins/fancybox/images/$1.$2 last; + + # Web service API. + rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; + + # .htaccess, .DS_Store, .htpasswd, etc. + location ~ /\. { + deny all; + } + + # Source code directories. + location ~ ^/(app|bin|cache|classes|config|controllers|docs|localization|override|src|tests|tools|translations|var|vendor)/ { + deny all; + } + + # vendor in modules directory. + location ~ ^/modules/.*/vendor/ { + deny all; + } + + # Prevent exposing other sensitive files. + location ~ \.(log|tpl|twig|sass|yml)$ { + deny all; + } + + # Prevent injection of PHP files. + location /img { + location ~ \.php$ { deny all; } + } + + location /upload { + location ~ \.php$ { deny all; } + } + + location = / { + rewrite ^ /index.php last; + } + + location / { + try_files $uri $uri/ /index.php$is_args$args; + } + + location ~ \.php$ { + try_files $fastcgi_script_name =404; + + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + + fastcgi_index index.php; + + fastcgi_keep_conn on; + fastcgi_read_timeout 30s; + fastcgi_send_timeout 30s; + + fastcgi_pass unix:/var/run/php/php-fpm.sock; + } + } +} diff --git a/assets/php-fpm-local.conf b/assets/php-fpm-local.conf new file mode 100644 index 00000000..0ba60ec9 --- /dev/null +++ b/assets/php-fpm-local.conf @@ -0,0 +1,21 @@ +[global] +pid = /var/run/php/fpm.pid +error_log = /proc/self/fd/2 + +[www] +listen = /var/run/php/php-fpm.sock +listen.owner = www-data +listen.group = www-data +; ignored when FPM is not running as root +user = www-data +group = www-data + +pm = dynamic +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 + +php_admin_value[memory_limit]=-1 +php_admin_value[post_max_size]=42M +php_admin_value[upload_max_filesize]=42M diff --git a/assets/php-fpm-standalone.conf b/assets/php-fpm-standalone.conf new file mode 100644 index 00000000..b8933f86 --- /dev/null +++ b/assets/php-fpm-standalone.conf @@ -0,0 +1,21 @@ +[global] +pid = /var/run/php/fpm.pid +error_log = /proc/self/fd/2 + +[www] +listen = 0.0.0.0:9000 +listen.owner = www-data +listen.group = www-data +; ignored when FPM is not running as root +user = www-data +group = www-data + +pm = dynamic +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 + +php_admin_value[memory_limit]=-1 +php_admin_value[post_max_size]=42M +php_admin_value[upload_max_filesize]=42M diff --git a/build.sh b/build.sh index 892275f9..9bfb089c 100755 --- a/build.sh +++ b/build.sh @@ -105,17 +105,26 @@ get_target_images() { local PHP_VERSION=${3:-}; local OS_FLAVOUR=${4:-}; declare RES; - if [ "$PS_VERSION" = "$(get_latest_prestashop_version)" ] && [ "$OS_FLAVOUR" = "$DEFAULT_OS" ]; then - RES="-t ${DEFAULT_DOCKER_IMAGE}:latest"; - fi - if [ "$OS_FLAVOUR" = "$DEFAULT_OS" ]; then - RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${PHP_VERSION}"; - if [ "$PHP_VERSION" = "$(get_recommended_php_version "$PS_VERSION")" ]; then - RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}"; + if [ "$PS_VERSION" == "nightly" ]; then + if [ "$OS_FLAVOUR" = "$DEFAULT_OS" ]; then + RES="-t ${DEFAULT_DOCKER_IMAGE}:nightly"; + else + RES="-t ${DEFAULT_DOCKER_IMAGE}:nightly-${OS_FLAVOUR}"; + fi + else + if [ "$PS_VERSION" = "$(get_latest_prestashop_version)" ] && [ "$OS_FLAVOUR" = "$DEFAULT_OS" ] && [ "$PHP_VERSION" = "$(get_recommended_php_version "$PS_VERSION")" ]; then + RES="-t ${DEFAULT_DOCKER_IMAGE}:latest"; + fi + if [ "$OS_FLAVOUR" = "$DEFAULT_OS" ]; then + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${PHP_VERSION}"; + if [ "$PHP_VERSION" = "$(get_recommended_php_version "$PS_VERSION")" ]; then + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}"; + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:php-${PHP_VERSION}"; + fi fi + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${PHP_FLAVOUR}"; + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${OS_FLAVOUR}"; fi - RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${PHP_FLAVOUR}"; - RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${OS_FLAVOUR}"; echo "$RES"; } @@ -168,9 +177,9 @@ docker buildx build \ --build-arg GIT_SHA="$GIT_SHA" \ --build-arg ZIP_SOURCE="$ZIP_SOURCE" \ --label org.opencontainers.image.title="PrestaShop" \ - --label org.opencontainers.image.description="PrestaShop docker image" \ + --label org.opencontainers.image.description="PrestaShop official docker image" \ --label org.opencontainers.image.source=https://github.com/PrestaShop/docker \ - --label org.opencontainers.image.url=https://github.com/PrestaShop/docker \ + --label org.opencontainers.image.url=https://hub.docker.com/r/prestashop/prestashop \ --label org.opencontainers.image.licenses=MIT \ --label org.opencontainers.image.created="$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")" \ "${TARGET_IMAGES[@]}" \ diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 813e33f8..d05e9a3d 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -42,7 +42,7 @@ COPY ./assets/php-configuration.sh /tmp/ # Install base tools RUN \ apk --no-cache add -U \ - ca-certificates geoip tzdata zip curl jq make \ + ca-certificates geoip tzdata zip curl jq make fcgi \ gnu-libiconv php-common mariadb-client oniguruma-dev \ zlib-dev libzip-dev libjpeg-turbo-dev libpng-dev \ icu-dev libmcrypt-dev libxml2 libxml2-dev \ @@ -59,16 +59,52 @@ php-fpm -D\n\ /usr/sbin/httpd -D FOREGROUND\n\ ' > /usr/bin/apache-foreground; \ chmod +x /usr/bin/apache-foreground; \ +elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + apk --no-cache add -U nginx nginx-mod-http-headers-more nginx-mod-http-geoip \ + nginx-mod-stream nginx-mod-stream-geoip; \ + printf '\ +#!/bin/sh\n\ +php-fpm -D\n\ +nginx -g "daemon off;"\n\ + ' > /usr/bin/nginx-foreground; \ + chmod +x /usr/bin/nginx-foreground; \ fi +## Healthcheck +RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ + printf '\ + #!/bin/sh\n\ + curl -Isf http://localhost:80/robots.txt || exit 1' > /tmp/healthcheck; \ + elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + printf '\ + #!/bin/sh\n\ + curl -Isf http://localhost:80/robots.txt || exit 1' > /tmp/healthcheck; \ + else \ + printf '\ + #!/bin/sh\n\ + cgi-fcgi -bind -connect localhost:9000' > /tmp/healthcheck; \ + fi; \ + chmod +x /tmp/healthcheck; + +# Add configuration +COPY ./assets/nginx.conf /tmp/ +COPY ./assets/php-fpm*.conf /tmp/ + # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; then \ - sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ + sed -i 's/{PHP_CMD}/php-fpm -R/' /tmp/docker_run.sh; \ + mv /tmp/php-fpm-standalone.conf /usr/local/etc/php-fpm.conf; \ + elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + sed -i 's/{PHP_CMD}/nginx-foreground/' /tmp/docker_run.sh; \ + mv /tmp/php-fpm-local.conf /usr/local/etc/php-fpm.conf; \ + mv /tmp/nginx.conf /etc/nginx/nginx.conf; \ + mkdir -p /var/run/php; \ else \ - sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ - fi + sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ + fi; \ + rm -rf /tmp/*.conf; # Handling a dynamic domain # Probably, or at least its usage must be described in the README file @@ -128,7 +164,7 @@ LABEL maintainer="PrestaShop Core Team " COPY --chown=www-data:www-data --from=alpine-download-prestashop ${PS_FOLDER} ${PS_FOLDER} HEALTHCHECK --interval=5s --timeout=5s --retries=10 --start-period=10s \ - CMD curl -Isf http://localhost:80/robots.txt || exit 1 + CMD /tmp/healthcheck EXPOSE 80 diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 7304038d..e05c04a9 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -56,10 +56,12 @@ RUN export DEBIAN_FRONTEND=noninteractive \ libzip-dev \ unzip \ wget \ + libfcgi-bin \ && /tmp/php-configuration.sh \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +## Server configuration # see: https://github.com/docker-library/php/blob/master/8.3/bullseye/apache/apache2-foreground RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ export DEBIAN_FRONTEND=noninteractive \ @@ -70,18 +72,60 @@ RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ apache2-utils \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ - wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground"; \ - chmod +x /usr/local/bin/apache2-foreground; \ -fi + && wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground" \ + && chmod +x /usr/local/bin/apache2-foreground; \ + elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + export DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install --no-install-recommends -qqy \ + nginx libnginx-mod-http-headers-more-filter libnginx-mod-http-geoip \ + libnginx-mod-http-geoip libnginx-mod-stream \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && printf '\ +#!/bin/sh\n\ +php-fpm -D\n\ +nginx -g "daemon off;"\n\ + ' > /usr/bin/nginx-foreground \ + && chmod +x /usr/bin/nginx-foreground; \ + fi + +## Healthcheck +RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ + printf '\ + #!/bin/sh\n\ + curl -Isf http://localhost:80/robots.txt || exit 1' > /tmp/healthcheck; \ + elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + printf '\ + #!/bin/sh\n\ + curl -Isf http://localhost:80/robots.txt || exit 1' > /tmp/healthcheck; \ + else \ + printf '\ + #!/bin/sh\n\ + cgi-fcgi -bind -connect localhost:9000' > /tmp/healthcheck; \ + fi; \ + chmod +x /tmp/healthcheck; + +# Add configuration +COPY ./assets/nginx.conf /tmp/ +COPY ./assets/php-fpm*.conf /tmp/ # The PrestaShop docker entrypoint COPY ./assets/docker_run.sh /tmp/ -RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; \ - then sed -i 's/{PHP_CMD}/php-fpm/' /tmp/docker_run.sh; \ +RUN if [ "$SERVER_FLAVOUR" = "fpm" ]; then \ + sed -i 's/{PHP_CMD}/php-fpm -F /' /tmp/docker_run.sh; \ + mv /tmp/php-fpm-standalone.conf /usr/local/etc/php-fpm.conf; \ + mkdir -p /var/run/php; \ + elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ + sed -i 's/{PHP_CMD}/nginx-foreground/' /tmp/docker_run.sh; \ + mv /tmp/php-fpm-local.conf /usr/local/etc/php-fpm.conf; \ + mv /tmp/nginx.conf /etc/nginx/nginx.conf; \ + mkdir -p /var/run/php; \ else \ - sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ - fi + sed -i 's/{PHP_CMD}/apache2-foreground/' /tmp/docker_run.sh; \ + fi; \ + rm -rf /tmp/*.conf # Handling a dynamic domain @@ -142,7 +186,7 @@ LABEL maintainer="PrestaShop Core Team " COPY --chown=www-data:www-data --from=debian-download-prestashop ${PS_FOLDER} ${PS_FOLDER} HEALTHCHECK --interval=5s --timeout=5s --retries=10 --start-period=10s \ - CMD curl -Isf http://localhost:80/robots.txt || exit 1 + CMD /tmp/healthcheck EXPOSE 80 diff --git a/examples/demo-example/docker-compose.yml b/examples/demo-example/docker-compose.yml index 53b2b365..219d1d49 100644 --- a/examples/demo-example/docker-compose.yml +++ b/examples/demo-example/docker-compose.yml @@ -15,15 +15,7 @@ services: mysql: image: mariadb:lts healthcheck: - test: - [ - "CMD", - "mysqladmin", - "ping", - "--host=localhost", - "--user=root", - "--password=prestashop", - ] + test: ["CMD", "healthcheck.sh", "--connect"] interval: 10s timeout: 10s retries: 5 diff --git a/examples/fpm-example/docker-compose.yml b/examples/fpm-example/docker-compose.yml new file mode 100644 index 00000000..52fc2dd1 --- /dev/null +++ b/examples/fpm-example/docker-compose.yml @@ -0,0 +1,45 @@ +name: prestashop-fpm-example +services: + prestashop: + image: prestashop/prestashop:fpm-latest + depends_on: + mysql: + condition: service_healthy + environment: + - PS_DOMAIN=localhost:8000 + - PS_DEMO_MODE=1 + expose: + - 9000 + + # TODO: fix link between prestashop & nginx (eg: static assets...) + nginx: + image: nginx:latest + healthcheck: + test: [ "CMD", "curl", "-is", "http://localhost:80" ] + interval: 10s + timeout: 10s + retries: 5 + depends_on: + prestashop: + condition: service_healthy + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf + ports: + - 8000:80 + + mysql: + image: mariadb:lts + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect"] + interval: 10s + timeout: 10s + retries: 5 + environment: + - MYSQL_HOST=mysql + - MYSQL_USER=prestashop + - MYSQL_PASSWORD=prestashop + - MYSQL_ROOT_PASSWORD=prestashop + - MYSQL_PORT=3306 + - MYSQL_DATABASE=prestashop + + diff --git a/examples/fpm-example/nginx.conf b/examples/fpm-example/nginx.conf new file mode 100644 index 00000000..f4a72fc0 --- /dev/null +++ b/examples/fpm-example/nginx.conf @@ -0,0 +1,149 @@ +user www-data www-data; +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + + gzip on; + gzip_disable "msie6"; + gzip_vary on; + gzip_proxied any; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/x-javascript + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/svg+xml + text/css + text/javascript + text/plain + text/xml; + + # Source: https://devdocs.prestashop-project.org/8/basics/installation/nginx/ + # Other optimizasions: https://medium.com/@jituboss/nginx-and-php-fpm-optimization-for-high-traffic-web-applications-f790bf1b30fb + server { + listen 80; + server_name localhost; + + error_log /dev/stdout notice; + access_log /dev/stdout; + + # all static assets are on the PrestaShop container + # see: https://stackoverflow.com/a/43560093 + #root /var/www/html; + + index index.php; + + # This should match the `post_max_size` and/or `upload_max_filesize` in your php.ini. + client_max_body_size 40M; + + # Uploaded files temporary dir + client_body_temp_path /tmp/client_body; + + error_page 404 /index.php?controller=404; + + # Enable browser cache + location ~* \.(?:css|eot|gif|ico|jpe?g|otf|png|ttf|woff2?)$ { + expires 1d; + add_header Cache-Control "public"; + } + + # Disable logs + location = /favicon.ico { + access_log off; + log_not_found off; + } + + location = /admin-dev/robots.txt { + access_log off; + log_not_found off; + } + + # Images + rewrite ^/(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last; + rewrite ^/(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last; + rewrite ^/(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last; + rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last; + rewrite ^/c/([\w.-]+)/.+\.jpg$ /img/c/$1.jpg last; + + # AlphaImageLoader for IE and FancyBox. + rewrite ^images_ie/?([^/]+)\.(gif|jpe?g|png)$ js/jquery/plugins/fancybox/images/$1.$2 last; + + # Web service API. + rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; + + # .htaccess, .DS_Store, .htpasswd, etc. + location ~ /\. { + deny all; + } + + # Source code directories. + location ~ ^/(app|bin|cache|classes|config|controllers|docs|localization|override|src|tests|tools|translations|var|vendor)/ { + deny all; + } + + # vendor in modules directory. + location ~ ^/modules/.*/vendor/ { + deny all; + } + + # Prevent exposing other sensitive files. + location ~ \.(log|tpl|twig|sass|yml)$ { + deny all; + } + + # Prevent injection of PHP files. + location /img { + location ~ \.php$ { deny all; } + } + + location /upload { + location ~ \.php$ { deny all; } + } + + location = / { + rewrite ^ /index.php last; + } + + location / { + try_files $uri $uri/ /index.php$is_args$args; + } + + location ~ \.php$ { + try_files $fastcgi_script_name =404; + + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + + fastcgi_index index.php; + + fastcgi_keep_conn on; + fastcgi_read_timeout 30s; + fastcgi_send_timeout 30s; + + fastcgi_pass prestashop:9000; + } + } +} diff --git a/examples/ngrok-tunnel/docker-compose.yml b/examples/ngrok-tunnel/docker-compose.yml index bdc2aca3..3d5a84bf 100644 --- a/examples/ngrok-tunnel/docker-compose.yml +++ b/examples/ngrok-tunnel/docker-compose.yml @@ -16,15 +16,7 @@ services: mysql: image: mariadb:lts healthcheck: - test: - [ - "CMD", - "mysqladmin", - "ping", - "--host=localhost", - "--user=root", - "--password=prestashop", - ] + test: ["CMD", "healthcheck.sh", "--connect"] interval: 10s timeout: 10s retries: 5 diff --git a/examples/nightly-example/docker-compose.yml b/examples/nightly-example/docker-compose.yml index 480b4396..ca244117 100644 --- a/examples/nightly-example/docker-compose.yml +++ b/examples/nightly-example/docker-compose.yml @@ -1,4 +1,4 @@ -name: prestashop-nightly-example +lname: prestashop-nightly-example services: prestashop: image: prestashop/prestashop:nightly @@ -14,15 +14,7 @@ services: mysql: image: mariadb:lts healthcheck: - test: - [ - "CMD", - "mysqladmin", - "ping", - "--host=localhost", - "--user=root", - "--password=prestashop", - ] + test: ["CMD", "healthcheck.sh", "--connect"] interval: 10s timeout: 10s retries: 5 From f16cd64b4991f5c8d198dbda8407ca12e6e52a73 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 21 Jun 2024 15:18:37 +0200 Subject: [PATCH 23/29] ci: Some fixes --- .github/workflows/pull-request.yml | 2 +- docker/debian.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f5d5ea16..18eb704e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -51,6 +51,6 @@ jobs: - name: Test the image timeout-minutes: 10 - run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint /bin/sh $DOCKER_IMAGE cat VERSION + run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint bash $DOCKER_IMAGE -c 'cat VERSION' env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index e05c04a9..e113c1e9 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -72,7 +72,7 @@ RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ apache2-utils \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ - && wget -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground" \ + && wget --quiet -O /usr/local/bin/apache2-foreground "https://raw.githubusercontent.com/docker-library/php/master/8.3/bullseye/apache/apache2-foreground" \ && chmod +x /usr/local/bin/apache2-foreground; \ elif [ "$SERVER_FLAVOUR" = "nginx" ]; then \ export DEBIAN_FRONTEND=noninteractive \ From 669e6c9d3fa0ae5e1c0b80aa6bb560c5e491a863 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 21 Jun 2024 15:34:18 +0200 Subject: [PATCH 24/29] ci: Some fixes --- .github/workflows/pull-request.yml | 2 +- docker/alpine.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 18eb704e..67b080ab 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -51,6 +51,6 @@ jobs: - name: Test the image timeout-minutes: 10 - run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint bash $DOCKER_IMAGE -c 'cat VERSION' + run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint sh $DOCKER_IMAGE -c 'cat VERSION' env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index d05e9a3d..c65298ff 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -147,7 +147,7 @@ RUN mkdir -p "$PS_FOLDER" /tmp/unzip-ps \ RUN echo "PrestaShop $PS_VERSION" > "$PS_FOLDER/VERSION" \ && echo "PHP $PHP_VERSION" >> "$PS_FOLDER/VERSION" \ && echo "Server $SERVER_FLAVOUR" >> "$PS_FOLDER/VERSION" \ - && echo "Git SHA $GIT_SHA" >> "$PS_FOLDER/VERSION" \ + && echo "Git SHA $GIT_SHA" >> "$PS_FOLDER/VERSION" # Adds a robots.txt file COPY ./assets/robots.txt $PS_FOLDER From 3717aacab08e7937bca9fcc7240998e47825733e Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 21 Jun 2024 15:42:06 +0200 Subject: [PATCH 25/29] ci: Fix debian apache --- .github/workflows/pull-request.yml | 2 +- docker/debian.Dockerfile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 67b080ab..d0bfecee 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,6 +31,7 @@ jobs: docker_build: name: "Docker build: ${{ matrix.os_flavour }} for ${{ matrix.ps_version }} with ${{ matrix.server_flavour }}" runs-on: ubuntu-latest + timeout-minutes: 10 strategy: fail-fast: false # TODO: Test only should be removed matrix: @@ -50,7 +51,6 @@ jobs: TARGET_PLATFORM: ${{ env.TARGET_PLATFORM }} - name: Test the image - timeout-minutes: 10 run: docker run --rm -t --env PS_DOMAIN='localhost:80' --entrypoint sh $DOCKER_IMAGE -c 'cat VERSION' env: DOCKER_IMAGE: prestashop/prestashop:${{ matrix.ps_version }}-${{ matrix.os_flavour }} diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index e113c1e9..7194d881 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -68,7 +68,6 @@ RUN if [ "$SERVER_FLAVOUR" = "apache" ]; then \ && apt-get update \ && apt-get install --no-install-recommends -qqy \ apache2 \ - apache2-proxy \ apache2-utils \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ From c3349634462ea7a2419a44f180b7af771d9a13fa Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 21 Jun 2024 16:09:29 +0200 Subject: [PATCH 26/29] ci: Add nightly --- .github/workflows/pull-request.yml | 2 +- examples/nightly-example/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d0bfecee..46a844fa 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false # TODO: Test only should be removed matrix: os_flavour: ["alpine", "debian"] - ps_version: ["1.6.1.24", "1.7.8.10", "8.1.6"] + ps_version: ["1.6.1.24", "1.7.8.10", "8.1.6", 'nightly'] server_flavour: ["fpm", "nginx", "apache"] steps: - name: Checkout repository diff --git a/examples/nightly-example/docker-compose.yml b/examples/nightly-example/docker-compose.yml index ca244117..a94331d3 100644 --- a/examples/nightly-example/docker-compose.yml +++ b/examples/nightly-example/docker-compose.yml @@ -1,4 +1,4 @@ -lname: prestashop-nightly-example +name: prestashop-nightly-example services: prestashop: image: prestashop/prestashop:nightly From 6096a93eb2413b00cd4f9a200c3e8ca996575216 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 21 Jun 2024 16:17:21 +0200 Subject: [PATCH 27/29] ci: Fix nightly --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 9bfb089c..91b8434c 100755 --- a/build.sh +++ b/build.sh @@ -108,9 +108,8 @@ get_target_images() { if [ "$PS_VERSION" == "nightly" ]; then if [ "$OS_FLAVOUR" = "$DEFAULT_OS" ]; then RES="-t ${DEFAULT_DOCKER_IMAGE}:nightly"; - else - RES="-t ${DEFAULT_DOCKER_IMAGE}:nightly-${OS_FLAVOUR}"; fi + RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:nightly-${OS_FLAVOUR}"; else if [ "$PS_VERSION" = "$(get_latest_prestashop_version)" ] && [ "$OS_FLAVOUR" = "$DEFAULT_OS" ] && [ "$PHP_VERSION" = "$(get_recommended_php_version "$PS_VERSION")" ]; then RES="-t ${DEFAULT_DOCKER_IMAGE}:latest"; From ec4975074ee37bdfb4a03173017a09b77a45339f Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Thu, 27 Jun 2024 18:03:33 +0200 Subject: [PATCH 28/29] docs: .... --- .sonarlint/connectedMode.json | 4 ++++ README.md | 16 ++++++++++++++- examples/demo-example/README.md | 16 ++++++++------- examples/demo-example/docker-compose.yml | 3 +-- examples/fpm-example/README.md | 26 ++++++++++++++++++++++++ examples/fpm-example/docker-compose.yml | 19 +---------------- 6 files changed, 56 insertions(+), 28 deletions(-) create mode 100644 .sonarlint/connectedMode.json create mode 100644 examples/fpm-example/README.md diff --git a/.sonarlint/connectedMode.json b/.sonarlint/connectedMode.json new file mode 100644 index 00000000..1aaed9d3 --- /dev/null +++ b/.sonarlint/connectedMode.json @@ -0,0 +1,4 @@ +{ + "sonarCloudOrganization": "prestashopcorp", + "projectKey": "PrestaShopCorp_prestashop-docker" +} \ No newline at end of file diff --git a/README.md b/README.md index 7e331ac5..71903b0d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # How to use -A PrestaShop Docker tool build, tag an publish production Docker images. +A PrestaShop Docker tool build, tag and publish production Docker images. See: https://hub.docker.com/r/prestashop/prestashop ## Requirements @@ -72,6 +72,20 @@ docker run -p 80:80 --detach --name prestashop prestashop/prestashop:latest => mais pas de 8.0, car la version 8.0 n'est pas recommandée. +### Exemple: je release PrestaShop "latest" + +> De même avec la nightly + +- `latest` +- OS + - `debian` ou `latest-debian` + - `alpine` ou `latest-alpine` +- Server + - `apache` ou `latest-apache` + - `fpm` ou `latest-fpm` + - `nginx` ou `latest-nginx` + + # Images \*\*debian\_\_: debian images are base on debian 11 Bullseye. diff --git a/examples/demo-example/README.md b/examples/demo-example/README.md index 6e8f4009..4b019d46 100644 --- a/examples/demo-example/README.md +++ b/examples/demo-example/README.md @@ -1,18 +1,17 @@ # Example: basic example -This example runs the latest available image of PrestaShop with demo mode. +This example runs the latest available image of PrestaShop (debian with apache by default). ## Test this example The expected output of this example is: -TODO: full logs ```sh docker compose up prestashop --force-recreate [+] Running 3/3 - ✔ Network prestashop-demo-example_default Created 0.1s - ✔ Container prestashop-demo-example-mysql-1 Created 0.0s - ✔ Container prestashop-demo-example-prestashop-1 Created 0.0s + ✔ Network prestashop-demo-example_default Created 0.1s + ✔ Container prestashop-demo-example-mysql-1 Created 0.0s + ✔ Container prestashop-demo-example-prestashop-1 Created 0.0s Attaching to prestashop-1 prestashop-1 | prestashop-1 | * Setting up install lock file... @@ -26,12 +25,15 @@ prestashop-1 | prestashop-1 | * Setup completed, removing lock file... prestashop-1 | prestashop-1 | * Enabling DEMO mode ... +prestashop-1 | +prestashop-1 | * Almost! Starting web server now +prestashop-1 | +prestashop-1 | +prestashop-1 | * No init script found, let's continue... ``` You can access to PrestaShop in your browser: - - http://localhost:8000 -- http://localhost:8000/admin-dev/ (back office, login/password described [here](../../README.md)) ## Running phpMyAdmin diff --git a/examples/demo-example/docker-compose.yml b/examples/demo-example/docker-compose.yml index 219d1d49..ec126672 100644 --- a/examples/demo-example/docker-compose.yml +++ b/examples/demo-example/docker-compose.yml @@ -1,4 +1,5 @@ name: prestashop-demo-example + services: prestashop: image: prestashop/prestashop:latest @@ -7,8 +8,6 @@ services: condition: service_healthy environment: - PS_DOMAIN=localhost:8000 - - PS_DEMO_MODE=1 - # - DEBUG_MODE=true ports: - 8000:80 diff --git a/examples/fpm-example/README.md b/examples/fpm-example/README.md new file mode 100644 index 00000000..4cdd2f0a --- /dev/null +++ b/examples/fpm-example/README.md @@ -0,0 +1,26 @@ +# Example: fpm example + +This example runs the latest available image of PrestaShop with fpm (with a nginx configuration). + +## Test this example + +The expected output of this example is: + +```sh +docker compose up prestashop --force-recreate + +``` + +You can access to PrestaShop in your browser: +- http://localhost:8000 + +## Running phpMyAdmin + +If you want to start a phpMyAdmin instance, it can be done easily like so: + +```sh +docker compose up +# or "docker compose up prestashop php-my-admin" +``` + +You can now access phpMyAdmin at http://localhost:6060 diff --git a/examples/fpm-example/docker-compose.yml b/examples/fpm-example/docker-compose.yml index 52fc2dd1..0e7124f9 100644 --- a/examples/fpm-example/docker-compose.yml +++ b/examples/fpm-example/docker-compose.yml @@ -1,4 +1,5 @@ name: prestashop-fpm-example + services: prestashop: image: prestashop/prestashop:fpm-latest @@ -7,7 +8,6 @@ services: condition: service_healthy environment: - PS_DOMAIN=localhost:8000 - - PS_DEMO_MODE=1 expose: - 9000 @@ -26,20 +26,3 @@ services: - ./nginx.conf:/etc/nginx/nginx.conf ports: - 8000:80 - - mysql: - image: mariadb:lts - healthcheck: - test: ["CMD", "healthcheck.sh", "--connect"] - interval: 10s - timeout: 10s - retries: 5 - environment: - - MYSQL_HOST=mysql - - MYSQL_USER=prestashop - - MYSQL_PASSWORD=prestashop - - MYSQL_ROOT_PASSWORD=prestashop - - MYSQL_PORT=3306 - - MYSQL_DATABASE=prestashop - - From 1346c2a8bf8cc8a250a3452a9f93c63220e814a1 Mon Sep 17 00:00:00 2001 From: Vincent Le Quec Date: Fri, 28 Jun 2024 16:26:17 +0200 Subject: [PATCH 29/29] wip --- README.md | 22 ++++++++++++---------- build.sh | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 56 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 71903b0d..170d2e4e 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,18 @@ prestashop/prestashop:8.0.1-8.1-apache Available env vars: -| Env var | Description | Default | -|-----------------------|-------------------------------------------------------------------------------------|------------------------------------| -| **PLATFORM** | [Docker multiplatform arch](https://docs.docker.com/build/building/multi-platform/) | `linux/amd64` | -| **OS_FLAVOUR** | `debian` or `alpine` | `debian` | -| **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | -| **PHP_FLAVOUR** | `fpm`, `apache` or `nginx` | `apache` | -| **PS_VERSION** | PrestaShop version | `latest` | -| **DOCKER_REPOSITORY** | the Docker image repository | `prestashop/prestashop` | - -> Note: default debian distribution is set to Debian 11 Bullseye. +| Env var | Description | Default | +|---------------------|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------| +| **PS_VERSION** | PrestaShop version | `latest` | +| **PHP_VERSION** | [The PHP version](https://hub.docker.com/_/php) | recommended version for PrestaShop | +| **OS_FLAVOUR** | `debian` or `alpine` | `debian` | +| **SERVER_FLAVOUR** | `apache`, `fpm` or `nginx` | `apache` | +| **TARGET_PLATFORM** | a comma separated list of [target platforms](https://docs.docker.com/build/building/multi-platform/) | `docker system info --format '{{.OSType}}/{{.Architecture}}'` | +| **PLATFORM** | alias for `$TARGET_PLATFORM` | | +| **TARGET_IMAGE** | docker image name | `prestashop/prestashop` | +| **PUSH** | set it to `true` if you want to push the resulting image | | +| **ZIP_SOURCE** | the zip to unpack in flashlight | Releases from [PrestaShop/PrestaShop](https://github.com/PrestaShop/PrestaShop) | +| **DRY_RUN** | if used, won't really build the image. Useful to check tags compliance | | ## Update diff --git a/build.sh b/build.sh index 91b8434c..73520690 100755 --- a/build.sh +++ b/build.sh @@ -6,13 +6,13 @@ cd "$(dirname "$0")" # ------------------- declare PS_VERSION; # -- PrestaShop version, defaults to latest declare PHP_VERSION; # -- PHP version, defaults to recommended version for PrestaShop -declare OS_FLAVOUR; # -- either "alpine" (default) or "debian" +declare OS_FLAVOUR; # -- either "alpine" or "debian" (default) declare SERVER_FLAVOUR; # -- either "apache" (default), "fpm" (no web server) or "nginx" -declare TARGET_PLATFORM; # -- a comma separated list of target platforms (defaults to "linux/amd64") +declare TARGET_PLATFORM; # -- a comma separated list of target platforms (defaults to your operating system) declare PLATFORM; # -- alias for $TARGET_PLATFORM -declare TARGET_IMAGE; # -- docker image name, defaults to "prestashop/prestashop-flashlight" +declare TARGET_IMAGE; # -- docker image name, defaults to "prestashop/prestashop" declare PUSH; # -- set it to "true" if you want to push the resulting image -declare ZIP_SOURCE; # -- the zip to unpack in flashlight +declare ZIP_SOURCE; # -- the zip to unpack in PrestaShop declare DRY_RUN; # -- if used, won't really build the image. Useful to check tags compliance # Static configuration @@ -23,7 +23,9 @@ DEFAULT_DOCKER_IMAGE=prestashop/prestashop DEFAULT_PLATFORM=$(docker system info --format '{{.OSType}}/{{.Architecture}}') GIT_SHA=$(git rev-parse HEAD) TARGET_PLATFORM="${TARGET_PLATFORM:-${PLATFORM:-$DEFAULT_PLATFORM}}" - +PRESTASHOP_TAGS=$(git ls-remote --tags git@github.com:PrestaShop/PrestaShop.git | cut -f2 | grep -Ev '\/1.5|\/1.6.0|alpha|beta|rc|RC|\^' | cut -d '/' -f3 | sort -r -V) +#PRESTASHOP_MAJOR_TAGS=$(get_prestashop_major_tags) +PRESTASHOP_MINOR_TAGS=$(get_prestashop_minor_tags) error() { echo -e "\e[1;31m${1:-Unknown error}\e[0m" exit "${2:-1}" @@ -34,6 +36,39 @@ get_latest_prestashop_version() { 'https://api.github.com/repos/prestashop/prestashop/releases/latest' | jq -r '.tag_name' } +get_prestashop_minor_tags() { + while IFS= read -r version; do + major_minor=$(echo "$version" | cut -d. -f1-2) + major_minor_patch=$(echo "$version" | cut -d. -f1-3) + criteria=$major_minor + # shellcheck disable=SC3010 + [[ "$major_minor" == 1* ]] && criteria=$major_minor_patch + if ! grep -q "^$criteria" "$PRESTASHOP_MINOR_TAGS"; then + echo "$version" >> "$PRESTASHOP_MINOR_TAGS" + fi + done < "$PRESTASHOP_TAGS" +} + + +is_version_latest_major_version() { + X_VERSION=$(echo "$1" | cut -d. -f1) + echo $X_VERSION +} + +is_version_latest_minor_version() { + XY_VERSION=$(echo "$1" | cut -d. -f1-2) +# RES=$(echo $PRESTASHOP_TAGS | awk -F. '!seen[$1"."$2]++' | grep -x "$XY_VERSION") + echo $XY_VERSION +} + +get_prestashop_tags() { + git ls-remote --tags git@github.com:PrestaShop/PrestaShop.git \ + | cut -f2 \ + | grep -Ev '\/1.5|\/1.6.0|alpha|beta|rc|RC|\^' \ + | cut -d '/' -f3 \ + | sort -r -V > "$PRESTASHOP_TAGS" +} + get_recommended_php_version() { local PS_VERSION=$1; local RECOMMENDED_VERSION=; @@ -119,11 +154,15 @@ get_target_images() { if [ "$PHP_VERSION" = "$(get_recommended_php_version "$PS_VERSION")" ]; then RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}"; RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:php-${PHP_VERSION}"; + # If the x.y.z version of PrestaShop is the latest version of the major + fi fi RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${PHP_FLAVOUR}"; RES="${RES} -t ${DEFAULT_DOCKER_IMAGE}:${PS_VERSION}-${OS_FLAVOUR}"; fi + echo "--------------> $(is_version_latest_minor_version "8.1.7")"; + echo "--------------> $(is_version_latest_minor_version "8.1.6")"; echo "$RES"; }