Skip to content
Snippets Groups Projects
Verified Commit 27f4df84 authored by Chris Croome's avatar Chris Croome
Browse files

NEEDS CHECKING: PHP defaults fixed?

parent 1913756f
No related branches found
No related tags found
No related merge requests found
Pipeline #34740 failed
......@@ -76,7 +76,6 @@ php_config:
"mysqli.allow_local_infile": "Off"
opcache:
"opcache.enable": "1"
"opcache.enable_cli": "0"
"opcache.interned_strings_buffer": "64"
"opcache.jit": "Off"
"opcache.jit_buffer_size": "0"
......@@ -185,7 +184,7 @@ php_config:
"mysqli.allow_local_infile": "Off"
opcache:
"opcache.enable": "1"
"opcache.enable_cli": "0"
"opcache.enable_cli": "1"
"opcache.interned_strings_buffer": "64"
"opcache.jit": "Off"
"opcache.jit_buffer_size": "0"
......@@ -196,39 +195,10 @@ php_config:
"opcache.validate_permission": "1"
"opcache.validate_root": "1"
"opcache.validate_timestamps": "1"
Pdo_mysql:
"pdo_mysql.default_socket": "/run/mysqld/mysqld.sock"
PHP:
allow_url_include: "Off"
default_socket_timeout: "600"
disable_functions: "chgrp,chown,dl,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid"
max_file_uploads: "60"
max_execution_time: "600"
max_input_nesting_level: "512"
max_input_time: "600"
max_input_vars: "100000"
memory_limit: "512M"
output_buffering: "4096"
post_max_size: "512M"
short_open_tag: "Off"
upload_max_filesize: "512M"
Session:
"session.save_path": "${TMPDIR}"
- name: PHP 8.2 FPM www pool configuration
path: /etc/php/8.2/fpm/pool.d/www.conf
state: absent
- name: PHP 8.2 FPM www82 pool configuration
path: /etc/php/8.2/fpm/pool.d/www82.conf
state: present
conf:
www82:
"user": www-data
"group": www-data
"listen": /run/php/php8.2-fpm.sock
"listen.owner": www-data
"listen.group": www-data
"pm": ondemand
"pm.max_children": "4"
"pm.process_idle_timeout": 10s
"pm.status_path": /fpm82-status
"max_input_vars": 100000
- name: PHP 8.1 configuration
version: "8.1"
state: present
......@@ -294,7 +264,7 @@ php_config:
"mysqli.allow_local_infile": "Off"
opcache:
"opcache.enable": "1"
"opcache.enable_cli": "0"
"opcache.enable_cli": "1"
"opcache.interned_strings_buffer": "64"
"opcache.jit": "Off"
"opcache.jit_buffer_size": "0"
......@@ -305,39 +275,10 @@ php_config:
"opcache.validate_permission": "1"
"opcache.validate_root": "1"
"opcache.validate_timestamps": "1"
Pdo_mysql:
"pdo_mysql.default_socket": "/run/mysqld/mysqld.sock"
PHP:
allow_url_include: "Off"
default_socket_timeout: "600"
disable_functions: "chgrp,chown,dl,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid"
max_file_uploads: "60"
max_execution_time: "600"
max_input_nesting_level: "512"
max_input_time: "600"
max_input_vars: "100000"
memory_limit: "512M"
output_buffering: "4096"
post_max_size: "512M"
short_open_tag: "Off"
upload_max_filesize: "512M"
Session:
"session.save_path": "${TMPDIR}"
- name: PHP 8.1 FPM www pool configuration
path: /etc/php/8.1/fpm/pool.d/www.conf
state: absent
- name: PHP 8.1 FPM www81 pool configuration
path: /etc/php/8.1/fpm/pool.d/www81.conf
state: present
conf:
www81:
"user": www-data
"group": www-data
"listen": /run/php/php8.1-fpm.sock
"listen.owner": www-data
"listen.group": www-data
"pm": ondemand
"pm.max_children": "4"
"pm.process_idle_timeout": 10s
"pm.status_path": /fpm81-status
"max_input_vars": 100000
- name: PHP 8.0 configuration
version: "8.0"
state: present
......@@ -403,7 +344,6 @@ php_config:
"mysqli.allow_local_infile": "Off"
opcache:
"opcache.enable": "1"
"opcache.enable_cli": "0"
"opcache.interned_strings_buffer": "64"
"opcache.jit": "Off"
"opcache.jit_buffer_size": "0"
......@@ -477,6 +417,17 @@ php_config:
"mysqli.max_persistent": "-1"
"mysqli.reconnect": "Off"
"mysqli.default_socket": "/run/mysqld/mysqld.sock"
opcache:
"opcache.enable": "1"
"opcache.enable_cli": "1"
"opcache.interned_strings_buffer": "64"
"opcache.max_accelerated_files": "100000"
"opcache.memory_consumption": "1024"
"opcache.revalidate_freq": "2"
"opcache.use_cwd": "1"
"opcache.validate_permission": "1"
"opcache.validate_root": "1"
"opcache.validate_timestamps": "1"
Pdo_mysql:
"pdo_mysql.default_socket": "/run/mysqld/mysqld.sock"
PHP:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment