Where are the Apache logs located?



By default, Apache logs in a Cloud9 workspace are stored in ~/lib/apache2/log or in ~/php_errors.log.

Writing a PHP App

This doesn’t appear to be the case anymore. There is no apache2 in my /lib directory.

I am touching the log w/ error_log(), but can’t find the log I’m touching lol.


This might have changed since we updated the standard version of PHP installed in workspaces. Thanks for your comment in this other thread about how to find the Apache logs.

Basically, if the paths mentioned in this thread doesn’t have logs for you then add a call to phpinfo() to one of your PHP files and then look at the output. It should have an entry for error_log that will tell the path of your errors log.