9

Iv have been trying to find a way on how to find where my php errors log file is stored in. I am using an EC2 Instance, in Amazon AWS running Amazon Linux. Usually, when using MAMP, I get some PHP Warnings and Notices I can see in a php_log file.

I have been looking for the file, and still no luck finding it.

Do you know where I can find the error log (file)?

Thanks a lot!

Cheers.

idelara
  • 1,786
  • 4
  • 24
  • 48

2 Answers2

15

It is in /var/log/httpd/error_log

To debug and see log changes you can do

tail -f /var/log/httpd/error_log
Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
hzak
  • 719
  • 9
  • 18
12

Depending what configuration you use, the errors will either go into the web server error log file, or it will be stored in /var/log/php-fpm/5.6/ (assuming you are using 5.6)

datasage
  • 19,153
  • 2
  • 48
  • 54