I am having trouble with serving up my rails app on a remote computer after upgrading from Rails 3.0 to 3.1. So I want to take a look at what exactly is going wrong when Apache attempts to start up my app and it fails. How can I find the errors that Apache (or maybe Passenger?) is throwing via the Terminal?
Asked
Active
Viewed 4.6k times
3 Answers
52
in terminal, have you tried
cat /var/log/apache2/error_log

patrickmdnet
- 3,332
- 1
- 29
- 34
-
1Thanks so much! I saw that this path for the location of the error log is in the httpd.conf file--just in case this isn't the path for everyone. – pitachip Jan 02 '13 at 00:11
-
If you just want to look at the last few lines of the log use `tail /var/log/apache2/error_log` instead. The error log tends to get bigger/longer with time. – victmo May 28 '14 at 23:29
2
only to complemente the others answers, I'm using the version 10.9.3 and to me, the address is:
/private/var/log/apache2

Maciel Escudero Bombonato
- 1,208
- 18
- 19
-
9On OSX `/var`, `/etc`, and `/tmp` are symlinked to `/private/var`, `/private/etc`, and `/private/tmp`. – Dave Jan 28 '15 at 16:58