moodlehq / moodle-docker

A docker environment for moodle developers
GNU General Public License v3.0
373 stars 244 forks source link

Where are error logs outputs? #205

Closed srssaulo closed 1 year ago

srssaulo commented 2 years ago

webserver does not output errors to apache_log_dir

scara commented 2 years ago

Hi @srssaulo, the PHP on Apache is provided by https://github.com/moodlehq/moodle-php-apache which in turns comes from https://github.com/docker-library/php: read more here.

HTH, Matteo

mattporritt commented 1 year ago

To help people in the future to do less digging: By default Apache is set to output logs to stdout. This means you can view them in the container logs.

So for example if your webserver container was called moodlemaster-webserver-1 running this command from a terminal on the docker host machine will show you the logs: docker logs -f moodlemaster-webserver-1

stronk7 commented 1 year ago

Thanks, @scara & @mattporritt !