Closed MikeiLL closed 5 years ago
I think you have to build your own image for that - see https://github.com/docker-library/docs/blob/master/php/README.md#configuration
I'm using a Dockerfile like this:
FROM wordpress
RUN mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini
& including it by updating docker-compose.yml, replace image: wordpress...
with
build: .
With that configuration, errors are displayed in docker-compose logs
.
I'm embarrassed to be asking this question, but I'm not sure how to view php error logs from the wordpress container.
I have created a
php.ini
file invar/www/html
containing:The
wp-config.php
file hasdefine( 'WP_DEBUG', true );
.No logfile. No Display.
I'm probably missing a step somewhere.
Also want to confirm that the
DOCKER_LOCAL_IP
forXDEBUG
is supposed to be the "local IP" and not theIPV4
.Sorry for the spam, Chris and all.