diff --git a/Dockerfile b/Dockerfile index 79ddf7e2..e92357c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/php_error.ini b/php_error.ini new file mode 100644 index 00000000..e1413a96 --- /dev/null +++ b/php_error.ini @@ -0,0 +1,4 @@ +log_errors = on +display_errors = 1 +error_reporting = E_ALL +error_log = /var/log/apache2/php_err.log