How to access apache error log in a Dokku PHP container

December 16, 2015 1.1k views
Dokku PHP Ubuntu

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,

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.

Have another answer? Share your knowledge.