Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ansible/roles/php
  • ericzillmann/php
2 results
Show changes
<IfModule mod_fastcgi.c>
AddHandler php{{ php_version_main }}-fcgi .php
Action php{{ php_version_main }}-fcgi /php{{ php_version_main }}-fcgi
Alias /php{{ php_version_main }}-fcgi /usr/lib/cgi-bin/php{{ php_version_main }}-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php{{ php_version_main }}-fcgi -socket /var/run/php{{ php_version_main }}-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Include /etc/apache2/{{ apache_conf_dir }}/global-deny.conf
</Directory>
</IfModule>
...@@ -14,8 +14,8 @@ prefix=/usr/local ...@@ -14,8 +14,8 @@ prefix=/usr/local
exec_prefix=${prefix} exec_prefix=${prefix}
php_fpm_BIN=${exec_prefix}/sbin/php-fpm php_fpm_BIN=${exec_prefix}/sbin/php-fpm
php_fpm_CONF=/etc/php5/fpm/php-fpm.conf php_fpm_CONF=/etc/{{ php_base_dir }}/fpm/php-fpm.conf
php_fpm_INI=/etc/php5/fpm/php.ini php_fpm_INI=/etc/{{ php_base_dir }}/fpm/php.ini
php_fpm_PID=/var/run/php5-fpm.pid php_fpm_PID=/var/run/php5-fpm.pid
php_opts="-c $php_fpm_INI --fpm-config $php_fpm_CONF --pid $php_fpm_PID" php_opts="-c $php_fpm_INI --fpm-config $php_fpm_CONF --pid $php_fpm_PID"
......
/opt/oracle/instantclient_18_5
/var/log/php{{ phpLogRotatePrefix }}-fpm.log {
daily
rotate 7
missingok
notifempty
create 644 root root
compress
delaycompress
postrotate
/usr/lib{{ phpLibPrefix }}/php/php{{ phpLogRotatePrefix }}-fpm-reopenlogs
endscript
}
...@@ -257,7 +257,7 @@ precision = 14 ...@@ -257,7 +257,7 @@ precision = 14
; Development Value: 4096 ; Development Value: 4096
; Production Value: 4096 ; Production Value: 4096
; http://php.net/output-buffering ; http://php.net/output-buffering
output_buffering = 4096 output_buffering = {{ php_output_buffering }}
; You can redirect all of the output of your scripts to a function. For ; 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 ; example, if you set output_handler to "mb_output_handler", character
...@@ -323,7 +323,7 @@ serialize_precision = 17 ...@@ -323,7 +323,7 @@ serialize_precision = 17
; *NOT* affected by whether Safe Mode is turned On or Off. ; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/open-basedir ; http://php.net/open-basedir
{% if item is defined and item.jail is defined %} {% if item is defined and item.jail is defined %}
open_basedir = {{ jailroot }}/{{ item.jail.name }}/var/www{{ item.root }}/:{{ jailroot }}/{{ item.jail.name }}/var/www/settings/:{{ jailroot }}/{{ item.jail.name }}/var/www/files/:{{ jailroot }}/{{ item.jail.name }}/tmp/ open_basedir = {{ jailroot }}/{{ item.jail.name }}/var/www{{ item.webRoot|default("") }}{{ item.root }}/:{{ jailroot }}/{{ item.jail.name }}/var/www/settings/:{{ jailroot }}/{{ item.jail.name }}/var/www/files/:{{ jailroot }}/{{ item.jail.name }}/tmp/
{% else %} {% else %}
;open_basedir = ;open_basedir =
{% endif %} {% endif %}
...@@ -412,7 +412,7 @@ max_execution_time = {{ php_max_execution_time }} ...@@ -412,7 +412,7 @@ max_execution_time = {{ php_max_execution_time }}
; Development Value: 60 (60 seconds) ; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds) ; Production Value: 60 (60 seconds)
; http://php.net/max-input-time ; http://php.net/max-input-time
max_input_time = 60 max_input_time = {{ php_max_input_time }}
; Maximum input variable nesting level ; Maximum input variable nesting level
; http://php.net/max-input-nesting-level ; http://php.net/max-input-nesting-level
...@@ -716,7 +716,7 @@ default_mimetype = "text/html" ...@@ -716,7 +716,7 @@ default_mimetype = "text/html"
; to disable this feature. If post reading is disabled through ; to disable this feature. If post reading is disabled through
; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated. ; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated.
; http://php.net/always-populate-raw-post-data ; http://php.net/always-populate-raw-post-data
;always_populate_raw_post_data = On always_populate_raw_post_data = -1
;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ; ; Paths and Directories ;
...@@ -738,7 +738,7 @@ default_mimetype = "text/html" ...@@ -738,7 +738,7 @@ default_mimetype = "text/html"
; cgi.force_redirect configuration below ; cgi.force_redirect configuration below
; http://php.net/doc-root ; http://php.net/doc-root
{% if item is defined and item.jail is defined %} {% if item is defined and item.jail is defined %}
doc_root = {{ jailroot }}/{{ item.jail.name }}/var/www{{ item.docroot|default(item.root) }} doc_root = {{ jailroot }}/{{ item.jail.name }}/var/www{{ item.webRoot|default("") }}{{ item.docroot|default(item.root) }}
{% else %} {% else %}
doc_root = doc_root =
{% endif %} {% endif %}
...@@ -833,7 +833,7 @@ upload_tmp_dir = {{ jailroot }}/{{ item.jail.name }}/tmp ...@@ -833,7 +833,7 @@ upload_tmp_dir = {{ jailroot }}/{{ item.jail.name }}/tmp
upload_max_filesize = {{ php_upload_max_filesize }} upload_max_filesize = {{ php_upload_max_filesize }}
; Maximum number of files that can be uploaded via a single request ; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20 max_file_uploads = {{ php_max_file_uploads }}
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;
; Fopen wrappers ; ; Fopen wrappers ;
...@@ -1349,7 +1349,7 @@ bcmath.scale = 0 ...@@ -1349,7 +1349,7 @@ bcmath.scale = 0
; http://php.net/browscap ; http://php.net/browscap
;browscap = extra/browscap.ini ;browscap = extra/browscap.ini
{% if php_browscap %} {% if php_browscap %}
browscap = /etc/php5/apache2/extra/browscap.ini browscap = /etc/{{ php_base_dir }}/apache2/extra/browscap.ini
{% endif %} {% endif %}
[Session] [Session]
...@@ -1675,6 +1675,9 @@ mssql.secure_connection = Off ...@@ -1675,6 +1675,9 @@ mssql.secure_connection = Off
;mssql.charset = "ISO-8859-1" ;mssql.charset = "ISO-8859-1"
[Assertion] [Assertion]
zend.assertions = {{ php_zend_assertions }}
; Assert(expr); active by default. ; Assert(expr); active by default.
; http://php.net/assert.active ; http://php.net/assert.active
;assert.active = On ;assert.active = On
...@@ -1735,11 +1738,17 @@ mssql.secure_connection = Off ...@@ -1735,11 +1738,17 @@ mssql.secure_connection = Off
; http input encoding. ; http input encoding.
; http://php.net/mbstring.http-input ; http://php.net/mbstring.http-input
;mbstring.http_input = UTF-8 ;mbstring.http_input = UTF-8
{% if php_mbstring_http_input is defined %}
mbstring.http_input = {{ php_mbstring_http_input }}
{% endif %}
; http output encoding. mb_output_handler must be ; http output encoding. mb_output_handler must be
; registered as output buffer to function ; registered as output buffer to function
; http://php.net/mbstring.http-output ; http://php.net/mbstring.http-output
;mbstring.http_output = pass ;mbstring.http_output = pass
{% if php_mbstring_http_output is defined %}
mbstring.http_output = {{ php_mbstring_http_output }}
{% endif %}
; enable automatic encoding translation according to ; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are ; mbstring.internal_encoding setting. Input chars are
...@@ -1967,13 +1976,16 @@ ldap.max_links = -1 ...@@ -1967,13 +1976,16 @@ ldap.max_links = -1
[Syslog] [Syslog]
define_syslog_variables = Off define_syslog_variables = Off
{% if php_version|default('5.5') == '5.3' %} {% if php_version|default(5.5) == 5.3 %}
[apc] [apc]
extension = apc.so extension = apc.so
apc.rfc1867 = 1 apc.rfc1867 = {{ apc_rfc1867 }}
apc.shm_size = 256M apc.shm_size = {{ apc_shm_size }}
apc.shm_segments = 1 apc.shm_segments = {{ apc_shm_segments }}
apc.num_files_hint = 0 apc.num_files_hint = {{ apc_num_files_hint }}
apc.ttl = {{ apc_ttl }}
apc.user_ttl = {{ apc_user_ttl }}
apc.gc_ttl = {{ apc_gc_ttl }}
[imagick] [imagick]
extension=imagick.so extension=imagick.so
...@@ -1981,3 +1993,8 @@ extension=imagick.so ...@@ -1981,3 +1993,8 @@ extension=imagick.so
[xmlrpc] [xmlrpc]
extension=xmlrpc.so extension=xmlrpc.so
{% endif %} {% endif %}
{% if php_version_main|default(7) == 7 %}
[oauth]
extension=oauth.so
{% endif %}
extension = apc.so
apc.rfc1867 = {{ apc_rfc1867 }}
apc.shm_size = {{ apc_shm_size }}
apc.shm_segments = {{ apc_shm_segments }}
apc.num_files_hint = {{ apc_num_files_hint }}
extension=apcu.so
apc.shm_size={{ apc_shm_size }}
; priority=10
zend_extension=opcache.so zend_extension=opcache.so
opcache.enable=1 opcache.enable=1
opcache.enable_cli=1
opcache.save_comments=1
opcache.memory_consumption={{ opcache_memory_consumption }} opcache.memory_consumption={{ opcache_memory_consumption }}
opcache.max_accelerated_files={{ opcache_max_accelerated_files }} opcache.max_accelerated_files={{ opcache_max_accelerated_files }}
opcache.revalidate_freq={{ opcache_revalidate_freq }} opcache.revalidate_freq={{ opcache_revalidate_freq }}
......
[default]
user = www-data
group = www-data
;chroot = /var/www{{apache_server_default_root|default('')}}
chdir = /
{% if php_fpm_socket %}
listen = /var/run/php{{ php_version_main }}-fpm.sock
{% else %}
listen = 127.0.0.1:{{ php_fpm_port|default(9999) }}
{% endif %}
; Process manager
pm = dynamic
pm.max_children = 10
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 6
pm.max_requests = 2000
pm.status_path = /fpm-status
; Environment variables
env[HOSTNAME] = {{ inventory_hostname }}
env[PATH] = /usr/local/bin:/usr/sbin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
; PHP settings
php_admin_value[doc_root] = /var/www{{apache_server_default_root|default('')}}
php_admin_value[upload_tmp_dir] = /tmp
php_admin_value[browscap] = {{ php_browscap }}
php_admin_value[conf_dir] = {{ php_conf_dir }}
php_admin_value[date_timezone] = {{ php_date_timezone }}
php_admin_value[display_errors] = {{ php_display_errors }}
php_admin_value[display_startup_errors] = {{ php_display_startup_errors }}
php_admin_value[error_reporting] = {{ php_error_reporting }}
php_admin_value[expose_php] = {{ php_expose_php }}
php_admin_value[filter.default] = {{ php_filter_default }}
php_admin_value[html_errors] = {{ php_html_errors }}
php_admin_value[log_errors] = {{ php_log_errors }}
php_admin_value[magic_quotes_gpc] = {{ php_magic_quotes_gpc }}
php_admin_value[max_execution_time] = {{ php_max_execution_time }}
php_admin_value[max_input_time] = {{ php_max_input_time }}
php_admin_value[max_input_vars] = {{ php_max_input_vars }}
php_admin_value[needs_oci8] = {{ php_needs_oci8 }}
php_admin_value[register_globals] = {{ php_register_globals }}
php_admin_value[register_long_arrays] = {{ php_register_long_arrays }}
php_admin_value[sendmail_path] = {{ php_sendmail_path }}
php_admin_value[session_cache_expire] = {{ php_session_cache_expire }}
php_admin_value[session_cookie_lifetime] = {{ php_session_cookie_lifetime }}
php_admin_value[session_gc_divisor] = {{ php_session_gc_divisor }}
php_admin_value[session_gc_maxlifetime] = {{ php_session_gc_maxlifetime }}
php_admin_value[short_open_tag] = {{ php_short_open_tag }}
php_admin_value[max_file_uploads] = {{ php_max_file_uploads }}
php_admin_value[memory_limit] = {{ php_memory_limit }}
php_admin_value[post_max_size] = {{ php_post_max_size }}
php_admin_value[upload_max_filesize] = {{ php_upload_max_filesize }}