File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ The following flags are a list of all the currently supported options that can b
2424| PHP_MEM_LIMIT | Set higher PHP memory limit, default is 128 Mb |
2525| PHP_POST_MAX_SIZE | Set a larger post_max_size, default is 100 Mb |
2626| PHP_UPLOAD_MAX_FILESIZE | Set a larger upload_max_filesize, default is 100 Mb |
27+ | PHP_ERRORS_STDERR | Send php logs to docker logs |
2728| DOMAIN | Set domain name for Lets Encrypt scripts |
2829| REAL_IP_HEADER | set to 1 to enable real ip support in the logs |
2930| REAL_IP_FROM | set to your CIDR block for real ip in logs |
Original file line number Diff line number Diff line change @@ -117,6 +117,12 @@ if [ -f /etc/nginx/sites-available/default-ssl.conf ]; then
117117 fi
118118fi
119119
120+ # Display errors in docker logs
121+ if [ ! -z " $PHP_ERRORS_STDERR " ]; then
122+ echo " log_errors = On" >> /usr/local/etc/php/conf.d/docker-vars.ini
123+ echo " error_log = /dev/stderr" >> /usr/local/etc/php/conf.d/docker-vars.ini
124+ fi
125+
120126# Increase the memory_limit
121127if [ ! -z " $PHP_MEM_LIMIT " ]; then
122128 sed -i " s/memory_limit = 128M/memory_limit = ${PHP_MEM_LIMIT} M/g" /usr/local/etc/php/conf.d/docker-vars.ini
You can’t perform that action at this time.
0 commit comments