Skip to content

Commit 1eed000

Browse files
Add PHP configuration output in entrypoint script
feat(php): Add php config
1 parent 0f3f32a commit 1eed000

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docker-entrypoint.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,31 @@ printf '| LINKSTACK v%s%*s|\n' "${v}" "$vlen" | tr ' ' " "
3030
# + ---------------- + #
3131

3232
echo '+ ------------------------------------------------------------------ +'
33+
echo '| Updating Configuration: Apache Base (/etc/apache2/httpd.conf) |'
34+
echo '| Updating Configuration: Apache SSL (/etc/apache2/conf.d/ssl.conf) |'
35+
36+
# + ------------- + #
37+
# | -- PHP.INI -- | #
38+
# + ------------- + #
39+
40+
echo '| Updating Configuration: PHP (/etc/php83/40-custom.ini) |'
41+
# Gebe die aktuellen PHP-Einstellungen aus
42+
echo "| Setting PHP Configuration: |"
43+
echo "| upload_max_filesize = ${UPLOAD_MAX_FILESIZE} |"
44+
echo "| memory_limit = ${PHP_MEMORY_LIMIT} |"
45+
echo "| date.timezone = ${TZ} |"
46+
# Setze die PHP-Konfiguration
47+
echo "upload_max_filesize = ${UPLOAD_MAX_FILESIZE}" >> /etc/php83/conf.d/40-custom.ini
48+
echo "memory_limit = ${PHP_MEMORY_LIMIT}" >> /etc/php83/conf.d/40-custom.ini
49+
echo "date.timezone = ${TZ}" >> /etc/php83/conf.d/40-custom.ini
3350

3451
# + ---------- + #
3552
# | -- MISC -- | #
3653
# + ---------- + #
3754

3855
# Apache gets grumpy about PID files pre-existing
3956
rm -f /htdocs/httpd.pid
40-
57+
echo '| Updating Configuration: Complete |'
4158
echo '| ------------------------------------------------------------------ |'
4259
echo '| Running Apache |'
4360
echo '+ ------------------------------------------------------------------ +'

0 commit comments

Comments
 (0)