Report this

What is the reason for this report?

How to access apache error log in a Dokku PHP container

Posted on December 16, 2015

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



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.