generate php error logs

This commit is contained in:
Leon 2017-03-07 12:33:23 +13:00
parent fcc8a29ebd
commit 13160d17f6
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,8 @@
FROM wordpress:latest
RUN touch /var/log/apache2/php_err.log && chown www-data:www-data /var/log/apache2/php_err.log
COPY php_error.ini /usr/local/etc/php/conf.d/php_error.ini
RUN apt-get update \
&& apt-get install -y inotify-tools rsync \
&& docker-php-ext-install zip

4
php_error.ini Normal file
View file

@ -0,0 +1,4 @@
log_errors = on
display_errors = 1
error_reporting = E_ALL
error_log = /var/log/apache2/php_err.log