Finding the PHP error logs

Events happening in the community are now at Drupal community events on www.drupal.org.
zeropaper's picture

Hi,

I am facing a WOS when I run a Drupal6 site with a "very unstable" module and would like to know what the error(s) are.
But I can't find anything in the Drupal log (watchdog) and in the /var/log/php, every log files only contain: "rotate"

ls -shl /var/log/php
total 20K
4.0K -rw-r--r-- 1 root root 7 Mar 21 13:10 error_log_52
4.0K -rw-r--r-- 1 root root 7 Mar 21 13:10 error_log_53
4.0K -rw-r--r-- 1 root root 7 Mar 21 13:10 error_log_cli
4.0K -rw------- 1 root root 7 Mar 21 13:10 php-fpm-error.log
4.0K -rw------- 1 root root 7 Mar 21 13:10 php-fpm-slow.log

Did I missed something?

Comments

as I know, the error log will

bennos's picture

as I know, the error log will only be written when you are in a dev enviroment.

make the sie available with an alias dev.domain.com and all wil be in /var/log/php

Is it not an issue (to behave

zeropaper's picture

Is it not an issue (to behave like that)?
I mean.. logs have their purposes.

Whatever, I'm gonna try your trick and thanks!

No

omega8cc's picture

It is not connected/related.

The "dev." (note the dot) in the subdomain enables all errors on screen, even if there will be no entries in the error logs on the disk.

Note that error logs are emptied hourly, so it is normal to see there just "rotate" keyword.

Read also: http://omega8.cc/how-to-disable-all-caching-and-aggregation-115

I was looking at some

zeropaper's picture

I was looking at some documentation. Now I know where to find it.
Thanks for the answer and the great work done on Barracuda.

Same even with "dev."

zeropaper's picture

I'm a bit confused..

  1. I created a "dev." domain alias
  2. Go to the page (but the "dev." alias) where the error occurs and get the WSOD
  3. Directly go looking at the logs in /var/log/php

Still the same only the "rotate" word.. did I missed something?

Should it be posted as an issue?

Nevermind

zeropaper's picture

I got the problem...

The screen was not completely blank... something was returned (a nice error stack) but the HTML is so screwed that it is "visible".

All the best and thanks again.

Why error logs are purged hourly

omega8cc's picture

Because it is possible to get your disk full (especially when it is a SSD based server) in a very short time, when there are some error loops. We have experienced just that a few times in a past, hence this purge action built-in in Barracuda by default now.

BOA

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: