; Use the matching pool.d directory for your installed PHP version. ; Create the app account and match the socket owner to your Nginx worker. [app] user = app group = app listen = /run/php/app.sock listen.owner = www-data listen.group = www-data listen.mode = 0660 ; Tune the worker count against measured per-worker memory and host capacity. pm = ondemand pm.max_children = 4 pm.process_idle_timeout = 20s pm.max_requests = 300 request_terminate_timeout = 30s clear_env = yes security.limit_extensions = .php