Skip to content

Commit b838881

Browse files
committed
Minor updates and corrections to the fpm-pool.conf file allowing the server to properly serve php
1 parent 92e25d1 commit b838881

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM ubuntu:latest
2+
23
#LABEL Maintainer="Tim de Pater <code@trafex.nl>"
3-
LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.1 based on Alpine Linux."
4+
LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.1 based on Ubuntu Linux."
5+
46
# Setup document root
57
WORKDIR /var/www/html
68

@@ -24,7 +26,6 @@ RUN apt-get update && apt-get install -y \
2426
php-xmlreader \
2527
supervisor
2628

27-
2829
# Both php-session and php-openssl do not currently have Ubuntu counterparts
2930

3031
# Configure nginx - http
@@ -39,7 +40,7 @@ COPY config/php.ini /etc/php/conf.d/custom.ini
3940
# Configure supervisord
4041
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
4142

42-
# Add application --chown=nobody
43+
# Add application
4344
COPY src/ /var/www/html/
4445

4546
# Expose the port nginx is reachable on
@@ -49,4 +50,4 @@ EXPOSE 8080
4950
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
5051

5152
# Configure a healthcheck to validate that everything is up&running
52-
# HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping
53+
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping

config/fpm-pool.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ listen = /run/php/php8.1-fpm.sock
1919
; permissions must be set in order to allow connections from a web server.
2020
; Default Values: user and group are set as the running user
2121
; mode is set to 0660
22-
listen.owner = www-data
23-
listen.group = www-data
22+
listen.owner = nginx
23+
listen.group = nginx
2424
listen.mode = 0660
2525

2626
; Enable status page

0 commit comments

Comments
 (0)