Files
cloud-apache-container/scripts/create-php-config.sh

31 lines
541 B
Bash
Raw Normal View History

2023-04-05 07:53:20 -07:00
#!/bin/bash
rm /etc/php-fpm.d/www.conf
cat <<EOF > /etc/php-fpm.d/$user.conf
[$user]
user = $user
group = $user
listen = /run/php-fpm/www.sock
listen.owner = apache
listen.group = apache
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
2023-04-11 13:23:14 -07:00
slowlog = /etc/httpd/logs/error_log
request_slowlog_timeout = 3s
2023-04-05 07:53:20 -07:00
php_admin_value[error_log] = /etc/httpd/logs/error_log
php_admin_flag[log_errors] = on
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
EOF
exit 0