LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Thread Tools
Old 12-30-2004, 01:01 PM   #1
nikonos
LQ Newbie
 
Registered: Dec 2004
Posts: 3
Thanked: 0
Apache logs empty


[Log in to get rid of this advertisement]
I have Redhat 9. My access_log and error_log is empty.

Syslog (message, secure, etc.) work ok.

Any idea?

Regards,

Miha
nikonos is offline     Reply With Quote
Old 12-30-2004, 09:21 PM   #2
tim1235
Member
 
Registered: Aug 2004
Location: Melbourne, Australia
Distribution: fc5/Gentoo
Posts: 57
Thanked: 0
Check your apache configuration file (/etc/httpd/conf/httpd.conf - may be a different location)

Look for the lines:

ErrorLog - filename
CustomLog - filename

Check the filenames to see what apache is actually using, also check the ServerRoot directive to see the base directory that apache is using.


i.e

ServerRoot /etc/httpd
ErrorLog log/error_log

Then the file would be in /etc/httpd/log/error_log

--
Cheers,

t

Last edited by tim1235; 12-30-2004 at 09:22 PM..
tim1235 is offline     Reply With Quote
Old 12-31-2004, 01:40 AM   #3
nikonos
LQ Newbie
 
Registered: Dec 2004
Posts: 3
Thanked: 0

Original Poster
logs

I have some virtual domains and everything works ok before I try to install new version of apache server. I think after that my apache access_log is make empty. Date and time of logs change ok (looks ok), but nothing is in log file. (Sorry for my bad English).

Some things from my httpd.conf
...

ErrorLog /var/log/httpd/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access_log combined


NameVirtualHost xxx.xx.xxx.xx:80


<VirtualHost xxx.xx.xxx.xx:80>
ServerName virtual1.net
ServerAlias www.virtual1.net
DocumentRoot /home/virtual1/html
ErrorLog /home/virtual1/logs/error_log
CustomLog /home/virtual1/logs/access_log combined

<VirtualHost xxx.xx.xxx.xx:80>
ServerName virtual2.net
ServerAlias www.virtual2.net
DocumentRoot /home/virtual2/html
ErrorLog /home/virtual2/logs/error_log
CustomLog /home/virtual2/logs/access_log combined
.....

Regards,

Miha
nikonos is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache looks empty... ebasi Linux - Software 2 08-05-2004 01:11 AM
Apache, php auto parameter variable empty lanzdale Programming 2 09-04-2003 06:05 PM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 05:49 PM
apache is writing empty logs ocularbob Linux - Software 1 07-03-2003 03:26 AM
need script to empty logs drobson Linux - General 1 06-04-2001 08:44 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration