How to access apache error log in a Dokku PHP container

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, Simone

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.