Recently (today) I was trying to find the PHP error log in the docker system. There is not one. So, I set out to create an error log by logging into the docker.
sudo docker exec -it standard_openemr_1
I checked the /var/log/apach2 folder for the error log. The error log that is there is a system error long with no PHP errors listed anywhere. This was disheartening because I really depend on the PHP error log to help guide if there is a technical issue it can point out.
So, I looked for the php.ini file. I found several. I edited them all to place the php_errors.log in the /var/log/apache2 folder. It didn’t work. The log file is not being written to.
In searching the web some more, I found that the log files should not be inside the container.
So said @mikesparr
The logs should be streamed out to the OS for storage.
I don’t know docker well enough to make the changes to the system.
Can a php error log be added to the next docker and it be ported out as recommended?