1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

Update to PHP 8.1

This commit is contained in:
CrazyMax 2022-11-26 16:57:31 +01:00
parent 938828f65b
commit 1d0c26d203
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
6 changed files with 36 additions and 36 deletions

View file

@ -15,6 +15,6 @@ chown -R librenms:librenms \
/tpls \
/var/lib/nginx \
/var/log/nginx \
/var/log/php8 \
/var/log/php81 \
/var/run/nginx \
/var/run/php-fpm

View file

@ -64,17 +64,17 @@ sed -e "s/@MEMORY_LIMIT@/$MEMORY_LIMIT/g" \
-e "s/@FPM_PM_START_SERVERS@/$FPM_PM_START_SERVERS/g" \
-e "s/@FPM_PM_MIN_SPARE_SERVERS@/$FPM_PM_MIN_SPARE_SERVERS/g" \
-e "s/@FPM_PM_MAX_SPARE_SERVERS@/$FPM_PM_MAX_SPARE_SERVERS/g" \
/tpls/etc/php8/php-fpm.d/www.conf >/etc/php8/php-fpm.d/www.conf
/tpls/etc/php81/php-fpm.d/www.conf >/etc/php81/php-fpm.d/www.conf
echo "Setting PHP INI configuration..."
sed -i "s|memory_limit.*|memory_limit = ${MEMORY_LIMIT}|g" /etc/php8/php.ini
sed -i "s|;date\.timezone.*|date\.timezone = ${TZ}|g" /etc/php8/php.ini
sed -i "s|;max_input_vars.*|max_input_vars = ${MAX_INPUT_VARS}|g" /etc/php8/php.ini
sed -i "s|memory_limit.*|memory_limit = ${MEMORY_LIMIT}|g" /etc/php81/php.ini
sed -i "s|;date\.timezone.*|date\.timezone = ${TZ}|g" /etc/php81/php.ini
sed -i "s|;max_input_vars.*|max_input_vars = ${MAX_INPUT_VARS}|g" /etc/php81/php.ini
# OpCache
echo "Setting OpCache configuration..."
sed -e "s/@OPCACHE_MEM_SIZE@/$OPCACHE_MEM_SIZE/g" \
/tpls/etc/php8/conf.d/opcache.ini >/etc/php8/conf.d/opcache.ini
/tpls/etc/php81/conf.d/opcache.ini >/etc/php81/conf.d/opcache.ini
# Nginx
echo "Setting Nginx configuration..."

View file

@ -99,7 +99,7 @@ cat >/etc/services.d/php-fpm/run <<EOL
#!/usr/bin/execlineb -P
with-contenv
s6-setuidgid ${PUID}:${PGID}
php-fpm8 -F
php-fpm81 -F
EOL
chmod +x /etc/services.d/php-fpm/run