24

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?

pitachip
  • 965
  • 3
  • 7
  • 24

3 Answers3

52

in terminal, have you tried

cat /var/log/apache2/error_log
patrickmdnet
  • 3,332
  • 1
  • 29
  • 34
  • 1
    Thanks 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
  • 9
    On OSX `/var`, `/etc`, and `/tmp` are symlinked to `/private/var`, `/private/etc`, and `/private/tmp`. – Dave Jan 28 '15 at 16:58
-1

Try:

cat /private/var/log/apache2/error_log

M. Nashath
  • 107
  • 1
  • 4