error.log files are empty

Discussion in 'General' started by autogun, Dec 12, 2010.

  1. autogun

    autogun New Member

    Hello,

    I've 2 websites im hosing on my ISPConfig setup which I followed "The Perfect Server - Debian Lenny".

    While working on a website, I noticed my error.log file is empty.
    Code:
    (/var/www/xxx.com/log)-(3 files, 12Kb)--> ls -la
    total 12
    drwxr-x--x 2 root root    4096 2010-12-12 12:02 .
    drwxr-xr-x 5 root root    4096 2010-12-09 12:46 ..
    -rw-r--r-- 1 root root    2624 2010-12-12 12:33 20101212-access.log
    lrwxrwxrwx 1 root root      19 2010-12-12 12:02 access.log -> 20101212-access.log
    -rw-r--r-- 1 web1 client1    0 2010-12-09 01:55 error.log
    I've checked the xxx.com.vhost file and it has the following entry
    ErrorLog /var/log/ispconfig/httpd/xxx.com/error.log

    So I followed this path and the file seems to be empty
    Code:
    (/var/log/ispconfig/httpd/xxx.com)-(3 files, 12Kb)--> ls -la
    total 12
    drwxr-x--x 2 root root    4096 2010-12-12 12:02 .
    drwxr-xr-x 5 root root    4096 2010-12-09 12:46 ..
    -rw-r--r-- 1 root root    2624 2010-12-12 12:33 20101212-access.log
    lrwxrwxrwx 1 root root      19 2010-12-12 12:02 access.log -> 20101212-access.log
    -rw-r--r-- 1 web1 client1    0 2010-12-09 01:55 error.log
    
    I'd like to have error.log file for debugging, can you please suggest how to proceed?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    If the file is empty, it means everything's ok (no errors). :)
     
  3. autogun

    autogun New Member

    Hi falko,

    Thank you very much for answering.

    In my case, I wanted PHP errors to be printed into error.log.

    Had to set log_errors = On in php.ini and reload Apache configurations.

    Did the trick!
     

Share This Page