HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   error.log files are empty (http://www.howtoforge.com/forums/showthread.php?t=50475)

autogun 12th December 2010 11:44

error.log files are empty
 
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?

falko 13th December 2010 14:31

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

autogun 13th December 2010 16:05

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!


All times are GMT +2. The time now is 09:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.