php-fpm: load mod_fastcgi; reorganise php-fpm config

This commit is contained in:
Starbeamrainbowlabs 2023-12-16 13:59:10 +00:00
parent 15918a7e1b
commit 0687924c8d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
server.modules = (
"mod_indexfile",
"mod_fastcgi"
)
server.document-root = "/srv"
server.port = 3000
index-file.names = ( "index.html" )

View file

@ -1,5 +1,10 @@
pid = /run/php-fpm.pid
; Log to stdout/stderr 'cause Nomad
; ....we really need to replace Nomad >_<
access.log = /proc/self/fd/2
error_log = /proc/self/fd/2
[www]
user = www-data
group = www-data
@ -11,8 +16,3 @@ pm.max_children = 8
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 2
; Log to stdout/stderr 'cause Nomad
; ....we really need to replace Nomad >_<
access.log = /proc/self/fd/2
error_log = /proc/self/fd/2