First commit
This commit is contained in:
28
scripts/create-php-config.sh
Normal file
28
scripts/create-php-config.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/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 = nginx
|
||||
listen.group = nginx
|
||||
|
||||
pm = static
|
||||
pm.max_children = 25
|
||||
pm.max_requests = 1000
|
||||
|
||||
slowlog = /var/log/nginx/error_log
|
||||
request_slowlog_timeout = 3s
|
||||
|
||||
php_admin_value[error_log] = /var/log/nginx/error_log
|
||||
php_admin_flag[log_errors] = on
|
||||
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
|
||||
|
||||
EOF
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user