LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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
  Search this Thread
Old 12-30-2004, 01:01 PM   #1
nikonos
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Apache logs empty


I have Redhat 9. My access_log and error_log is empty.

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

Any idea?

Regards,

Miha
 
Old 12-30-2004, 09:21 PM   #2
tim1235
Member
 
Registered: Aug 2004
Location: Melbourne, Australia
Distribution: fc5/Gentoo
Posts: 57

Rep: Reputation: 15
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.
 
Old 12-31-2004, 01:40 AM   #3
nikonos
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 04-26-2014, 04:09 PM   #4
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 331

Rep: Reputation: 35
Quote:
Originally Posted by nikonos View Post
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
I get this problem, too. Has anyone figured out why?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:52 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration