rename web

This commit is contained in:
2021-06-30 02:30:24 +00:00
parent 7c78252bfe
commit ceba4626c8
21 changed files with 7 additions and 1 deletions

View 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

View File

@@ -0,0 +1,19 @@
---
- name: Install php-fpm package and deps
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
- name: restart php-fpm
service:
name: php7.4-fpm.service
state: restarted

View File

@@ -0,0 +1 @@
---