0

I'm currently creating a web application through linux OS (debian), using php7, codeIgniter 3, Nginx and Mysql.

Few months ago, all my PHP errors used to be reported in the default nginx log error (located at : /var/log/nginx/)

But recently, I have configured CodeIgniter in purpose to report those errors inside the folder of my application.

It seemed to work, because I noticed that my current errors were repported in this new log file. However, "some" errors don't seem to be reported. For example, I have a form in my web application, running aswell with Javascript (ajax use). Once I send the form, I can notice in my browser's console an Error 500 (internal server error). However, this error is not reported in my error log file ! (and I already checked in the former log file belonging to Nginx, there's nothing too)

What am I supposed to do ?

Thanks you.

gZ Fab
  • 91
  • 1
  • 11
  • You woudn't expect Codeigniter to log internal server errors as it's not running when that occurs. This might lead you in the right direction. http://stackoverflow.com/questions/27452528/nginx-php-fpm-not-logging-500-error-anywhere – TimBrownlaw Jan 28 '17 at 17:30
  • Ok, I applied modifications in my php.ini file (display_errors = on) but nothing seem to change. Also, I have added in my nginx configuration (/etc/nginx/sites-available/...) a specific error log file with level "warn". Unfortunately, the 500 error is still not logged :/ – gZ Fab Jan 28 '17 at 18:36
  • this may help , although it's for apache2 , http://stackoverflow.com/a/20511956/2359679 – hassan Jan 28 '17 at 20:45
  • I applied those modifications too, still no error logged :/ thank you... – gZ Fab Jan 29 '17 at 12:51

0 Answers0