-
-
Save tchollingsworth/2641d937bf8ffabc1157701de5cb0fa7 to your computer and use it in GitHub Desktop.
php-fpm doesn't start in PHP_FPM_CONTAINER_MODE=php-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
,---. | |
,--------.,--. ,--. ,---. ,--. ,--------.| | | |
'--. .--'`--',--.--. ,---. ,-| | ,---. / .-' | | '--. .--'| .' | |
| | ,--.| .--'| .-. :' .-. | | .-. || `-, | | | | | | | |
| | | || | \ --.\ `-' | ' '-' '| .-' | |.--.| | `--' | |
`--' `--'`--' `----' `---' `---' `--' `--''--'`--' .--. | |
'--' | |
Image: tiredofit/nginx-php-fpm | Version 7.7.2 Type 'image_changelog' for details | |
Repository/Documentation: https://github.com/tiredofit/docker-nginx-php-fpm/ | |
If this image provides you value - Consider sponsoring my work for continued | |
development, timely updates, and feature requests. Commercial support available. | |
More Info: https://www.tiredofit.ca | |
2023-12-05.05:49:28 [DEBUG] /etc/cont-init.d/00-startup ** [container-init] Creating Logrotate Entry for /var/log/container//container.log | |
2023-12-05.05:49:28 [DEBUG] /etc/cont-init.d/00-startup ** [container-init] Cold Container startup detected - Proceeding to initialize services normally | |
2023-12-05.05:49:28 [DEBUG] /etc/cont-init.d/00-startup ** [container-init] Adding shortcuts to .bashrc | |
2023-12-05.05:49:28 [DEBUG] /etc/cont-init.d/00-startup ** [container-init] Adding 'changelog' command to .bashrc | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/02-permissions ** [permissions] Enabling permissions features | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [container] Container: Getting defaults for '03-monitoring' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [container] Container: No functions available for '03-monitoring' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Using Zabbix Backend | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Adding Sudo privileges to 'zabbix' for 'ALL' command | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Adding Doas privileges to 'zabbix' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] We are using newer than Alpine 3.11 to be able to use the Zabbix Modern client.. | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Configuring Zabbix modern Agent | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Zabbix Agent - Generating Collection Configuration | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/03-monitoring ** [monitoring] Creating Logrotate Entry for /var/log/zabbix/agent//zabbix_agentd.log | |
2023-12-05.05:49:29 [NOTICE] /etc/cont-init.d/03-monitoring ** [monitoring] Container configured for monitoring with 'zabbix modern' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/04-scheduling ** [container] Container: Getting defaults for '04-scheduling' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/04-scheduling ** [container] Container: No functions available for '04-scheduling' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/04-scheduling ** [scheduling] Creating Logrotate Entry for /var/log/cron//cron.log | |
2023-12-05.05:49:29 [NOTICE] /etc/cont-init.d/04-scheduling ** [scheduling] Container configured for scheduled tasks with 'cron' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/00-container | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/02-permissions | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/03-monitoring | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/04-scheduling | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/05-logging | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/06-messaging | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/07-firewall | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/10-nginx | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/20-php-fpm | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting functions for /assets/functions/10-nginx | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting functions for /assets/functions/20-php-fpm | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/05-logging ** [logging] Enabling log rotation | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/06-messaging ** [container] Container: Getting defaults for '06-messaging' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/06-messaging ** [container] Container: No functions available for '06-messaging' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_TLS value to 'Off' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_STARTTLS value to 'Off' | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_TLSCERTCHECK value to 'Off' | |
2023-12-05.05:49:29 [NOTICE] /etc/cont-init.d/06-messaging ** [messaging] Container configured to route mail via SMTP to 'postfix-relay' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/00-container | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/02-permissions | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/03-monitoring | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/04-scheduling | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/05-logging | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/06-messaging | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/07-firewall | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/10-nginx | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting defaults for /assets/defaults/20-php-fpm | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting functions for /assets/functions/10-nginx | |
2023-12-05.05:49:29 [DEBUG] /etc/cont-init.d/07-firewall ** [container] Container: Getting functions for /assets/functions/20-php-fpm | |
+ prepare_service single | |
+ '[' -n single ']' | |
+ case "$(dirname "$0")" in | |
++ dirname /etc/cont-init.d/10-nginx | |
+ set -a | |
+ get_defaults single | |
+ '[' -n single ']' | |
+ case "${1,,}" in | |
+ case "$(dirname "$0")" in | |
++ dirname /etc/cont-init.d/10-nginx | |
++ basename /etc/cont-init.d/10-nginx | |
+ '[' -f /assets/defaults/10-nginx ']' | |
++ basename /etc/cont-init.d/10-nginx | |
+ print_debug 'Container: Getting defaults for '\''10-nginx'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [container] Container: Getting defaults for '10-nginx' | |
+ case "$(basename "$0")" in | |
++ basename /etc/cont-init.d/10-nginx | |
++ basename /etc/cont-init.d/10-nginx | |
+ source /assets/defaults/10-nginx | |
++ ENABLE_NGINX=TRUE | |
++ NGINX_AUTHENTICATION_BASIC_PASS=password | |
++ NGINX_AUTHENTICATION_BASIC_USER=admin | |
++ NGINX_AUTHENTICATION_LDAP_ATTRIBUTE=uid | |
++ NGINX_AUTHENTICATION_LDAP_FILTER='(objectClass=person)' | |
++ NGINX_AUTHENTICATION_LDAP_GROUP_ATTRIBUTE=uniquemember | |
++ NGINX_AUTHENTICATION_LDAP_SCOPE=sub | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_HOST=llng-handler:2884 | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_PORT=2884 | |
++ NGINX_AUTHENTICATION_LLNG_ATTRIBUTE1=HTTP_AUTH_USER,uid,upstream_http_uid | |
++ NGINX_AUTHENTICATION_TITLE='Please login' | |
++ NGINX_AUTHENTICATION_TYPE=NONE | |
++ NGINX_BLOCK_BOTS_WHITELIST_IP=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/24 | |
++ NGINX_CLIENT_BODY_TIMEOUT=60 | |
++ NGINX_CLIENT_BODY_BUFFER_SIZE=16k | |
++ NGINX_COMPRESSION_BROTLI_LEVEL=6 | |
++ NGINX_COMPRESSION_BROTLI_MIN_LENGTH=20 | |
++ NGINX_COMPRESSION_BROTLI_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_BROTLI_WINDOW=512k | |
++ NGINX_COMPRESSION_GZIP_BUFFERS='16 8k' | |
++ NGINX_COMPRESSION_GZIP_DISABLE='MSIE [1-6].(?!.*SV1)' | |
++ NGINX_COMPRESSION_GZIP_HTTP_VERSION=1.1 | |
++ NGINX_COMPRESSION_GZIP_LEVEL=6 | |
++ NGINX_COMPRESSION_GZIP_MIN_LENGTH=10240 | |
++ NGINX_COMPRESSION_GZIP_PROXIED='expired no-cache no-store private auth' | |
++ NGINX_COMPRESSION_GZIP_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_GZIP_VARY=TRUE | |
++ NGINX_DDOS_CONNECTIONS_PER_IP=10m | |
++ NGINX_DDOS_REQUESTS_PER_IP=5r/s | |
++ NGINX_ENABLE_APPLICATION_CONFIGURATION=TRUE | |
++ NGINX_ENABLE_BLOCK_BOTS=FALSE | |
++ NGINX_ENABLE_COMPRESSION_BROTLI=TRUE | |
++ NGINX_ENABLE_COMPRESSION_GZIP=TRUE | |
++ NGINX_ENABLE_CREATE_SAMPLE_HTML=FALSE | |
++ NGINX_ENABLE_DDOS_PROTECTION=FALSE | |
++ NGINX_ENABLE_EPOLL=TRUE | |
++ NGINX_ENABLE_EXPLOIT_PROTECTION=TRUE | |
++ NGINX_ENABLE_FASTCGI_HTTPS=FALSE | |
++ NGINX_ENABLE_MULTI_ACCEPT=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE_ERRORS=TRUE | |
++ NGINX_ENABLE_RESET_TIMEDOUT_CONNECTION=TRUE | |
++ NGINX_ENABLE_PROXY_BUFFERING=TRUE | |
++ NGINX_ENABLE_REVERSE_PROXY=TRUE | |
++ NGINX_ENABLE_SENDFILE=TRUE | |
++ NGINX_ENABLE_SERVER_TOKENS=FALSE | |
++ NGINX_ENABLE_SITE_OPTIMIZATION=TRUE | |
++ NGINX_ENABLE_TCPNODELAY=TRUE | |
++ NGINX_ENABLE_TCPNOPUSH=TRUE | |
++ NGINX_ENABLE_UPSTREAM_KEEPALIVE=TRUE | |
++ NGINX_FASTCGI_BUFFERS='16 16k' | |
++ NGINX_FASTCGI_BUFFER_SIZE=32k | |
++ NGINX_FORCE_RESET_PERMISSIONS=TRUE | |
++ NGINX_KEEPALIVE_REQUESTS=100000 | |
++ NGINX_KEEPALIVE_TIMEOUT=75 | |
++ NGINX_LISTEN_PORT=80 | |
++ NGINX_LOG_ACCESS_FILE=access.log | |
++ NGINX_LOG_ACCESS_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ERROR_FILE=error.log | |
++ NGINX_LOG_ERROR_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ACCESS_FORMAT=standard | |
++ NGINX_LOG_LEVEL_ERROR=warn | |
++ NGINX_LOG_BLOCKED_FORMAT=standard | |
++ NGINX_LOG_BLOCKED_FILE=blocked.log | |
++ NGINX_LOG_BLOCKED_LOCATION=/www/logs/nginx/ | |
++ NGINX_MAINTENANCE_FILE=index.html | |
++ NGINX_MAINTENANCE_PATH=/assets/nginx/maintenance/ | |
++ NGINX_MAINTENANCE_TYPE=local | |
++ NGINX_MAINTENANCE_PROXY_URL=http://maintenance | |
++ NGINX_MODE=NORMAL | |
++ NGINX_OPEN_FILE_CACHE_ERRORS=on | |
++ NGINX_OPEN_FILE_CACHE_INACTIVE=5m | |
++ NGINX_OPEN_FILE_CACHE_MAX=200000 | |
++ NGINX_OPEN_FILE_CACHE_MIN_USES=2 | |
++ NGINX_OPEN_FILE_CACHE_VALID=2m | |
++ NGINX_PROXY_BUFFERS='4 256k' | |
++ NGINX_PROXY_BUFFER_SIZE=128k | |
++ NGINX_PROXY_BUSY_BUFFERS_SIZE=256k | |
++ NGINX_REAL_IP_HEADER=X-Forwarded-For | |
++ NGINX_RELOAD_ON_CONFIG_CHANGE=FALSE | |
++ NGINX_SEND_TIMEOUT=60 | |
++ NGINX_SET_REAL_IP_FROM=172.16.0.0/12 | |
++ NGINX_UPLOAD_MAX_SIZE=2G | |
++ NGINX_UPSTREAM_KEEPALIVE=32 | |
++ NGINX_USER=nginx | |
++ NGINX_GROUP=www-data | |
++ NGINX_WEBROOT=/www/html | |
++ NGINX_WORKER_CONNECTIONS=1024 | |
++ NGINX_WORKER_PROCESSES=auto | |
++ NGINX_WORKER_RLIMIT_NOFILE=100000 | |
++ STAGE=DEVELOP | |
++ '[' standard = standard ']' | |
++ '[' none = llng ']' | |
++ '[' standard = json ']' | |
+ get_functions single | |
+ '[' -n single ']' | |
+ case "${1,,}" in | |
+ case "$(dirname "$0")" in | |
++ dirname /etc/cont-init.d/10-nginx | |
++ basename /etc/cont-init.d/10-nginx | |
+ '[' -f /assets/functions/10-nginx ']' | |
++ basename /etc/cont-init.d/10-nginx | |
+ print_debug 'Container: Getting functions for '\''10-nginx'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [container] Container: Getting functions for '10-nginx' | |
++ basename /etc/cont-init.d/10-nginx | |
+ source /assets/functions/10-nginx | |
+ set +a | |
+ PROCESS_NAME=nginx | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ '[' '!' -f /tmp/.container/container-restart ']' | |
+ nginx_check_legacy_configuration | |
+ '[' -d /etc/nginx/conf.d/ ']' | |
+ nginx_configure_mode | |
+ case "${NGINX_MODE,,}" in | |
+ sed -i 's|include /etc/nginx/templates/maintenance.template;|#include /etc/nginx/templates/maintenance.template;|g' /etc/nginx/nginx.conf | |
+ sed -i '/include \/etc\/nginx\/templates\/proxy.template;/d' /etc/nginx/nginx.conf | |
+ sed -i '/include \/etc\/nginx\/templates\/redirect.template;/d' /etc/nginx/nginx.conf | |
+ nginx_configure_server | |
+ update_template /etc/nginx/nginx.conf NGINX_CLIENT_BODY_BUFFER_SIZE NGINX_CLIENT_BODY_TIMEOUT NGINX_FASTCGI_BUFFERS NGINX_FASTCGI_BUFFER_SIZE NGINX_GROUP NGINX_KEEPALIVE_REQUESTS NGINX_KEEPALIVE_TIMEOUT NGINX_SEND_TIMEOUT NGINX_PROXY_BUFFERS NGINX_PROXY_BUFFER_SIZE NGINX_PROXY_BUSY_BUFFERS_SIZE NGINX_UPLOAD_MAX_SIZE NGINX_USER NGINX_WORKER_CONNECTIONS NGINX_WORKER_PROCESSES NGINX_WORKER_RLIMIT_NOFILE | |
+ template_files=/etc/nginx/nginx.conf | |
++ echo /etc/nginx/nginx.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/nginx.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/nginx.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/nginx.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.LaFDgh | |
+ cp -a /etc/nginx/nginx.conf /tmp/tmp.LaFDgh | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_CLIENT_BODY_BUFFER_SIZE[}]{2}/${NGINX_CLIENT_BODY_BUFFER_SIZE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_CLIENT_BODY_BUFFER_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_CLIENT_BODY_BUFFER_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_CLIENT_BODY_TIMEOUT[}]{2}/${NGINX_CLIENT_BODY_TIMEOUT}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_CLIENT_BODY_TIMEOUT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_CLIENT_BODY_TIMEOUT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_FASTCGI_BUFFERS[}]{2}/${NGINX_FASTCGI_BUFFERS}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_FASTCGI_BUFFERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_FASTCGI_BUFFERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_FASTCGI_BUFFER_SIZE[}]{2}/${NGINX_FASTCGI_BUFFER_SIZE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_FASTCGI_BUFFER_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_FASTCGI_BUFFER_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_GROUP[}]{2}/${NGINX_GROUP}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_GROUP'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_GROUP' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_KEEPALIVE_REQUESTS[}]{2}/${NGINX_KEEPALIVE_REQUESTS}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_KEEPALIVE_REQUESTS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_KEEPALIVE_REQUESTS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_KEEPALIVE_TIMEOUT[}]{2}/${NGINX_KEEPALIVE_TIMEOUT}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_KEEPALIVE_TIMEOUT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_KEEPALIVE_TIMEOUT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_SEND_TIMEOUT[}]{2}/${NGINX_SEND_TIMEOUT}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_SEND_TIMEOUT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_SEND_TIMEOUT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_PROXY_BUFFERS[}]{2}/${NGINX_PROXY_BUFFERS}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_PROXY_BUFFERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_PROXY_BUFFERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_PROXY_BUFFER_SIZE[}]{2}/${NGINX_PROXY_BUFFER_SIZE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_PROXY_BUFFER_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_PROXY_BUFFER_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_PROXY_BUSY_BUFFERS_SIZE[}]{2}/${NGINX_PROXY_BUSY_BUFFERS_SIZE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_PROXY_BUSY_BUFFERS_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_PROXY_BUSY_BUFFERS_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_UPLOAD_MAX_SIZE[}]{2}/${NGINX_UPLOAD_MAX_SIZE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_UPLOAD_MAX_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_UPLOAD_MAX_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_USER[}]{2}/${NGINX_USER}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_USER'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_USER' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_WORKER_CONNECTIONS[}]{2}/${NGINX_WORKER_CONNECTIONS}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_WORKER_CONNECTIONS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_WORKER_CONNECTIONS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_WORKER_PROCESSES[}]{2}/${NGINX_WORKER_PROCESSES}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_WORKER_PROCESSES'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_WORKER_PROCESSES' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_WORKER_RLIMIT_NOFILE[}]{2}/${NGINX_WORKER_RLIMIT_NOFILE}/g' /tmp/tmp.LaFDgh | |
+ print_debug '[update_template] Template: '\''/etc/nginx/nginx.conf'\'' updating field '\''NGINX_WORKER_RLIMIT_NOFILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/nginx.conf' updating field 'NGINX_WORKER_RLIMIT_NOFILE' | |
+ export NGINX_CLIENT_BODY_BUFFER_SIZE NGINX_CLIENT_BODY_TIMEOUT NGINX_FASTCGI_BUFFERS NGINX_FASTCGI_BUFFER_SIZE NGINX_GROUP NGINX_KEEPALIVE_REQUESTS NGINX_KEEPALIVE_TIMEOUT NGINX_SEND_TIMEOUT NGINX_PROXY_BUFFERS NGINX_PROXY_BUFFER_SIZE NGINX_PROXY_BUSY_BUFFERS_SIZE NGINX_UPLOAD_MAX_SIZE NGINX_USER NGINX_WORKER_CONNECTIONS NGINX_WORKER_PROCESSES NGINX_WORKER_RLIMIT_NOFILE | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_CLIENT_BODY_BUFFER_SIZE:$NGINX_CLIENT_BODY_TIMEOUT:$NGINX_FASTCGI_BUFFERS:$NGINX_FASTCGI_BUFFER_SIZE:$NGINX_GROUP:$NGINX_KEEPALIVE_REQUESTS:$NGINX_KEEPALIVE_TIMEOUT:$NGINX_SEND_TIMEOUT:$NGINX_PROXY_BUFFERS:$NGINX_PROXY_BUFFER_SIZE:$NGINX_PROXY_BUSY_BUFFERS_SIZE:$NGINX_UPLOAD_MAX_SIZE:$NGINX_USER:$NGINX_WORKER_CONNECTIONS:$NGINX_WORKER_PROCESSES:$NGINX_WORKER_RLIMIT_NOFILE' | |
+ rm -f /tmp/tmp.LaFDgh | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ update_template /etc/nginx/snippets/compression_brotli.conf NGINX_COMPRESSION_BROTLI_LEVEL NGINX_COMPRESSION_BROTLI_MIN_LENGTH NGINX_COMPRESSION_BROTLI_TYPES NGINX_COMPRESSION_BROTLI_WINDOW | |
+ template_files=/etc/nginx/snippets/compression_brotli.conf | |
++ echo /etc/nginx/snippets/compression_brotli.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/compression_brotli.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/compression_brotli.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/compression_brotli.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.GEDipo | |
+ cp -a /etc/nginx/snippets/compression_brotli.conf /tmp/tmp.GEDipo | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_BROTLI_LEVEL[}]{2}/${NGINX_COMPRESSION_BROTLI_LEVEL}/g' /tmp/tmp.GEDipo | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_brotli.conf'\'' updating field '\''NGINX_COMPRESSION_BROTLI_LEVEL'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_brotli.conf' updating field 'NGINX_COMPRESSION_BROTLI_LEVEL' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_BROTLI_MIN_LENGTH[}]{2}/${NGINX_COMPRESSION_BROTLI_MIN_LENGTH}/g' /tmp/tmp.GEDipo | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_brotli.conf'\'' updating field '\''NGINX_COMPRESSION_BROTLI_MIN_LENGTH'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_brotli.conf' updating field 'NGINX_COMPRESSION_BROTLI_MIN_LENGTH' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_BROTLI_TYPES[}]{2}/${NGINX_COMPRESSION_BROTLI_TYPES}/g' /tmp/tmp.GEDipo | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_brotli.conf'\'' updating field '\''NGINX_COMPRESSION_BROTLI_TYPES'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_brotli.conf' updating field 'NGINX_COMPRESSION_BROTLI_TYPES' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_BROTLI_WINDOW[}]{2}/${NGINX_COMPRESSION_BROTLI_WINDOW}/g' /tmp/tmp.GEDipo | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_brotli.conf'\'' updating field '\''NGINX_COMPRESSION_BROTLI_WINDOW'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_brotli.conf' updating field 'NGINX_COMPRESSION_BROTLI_WINDOW' | |
+ export NGINX_COMPRESSION_BROTLI_LEVEL NGINX_COMPRESSION_BROTLI_MIN_LENGTH NGINX_COMPRESSION_BROTLI_TYPES NGINX_COMPRESSION_BROTLI_WINDOW | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_COMPRESSION_BROTLI_LEVEL:$NGINX_COMPRESSION_BROTLI_MIN_LENGTH:$NGINX_COMPRESSION_BROTLI_TYPES:$NGINX_COMPRESSION_BROTLI_WINDOW' | |
+ rm -f /tmp/tmp.GEDipo | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ update_template /etc/nginx/snippets/compression_gzip.conf NGINX_COMPRESSION_GZIP_BUFFERS NGINX_COMPRESSION_GZIP_DISABLE NGINX_COMPRESSION_GZIP_HTTP_VERSION NGINX_COMPRESSION_GZIP_LEVEL NGINX_COMPRESSION_GZIP_MIN_LENGTH NGINX_COMPRESSION_GZIP_PROXIED NGINX_COMPRESSION_GZIP_TYPES | |
+ template_files=/etc/nginx/snippets/compression_gzip.conf | |
++ echo /etc/nginx/snippets/compression_gzip.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/compression_gzip.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/compression_gzip.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/compression_gzip.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.ipdipA | |
+ cp -a /etc/nginx/snippets/compression_gzip.conf /tmp/tmp.ipdipA | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_BUFFERS[}]{2}/${NGINX_COMPRESSION_GZIP_BUFFERS}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_BUFFERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_BUFFERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_DISABLE[}]{2}/${NGINX_COMPRESSION_GZIP_DISABLE}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_DISABLE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_DISABLE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_HTTP_VERSION[}]{2}/${NGINX_COMPRESSION_GZIP_HTTP_VERSION}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_HTTP_VERSION'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_HTTP_VERSION' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_LEVEL[}]{2}/${NGINX_COMPRESSION_GZIP_LEVEL}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_LEVEL'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_LEVEL' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_MIN_LENGTH[}]{2}/${NGINX_COMPRESSION_GZIP_MIN_LENGTH}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_MIN_LENGTH'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_MIN_LENGTH' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_PROXIED[}]{2}/${NGINX_COMPRESSION_GZIP_PROXIED}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_PROXIED'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_PROXIED' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_COMPRESSION_GZIP_TYPES[}]{2}/${NGINX_COMPRESSION_GZIP_TYPES}/g' /tmp/tmp.ipdipA | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/compression_gzip.conf'\'' updating field '\''NGINX_COMPRESSION_GZIP_TYPES'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/compression_gzip.conf' updating field 'NGINX_COMPRESSION_GZIP_TYPES' | |
+ export NGINX_COMPRESSION_GZIP_BUFFERS NGINX_COMPRESSION_GZIP_DISABLE NGINX_COMPRESSION_GZIP_HTTP_VERSION NGINX_COMPRESSION_GZIP_LEVEL NGINX_COMPRESSION_GZIP_MIN_LENGTH NGINX_COMPRESSION_GZIP_PROXIED NGINX_COMPRESSION_GZIP_TYPES | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_COMPRESSION_GZIP_BUFFERS:$NGINX_COMPRESSION_GZIP_DISABLE:$NGINX_COMPRESSION_GZIP_HTTP_VERSION:$NGINX_COMPRESSION_GZIP_LEVEL:$NGINX_COMPRESSION_GZIP_MIN_LENGTH:$NGINX_COMPRESSION_GZIP_PROXIED:$NGINX_COMPRESSION_GZIP_TYPES' | |
+ rm -f /tmp/tmp.ipdipA | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ sed -i '\|include /etc/nginx/snippets/ddos_protection.conf;|d' /etc/nginx/nginx.conf | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ print_debug 'Disable Nginx FastCGI HTTPS Termination Support' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] Disable Nginx FastCGI HTTPS Termination Support | |
+ sed -i 's|fastcgi_param HTTPS .*;|fastcgi_param HTTPS off;|g' /etc/nginx/fastcgi_params | |
+ PROTOCOL=http:// | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ update_template /etc/nginx/snippets/open_file_cache.conf NGINX_OPEN_FILE_CACHE_INACTIVE NGINX_OPEN_FILE_CACHE_MAX NGINX_OPEN_FILE_CACHE_MIN_USES NGINX_OPEN_FILE_CACHE_VALID | |
+ template_files=/etc/nginx/snippets/open_file_cache.conf | |
++ echo /etc/nginx/snippets/open_file_cache.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/open_file_cache.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/open_file_cache.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/open_file_cache.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.AAoHoE | |
+ cp -a /etc/nginx/snippets/open_file_cache.conf /tmp/tmp.AAoHoE | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_OPEN_FILE_CACHE_INACTIVE[}]{2}/${NGINX_OPEN_FILE_CACHE_INACTIVE}/g' /tmp/tmp.AAoHoE | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/open_file_cache.conf'\'' updating field '\''NGINX_OPEN_FILE_CACHE_INACTIVE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/open_file_cache.conf' updating field 'NGINX_OPEN_FILE_CACHE_INACTIVE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_OPEN_FILE_CACHE_MAX[}]{2}/${NGINX_OPEN_FILE_CACHE_MAX}/g' /tmp/tmp.AAoHoE | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/open_file_cache.conf'\'' updating field '\''NGINX_OPEN_FILE_CACHE_MAX'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/open_file_cache.conf' updating field 'NGINX_OPEN_FILE_CACHE_MAX' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_OPEN_FILE_CACHE_MIN_USES[}]{2}/${NGINX_OPEN_FILE_CACHE_MIN_USES}/g' /tmp/tmp.AAoHoE | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/open_file_cache.conf'\'' updating field '\''NGINX_OPEN_FILE_CACHE_MIN_USES'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/open_file_cache.conf' updating field 'NGINX_OPEN_FILE_CACHE_MIN_USES' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_OPEN_FILE_CACHE_VALID[}]{2}/${NGINX_OPEN_FILE_CACHE_VALID}/g' /tmp/tmp.AAoHoE | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/open_file_cache.conf'\'' updating field '\''NGINX_OPEN_FILE_CACHE_VALID'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/open_file_cache.conf' updating field 'NGINX_OPEN_FILE_CACHE_VALID' | |
+ export NGINX_OPEN_FILE_CACHE_INACTIVE NGINX_OPEN_FILE_CACHE_MAX NGINX_OPEN_FILE_CACHE_MIN_USES NGINX_OPEN_FILE_CACHE_VALID | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_OPEN_FILE_CACHE_INACTIVE:$NGINX_OPEN_FILE_CACHE_MAX:$NGINX_OPEN_FILE_CACHE_MIN_USES:$NGINX_OPEN_FILE_CACHE_VALID' | |
+ rm -f /tmp/tmp.AAoHoE | |
+ sed -i '\|open_file_cache_errors on;|d' /etc/nginx/snippets/open_file_cache.conf | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ update_template /etc/nginx/snippets/reverse_proxy.conf NGINX_REAL_IP_HEADER NGINX_SET_REAL_IP_FROM | |
+ template_files=/etc/nginx/snippets/reverse_proxy.conf | |
++ echo /etc/nginx/snippets/reverse_proxy.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/reverse_proxy.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/reverse_proxy.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/reverse_proxy.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.EgnNCH | |
+ cp -a /etc/nginx/snippets/reverse_proxy.conf /tmp/tmp.EgnNCH | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_REAL_IP_HEADER[}]{2}/${NGINX_REAL_IP_HEADER}/g' /tmp/tmp.EgnNCH | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/reverse_proxy.conf'\'' updating field '\''NGINX_REAL_IP_HEADER'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/reverse_proxy.conf' updating field 'NGINX_REAL_IP_HEADER' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_SET_REAL_IP_FROM[}]{2}/${NGINX_SET_REAL_IP_FROM}/g' /tmp/tmp.EgnNCH | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/reverse_proxy.conf'\'' updating field '\''NGINX_SET_REAL_IP_FROM'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/reverse_proxy.conf' updating field 'NGINX_SET_REAL_IP_FROM' | |
+ export NGINX_REAL_IP_HEADER NGINX_SET_REAL_IP_FROM | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_REAL_IP_HEADER:$NGINX_SET_REAL_IP_FROM' | |
+ rm -f /tmp/tmp.EgnNCH | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_false '' | |
+ '[' '' = false ']' | |
+ '[' '' = no ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ case "${STAGE,,}" in | |
+ echo 'fastcgi_param STAGE '\''DEVELOP'\'';' | |
+ nginx_configure_authentication | |
+ case "${NGINX_AUTHENTICATION_TYPE,,}" in | |
+ : | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ sed -i '\|include /etc/nginx/snippets/bot_blocker.conf;|d' /etc/nginx/nginx.conf | |
+ nginx_configure_logging | |
+ update_template /etc/nginx/snippets/logging.conf NGINX_LOG_ACCESS_FILE NGINX_LOG_ACCESS_LOCATION NGINX_LOG_ACCESS_FORMAT NGINX_LOG_ERROR_FILE NGINX_LOG_LEVEL_ERROR NGINX_LOG_ERROR_LOCATION | |
+ template_files=/etc/nginx/snippets/logging.conf | |
++ echo /etc/nginx/snippets/logging.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/logging.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/logging.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/logging.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.ecpBKI | |
+ cp -a /etc/nginx/snippets/logging.conf /tmp/tmp.ecpBKI | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_ACCESS_FILE[}]{2}/${NGINX_LOG_ACCESS_FILE}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_ACCESS_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_ACCESS_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_ACCESS_LOCATION[}]{2}/${NGINX_LOG_ACCESS_LOCATION}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_ACCESS_LOCATION'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_ACCESS_LOCATION' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_ACCESS_FORMAT[}]{2}/${NGINX_LOG_ACCESS_FORMAT}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_ACCESS_FORMAT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_ACCESS_FORMAT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_ERROR_FILE[}]{2}/${NGINX_LOG_ERROR_FILE}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_ERROR_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_ERROR_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_LEVEL_ERROR[}]{2}/${NGINX_LOG_LEVEL_ERROR}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_LEVEL_ERROR'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_LEVEL_ERROR' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_ERROR_LOCATION[}]{2}/${NGINX_LOG_ERROR_LOCATION}/g' /tmp/tmp.ecpBKI | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/logging.conf'\'' updating field '\''NGINX_LOG_ERROR_LOCATION'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/logging.conf' updating field 'NGINX_LOG_ERROR_LOCATION' | |
+ export NGINX_LOG_ACCESS_FILE NGINX_LOG_ACCESS_LOCATION NGINX_LOG_ACCESS_FORMAT NGINX_LOG_ERROR_FILE NGINX_LOG_LEVEL_ERROR NGINX_LOG_ERROR_LOCATION | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_LOG_ACCESS_FILE:$NGINX_LOG_ACCESS_LOCATION:$NGINX_LOG_ACCESS_FORMAT:$NGINX_LOG_ERROR_FILE:$NGINX_LOG_LEVEL_ERROR:$NGINX_LOG_ERROR_LOCATION' | |
+ rm -f /tmp/tmp.ecpBKI | |
+ mkdir -p /www/logs/nginx/ /www/logs/nginx/ | |
+ touch /www/logs/nginx//error.log | |
+ touch /www/logs/nginx//access.log | |
+ chown -R nginx /www/logs/nginx/ /www/logs/nginx/ | |
+ create_logrotate nginx-access /www/logs/nginx//access.log nginx-standard nginx www-data | |
+ '[' -n nginx-access ']' | |
+ '[' -n /www/logs/nginx//access.log ']' | |
+ '[' '!' -f /assets/logrotate/nginx-access ']' | |
+ print_debug 'Creating Logrotate Entry for /www/logs/nginx//access.log' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] Creating Logrotate Entry for /www/logs/nginx//access.log | |
+ '[' -n nginx-standard ']' | |
+ '[' nginx-standard '!=' none ']' | |
+ lrlsparser='# logship: nginx-standard' | |
+ '[' -n nginx ']' | |
+ '[' -n www-data ']' | |
+ lruser=' su nginx www-data' | |
+ '[' '!' -d /assets/logrotate ']' | |
+ cat | |
+ chown root:root /assets/logrotate/nginx-access | |
+ chmod 0644 /assets/logrotate/nginx-access | |
+ create_logrotate nginx-error /www/logs/nginx//error.log nginx-error-standard,nginx-error-alt-standard nginx www-data | |
+ '[' -n nginx-error ']' | |
+ '[' -n /www/logs/nginx//error.log ']' | |
+ '[' '!' -f /assets/logrotate/nginx-error ']' | |
+ print_debug 'Creating Logrotate Entry for /www/logs/nginx//error.log' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] Creating Logrotate Entry for /www/logs/nginx//error.log | |
+ '[' -n nginx-error-standard,nginx-error-alt-standard ']' | |
+ '[' nginx-error-standard,nginx-error-alt-standard '!=' none ']' | |
+ lrlsparser='# logship: nginx-error-standard,nginx-error-alt-standard' | |
+ '[' -n nginx ']' | |
+ '[' -n www-data ']' | |
+ lruser=' su nginx www-data' | |
+ '[' '!' -d /assets/logrotate ']' | |
+ cat | |
+ chown root:root /assets/logrotate/nginx-error | |
+ chmod 0644 /assets/logrotate/nginx-error | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ mkdir -p /www/logs/nginx/ | |
+ touch /www/logs/nginx//blocked.log | |
+ update_template /etc/nginx/snippets/exploit_protection.conf NGINX_LOG_BLOCKED_LOCATION NGINX_LOG_BLOCKED_FILE NGINX_LOG_BLOCKED_FORMAT | |
+ template_files=/etc/nginx/snippets/exploit_protection.conf | |
++ echo /etc/nginx/snippets/exploit_protection.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/exploit_protection.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/exploit_protection.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/exploit_protection.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.PiddLM | |
+ cp -a /etc/nginx/snippets/exploit_protection.conf /tmp/tmp.PiddLM | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_BLOCKED_LOCATION[}]{2}/${NGINX_LOG_BLOCKED_LOCATION}/g' /tmp/tmp.PiddLM | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/exploit_protection.conf'\'' updating field '\''NGINX_LOG_BLOCKED_LOCATION'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/exploit_protection.conf' updating field 'NGINX_LOG_BLOCKED_LOCATION' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_BLOCKED_FILE[}]{2}/${NGINX_LOG_BLOCKED_FILE}/g' /tmp/tmp.PiddLM | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/exploit_protection.conf'\'' updating field '\''NGINX_LOG_BLOCKED_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/exploit_protection.conf' updating field 'NGINX_LOG_BLOCKED_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LOG_BLOCKED_FORMAT[}]{2}/${NGINX_LOG_BLOCKED_FORMAT}/g' /tmp/tmp.PiddLM | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/exploit_protection.conf'\'' updating field '\''NGINX_LOG_BLOCKED_FORMAT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/snippets/exploit_protection.conf' updating field 'NGINX_LOG_BLOCKED_FORMAT' | |
+ export NGINX_LOG_BLOCKED_LOCATION NGINX_LOG_BLOCKED_FILE NGINX_LOG_BLOCKED_FORMAT | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_LOG_BLOCKED_LOCATION:$NGINX_LOG_BLOCKED_FILE:$NGINX_LOG_BLOCKED_FORMAT' | |
+ rm -f /tmp/tmp.PiddLM | |
+ create_logrotate nginx-blocked /www/logs/nginx//blocked.log nginx-blocked-standard nginx www-data | |
+ '[' -n nginx-blocked ']' | |
+ '[' -n /www/logs/nginx//blocked.log ']' | |
+ '[' '!' -f /assets/logrotate/nginx-blocked ']' | |
+ print_debug 'Creating Logrotate Entry for /www/logs/nginx//blocked.log' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] Creating Logrotate Entry for /www/logs/nginx//blocked.log | |
+ '[' -n nginx-blocked-standard ']' | |
+ '[' nginx-blocked-standard '!=' none ']' | |
+ lrlsparser='# logship: nginx-blocked-standard' | |
+ '[' -n nginx ']' | |
+ '[' -n www-data ']' | |
+ lruser=' su nginx www-data' | |
+ '[' '!' -d /assets/logrotate ']' | |
+ cat | |
+ chown root:root /assets/logrotate/nginx-blocked | |
+ chmod 0644 /assets/logrotate/nginx-blocked | |
+ '[' -f '/*-access.log' ']' | |
+ '[' -f '/*-error.log' ']' | |
+ nginx_configure_maintenance | |
+ update_template '/etc/nginx/templates/*.template' NGINX_LISTEN_PORT | |
+ template_files='/etc/nginx/templates/*.template' | |
++ echo '/etc/nginx/templates/*.template' | |
++ tr ' ' '\n' | |
+ templates='/etc/nginx/templates/*.template' | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/templates/maintenance.template ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/templates/maintenance.template | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.nEbAOO | |
+ cp -a /etc/nginx/templates/maintenance.template /tmp/tmp.nEbAOO | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LISTEN_PORT[}]{2}/${NGINX_LISTEN_PORT}/g' /tmp/tmp.nEbAOO | |
+ print_debug '[update_template] Template: '\''/etc/nginx/templates/maintenance.template'\'' updating field '\''NGINX_LISTEN_PORT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/templates/maintenance.template' updating field 'NGINX_LISTEN_PORT' | |
+ export NGINX_LISTEN_PORT | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_LISTEN_PORT' | |
+ rm -f /tmp/tmp.nEbAOO | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/templates/proxy.template ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/templates/proxy.template | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.aNejDP | |
+ cp -a /etc/nginx/templates/proxy.template /tmp/tmp.aNejDP | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LISTEN_PORT[}]{2}/${NGINX_LISTEN_PORT}/g' /tmp/tmp.aNejDP | |
+ print_debug '[update_template] Template: '\''/etc/nginx/templates/proxy.template'\'' updating field '\''NGINX_LISTEN_PORT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/templates/proxy.template' updating field 'NGINX_LISTEN_PORT' | |
+ export NGINX_LISTEN_PORT | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_LISTEN_PORT' | |
+ rm -f /tmp/tmp.aNejDP | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/templates/redirect.template ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/templates/redirect.template | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.oMkojP | |
+ cp -a /etc/nginx/templates/redirect.template /tmp/tmp.oMkojP | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_LISTEN_PORT[}]{2}/${NGINX_LISTEN_PORT}/g' /tmp/tmp.oMkojP | |
+ print_debug '[update_template] Template: '\''/etc/nginx/templates/redirect.template'\'' updating field '\''NGINX_LISTEN_PORT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/templates/redirect.template' updating field 'NGINX_LISTEN_PORT' | |
+ export NGINX_LISTEN_PORT | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_LISTEN_PORT' | |
+ rm -f /tmp/tmp.oMkojP | |
+ case "${NGINX_MAINTENANCE_TYPE,,}" in | |
+ update_template /etc/nginx/templates/maintenance.template NGINX_MAINTENANCE_FILE NGINX_MAINTENANCE_PATH | |
+ template_files=/etc/nginx/templates/maintenance.template | |
++ echo /etc/nginx/templates/maintenance.template | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/templates/maintenance.template | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/templates/maintenance.template ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/templates/maintenance.template | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.PdlDca | |
+ cp -a /etc/nginx/templates/maintenance.template /tmp/tmp.PdlDca | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_MAINTENANCE_FILE[}]{2}/${NGINX_MAINTENANCE_FILE}/g' /tmp/tmp.PdlDca | |
+ print_debug '[update_template] Template: '\''/etc/nginx/templates/maintenance.template'\'' updating field '\''NGINX_MAINTENANCE_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/templates/maintenance.template' updating field 'NGINX_MAINTENANCE_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}NGINX_MAINTENANCE_PATH[}]{2}/${NGINX_MAINTENANCE_PATH}/g' /tmp/tmp.PdlDca | |
+ print_debug '[update_template] Template: '\''/etc/nginx/templates/maintenance.template'\'' updating field '\''NGINX_MAINTENANCE_PATH'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/10-nginx ** [nginx] [update_template] Template: '/etc/nginx/templates/maintenance.template' updating field 'NGINX_MAINTENANCE_PATH' | |
+ export NGINX_MAINTENANCE_FILE NGINX_MAINTENANCE_PATH | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$NGINX_MAINTENANCE_FILE:$NGINX_MAINTENANCE_PATH' | |
+ rm -f /tmp/tmp.PdlDca | |
+ '[' -n '' ']' | |
+ chown -R nginx:www-data /assets/nginx/maintenance/ | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ '[' -n '' ']' | |
+ nginx_configure_site_default | |
+ '[' -z '' ']' | |
+ '[' '!' -f /etc/nginx/sites.available/default.conf ']' | |
+ '[' '!' -f /etc/cont-init.d/20-php-fpm ']' | |
+ update_template '/etc/nginx/sites.available/*.conf' NGINX_LISTEN_PORT NGINX_WEBROOT | |
+ template_files='/etc/nginx/sites.available/*.conf' | |
++ echo '/etc/nginx/sites.available/*.conf' | |
++ tr ' ' '\n' | |
+ templates='/etc/nginx/sites.available/*.conf' | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/sites.available/*.conf ]] | |
+ return 1 | |
+ '[' -n '' ']' | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ silent grep -q '<WEBROOT>' '/etc/nginx/sites.available/*.conf' | |
+ '[' TRUE = true ']' | |
+ '[' '' = true ']' | |
+ '[' debug = debug ']' | |
+ grep -q '<WEBROOT>' '/etc/nginx/sites.available/*.conf' | |
grep: /etc/nginx/sites.available/*.conf: No such file or directory | |
+ silent grep -q '<LISTEN_PORT>' '/etc/nginx/sites.available/*.conf' | |
+ '[' TRUE = true ']' | |
+ '[' '' = true ']' | |
+ '[' debug = debug ']' | |
+ grep -q '<LISTEN_PORT>' '/etc/nginx/sites.available/*.conf' | |
grep: /etc/nginx/sites.available/*.conf: No such file or directory | |
+ '[' -n '' ']' | |
+ nginx_post_init | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ '[' -n '' ']' | |
+ nginx_site_enable all | |
+ '[' -n all ']' | |
+ '[' all = all ']' | |
++ ls -A /etc/nginx/sites.available/ | |
+ '[' '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ mkdir -p /www/html | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ chown -R nginx:www-data /www/html | |
f | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ prepare_service 10-nginx | |
+ '[' -n 10-nginx ']' | |
+ case "$(dirname "$0")" in | |
++ dirname /etc/cont-init.d/11-nginx-config-reload | |
+ set -a | |
+ get_defaults 10-nginx | |
+ '[' -n 10-nginx ']' | |
+ case "${1,,}" in | |
++ echo 10-nginx | |
++ tr , '\n' | |
+ defaults=10-nginx | |
+ for d in $defaults | |
+ '[' -f /assets/defaults/10-nginx ']' | |
+ print_debug 'Container: Getting defaults for 10-nginx' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/11-nginx-config-reload ** [container] Container: Getting defaults for 10-nginx | |
+ case "${d}" in | |
+ source /assets/defaults/10-nginx | |
++ ENABLE_NGINX=TRUE | |
++ NGINX_AUTHENTICATION_BASIC_PASS=password | |
++ NGINX_AUTHENTICATION_BASIC_USER=admin | |
++ NGINX_AUTHENTICATION_LDAP_ATTRIBUTE=uid | |
++ NGINX_AUTHENTICATION_LDAP_FILTER='(objectClass=person)' | |
++ NGINX_AUTHENTICATION_LDAP_GROUP_ATTRIBUTE=uniquemember | |
++ NGINX_AUTHENTICATION_LDAP_SCOPE=sub | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_HOST=llng-handler:2884 | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_PORT=2884 | |
++ NGINX_AUTHENTICATION_LLNG_ATTRIBUTE1=HTTP_AUTH_USER,uid,upstream_http_uid | |
++ NGINX_AUTHENTICATION_TITLE='Please login' | |
++ NGINX_AUTHENTICATION_TYPE=NONE | |
++ NGINX_BLOCK_BOTS_WHITELIST_IP=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/24 | |
++ NGINX_CLIENT_BODY_TIMEOUT=60 | |
++ NGINX_CLIENT_BODY_BUFFER_SIZE=16k | |
++ NGINX_COMPRESSION_BROTLI_LEVEL=6 | |
++ NGINX_COMPRESSION_BROTLI_MIN_LENGTH=20 | |
++ NGINX_COMPRESSION_BROTLI_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_BROTLI_WINDOW=512k | |
++ NGINX_COMPRESSION_GZIP_BUFFERS='16 8k' | |
++ NGINX_COMPRESSION_GZIP_DISABLE='MSIE [1-6].(?!.*SV1)' | |
++ NGINX_COMPRESSION_GZIP_HTTP_VERSION=1.1 | |
++ NGINX_COMPRESSION_GZIP_LEVEL=6 | |
++ NGINX_COMPRESSION_GZIP_MIN_LENGTH=10240 | |
++ NGINX_COMPRESSION_GZIP_PROXIED='expired no-cache no-store private auth' | |
++ NGINX_COMPRESSION_GZIP_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_GZIP_VARY=TRUE | |
++ NGINX_DDOS_CONNECTIONS_PER_IP=10m | |
++ NGINX_DDOS_REQUESTS_PER_IP=5r/s | |
++ NGINX_ENABLE_APPLICATION_CONFIGURATION=TRUE | |
++ NGINX_ENABLE_BLOCK_BOTS=FALSE | |
++ NGINX_ENABLE_COMPRESSION_BROTLI=TRUE | |
++ NGINX_ENABLE_COMPRESSION_GZIP=TRUE | |
++ NGINX_ENABLE_CREATE_SAMPLE_HTML=FALSE | |
++ NGINX_ENABLE_DDOS_PROTECTION=FALSE | |
++ NGINX_ENABLE_EPOLL=TRUE | |
++ NGINX_ENABLE_EXPLOIT_PROTECTION=TRUE | |
++ NGINX_ENABLE_FASTCGI_HTTPS=FALSE | |
++ NGINX_ENABLE_MULTI_ACCEPT=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE_ERRORS=TRUE | |
++ NGINX_ENABLE_RESET_TIMEDOUT_CONNECTION=TRUE | |
++ NGINX_ENABLE_PROXY_BUFFERING=TRUE | |
++ NGINX_ENABLE_REVERSE_PROXY=TRUE | |
++ NGINX_ENABLE_SENDFILE=TRUE | |
++ NGINX_ENABLE_SERVER_TOKENS=FALSE | |
++ NGINX_ENABLE_SITE_OPTIMIZATION=TRUE | |
++ NGINX_ENABLE_TCPNODELAY=TRUE | |
++ NGINX_ENABLE_TCPNOPUSH=TRUE | |
++ NGINX_ENABLE_UPSTREAM_KEEPALIVE=TRUE | |
++ NGINX_FASTCGI_BUFFERS='16 16k' | |
++ NGINX_FASTCGI_BUFFER_SIZE=32k | |
++ NGINX_FORCE_RESET_PERMISSIONS=TRUE | |
++ NGINX_KEEPALIVE_REQUESTS=100000 | |
++ NGINX_KEEPALIVE_TIMEOUT=75 | |
++ NGINX_LISTEN_PORT=80 | |
++ NGINX_LOG_ACCESS_FILE=access.log | |
++ NGINX_LOG_ACCESS_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ERROR_FILE=error.log | |
++ NGINX_LOG_ERROR_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ACCESS_FORMAT=standard | |
++ NGINX_LOG_LEVEL_ERROR=warn | |
++ NGINX_LOG_BLOCKED_FORMAT=standard | |
++ NGINX_LOG_BLOCKED_FILE=blocked.log | |
++ NGINX_LOG_BLOCKED_LOCATION=/www/logs/nginx/ | |
++ NGINX_MAINTENANCE_FILE=index.html | |
++ NGINX_MAINTENANCE_PATH=/assets/nginx/maintenance/ | |
++ NGINX_MAINTENANCE_TYPE=local | |
++ NGINX_MAINTENANCE_PROXY_URL=http://maintenance | |
++ NGINX_MODE=NORMAL | |
++ NGINX_OPEN_FILE_CACHE_ERRORS=on | |
++ NGINX_OPEN_FILE_CACHE_INACTIVE=5m | |
++ NGINX_OPEN_FILE_CACHE_MAX=200000 | |
++ NGINX_OPEN_FILE_CACHE_MIN_USES=2 | |
++ NGINX_OPEN_FILE_CACHE_VALID=2m | |
++ NGINX_PROXY_BUFFERS='4 256k' | |
++ NGINX_PROXY_BUFFER_SIZE=128k | |
++ NGINX_PROXY_BUSY_BUFFERS_SIZE=256k | |
++ NGINX_REAL_IP_HEADER=X-Forwarded-For | |
++ NGINX_RELOAD_ON_CONFIG_CHANGE=FALSE | |
++ NGINX_SEND_TIMEOUT=60 | |
++ NGINX_SET_REAL_IP_FROM=172.16.0.0/12 | |
++ NGINX_UPLOAD_MAX_SIZE=2G | |
++ NGINX_UPSTREAM_KEEPALIVE=32 | |
++ NGINX_USER=nginx | |
++ NGINX_GROUP=www-data | |
++ NGINX_WEBROOT=/www/html | |
++ NGINX_WORKER_CONNECTIONS=1024 | |
++ NGINX_WORKER_PROCESSES=auto | |
++ NGINX_WORKER_RLIMIT_NOFILE=100000 | |
++ STAGE=DEVELOP | |
++ '[' standard = standard ']' | |
++ '[' none = llng ']' | |
++ '[' standard = json ']' | |
+ get_functions 10-nginx | |
+ '[' -n 10-nginx ']' | |
+ case "${1,,}" in | |
++ echo 10-nginx | |
++ tr , '\n' | |
+ functions=10-nginx | |
+ for f in $functions | |
+ '[' -f /assets/functions/10-nginx ']' | |
+ print_debug 'Container: Getting functions for 10-nginx' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:30 [DEBUG] /etc/cont-init.d/11-nginx-config-reload ** [container] Container: Getting functions for 10-nginx | |
+ source /assets/functions/10-nginx | |
+ set +a | |
+ PROCESS_NAME=nginx-config-reload | |
+ var_true FALSE | |
+ '[' false = true ']' | |
+ '[' false = yes ']' | |
+ service_stop 11-nginx-config-reload | |
++ basename /etc/cont-init.d/11-nginx-config-reload | |
+ '[' 11-nginx-config-reload '!=' 11-nginx-config-reload ']' | |
+ DONOTSTART=TRUE | |
f | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ source /assets/defaults/10-nginx | |
++ ENABLE_NGINX=TRUE | |
++ NGINX_AUTHENTICATION_BASIC_PASS=password | |
++ NGINX_AUTHENTICATION_BASIC_USER=admin | |
++ NGINX_AUTHENTICATION_LDAP_ATTRIBUTE=uid | |
++ NGINX_AUTHENTICATION_LDAP_FILTER='(objectClass=person)' | |
++ NGINX_AUTHENTICATION_LDAP_GROUP_ATTRIBUTE=uniquemember | |
++ NGINX_AUTHENTICATION_LDAP_SCOPE=sub | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_HOST=llng-handler:2884 | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_PORT=2884 | |
++ NGINX_AUTHENTICATION_LLNG_ATTRIBUTE1=HTTP_AUTH_USER,uid,upstream_http_uid | |
++ NGINX_AUTHENTICATION_TITLE='Please login' | |
++ NGINX_AUTHENTICATION_TYPE=NONE | |
++ NGINX_BLOCK_BOTS_WHITELIST_IP=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/24 | |
++ NGINX_CLIENT_BODY_TIMEOUT=60 | |
++ NGINX_CLIENT_BODY_BUFFER_SIZE=16k | |
++ NGINX_COMPRESSION_BROTLI_LEVEL=6 | |
++ NGINX_COMPRESSION_BROTLI_MIN_LENGTH=20 | |
++ NGINX_COMPRESSION_BROTLI_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_BROTLI_WINDOW=512k | |
++ NGINX_COMPRESSION_GZIP_BUFFERS='16 8k' | |
++ NGINX_COMPRESSION_GZIP_DISABLE='MSIE [1-6].(?!.*SV1)' | |
++ NGINX_COMPRESSION_GZIP_HTTP_VERSION=1.1 | |
++ NGINX_COMPRESSION_GZIP_LEVEL=6 | |
++ NGINX_COMPRESSION_GZIP_MIN_LENGTH=10240 | |
++ NGINX_COMPRESSION_GZIP_PROXIED='expired no-cache no-store private auth' | |
++ NGINX_COMPRESSION_GZIP_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_GZIP_VARY=TRUE | |
++ NGINX_DDOS_CONNECTIONS_PER_IP=10m | |
++ NGINX_DDOS_REQUESTS_PER_IP=5r/s | |
++ NGINX_ENABLE_APPLICATION_CONFIGURATION=TRUE | |
++ NGINX_ENABLE_BLOCK_BOTS=FALSE | |
++ NGINX_ENABLE_COMPRESSION_BROTLI=TRUE | |
++ NGINX_ENABLE_COMPRESSION_GZIP=TRUE | |
++ NGINX_ENABLE_CREATE_SAMPLE_HTML=FALSE | |
++ NGINX_ENABLE_DDOS_PROTECTION=FALSE | |
++ NGINX_ENABLE_EPOLL=TRUE | |
++ NGINX_ENABLE_EXPLOIT_PROTECTION=TRUE | |
++ NGINX_ENABLE_FASTCGI_HTTPS=FALSE | |
++ NGINX_ENABLE_MULTI_ACCEPT=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE_ERRORS=TRUE | |
++ NGINX_ENABLE_RESET_TIMEDOUT_CONNECTION=TRUE | |
++ NGINX_ENABLE_PROXY_BUFFERING=TRUE | |
++ NGINX_ENABLE_REVERSE_PROXY=TRUE | |
++ NGINX_ENABLE_SENDFILE=TRUE | |
++ NGINX_ENABLE_SERVER_TOKENS=FALSE | |
++ NGINX_ENABLE_SITE_OPTIMIZATION=TRUE | |
++ NGINX_ENABLE_TCPNODELAY=TRUE | |
++ NGINX_ENABLE_TCPNOPUSH=TRUE | |
++ NGINX_ENABLE_UPSTREAM_KEEPALIVE=TRUE | |
++ NGINX_FASTCGI_BUFFERS='16 16k' | |
++ NGINX_FASTCGI_BUFFER_SIZE=32k | |
++ NGINX_FORCE_RESET_PERMISSIONS=TRUE | |
++ NGINX_KEEPALIVE_REQUESTS=100000 | |
++ NGINX_KEEPALIVE_TIMEOUT=75 | |
++ NGINX_LISTEN_PORT=80 | |
++ NGINX_LOG_ACCESS_FILE=access.log | |
++ NGINX_LOG_ACCESS_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ERROR_FILE=error.log | |
++ NGINX_LOG_ERROR_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ACCESS_FORMAT=standard | |
++ NGINX_LOG_LEVEL_ERROR=warn | |
++ NGINX_LOG_BLOCKED_FORMAT=standard | |
++ NGINX_LOG_BLOCKED_FILE=blocked.log | |
++ NGINX_LOG_BLOCKED_LOCATION=/www/logs/nginx/ | |
++ NGINX_MAINTENANCE_FILE=index.html | |
++ NGINX_MAINTENANCE_PATH=/assets/nginx/maintenance/ | |
++ NGINX_MAINTENANCE_TYPE=local | |
++ NGINX_MAINTENANCE_PROXY_URL=http://maintenance | |
++ NGINX_MODE=NORMAL | |
++ NGINX_OPEN_FILE_CACHE_ERRORS=on | |
++ NGINX_OPEN_FILE_CACHE_INACTIVE=5m | |
++ NGINX_OPEN_FILE_CACHE_MAX=200000 | |
++ NGINX_OPEN_FILE_CACHE_MIN_USES=2 | |
++ NGINX_OPEN_FILE_CACHE_VALID=2m | |
++ NGINX_PROXY_BUFFERS='4 256k' | |
++ NGINX_PROXY_BUFFER_SIZE=128k | |
++ NGINX_PROXY_BUSY_BUFFERS_SIZE=256k | |
++ NGINX_REAL_IP_HEADER=X-Forwarded-For | |
++ NGINX_RELOAD_ON_CONFIG_CHANGE=FALSE | |
++ NGINX_SEND_TIMEOUT=60 | |
++ NGINX_SET_REAL_IP_FROM=172.16.0.0/12 | |
++ NGINX_UPLOAD_MAX_SIZE=2G | |
++ NGINX_UPSTREAM_KEEPALIVE=32 | |
++ NGINX_USER=nginx | |
++ NGINX_GROUP=www-data | |
++ NGINX_WEBROOT=/www/html | |
++ NGINX_WORKER_CONNECTIONS=1024 | |
++ NGINX_WORKER_PROCESSES=auto | |
++ NGINX_WORKER_RLIMIT_NOFILE=100000 | |
++ STAGE=DEVELOP | |
++ '[' standard = standard ']' | |
++ '[' none = llng ']' | |
++ '[' standard = json ']' | |
+ prepare_service | |
+ '[' -n '' ']' | |
+ case "$(dirname "$0")" in | |
++ dirname /etc/cont-init.d/20-php-fpm | |
+ set -a | |
+ get_defaults | |
+ '[' -n '' ']' | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/00-container' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/00-container | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/00-container | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/02-permissions' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/02-permissions | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/02-permissions | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/03-monitoring' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/03-monitoring | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/03-monitoring | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/04-scheduling' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/04-scheduling | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/04-scheduling | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/05-logging' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/05-logging | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/05-logging | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/06-messaging' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/06-messaging | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/06-messaging | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/07-firewall' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/07-firewall | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/07-firewall | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/10-nginx' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/10-nginx | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/10-nginx | |
+ source /assets/defaults/00-container | |
++ CONTAINER_CUSTOM_PATH=/assets/custom/ | |
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/ | |
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE | |
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE | |
++ CONTAINER_ENABLE_FAIL2BAN=FALSE | |
++ CONTAINER_ENABLE_FIREWALL=FALSE | |
++ CONTAINER_ENABLE_LOGROTATE=TRUE | |
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE | |
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE | |
++ CONTAINER_ENABLE_MESSAGING=TRUE | |
++ CONTAINER_ENABLE_MONITORING=TRUE | |
++ CONTAINER_ENABLE_PERMISSIONS=TRUE | |
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE | |
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE | |
++ CONTAINER_ENABLE_SCHEDULING=TRUE | |
++ CONTAINER_FIREWALL_BACKEND=iptables | |
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit | |
++ CONTAINER_LOG_LEVEL=DEBUG | |
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_LOG_PREFIX_SEPERATOR=. | |
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S | |
++ CONTAINER_LOG_FILE_NAME=container.log | |
++ CONTAINER_LOG_FILE_LEVEL=DEBUG | |
++ CONTAINER_LOG_FILE_PATH=/var/log/container/ | |
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=. | |
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S | |
++ CONTAINER_MESSAGING_BACKEND=msmtp | |
++ CONTAINER_MONITORING_BACKEND=zabbix | |
++ CONTAINER_NAME=nginx-php-fpm-app | |
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/ | |
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh | |
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S | |
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE | |
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50 | |
++ CONTAINER_PROCESS_RUNAWAY_SHOW_OUTPUT_FINAL=TRUE | |
++ CONTAINER_SCHEDULING_BACKEND=cron | |
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/ | |
++ CONTAINER_SKIP_SANITY_CHECK=FALSE | |
++ DEBUG_MODE=TRUE | |
++ PROCESS_NAME=container | |
++++ dirname /etc/cont-init.d/20-php-fpm | |
+++ cd /etc/cont-init.d | |
+++ pwd -P | |
++ SCRIPTPATH=/etc/cont-init.d | |
+ source /assets/defaults/10-nginx | |
++ ENABLE_NGINX=TRUE | |
++ NGINX_AUTHENTICATION_BASIC_PASS=password | |
++ NGINX_AUTHENTICATION_BASIC_USER=admin | |
++ NGINX_AUTHENTICATION_LDAP_ATTRIBUTE=uid | |
++ NGINX_AUTHENTICATION_LDAP_FILTER='(objectClass=person)' | |
++ NGINX_AUTHENTICATION_LDAP_GROUP_ATTRIBUTE=uniquemember | |
++ NGINX_AUTHENTICATION_LDAP_SCOPE=sub | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_HOST=llng-handler:2884 | |
++ NGINX_AUTHENTICATION_LLNG_HANDLER_PORT=2884 | |
++ NGINX_AUTHENTICATION_LLNG_ATTRIBUTE1=HTTP_AUTH_USER,uid,upstream_http_uid | |
++ NGINX_AUTHENTICATION_TITLE='Please login' | |
++ NGINX_AUTHENTICATION_TYPE=NONE | |
++ NGINX_BLOCK_BOTS_WHITELIST_IP=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/24 | |
++ NGINX_CLIENT_BODY_TIMEOUT=60 | |
++ NGINX_CLIENT_BODY_BUFFER_SIZE=16k | |
++ NGINX_COMPRESSION_BROTLI_LEVEL=6 | |
++ NGINX_COMPRESSION_BROTLI_MIN_LENGTH=20 | |
++ NGINX_COMPRESSION_BROTLI_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_BROTLI_WINDOW=512k | |
++ NGINX_COMPRESSION_GZIP_BUFFERS='16 8k' | |
++ NGINX_COMPRESSION_GZIP_DISABLE='MSIE [1-6].(?!.*SV1)' | |
++ NGINX_COMPRESSION_GZIP_HTTP_VERSION=1.1 | |
++ NGINX_COMPRESSION_GZIP_LEVEL=6 | |
++ NGINX_COMPRESSION_GZIP_MIN_LENGTH=10240 | |
++ NGINX_COMPRESSION_GZIP_PROXIED='expired no-cache no-store private auth' | |
++ NGINX_COMPRESSION_GZIP_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml' | |
++ NGINX_COMPRESSION_GZIP_VARY=TRUE | |
++ NGINX_DDOS_CONNECTIONS_PER_IP=10m | |
++ NGINX_DDOS_REQUESTS_PER_IP=5r/s | |
++ NGINX_ENABLE_APPLICATION_CONFIGURATION=TRUE | |
++ NGINX_ENABLE_BLOCK_BOTS=FALSE | |
++ NGINX_ENABLE_COMPRESSION_BROTLI=TRUE | |
++ NGINX_ENABLE_COMPRESSION_GZIP=TRUE | |
++ NGINX_ENABLE_CREATE_SAMPLE_HTML=FALSE | |
++ NGINX_ENABLE_DDOS_PROTECTION=FALSE | |
++ NGINX_ENABLE_EPOLL=TRUE | |
++ NGINX_ENABLE_EXPLOIT_PROTECTION=TRUE | |
++ NGINX_ENABLE_FASTCGI_HTTPS=FALSE | |
++ NGINX_ENABLE_MULTI_ACCEPT=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE=TRUE | |
++ NGINX_ENABLE_OPEN_FILE_CACHE_ERRORS=TRUE | |
++ NGINX_ENABLE_RESET_TIMEDOUT_CONNECTION=TRUE | |
++ NGINX_ENABLE_PROXY_BUFFERING=TRUE | |
++ NGINX_ENABLE_REVERSE_PROXY=TRUE | |
++ NGINX_ENABLE_SENDFILE=TRUE | |
++ NGINX_ENABLE_SERVER_TOKENS=FALSE | |
++ NGINX_ENABLE_SITE_OPTIMIZATION=TRUE | |
++ NGINX_ENABLE_TCPNODELAY=TRUE | |
++ NGINX_ENABLE_TCPNOPUSH=TRUE | |
++ NGINX_ENABLE_UPSTREAM_KEEPALIVE=TRUE | |
++ NGINX_FASTCGI_BUFFERS='16 16k' | |
++ NGINX_FASTCGI_BUFFER_SIZE=32k | |
++ NGINX_FORCE_RESET_PERMISSIONS=TRUE | |
++ NGINX_KEEPALIVE_REQUESTS=100000 | |
++ NGINX_KEEPALIVE_TIMEOUT=75 | |
++ NGINX_LISTEN_PORT=80 | |
++ NGINX_LOG_ACCESS_FILE=access.log | |
++ NGINX_LOG_ACCESS_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ERROR_FILE=error.log | |
++ NGINX_LOG_ERROR_LOCATION=/www/logs/nginx/ | |
++ NGINX_LOG_ACCESS_FORMAT=standard | |
++ NGINX_LOG_LEVEL_ERROR=warn | |
++ NGINX_LOG_BLOCKED_FORMAT=standard | |
++ NGINX_LOG_BLOCKED_FILE=blocked.log | |
++ NGINX_LOG_BLOCKED_LOCATION=/www/logs/nginx/ | |
++ NGINX_MAINTENANCE_FILE=index.html | |
++ NGINX_MAINTENANCE_PATH=/assets/nginx/maintenance/ | |
++ NGINX_MAINTENANCE_TYPE=local | |
++ NGINX_MAINTENANCE_PROXY_URL=http://maintenance | |
++ NGINX_MODE=NORMAL | |
++ NGINX_OPEN_FILE_CACHE_ERRORS=on | |
++ NGINX_OPEN_FILE_CACHE_INACTIVE=5m | |
++ NGINX_OPEN_FILE_CACHE_MAX=200000 | |
++ NGINX_OPEN_FILE_CACHE_MIN_USES=2 | |
++ NGINX_OPEN_FILE_CACHE_VALID=2m | |
++ NGINX_PROXY_BUFFERS='4 256k' | |
++ NGINX_PROXY_BUFFER_SIZE=128k | |
++ NGINX_PROXY_BUSY_BUFFERS_SIZE=256k | |
++ NGINX_REAL_IP_HEADER=X-Forwarded-For | |
++ NGINX_RELOAD_ON_CONFIG_CHANGE=FALSE | |
++ NGINX_SEND_TIMEOUT=60 | |
++ NGINX_SET_REAL_IP_FROM=172.16.0.0/12 | |
++ NGINX_UPLOAD_MAX_SIZE=2G | |
++ NGINX_UPSTREAM_KEEPALIVE=32 | |
++ NGINX_USER=nginx | |
++ NGINX_GROUP=www-data | |
++ NGINX_WEBROOT=/www/html | |
++ NGINX_WORKER_CONNECTIONS=1024 | |
++ NGINX_WORKER_PROCESSES=auto | |
++ NGINX_WORKER_RLIMIT_NOFILE=100000 | |
++ STAGE=DEVELOP | |
++ '[' standard = standard ']' | |
++ '[' none = llng ']' | |
++ '[' standard = json ']' | |
+ for d in /assets/defaults/* | |
+ print_debug 'Container: Getting defaults for /assets/defaults/20-php-fpm' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting defaults for /assets/defaults/20-php-fpm | |
+ case "$(basename "${d}")" in | |
++ basename /assets/defaults/20-php-fpm | |
+ source /assets/defaults/00-container | |
++ CONTAINER_CUSTOM_PATH=/assets/custom/ | |
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/ | |
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE | |
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE | |
++ CONTAINER_ENABLE_FAIL2BAN=FALSE | |
++ CONTAINER_ENABLE_FIREWALL=FALSE | |
++ CONTAINER_ENABLE_LOGROTATE=TRUE | |
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE | |
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE | |
++ CONTAINER_ENABLE_MESSAGING=TRUE | |
++ CONTAINER_ENABLE_MONITORING=TRUE | |
++ CONTAINER_ENABLE_PERMISSIONS=TRUE | |
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE | |
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE | |
++ CONTAINER_ENABLE_SCHEDULING=TRUE | |
++ CONTAINER_FIREWALL_BACKEND=iptables | |
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit | |
++ CONTAINER_LOG_LEVEL=DEBUG | |
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_LOG_PREFIX_SEPERATOR=. | |
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S | |
++ CONTAINER_LOG_FILE_NAME=container.log | |
++ CONTAINER_LOG_FILE_LEVEL=DEBUG | |
++ CONTAINER_LOG_FILE_PATH=/var/log/container/ | |
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=. | |
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S | |
++ CONTAINER_MESSAGING_BACKEND=msmtp | |
++ CONTAINER_MONITORING_BACKEND=zabbix | |
++ CONTAINER_NAME=nginx-php-fpm-app | |
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d | |
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/ | |
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh | |
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S | |
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE | |
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50 | |
++ CONTAINER_PROCESS_RUNAWAY_SHOW_OUTPUT_FINAL=TRUE | |
++ CONTAINER_SCHEDULING_BACKEND=cron | |
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/ | |
++ CONTAINER_SKIP_SANITY_CHECK=FALSE | |
++ DEBUG_MODE=TRUE | |
++ PROCESS_NAME=container | |
++++ dirname /etc/cont-init.d/20-php-fpm | |
+++ cd /etc/cont-init.d | |
+++ pwd -P | |
++ SCRIPTPATH=/etc/cont-init.d | |
+ source /assets/defaults/20-php-fpm | |
++ ENABLE_PHP_FPM=TRUE | |
++ PHP_APC_SHM_SIZE=128M | |
++ PHP_APC_TTL=7200 | |
++ PHP_FPM_CONTAINER_MODE=php-fpm | |
++ PHP_DISPLAY_ERRORS=TRUE | |
++ PHP_ENABLE_CREATE_SAMPLE_PHP=TRUE | |
++ PHP_HIDE_X_POWERED_BY=TRUE | |
++ PHP_KITCHENSINK=FALSE | |
++ PHP_FPM_LISTEN_IP=0.0.0.0 | |
++ PHP_FPM_LISTEN_TYPE=tcp | |
++ PHP_FPM_LISTEN_PORT=9000 | |
++ PHP_FPM_LISTEN_TCP_IP=0.0.0.0 | |
++ PHP_FPM_LISTEN_TCP_IP_ALLOWED=172.17.0.0/16 | |
++ PHP_FPM_LISTEN_TCP_PORT=9000 | |
++ PHP_FPM_LISTEN_UNIX_SOCKET=/var/lib/php-fpm/run/php-fpm.sock | |
++ PHP_FPM_MAX_CHILDREN=75 | |
++ PHP_FPM_MAX_REQUESTS=500 | |
++ PHP_FPM_MAX_SPARE_SERVERS=3 | |
++ PHP_FPM_MIN_SPARE_SERVERS=1 | |
++ PHP_FPM_OUTPUT_BUFFER_SIZE=0 | |
++ PHP_FPM_PROCESS_MANAGER=dynamic | |
++ PHP_FPM_START_SERVERS=2 | |
++ PHP_LOG_ACCESS_FILE=access.log | |
++ PHP_LOG_ACCESS_FORMAT=default | |
++ PHP_LOG_ERROR_FILE=error.log | |
++ PHP_LOG_LEVEL=notice | |
++ PHP_LOG_LIMIT=3072 | |
++ PHP_LOG_LOCATION=/www/logs/php-fpm | |
++ PHP_MEMORY_LIMIT=128M | |
++ PHP_OPCACHE_INTERNED_STRINGS_BUFFER=8 | |
++ PHP_OPCACHE_JIT_BUFFER_SIZE=50M | |
++ PHP_OPCACHE_JIT_MODE=1255 | |
++ PHP_OPCACHE_MAX_ACCELERATED_FILES=10000 | |
++ PHP_OPCACHE_MAX_FILE_SIZE=0 | |
++ PHP_OPCACHE_MAX_WASTED_PERCENTAGE=5 | |
++ PHP_OPCACHE_MEM_SIZE=128 | |
++ PHP_OPCACHE_OPTIMIZATION_LEVEL=0x7FFFBFF | |
++ PHP_OPCACHE_REVALIDATE_FREQ=2 | |
++ PHP_OPCACHE_SAVE_COMMENTS=1 | |
++ PHP_OPCACHE_VALIDATE_TIMESTAMPS=1 | |
++ PHP_POST_MAX_SIZE=2G | |
++ PHP_TIMEOUT=180 | |
++ PHP_UPLOAD_MAX_SIZE=2G | |
+++ php -v | |
+++ grep '^PHP ' | |
+++ head -n 1 | |
+++ awk '{print $2}' | |
++ PHP_VERSION= | |
++ PHP_WEBROOT=/www/html | |
++ PHP_XDEBUG_PROFILER_DIR=/www/logs/php-fpm/xdebug/ | |
++ PHP_XDEBUG_PROFILER_ENABLE=0 | |
++ PHP_XDEBUG_PROFILER_ENABLE_TRIGGER=0 | |
++ PHP_XDEBUG_REMOTE_AUTOSTART=1 | |
++ PHP_XDEBUG_REMOTE_CONNECT_BACK=0 | |
++ PHP_XDEBUG_REMOTE_ENABLE=1 | |
++ PHP_XDEBUG_REMOTE_HANDLER=dbgp | |
++ PHP_XDEBUG_REMOTE_HOST=127.0.0.1 | |
++ PHP_XDEBUG_REMOTE_PORT=9090 | |
++ PHP_XDEBUG_OUTPUT_DIR=/www/logs/php-fpm/xdebug/ | |
++ PHP_XDEBUG_MODE=develop | |
++ PHP_XDEBUG_START_WITH_REQUEST=default | |
++ PHP_XDEBUG_DISCOVER_CLIENT_HOST=default | |
++ PHP_XDEBUG_CLIENT_HOST=127.0.0.1 | |
++ PHP_XDEBUG_CLIENT_PORT=9003 | |
++ '[' -f /usr/sbin/unitd ']' | |
++ '[' -f /usr/sbin/nginx ']' | |
++ PHP_FPM_LISTEN_UNIX_GROUP=www-data | |
++ PHP_FPM_LISTEN_UNIX_USER=nginx | |
++ PHP_FPM_USER=nginx | |
++ PHP_FPM_GROUP=www-data | |
++ '[' -z '' ']' | |
++ case "${PHP_FPM_LISTEN_TYPE,,}" in | |
++ PHP_FPM_HOST=127.0.0.1:9000 | |
++ '[' 8 '!=' 8 ']' | |
++ '[' '' = true ']' | |
++ '[' '' = true ']' | |
+ get_functions | |
+ '[' -n '' ']' | |
+ for f in /assets/functions/* | |
+ '[' /assets/functions/00-container '!=' /assets/functions/00-container ']' | |
+ for f in /assets/functions/* | |
+ '[' /assets/functions/10-nginx '!=' /assets/functions/00-container ']' | |
+ print_debug 'Container: Getting functions for /assets/functions/10-nginx' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting functions for /assets/functions/10-nginx | |
+ source /assets/functions/10-nginx | |
+ for f in /assets/functions/* | |
+ '[' /assets/functions/20-php-fpm '!=' /assets/functions/00-container ']' | |
+ print_debug 'Container: Getting functions for /assets/functions/20-php-fpm' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [container] Container: Getting functions for /assets/functions/20-php-fpm | |
+ source /assets/functions/20-php-fpm | |
+ set +a | |
+ PROCESS_NAME=php-fpm | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ case "${PHP_FPM_CONTAINER_MODE,,}" in | |
+ print_warn 'Setting Container to operate in PHP-FPM standalone mode - You will need a seperate container for Nginx or another webserver to serve content' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [WARN] /etc/cont-init.d/20-php-fpm ** [php-fpm] Setting Container to operate in PHP-FPM standalone mode - You will need a seperate container for Nginx or another webserver to serve content | |
+ service_stop 10-nginx | |
++ basename /etc/cont-init.d/20-php-fpm | |
+ '[' 10-nginx '!=' 20-php-fpm ']' | |
++ basename '"/etc/cont-init.d/20-php-fpm"' | |
+ echo 'DONOTSTART added by 20-php-fpm"' | |
+ DONOTSTART=TRUE | |
+ print_notice 'Setting PHP-FPM to serve from /www/html' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [NOTICE] /etc/cont-init.d/20-php-fpm ** [php-fpm] Setting PHP-FPM to serve from /www/html | |
+ sed -i '/[www]#/achdir = /www/html' /assets/php-fpm/fpm/php-fpm.conf | |
+ rm -rf /etc/zabbix/zabbix_agent.conf.d/nginx.conf | |
+ '[' '!' -f /tmp/.container/container-restart ']' | |
+ phpfpm_bootstrap | |
++ cat /etc/os-release | |
++ grep '^ID=' | |
++ cut -d = -f2 | |
+ os=alpine | |
+ case ${os} in | |
+ case "${PHP_BASE}" in | |
v | |
++ grep '^PHP ' | |
++ head -n 1 | |
++ awk '{print $2}' | |
++ cut -c 1 | |
+ php_prefix=/etc/php/ | |
+ case "${PHP_BASE}" in | |
+ phpfpm_configure_server | |
+ '[' 8 = 5 ']' | |
+ truefalse_onoff PHP_DISPLAY_ERRORS | |
++ set | |
++ grep PHP_DISPLAY_ERRORS= | |
++ cut -d = -f2 | |
+ value=TRUE | |
++ set | |
++ grep PHP_DISPLAY_ERRORS= | |
++ sed 's/=.*//g' | |
+ var=PHP_DISPLAY_ERRORS | |
+ '[' true = true ']' | |
+ print_debug 'Converting Variable Name PHP_DISPLAY_ERRORS value to '\''On'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] Converting Variable Name PHP_DISPLAY_ERRORS value to 'On' | |
+ unset PHP_DISPLAY_ERRORS | |
+ '[' -n '' ']' | |
+ export PHP_DISPLAY_ERRORS=ON | |
+ PHP_DISPLAY_ERRORS=ON | |
+ case "${PHP_FPM_LISTEN_TYPE,,}" in | |
+ sed -i -e '/listen = {{PHP_FPM_LISTEN_UNIX_SOCKET}}/d' -e '/listen.owner = {{PHP_FPM_LISTEN_UNIX_USER}}/d' -e '/listen.group = {{PHP_FPM_LISTEN_UNIX_GROUP}}/d' /assets/php-fpm/fpm/php-fpm.conf | |
+ update_template /assets/php-fpm/fpm/php-fpm.conf PHP_DISPLAY_ERRORS PHP_FPM_HOST PHP_FPM_LISTEN_TCP_IP PHP_FPM_LISTEN_TCP_IP_ALLOWED PHP_FPM_LISTEN_TCP_PORT PHP_FPM_LISTEN_UNIX_GROUP PHP_FPM_LISTEN_UNIX_SOCKET PHP_FPM_LISTEN_UNIX_USER PHP_FPM_MAX_CHILDREN PHP_FPM_MAX_REQUESTS PHP_FPM_MAX_SPARE_SERVERS PHP_FPM_MIN_SPARE_SERVERS PHP_FPM_OUTPUT_BUFFER_SIZE PHP_FPM_PROCESS_MANAGER PHP_FPM_START_SERVERS PHP_LOG_ACCESS_FILE PHP_LOG_ERROR_FILE PHP_LOG_LIMIT PHP_LOG_LOCATION PHP_MEMORY_LIMIT PHP_POST_MAX_SIZE PHP_TIMEOUT PHP_UPLOAD_MAX_SIZE | |
+ template_files=/assets/php-fpm/fpm/php-fpm.conf | |
++ echo /assets/php-fpm/fpm/php-fpm.conf | |
++ tr ' ' '\n' | |
+ templates=/assets/php-fpm/fpm/php-fpm.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /assets/php-fpm/fpm/php-fpm.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /assets/php-fpm/fpm/php-fpm.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.Iaakkp | |
+ cp -a /assets/php-fpm/fpm/php-fpm.conf /tmp/tmp.Iaakkp | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_DISPLAY_ERRORS[}]{2}/${PHP_DISPLAY_ERRORS}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_DISPLAY_ERRORS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_DISPLAY_ERRORS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_HOST[}]{2}/${PHP_FPM_HOST}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_HOST'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_HOST' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_TCP_IP[}]{2}/${PHP_FPM_LISTEN_TCP_IP}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_TCP_IP'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_TCP_IP' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_TCP_IP_ALLOWED[}]{2}/${PHP_FPM_LISTEN_TCP_IP_ALLOWED}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_TCP_IP_ALLOWED'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_TCP_IP_ALLOWED' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_TCP_PORT[}]{2}/${PHP_FPM_LISTEN_TCP_PORT}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_TCP_PORT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_TCP_PORT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_UNIX_GROUP[}]{2}/${PHP_FPM_LISTEN_UNIX_GROUP}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_UNIX_GROUP'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_UNIX_GROUP' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_UNIX_SOCKET[}]{2}/${PHP_FPM_LISTEN_UNIX_SOCKET}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_UNIX_SOCKET'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_UNIX_SOCKET' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_LISTEN_UNIX_USER[}]{2}/${PHP_FPM_LISTEN_UNIX_USER}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_LISTEN_UNIX_USER'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_LISTEN_UNIX_USER' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_MAX_CHILDREN[}]{2}/${PHP_FPM_MAX_CHILDREN}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_MAX_CHILDREN'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_MAX_CHILDREN' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_MAX_REQUESTS[}]{2}/${PHP_FPM_MAX_REQUESTS}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_MAX_REQUESTS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_MAX_REQUESTS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_MAX_SPARE_SERVERS[}]{2}/${PHP_FPM_MAX_SPARE_SERVERS}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_MAX_SPARE_SERVERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_MAX_SPARE_SERVERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_MIN_SPARE_SERVERS[}]{2}/${PHP_FPM_MIN_SPARE_SERVERS}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_MIN_SPARE_SERVERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_MIN_SPARE_SERVERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_OUTPUT_BUFFER_SIZE[}]{2}/${PHP_FPM_OUTPUT_BUFFER_SIZE}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_OUTPUT_BUFFER_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_OUTPUT_BUFFER_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_PROCESS_MANAGER[}]{2}/${PHP_FPM_PROCESS_MANAGER}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_PROCESS_MANAGER'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_PROCESS_MANAGER' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_FPM_START_SERVERS[}]{2}/${PHP_FPM_START_SERVERS}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_FPM_START_SERVERS'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_FPM_START_SERVERS' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_LOG_ACCESS_FILE[}]{2}/${PHP_LOG_ACCESS_FILE}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_LOG_ACCESS_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_LOG_ACCESS_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_LOG_ERROR_FILE[}]{2}/${PHP_LOG_ERROR_FILE}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_LOG_ERROR_FILE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_LOG_ERROR_FILE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_LOG_LIMIT[}]{2}/${PHP_LOG_LIMIT}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_LOG_LIMIT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_LOG_LIMIT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_LOG_LOCATION[}]{2}/${PHP_LOG_LOCATION}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_LOG_LOCATION'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_LOG_LOCATION' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_MEMORY_LIMIT[}]{2}/${PHP_MEMORY_LIMIT}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_MEMORY_LIMIT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_MEMORY_LIMIT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_POST_MAX_SIZE[}]{2}/${PHP_POST_MAX_SIZE}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_POST_MAX_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_POST_MAX_SIZE' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_TIMEOUT[}]{2}/${PHP_TIMEOUT}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_TIMEOUT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_TIMEOUT' | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_UPLOAD_MAX_SIZE[}]{2}/${PHP_UPLOAD_MAX_SIZE}/g' /tmp/tmp.Iaakkp | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_UPLOAD_MAX_SIZE'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_UPLOAD_MAX_SIZE' | |
+ export PHP_DISPLAY_ERRORS PHP_FPM_HOST PHP_FPM_LISTEN_TCP_IP PHP_FPM_LISTEN_TCP_IP_ALLOWED PHP_FPM_LISTEN_TCP_PORT PHP_FPM_LISTEN_UNIX_GROUP PHP_FPM_LISTEN_UNIX_SOCKET PHP_FPM_LISTEN_UNIX_USER PHP_FPM_MAX_CHILDREN PHP_FPM_MAX_REQUESTS PHP_FPM_MAX_SPARE_SERVERS PHP_FPM_MIN_SPARE_SERVERS PHP_FPM_OUTPUT_BUFFER_SIZE PHP_FPM_PROCESS_MANAGER PHP_FPM_START_SERVERS PHP_LOG_ACCESS_FILE PHP_LOG_ERROR_FILE PHP_LOG_LIMIT PHP_LOG_LOCATION PHP_MEMORY_LIMIT PHP_POST_MAX_SIZE PHP_TIMEOUT PHP_UPLOAD_MAX_SIZE | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$PHP_DISPLAY_ERRORS:$PHP_FPM_HOST:$PHP_FPM_LISTEN_TCP_IP:$PHP_FPM_LISTEN_TCP_IP_ALLOWED:$PHP_FPM_LISTEN_TCP_PORT:$PHP_FPM_LISTEN_UNIX_GROUP:$PHP_FPM_LISTEN_UNIX_SOCKET:$PHP_FPM_LISTEN_UNIX_USER:$PHP_FPM_MAX_CHILDREN:$PHP_FPM_MAX_REQUESTS:$PHP_FPM_MAX_SPARE_SERVERS:$PHP_FPM_MIN_SPARE_SERVERS:$PHP_FPM_OUTPUT_BUFFER_SIZE:$PHP_FPM_PROCESS_MANAGER:$PHP_FPM_START_SERVERS:$PHP_LOG_ACCESS_FILE:$PHP_LOG_ERROR_FILE:$PHP_LOG_LIMIT:$PHP_LOG_LOCATION:$PHP_MEMORY_LIMIT:$PHP_POST_MAX_SIZE:$PHP_TIMEOUT:$PHP_UPLOAD_MAX_SIZE' | |
+ rm -f /tmp/tmp.Iaakkp | |
+ update_template /etc/nginx/snippets/php-fpm.conf PHP_TIMEOUT | |
+ template_files=/etc/nginx/snippets/php-fpm.conf | |
++ echo /etc/nginx/snippets/php-fpm.conf | |
++ tr ' ' '\n' | |
+ templates=/etc/nginx/snippets/php-fpm.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /etc/nginx/snippets/php-fpm.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /etc/nginx/snippets/php-fpm.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.gHggGM | |
+ cp -a /etc/nginx/snippets/php-fpm.conf /tmp/tmp.gHggGM | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_TIMEOUT[}]{2}/${PHP_TIMEOUT}/g' /tmp/tmp.gHggGM | |
+ print_debug '[update_template] Template: '\''/etc/nginx/snippets/php-fpm.conf'\'' updating field '\''PHP_TIMEOUT'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/etc/nginx/snippets/php-fpm.conf' updating field 'PHP_TIMEOUT' | |
+ export PHP_TIMEOUT | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$PHP_TIMEOUT' | |
+ rm -f /tmp/tmp.gHggGM | |
+ sed -i -e 's#apc.shm_size=.*#apc.shm_size=128M#g' -e 's#apc.ttl=.*#apc.ttl=7200#g' /assets/php-fpm//mods-available/apcu.ini | |
+ sed -i -e 's#opcache.interned_strings_buffer=.*#opcache.interned_strings_buffer=8#g' -e 's#opcache.max_accelerated_files=.*#opcache.max_accelerated_files=10000#g' -e 's#opcache.max_file_size=.*#opcache.max_file_size=0#g' -e 's#opcache.max_wasted_percentage=.*#opcache.max_wasted_percentage=5#g' -e 's#opcache.memory_consumption=.*#opcache.memory_consumption=128#g' -e 's#opcache.optimization_level=.*#opcache.optimization_level=0x7FFFBFF#g' -e 's#opcache.revalidate_freq=.*#opcache.revalidate_freq=2#g' -e 's#opcache.revalidate_freq=.*#opcache.revalidate_freq=2#g' -e 's#opcache.save_comments=.*#opcache.save_comments=1#g' -e 's#opcache.validate_timestamps=.*#opcache.validate_timestamps=1#g' /assets/php-fpm/mods-available/opcache.ini | |
+ '[' 8 = 7 ']' | |
+ sed -i -e 's#opcache.jit_buffer_size=.*#opcache.jit_buffer_size=50M#g' -e 's#opcache.jit=.*#opcache.jit=1255#g' /assets/php-fpm/mods-available/opcache.ini | |
+ sed -i -e 's#memory_limit = .*#memory_limit = 128M#g' -e 's#max_execution_time = .*#max_execution_time = 180#g' -e 's#max_input_time = .*#max_input_time = 180#g' -e 's#default_socket_timeout = .*#default_socket_timeout = 180#g' -e 's#post_max_size = .*#post_max_size = 2G#g' -e 's#upload_max_filesize = .*#upload_max_filesize = 2G#g' /assets/php-fpm/cli/php.ini | |
+ '[' -n '' ']' | |
++ cat /etc/timezone | |
+ sed -i -e 's#date.timezone = .*#date.timezone = Etc/GMT#g' /assets/php-fpm/cli/php.ini /assets/php-fpm/fpm/php.ini | |
+ phpfpm_configure_extensions | |
+ var_true '' | |
+ '[' '' = true ']' | |
+ '[' '' = yes ']' | |
+ case ${os} in | |
+ var_true '' | |
+ '[' '' = true ']' | |
+ '[' '' = yes ']' | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ echo 'sendmail_path="/usr/bin/msmtp -C /etc/msmtprc -t "' | |
/assets/functions/20-php-fpm: line 106: /etc/php//conf.d/99-smtp.ini: No such file or directory | |
++ cat /etc/timezone | |
+ echo date.timezone=Etc/GMT | |
/assets/functions/20-php-fpm: line 108: /etc/php//conf.d/99-timezone.ini: No such file or directory | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ chown nginx:www-data /etc/msmtprc | |
+ chmod 0600 /etc/msmtprc | |
+ '[' 128M = 0 ']' | |
+ '[' 128 = 0 ']' | |
+ var_false TRUE | |
+ '[' true = false ']' | |
+ '[' true = no ']' | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ '[' zabbix = zabbix ']' | |
+ source /assets/defaults/03-monitoring | |
++ ZABBIX_AGENT_LOG_FILE=zabbix_agentd.log | |
++ ZABBIX_AGENT_LOG_PATH=/var/log/zabbix/agent/ | |
++ ZABBIX_ALLOW_ROOT=1 | |
++ ZABBIX_BUFFER_SEND=5 | |
++ ZABBIX_BUFFER_SIZE=100 | |
++ ZABBIX_CERT_PATH=/etc/zabbix/certs/ | |
++ ZABBIX_CONFIG_FILE=zabbix_agentd.conf | |
++ ZABBIX_CONFIG_PATH=/etc/zabbix/ | |
++ ZABBIX_DEBUGLEVEL=1 | |
++ ZABBIX_ENABLE_AUTOREGISTER=TRUE | |
++ ZABBIX_ENABLE_AUTOREGISTER_DNS=TRUE | |
++ ZABBIX_HOSTNAME=nginx-php-fpm-app | |
++ ZABBIX_LISTEN_IP=0.0.0.0 | |
++ ZABBIX_LISTEN_PORT=10050 | |
++ ZABBIX_LOG_FILE_SIZE=0 | |
++ ZABBIX_MAXLINES_SECOND=20 | |
++ ZABBIX_PID=/var/lib/zabbix/run/zabbix-agent.pid | |
++ ZABBIX_REFRESH_ACTIVE_CHECKS=120 | |
++ ZABBIX_REMOTECOMMANDS_ALLOW='*' | |
++ ZABBIX_REMOTECOMMANDS_LOG=1 | |
++ ZABBIX_SERVER=0.0.0.0/0 | |
++ ZABBIX_SERVER_ACTIVE=zabbix-proxy | |
++ ZABBIX_SETUP_TYPE=AUTO | |
++ ZABBIX_SOCKET=/var/lib/zabbix/run/zabbix-agent.sock | |
++ ZABBIX_START_AGENTS=1 | |
++ ZABBIX_STATUS_PORT=8050 | |
++ ZABBIX_USER=zabbix | |
++ ZABBIX_USER_DOAS=TRUE | |
++ ZABBIX_USER_SUDO=TRUE | |
+++ cat /etc/os-release | |
+++ grep '^ID=' | |
+++ cut -d = -f2 | |
++ os=alpine | |
++ case ${os} in | |
+++ cat /etc/os-release | |
+++ grep VERSION_ID | |
+++ cut -d = -f 2 | |
+++ cut -d . -f 2 | |
+++ cut -d _ -f 1 | |
++ osver=19 | |
++ '[' 19 -ge 11 ']' | |
++ ZABBIX_AGENT_TYPE=modern | |
+ cat | |
+ [[ php-fpm == *\n\g\i\n\x* ]] | |
+ [[ php-fpm == *\p\h\p\-\f\p\m* ]] | |
+ phpfpm_create_default_page | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ '[' '!' -f /www/html/index.php ']' | |
+ print_notice 'Creating sample index.php' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [NOTICE] /etc/cont-init.d/20-php-fpm ** [php-fpm] Creating sample index.php | |
+ mkdir -p /www/html | |
+ cat | |
+ var_true TRUE | |
+ '[' true = true ']' | |
+ '[' -n '' ']' | |
+ phpfpm_configure_site_default | |
+ '[' -z '' ']' | |
+ '[' '!' -f /etc/nginx/sites.available/default.conf ']' | |
+ '[' -f /etc/cont-init.d/20-php-fpm ']' | |
+ cat | |
+ NGINX_SITE_ENABLED=default | |
+ nginx_site_enable default | |
+ '[' -n default ']' | |
+ '[' default = all ']' | |
+ '[' -f /etc/nginx/sites.available/default.conf ']' | |
+ print_debug 'Enabling Nginx Site '\''default.conf'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] Enabling Nginx Site 'default.conf' | |
+ ln -sf /etc/nginx/sites.available/default.conf /etc/nginx/sites.enabled | |
+ '[' -n '' ']' | |
+ '[' none = llng ']' | |
+ phpfpm_configure_logging | |
+ mkdir -p /www/logs/php-fpm | |
+ touch /www/logs/php-fpm/access.log | |
+ touch /www/logs/php-fpm/error.log | |
+ chown -R nginx:www-data /www/logs/php-fpm | |
+ create_logrotate php-fpm-access /www/logs/php-fpm/access.log php-fpm nginx www-data | |
+ '[' -n php-fpm-access ']' | |
+ '[' -n /www/logs/php-fpm/access.log ']' | |
+ '[' '!' -f /assets/logrotate/php-fpm-access ']' | |
+ print_debug 'Creating Logrotate Entry for /www/logs/php-fpm/access.log' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] Creating Logrotate Entry for /www/logs/php-fpm/access.log | |
+ '[' -n php-fpm ']' | |
+ '[' php-fpm '!=' none ']' | |
+ lrlsparser='# logship: php-fpm' | |
+ '[' -n nginx ']' | |
+ '[' -n www-data ']' | |
+ lruser=' su nginx www-data' | |
+ '[' '!' -d /assets/logrotate ']' | |
+ cat | |
+ chown root:root /assets/logrotate/php-fpm-access | |
+ chmod 0644 /assets/logrotate/php-fpm-access | |
+ create_logrotate php-fpm-error /www/logs/php-fpm/error.log php-fpm-error nginx www-data | |
+ '[' -n php-fpm-error ']' | |
+ '[' -n /www/logs/php-fpm/error.log ']' | |
+ '[' '!' -f /assets/logrotate/php-fpm-error ']' | |
+ print_debug 'Creating Logrotate Entry for /www/logs/php-fpm/error.log' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] Creating Logrotate Entry for /www/logs/php-fpm/error.log | |
+ '[' -n php-fpm-error ']' | |
+ '[' php-fpm-error '!=' none ']' | |
+ lrlsparser='# logship: php-fpm-error' | |
+ '[' -n nginx ']' | |
+ '[' -n www-data ']' | |
+ lruser=' su nginx www-data' | |
+ '[' '!' -d /assets/logrotate ']' | |
+ cat | |
+ chown root:root /assets/logrotate/php-fpm-error | |
+ chmod 0644 /assets/logrotate/php-fpm-error | |
+ sed -i /access.format=/d /assets/php-fpm/fpm/php-fpm.conf | |
+ case "${PHP_LOG_ACCESS_FORMAT,,}" in | |
+ cat /assets/php-fpm/fpm/default.logformat | |
+ update_template /assets/php-fpm/fpm/php-fpm.conf PHP_LOG_LEVEL | |
+ template_files=/assets/php-fpm/fpm/php-fpm.conf | |
++ echo /assets/php-fpm/fpm/php-fpm.conf | |
++ tr ' ' '\n' | |
+ templates=/assets/php-fpm/fpm/php-fpm.conf | |
+ shift | |
+ for template_file in $templates | |
+ [[ ! -f /assets/php-fpm/fpm/php-fpm.conf ]] | |
+ template_variables=($@) | |
++ stat -c %U /assets/php-fpm/fpm/php-fpm.conf | |
+ template_user=root | |
p | |
+ template_tmp_file=/tmp/tmp.EOGEJa | |
+ cp -a /assets/php-fpm/fpm/php-fpm.conf /tmp/tmp.EOGEJa | |
+ for template_variable in ${template_variables[@]} | |
+ sed -ri 's/[{]{2}PHP_LOG_LEVEL[}]{2}/${PHP_LOG_LEVEL}/g' /tmp/tmp.EOGEJa | |
+ print_debug '[update_template] Template: '\''/assets/php-fpm/fpm/php-fpm.conf'\'' updating field '\''PHP_LOG_LEVEL'\''' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] [update_template] Template: '/assets/php-fpm/fpm/php-fpm.conf' updating field 'PHP_LOG_LEVEL' | |
+ export PHP_LOG_LEVEL | |
+ local IFS=: | |
+ sudo -HEu root envsubst '$PHP_LOG_LEVEL' | |
+ rm -f /tmp/tmp.EOGEJa | |
+ phpfpm_post_init | |
+ case ${os} in | |
+ cp -R /assets/php-fpm/cli/php.ini /etc/php// | |
cp: can't create '/etc/php//': Is a directory | |
+ cp -R /assets/php-fpm/mods-available/apcu.ini /assets/php-fpm/mods-available/opcache.ini /etc/php//mods-available/ | |
cp: can't create '/etc/php//mods-available/apcu.ini': No such file or directory | |
cp: can't create '/etc/php//mods-available/opcache.ini': No such file or directory | |
+ cp -R /assets/php-fpm/fpm/php-fpm.conf /etc/php// | |
cp: can't create '/etc/php//': Is a directory | |
+ case ${os} in | |
+ '[' -f /etc/php//conf.d/10-opcache.ini ']' | |
+ var_false FALSE | |
+ '[' false = false ']' | |
+ php_enable_create_sample_php=TRUE | |
+ unset PHP_ENABLE_CREATE_SAMPLE_PHP | |
++ set -o posix | |
++ set | |
++ sort | |
++ grep PHP_ENABLE_ | |
++ grep -i TRUE | |
++ sed -e s/PHP_ENABLE_//g | |
++ sed -e s/=TRUE//g | |
++ awk -vRS= '-vOFS=, ' '$1=$1' | |
++ tr A-Z a-z | |
+ php_env_plugins_enabled='apcu, bcmath, bz2, ctype, curl, dom, exif, fileinfo, gd, iconv, imap, intl, mbstring, mysqli, mysqlnd, opcache, openssl, pdo, pdo_mysql, pgsql, phar, session, simplexml, tokenizer, xml, xmlreader, xmlwriter' | |
++ echo 'apcu, bcmath, bz2, ctype, curl, dom, exif, fileinfo, gd, iconv, imap, intl, mbstring, mysqli, mysqlnd, opcache, openssl, pdo, pdo_mysql, pgsql, phar, session, simplexml, tokenizer, xml, xmlreader, xmlwriter' | |
++ tr , '\n' | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/apcu.ini ']' | |
+ print_error 'Requested enabling apcu however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling apcu however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/bcmath.ini ']' | |
+ print_error 'Requested enabling bcmath however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling bcmath however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/bz2.ini ']' | |
+ print_error 'Requested enabling bz2 however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling bz2 however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/ctype.ini ']' | |
+ print_error 'Requested enabling ctype however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling ctype however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/curl.ini ']' | |
+ print_error 'Requested enabling curl however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling curl however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/dom.ini ']' | |
+ print_error 'Requested enabling dom however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling dom however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/exif.ini ']' | |
+ print_error 'Requested enabling exif however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling exif however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/fileinfo.ini ']' | |
+ print_error 'Requested enabling fileinfo however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling fileinfo however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/gd.ini ']' | |
+ print_error 'Requested enabling gd however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling gd however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/iconv.ini ']' | |
+ print_error 'Requested enabling iconv however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:31 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling iconv however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/imap.ini ']' | |
+ print_error 'Requested enabling imap however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling imap however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/intl.ini ']' | |
+ print_error 'Requested enabling intl however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling intl however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/mbstring.ini ']' | |
+ print_error 'Requested enabling mbstring however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling mbstring however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/mysqli.ini ']' | |
+ print_error 'Requested enabling mysqli however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling mysqli however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/mysqlnd.ini ']' | |
+ print_error 'Requested enabling mysqlnd however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling mysqlnd however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/opcache.ini ']' | |
+ print_error 'Requested enabling opcache however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling opcache however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/openssl.ini ']' | |
+ print_error 'Requested enabling openssl however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling openssl however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/pdo.ini ']' | |
+ print_error 'Requested enabling pdo however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling pdo however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/pdo_mysql.ini ']' | |
+ print_error 'Requested enabling pdo_mysql however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling pdo_mysql however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/pgsql.ini ']' | |
+ print_error 'Requested enabling pgsql however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling pgsql however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/phar.ini ']' | |
+ print_error 'Requested enabling phar however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling phar however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/session.ini ']' | |
+ print_error 'Requested enabling session however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling session however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/simplexml.ini ']' | |
+ print_error 'Requested enabling simplexml however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling simplexml however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/tokenizer.ini ']' | |
+ print_error 'Requested enabling tokenizer however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling tokenizer however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/xml.ini ']' | |
+ print_error 'Requested enabling xml however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling xml however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/xmlreader.ini ']' | |
+ print_error 'Requested enabling xmlreader however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling xmlreader however it doesn't exist! | |
+ for module in $(echo "${php_env_plugins_enabled}" | tr "," "\n") | |
+ '[' -f /etc/php//mods-available/xmlwriter.ini ']' | |
+ print_error 'Requested enabling xmlwriter however it doesn'\''t exist!' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [ERROR] /etc/cont-init.d/20-php-fpm ** [php-fpm] Requested enabling xmlwriter however it doesn't exist! | |
+ print_debug 'PHP-FPM Preparing to start with the following extensions enabled: ' | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/20-php-fpm ** [php-fpm] PHP-FPM Preparing to start with the following extensions enabled: | |
+ chmod -R 0755 /etc/php/ | |
chmod: /etc/php/: No such file or directory | |
+ chown -R root:www-data /etc/php/ | |
chown: /etc/php/: No such file or directory | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
f | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Getting ready to start '03-monitoring' service | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Getting ready to start '04-scheduling' service | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Skipping '05-logging' service for startup routines | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Skipping '07-firewall' service for startup routines | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Skipping '10-nginx' service for startup routines | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Skipping '11-nginx-config-reload' service for startup routines | |
2023-12-05.05:49:32 [DEBUG] /etc/cont-init.d/99-container ** [container] Skipping '20-php-fpm' service for startup routines | |
+ PROCESS_NAME=monitoring | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
+ PROCESS_NAME=scheduling | |
+ output_off | |
+ '[' true = true ']' | |
+ set +x | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/00-container | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Container: Getting defaults for '03-monitoring' | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/02-permissions | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Checking to see if container initialization scripts have completed | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Checking to see if service has initialized | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/03-monitoring | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/04-scheduling | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Trying to execute Container Monitoring Backend Zabbix | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/05-logging | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Starting modern Zabbix agent | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Zabbix Agent - Adding Autoregister Configuration ':nginx:phpfpm:toica:opcache:' | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/06-messaging | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Zabbix Agent - Enabling Auto Register | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/07-firewall | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/03-monitoring/run ** [monitoring] Zabbix Agent - Enabling Auto Register by DNS | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/10-nginx | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Container: Getting defaults for /assets/defaults/20-php-fpm | |
2023-12-05.05:49:32 [STARTING] /etc/services.available/03-monitoring/run ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.9 | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Checking to see if container initialization scripts have completed | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Checking to see if service has initialized | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] [logrotate] Setting Logrotate retention days after all services have finished initializing | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] [logrotate] Moving files from /assets/logrotate to /etc/logrotate.d | |
2023-12-05.05:49:32 [DEBUG] /etc/services.available/04-scheduling/run ** [scheduling] Parsing all files from /assets/cron/ | |
2023-12-05.05:49:32 [STARTING] /etc/services.available/04-scheduling/run ** [scheduling] [1] Starting cron | |
Starting Zabbix Agent 2 (6.4.9) | |
Zabbix Agent2 hostname: [nginx-php-fpm-app] | |
Press Ctrl+C to exit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UID PID PPID C STIME TTY TIME CMD | |
root 904837 904817 0 05:49 ? 00:00:00 /package/admin/s6/command/s6-svscan -d4 -- /run/service | |
root 904872 904837 0 05:49 ? 00:00:00 s6-supervise s6-linux-init-shutdownd | |
root 904874 904872 0 05:49 ? 00:00:00 /package/admin/s6-linux-init/command/s6-linux-init-shutdownd -d3 -c /run/s6/basedir -g 3000 -C -Bvise 03-monitoring | |
root 904880 904837 0 05:49 ? 00:00:00 s6-supervise s6rc-fdholder | |
root 904881 904837 0 05:49 ? 00:00:00 s6-supervise s6rc-oneshot-runner | |
root 904888 904881 0 05:49 ? 00:00:00 /package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. -- | |
root 908058 904837 0 05:49 ? 00:00:00 s6-supervise 04-scheduling | |
root 908060 904837 0 05:49 ? 00:00:00 s6-supervise 03-monitoring | |
root 908061 908058 0 05:49 ? 00:00:00 /usr/sbin/crond -f -l 8 -L /var/log/cron//cron.log | |
10050 908062 908060 0 05:49 ? 00:00:00 zabbix_agent2 -c /etc/zabbix//zabbix_agentd.conf -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment