2014-03-01 03:39:35 +01:00
|
|
|
---
|
2016-07-27 04:35:35 +02:00
|
|
|
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
|
|
|
|
# for RHEL/CentOS.
|
2014-03-01 03:39:35 +01:00
|
|
|
php_enablerepo: ""
|
2014-11-11 18:34:06 +01:00
|
|
|
|
2018-10-23 20:50:02 +02:00
|
|
|
# Default PHP version to install on Debian-based OSes.
|
|
|
|
php_default_version_debian: "7.0"
|
|
|
|
|
2018-04-04 21:01:58 +02:00
|
|
|
# PHP package state; use 'present' to make sure it's installed, or 'latest' if
|
2016-06-11 04:06:53 +02:00
|
|
|
# you want to upgrade or switch versions using a new repo.
|
2018-04-04 21:01:58 +02:00
|
|
|
php_packages_state: present
|
2016-04-08 22:43:26 +02:00
|
|
|
|
2016-10-12 22:25:11 +02:00
|
|
|
# Whether to install recommended packages. Used only for Debian/Ubuntu.
|
2018-09-29 21:41:26 +02:00
|
|
|
php_install_recommends: true
|
2016-10-12 22:25:11 +02:00
|
|
|
|
2014-11-11 18:34:06 +01:00
|
|
|
# Set this to false if you're not using PHP with Apache/Nginx/etc.
|
|
|
|
php_enable_webserver: true
|
|
|
|
|
2016-01-15 03:47:25 +01:00
|
|
|
# PHP-FPM configuration.
|
2014-11-11 18:34:06 +01:00
|
|
|
php_enable_php_fpm: false
|
2016-01-15 03:47:25 +01:00
|
|
|
php_fpm_listen: "127.0.0.1:9000"
|
|
|
|
php_fpm_listen_allowed_clients: "127.0.0.1"
|
|
|
|
php_fpm_pm_max_children: 50
|
|
|
|
php_fpm_pm_start_servers: 5
|
|
|
|
php_fpm_pm_min_spare_servers: 5
|
|
|
|
php_fpm_pm_max_spare_servers: 5
|
2014-11-11 18:34:06 +01:00
|
|
|
|
2015-06-27 19:00:10 +02:00
|
|
|
# The executable to run when calling PHP from the command line.
|
|
|
|
php_executable: "php"
|
|
|
|
|
2017-09-22 04:58:02 +02:00
|
|
|
# OpCache settings.
|
2016-11-07 19:36:24 +01:00
|
|
|
php_opcache_zend_extension: "opcache.so"
|
2015-04-30 22:54:15 +02:00
|
|
|
php_opcache_enable: "1"
|
|
|
|
php_opcache_enable_cli: "0"
|
|
|
|
php_opcache_memory_consumption: "96"
|
|
|
|
php_opcache_interned_strings_buffer: "16"
|
|
|
|
php_opcache_max_accelerated_files: "4096"
|
|
|
|
php_opcache_max_wasted_percentage: "5"
|
|
|
|
php_opcache_validate_timestamps: "1"
|
2016-04-18 10:17:52 +02:00
|
|
|
php_opcache_revalidate_path: "0"
|
2015-04-30 22:54:15 +02:00
|
|
|
php_opcache_revalidate_freq: "2"
|
|
|
|
php_opcache_max_file_size: "0"
|
2015-10-14 06:33:53 +02:00
|
|
|
php_opcache_blacklist_filename: ""
|
2015-04-30 22:54:15 +02:00
|
|
|
|
2016-05-12 05:27:02 +02:00
|
|
|
# APCu settings.
|
2014-11-11 18:34:06 +01:00
|
|
|
php_enable_apc: true
|
|
|
|
php_apc_shm_size: "96M"
|
2015-03-01 04:14:51 +01:00
|
|
|
php_apc_enable_cli: "0"
|
2014-11-11 18:34:06 +01:00
|
|
|
|
|
|
|
# If this is set to false, none of the following options will have any effect.
|
|
|
|
# Any and all changes to /etc/php.ini will be your responsibility.
|
|
|
|
php_use_managed_ini: true
|
|
|
|
|
2015-04-14 07:28:24 +02:00
|
|
|
php_expose_php: "On"
|
2014-03-01 03:39:35 +01:00
|
|
|
php_memory_limit: "256M"
|
|
|
|
php_max_execution_time: "60"
|
2015-05-27 17:17:43 +02:00
|
|
|
php_max_input_time: "60"
|
|
|
|
php_max_input_vars: "1000"
|
2014-11-20 17:52:06 +01:00
|
|
|
php_realpath_cache_size: "32K"
|
2017-01-14 22:48:42 +01:00
|
|
|
|
|
|
|
php_file_uploads: "On"
|
2014-03-01 03:39:35 +01:00
|
|
|
php_upload_max_filesize: "64M"
|
2017-01-14 22:48:42 +01:00
|
|
|
php_max_file_uploads: "20"
|
|
|
|
|
2015-04-12 19:03:29 +02:00
|
|
|
php_post_max_size: "32M"
|
2014-03-01 03:39:35 +01:00
|
|
|
php_date_timezone: "America/Chicago"
|
2016-06-09 06:14:47 +02:00
|
|
|
php_allow_url_fopen: "On"
|
2015-09-12 17:52:18 +02:00
|
|
|
|
2014-08-05 16:01:28 +02:00
|
|
|
php_sendmail_path: "/usr/sbin/sendmail -t -i"
|
2016-03-25 23:05:33 +01:00
|
|
|
php_output_buffering: "4096"
|
2017-01-16 18:13:45 +01:00
|
|
|
php_short_open_tag: "Off"
|
2016-10-05 21:08:45 +02:00
|
|
|
php_disable_functions: []
|
2014-11-11 17:56:09 +01:00
|
|
|
|
2016-02-10 21:36:37 +01:00
|
|
|
php_session_cookie_lifetime: 0
|
|
|
|
php_session_gc_probability: 1
|
|
|
|
php_session_gc_divisor: 1000
|
|
|
|
php_session_gc_maxlifetime: 1440
|
2016-02-17 04:48:38 +01:00
|
|
|
php_session_save_handler: files
|
|
|
|
php_session_save_path: ''
|
2016-02-10 21:36:37 +01:00
|
|
|
|
2014-11-11 17:56:09 +01:00
|
|
|
php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT"
|
|
|
|
php_display_errors: "Off"
|
2015-04-24 18:02:59 +02:00
|
|
|
php_display_startup_errors: "Off"
|
2015-06-01 03:51:50 +02:00
|
|
|
|
|
|
|
# Install PHP from source (instead of using a package manager) with these vars.
|
|
|
|
php_install_from_source: false
|
2017-09-22 04:58:02 +02:00
|
|
|
php_source_repo: "https://git.php.net/repository/php-src.git"
|
2015-06-01 03:51:50 +02:00
|
|
|
php_source_version: "master"
|
|
|
|
php_source_clone_dir: "~/php-src"
|
2016-11-23 20:46:01 +01:00
|
|
|
php_source_clone_depth: 1
|
2015-06-01 03:51:50 +02:00
|
|
|
php_source_install_path: "/opt/php"
|
2015-10-02 19:49:11 +02:00
|
|
|
php_source_install_gmp_path: "/usr/include/x86_64-linux-gnu/gmp.h"
|
2015-06-01 03:51:50 +02:00
|
|
|
# For faster compile time: "make --jobs=X" where X is # of cores present.
|
|
|
|
php_source_make_command: "make"
|
|
|
|
php_source_configure_command: >
|
|
|
|
./configure
|
|
|
|
--prefix={{ php_source_install_path }}
|
2016-03-04 04:12:42 +01:00
|
|
|
--with-config-file-path={{ php_conf_paths | first }}
|
2015-06-01 03:51:50 +02:00
|
|
|
--enable-mbstring
|
|
|
|
--enable-zip
|
|
|
|
--enable-bcmath
|
|
|
|
--enable-pcntl
|
|
|
|
--enable-ftp
|
|
|
|
--enable-exif
|
|
|
|
--enable-calendar
|
|
|
|
--enable-opcache
|
|
|
|
--enable-pdo
|
|
|
|
--enable-sysvmsg
|
|
|
|
--enable-sysvsem
|
|
|
|
--enable-sysvshm
|
|
|
|
--enable-wddx
|
|
|
|
--with-curl
|
|
|
|
--with-mcrypt
|
|
|
|
--with-iconv
|
|
|
|
--with-gmp
|
|
|
|
--with-pspell
|
|
|
|
--with-gd
|
|
|
|
--with-jpeg-dir=/usr
|
|
|
|
--with-png-dir=/usr
|
|
|
|
--with-zlib-dir=/usr
|
|
|
|
--with-xpm-dir=/usr
|
|
|
|
--with-freetype-dir=/usr
|
|
|
|
--enable-gd-native-ttf
|
|
|
|
--enable-gd-jis-conv
|
|
|
|
--with-openssl
|
|
|
|
--with-pdo-mysql=/usr
|
|
|
|
--with-gettext=/usr
|
|
|
|
--with-zlib=/usr
|
|
|
|
--with-bz2=/usr
|
|
|
|
--with-recode=/usr
|
|
|
|
--with-mysqli=/usr/bin/mysql_config
|