How to troubleshoot php-fpm running inside Docker

When having issues with PHP running inside Docker it can be quite hard sometimes to understand what is going wrong there. Here are some hints how to troubleshoot this.

Enable more verbose logging.

This is how my docker-compose.yml looks like:

The most interesting part here is copying www.conf with enabled logging there. This is what you should enable in your www.conf (the file is cut cause it is quite long):

Then re-run the container so in std output you will see more warning/error logging:

Do not forget to disable this verbose logging before releasing your application into production.

Leave a Reply

Your email address will not be published. Required fields are marked *