How to access apache error log in a Dokku PHP container

Posted December 16, 2015 3.9k views

I’m trying to configure my first Dokku container and I am a little bit confused.
My PHP app that works perfectly on another server returns some error, but I don’t know where I can find the error description.
From my browser, I only see “505 Internal Server Error”.
I suppose that the cause can be a wrong connection to the DB server, or maybe something wrong in the .htaccess file (this will be the topic of another question), but without having access to the error logs it is very hard for me to understand what I did wrong.
Where are Apache’s error log in my Dokku PHP container? There is a better way to debug this kind of errors?
Thank you in advance,

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Using the command dokku logs apache should show the logs you’re looking for. You can also say dokku logs apache -t to get a live tail.