Compare commits

...

5 Commits
master ... php8

Author SHA1 Message Date
Hugo Thunnissen e4f7199715 Change php-fpm conf to log errors to stderr and create pidfile in /tmp
continuous-integration/drone/push Build is passing Details
2 years ago
Hugo Thunnissen 6127d61d2b Port dockerfile and config to php8.1 versions
continuous-integration/drone/push Build is passing Details
2 years ago
Hugo Thunnissen d17c0dd8aa s/DRONE_BRANCH_NAME/DRONE_BRANCH/
continuous-integration/drone/push Build is passing Details
2 years ago
Hugo Thunnissen 0c34072fc0 Use debian bullseye
continuous-integration/drone/push Build is failing Details
2 years ago
Hugo Thunnissen 0de0c4dca8 Use debian buster in stead of sid
continuous-integration/drone/push Build is failing Details
2 years ago

@ -10,5 +10,5 @@ steps:
username: hugotty
password:
from_secret: docker_password
repo: "hugotty/${DRONE_BRANCH_NAME}-fpm"
repo: "hugotty/${DRONE_BRANCH}-fpm"
tags: latest

@ -6,42 +6,41 @@ ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
RUN apt-get update && apt-get -y install \
php7.4-memcached \
php8.1-memcached \
php-redis \
php7.4-bcmath \
php7.4-bz2 \
php7.4-cli \
php7.4-common \
php7.4-curl \
php7.4-fpm \
php7.4-gmp \
php7.4-intl \
php7.4-json \
php7.4-mbstring \
php7.4-mysql \
php7.4-odbc \
php7.4-opcache \
php7.4-pgsql \
php7.4-readline \
php7.4-tidy \
php7.4-xml \
php7.4-xmlrpc \
php7.4-xsl \
php7.4-zip \
php7.4-gd \
php8.1-bcmath \
php8.1-fpm \
php8.1-bz2 \
php8.1-cli \
php8.1-common \
php8.1-curl \
php8.1-gmp \
php8.1-intl \
php-json \
php8.1-mbstring \
php8.1-mysql \
php8.1-odbc \
php8.1-opcache \
php8.1-pgsql \
php8.1-readline \
php8.1-tidy \
php8.1-xml \
php8.1-xsl \
php8.1-zip \
php8.1-gd \
php-bcmath \
php-apcu \
php-cli \
php-imagick \
composer
ADD ./www.conf /etc/php/7.4/fpm/pool.d/www.conf
ADD ./php.ini /etc/php/7.4/fpm/
ADD ./php-fpm.conf /etc/php/7.4/fpm/
ADD ./www.conf /etc/php/8.1/fpm/pool.d/www.conf
ADD ./php.ini /etc/php/8.1/fpm/
ADD ./php-fpm.conf /etc/php/8.1/fpm/
CMD [ \
"/usr/sbin/php-fpm7.4", \
"/usr/sbin/php-fpm8.1", \
"--nodaemonize", \
"--fpm-config", \
"/etc/php/7.4/fpm/php-fpm.conf" \
"/etc/php/8.1/fpm/php-fpm.conf" \
]

@ -14,16 +14,20 @@
; Pid file
; Note: the default prefix is /var
; Default Value: none
;pid = /run/php/php7.3-fpm.pid
;pid = none
; Warning: if you change the value here, you need to modify systemd
; service PIDFile= setting to match the value here.
;;;;
; Note to self: setting this to "none" sets it to /var, still resulting in a
; failure to write the pidfile...
pid = /tmp/bullshit.pid
; Error log file
; If it's set to "syslog", log is sent to syslogd instead of being written
; into a local file.
; Note: the default prefix is /var
; Default Value: log/php-fpm.log
;error_log = /var/log/php7.3-fpm.log
error_log = /dev/fd/1
error_log = /dev/stderr
; syslog_facility is used to specify what type of program is logging the
; message. This lets syslogd specify that messages from different facilities
@ -55,7 +59,7 @@ error_log = /dev/fd/1
; Log buffering specifies if the log line is buffered which means that the
; line is written in a single write operation. If the value is false, then the
; data is written directly into the file descriptor. It is an experimental
; option that can potentionaly improve logging performance and memory usage
; option that can potentially improve logging performance and memory usage
; for some heavy logging scenarios. This option is ignored if logging to syslog
; as it has to be always buffered.
; Default value: yes
@ -142,4 +146,4 @@ systemd_interval = 0
; Relative path can also be used. They will be prefixed by:
; - the global prefix if it's been set (-p argument)
; - /usr otherwise
include=/etc/php/7.4/fpm/pool.d/*.conf
include=/etc/php/8.1/fpm/pool.d/*.conf

File diff suppressed because it is too large Load Diff

@ -41,7 +41,8 @@ listen = 0.0.0.0:3000
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; BSD-derived systems allow connections regardless of permissions. The owner
; and group can be specified either by name or by their numeric IDs.
; Default Values: user and group are set as the running user
; mode is set to 0660
listen.owner = www-data
@ -70,7 +71,7 @@ listen.group = www-data
; process.priority = -19
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
; or group is differrent than the master process user. It allows to create process
; or group is different than the master process user. It allows to create process
; core dump and ptrace the process for the pool user.
; Default Value: no
; process.dumpable = yes
@ -92,6 +93,8 @@ listen.group = www-data
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; pm.max_spawn_rate - the maximum number of rate to spawn child
; processes at once.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
@ -127,6 +130,12 @@ pm.min_spare_servers = 1
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 3
; The number of rate to spawn child processes at once.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
; Default Value: 32
;pm.max_spawn_rate = 32
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
@ -139,7 +148,7 @@ pm.max_spare_servers = 3
;pm.max_requests = 500
; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. It shows the following informations:
; recognized as a status page. It shows the following information:
; pool - the name of the pool;
; process manager - static, dynamic or ondemand;
; start time - the date and time FPM has started;
@ -229,7 +238,7 @@ pm.max_spare_servers = 3
; last request memory: 0
;
; Note: There is a real-time FPM status monitoring sample web page available
; It's available in: /usr/share/php/7.4/fpm/status.html
; It's available in: /usr/share/php/8.1/fpm/status.html
;
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
@ -237,6 +246,22 @@ pm.max_spare_servers = 3
; Default Value: not set
;pm.status_path = /status
; The address on which to accept FastCGI status request. This creates a new
; invisible pool that can handle requests independently. This is useful
; if the main pool is busy with long running requests because it is still possible
; to get the status before finishing the long running requests.
;
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Default Value: value of the listen option
;pm.status_listen = 127.0.0.1:9001
; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
@ -269,13 +294,13 @@ pm.max_spare_servers = 3
; %d: time taken to serve the request
; it can accept the following format:
; - %{seconds}d (default)
; - %{miliseconds}d
; - %{mili}d
; - %{milliseconds}d
; - %{milli}d
; - %{microseconds}d
; - %{micro}d
; %e: an environment variable (same as $_ENV or $_SERVER)
; it must be associated with embraces to specify the name of the env
; variable. Some exemples:
; variable. Some examples:
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
; %f: script filename
@ -305,17 +330,17 @@ pm.max_spare_servers = 3
; %t: server time the request was received
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %T: time the log has been written (the request has finished)
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %u: remote user
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"
; The log file for slow requests
; Default Value: not set
@ -374,10 +399,10 @@ pm.max_spare_servers = 3
; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environement, this can cause some delay in the page
; Note: on highloaded environment, this can cause some delay in the page
; process time (several ms).
; Default Value: no
catch_workers_output = yes
;catch_workers_output = yes
; Decorate worker output with prefix and suffix containing information about
; the child that writes to the log and if stdout or stderr is used as well as

Loading…
Cancel
Save