mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-30 23:21:55 +08:00
generate php error logs
This commit is contained in:
parent
fcc8a29ebd
commit
13160d17f6
2 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
FROM wordpress:latest
|
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 \
|
RUN apt-get update \
|
||||||
&& apt-get install -y inotify-tools rsync \
|
&& apt-get install -y inotify-tools rsync \
|
||||||
&& docker-php-ext-install zip
|
&& docker-php-ext-install zip
|
||||||
|
|
4
php_error.ini
Normal file
4
php_error.ini
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
log_errors = on
|
||||||
|
display_errors = 1
|
||||||
|
error_reporting = E_ALL
|
||||||
|
error_log = /var/log/apache2/php_err.log
|
Loading…
Add table
Add a link
Reference in a new issue