Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th October 2005, 17:46
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default question about access.log from apache2

hi guys,

I found/var/log/apache2 which contains recent error.log but no access.log only an old version.

shouldn't it be there? I had a look inside my /etc/apache2/apache2 cfg file and found donly the logging for ispconfig is defined. Is that normal that I have to define it manually?

how would the line look to add an access.log for all the apache2 traffic ? I see the line for ispconfig log file is using cronolog, can I just copy that and modify the location (target) ?
Reply With Quote
Sponsored Links
  #2  
Old 24th October 2005, 18:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You could use
Code:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /var/log/apache/access.log combined
in your main Apache configuration (you have to restart Apache after your changes).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th October 2005, 18:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Originally Posted by Tenaka
shouldn't it be there? I had a look inside my /etc/apache2/apache2 cfg file and found donly the logging for ispconfig is defined. Is that normal that I have to define it manually?
Why logging the traffic twice when ISPConfig already loggs the hits and splits them on a per vhost basis? If your server gets more traffic its not a good idea to burden apache with more logs then absolutely nescessary.
Reply With Quote
  #4  
Old 24th October 2005, 20:20
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

till you are right, I had the same idea but I was away and the post was posted. remember I asked you about the same thing in this post http://www.howtoforge.com/forums/showthread.php?t=825 because I wanted to run webalizer on the whole serevr access log; I guess I was just shocked not to find the apache logs where I was expecting them ;-) of course I can use the logs generated for ispconfig
Reply With Quote
  #5  
Old 9th November 2005, 00:08
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

am I right that there is no central logfile? I need to point a tool to the logfile and I need to enter a name. If the logfile would always have the same name and just get rotated weekly or daily or whatever that would be fine but it seems that the logfile always has the date appended, is that right?
Reply With Quote
  #6  
Old 9th November 2005, 09:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

The central logfile should be /var/log/apache/access.log or /var/log/httpd/access.log...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 13th November 2005, 11:47
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

in /var/log/httpd/ there are only the log files from/for ISPcfg which are already split for each day and in /var/log/apache/ there is an access.log which is 0-sized.
Also I don't know where this file comes from as there is only one directive in the apache2 cfg file telling it to create the ispcfg logfile...
so I need to tell apache2 to create one, right?
Reply With Quote
  #8  
Old 13th November 2005, 13:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
 
Default

Ify you cabt work withthe splitted logfiles from ISPConfig yo will have to create your oen logfile. Dont forget to rotate it
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unistalled but can't run apache2 on Ubuntu 5.0.4 chloe Installation/Configuration 6 23rd October 2005 14:35
Where to Start with Apache2? Vorlon Server Operation 2 20th October 2005 01:12
Small question misterm Installation/Configuration 1 18th October 2005 13:07
ISPconfig question AngelDrago Installation/Configuration 2 26th September 2005 18:40
Newbie question thedude General 2 15th August 2005 14:38


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


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