Question

Accessing My Error Logs

Posted April 18, 2017 25.9k views
PHP LAMP Stack Ubuntu 16.04

My code works fine in my local environment but when i push to DO. It doesn’t. How do i access my error logs in ubuntu 16

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.

1 answer

@iamkarsoft

The majority of your log files are going to be located within /var/log.

For example, Apache error logs would be /var/log/apache2/error.log. Others will be within the log directory unless you’ve configured custom log locations.

Submit an Answer