php-fpm: /run_local

This commit is contained in:
Starbeamrainbowlabs 2023-12-16 14:19:58 +00:00
parent e38c3343c2
commit 0ad8123d92
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
4 changed files with 5 additions and 4 deletions

View file

@ -16,7 +16,7 @@ COPY --from=builder /usr/share/keyrings/deb.sury.org-php.gpg /usr/share/keyrings
COPY --from=builder /etc/apt/sources.list.d/php.list /etc/apt/sources.list.d/php.list
RUN apt-get update && install_packages php8.3-fpm php8.3-mbstring php8.3-imagick php8.3-zip php8.3-intl php8.3-sqlite3 supervisor lighttpd && apt-get clean && mkdir -p /app
RUN apt-get update && install_packages php8.3-fpm php8.3-mbstring php8.3-imagick php8.3-zip php8.3-intl php8.3-sqlite3 supervisor lighttpd && apt-get clean && mkdir -p /app /run_local && chmod 10700:10700 /run_local
COPY supervisord.conf /app/supervisord.conf
COPY php-sbrl.ini /app/sbrl.ini

View file

@ -10,7 +10,7 @@ index-file.names = ( "index.html" )
static-file.exclude-extensions = ( ".php" )
fastcgi.server = ( ".php" =>
((
"socket" => "/run/php-fpm.sock",
"socket" => "/run_local/php-fpm.sock",
"broken-scriptfilename" => "enable"
))
)

View file

@ -2,6 +2,7 @@
nodaemon=true
logfile=/proc/self/fd/1
logfile_maxbytes=0
pidfile=/run_local/supervisord.pid
[program:phpfpm]
command=/usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /app/www.conf

View file

@ -1,4 +1,4 @@
pid = /run/php-fpm.pid
pid = /run_local/php-fpm.pid
; Log to stdout/stderr 'cause Nomad
; Looks like this has to be split across [www] here.... ewww
@ -8,7 +8,7 @@ error_log = /proc/self/fd/2
[www]
user = www-data
group = www-data
listen = /run/php-fpm.sock
listen = /run_local/php-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic