geerlingguy / ansible-role-php

Ansible Role - PHP
https://galaxy.ansible.com/geerlingguy/php/
MIT License
492 stars 442 forks source link

How to listen on a socket? #359

Closed Bodenhaltung closed 2 years ago

Bodenhaltung commented 2 years ago

Hi,

there is nothing about it in the default/main.yaml.

Can you maybe provide a example with different pools on different sockets?

Thanks!

racke commented 2 years ago

Use the _php_fpmpools variable (see README)

 php_fpm_pools:
      - pool_name: www
        ....
      - pool_name: rainloop
        pool_user: "{{ rainloop_unix_user }}"
        pool_group: "{{ rainloop_unix_group }}"
        pool_template: www.conf.j2
        pool_listen: "/run/php-rainloop-fpm.sock"
        pool_pm: dynamic
        pool_pm_max_children: 5
        pool_pm_start_servers: 2
        pool_pm_min_spare_servers: 1
        pool_pm_max_spare_servers: 3
        pool_pm_max_requests: 500
        pool_access_log: /var/log/php-fpm.rainloop.access.log
Bodenhaltung commented 2 years ago

Ah, yes...sorry and thanks! ;(