configure pools, re-place domain var
This commit is contained in:
11
1/roles/php/files/pool.d/www.conf
Normal file
11
1/roles/php/files/pool.d/www.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
[{{item}}]
|
||||
user = www-data
|
||||
group = www-data
|
||||
listen = /run/php/php-{{item}}.sock
|
||||
listen.owner = www-data
|
||||
listen.group = www-data
|
||||
|
||||
pm = static
|
||||
pm.max_children = 4
|
||||
php_admin_value[error_log] = /var/log/fpm-err.log
|
||||
;php_value[max_execution_time] = 600
|
||||
@@ -3,3 +3,12 @@
|
||||
apt:
|
||||
name: ['php-fpm', 'php-imagick', 'php-memcached', 'php-zip', 'php-mysql', 'php-gd', 'php-mbstring', 'php-xml']
|
||||
state: present
|
||||
|
||||
- name: Configure php-fpm pools
|
||||
template:
|
||||
src: files/pool.d/www.conf
|
||||
dest: /etc/php/7.4/fpm/pool.d/{{ item }}.conf
|
||||
loop:
|
||||
- cloud
|
||||
- wiki
|
||||
- other
|
||||
1
1/roles/php/vars/main.yml
Normal file
1
1/roles/php/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
---
|
||||
Reference in New Issue
Block a user