A Broadband and ADSL forum. BroadbanterBanter

Welcome to BroadbanterBanter.

You are currently viewing as a guest which gives you limited access to view most discussions and other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today.

Go Back   Home » BroadbanterBanter forum » Newsgroup Discussions » uk.comp.home-networking (UK home networking)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

uk.comp.home-networking (UK home networking) (uk.comp.home-networking) Discussion of all aspects of computer networking in the home, regardless of the platforms, software, topologies and protocols used. Examples of topics include recommendations for hardware or suppliers (e.g. NICs and cabling), protocols, servers, and specific network software. Advertising is not allowed.

Changing Apache Log Location?



 
 
Thread Tools Display Modes
  #1  
Old September 3rd 04, 07:29 PM posted to uk.comp.home-networking
Steven
external usenet poster
 
Posts: 3
Default Changing Apache Log Location?

Hi, I have just set up Apache 2.0.5.0 on a local pc, and was wondering if
someone might be able to tell me where in the configuration file I need to
be editing to save the 'access log' to a different location than the
default. The log is currently saved at the default location. I need the
log to be saved at

F:/server/log/

Can I instruct apache to save the log at this location without having to
save other files to this location too?

What do I need to add and to where in the config file to achieve this...?

T.I.A Steven


  #2  
Old September 3rd 04, 07:40 PM posted to uk.comp.home-networking
Rob Morley
external usenet poster
 
Posts: 1,379
Default Changing Apache Log Location?

In article , "Steven" steven54904
@mail2me.com says...
Hi, I have just set up Apache 2.0.5.0 on a local pc, and was wondering if
someone might be able to tell me where in the configuration file I need to
be editing to save the 'access log' to a different location than the
default. The log is currently saved at the default location. I need the
log to be saved at

F:/server/log/

Can I instruct apache to save the log at this location without having to
save other files to this location too?

What do I need to add and to where in the config file to achieve this...?

The config file is self-documented - it contains stuff like

"
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32),
the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "E:/Program Files/Apache Group/Apache2" will be
interpreted by the
# server as "E:/Program Files/Apache Group/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
"

and

"
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a VirtualHost
# container, they will be logged here. Contrariwise, if you *do*
# define per-VirtualHost access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog logs/access.log common
"
  #3  
Old September 3rd 04, 10:56 PM posted to uk.comp.home-networking
Steven
external usenet poster
 
Posts: 3
Default Changing Apache Log Location?


"Rob Morley" wrote in message
t...
In article , "Steven" steven54904
@mail2me.com says...
Hi, I have just set up Apache 2.0.5.0 on a local pc, and was wondering
if
someone might be able to tell me where in the configuration file I need
to
be editing to save the 'access log' to a different location than the
default. The log is currently saved at the default location. I need the
log to be saved at

F:/server/log/

Can I instruct apache to save the log at this location without having to
save other files to this location too?

What do I need to add and to where in the config file to achieve this...?

The config file is self-documented - it contains stuff like

"
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32),
the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "E:/Program Files/Apache Group/Apache2" will be
interpreted by the
# server as "E:/Program Files/Apache Group/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
"

and

"
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a VirtualHost
# container, they will be logged here. Contrariwise, if you *do*
# define per-VirtualHost access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog logs/access.log common
"


Hi Rob... I have already read the info in there and as I interpret it, my
entry should read:

CustomLog e:/ftp server/access.log common

Unfortunately this doesn't work....
The server responds on startup with 'Error' and shuts down.

I want the access log to be stored on e:/ftp server/access.log

Am I doing something wrong?

Thanks
Steven


  #4  
Old September 3rd 04, 11:43 PM posted to uk.comp.home-networking
Chris Lloyd
external usenet poster
 
Posts: 11
Default Changing Apache Log Location?

Steven wrote:
"Rob Morley" wrote in message
t...

In article , "Steven" steven54904
says...

Hi, I have just set up Apache 2.0.5.0 on a local pc, and was wondering
if
someone might be able to tell me where in the configuration file I need
to
be editing to save the 'access log' to a different location than the
default. The log is currently saved at the default location. I need the
log to be saved at

F:/server/log/

Can I instruct apache to save the log at this location without having to
save other files to this location too?

What do I need to add and to where in the config file to achieve this...?


The config file is self-documented - it contains stuff like

"
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32),
the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "E:/Program Files/Apache Group/Apache2" will be
interpreted by the
# server as "E:/Program Files/Apache Group/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
"

and

"
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a VirtualHost
# container, they will be logged here. Contrariwise, if you *do*
# define per-VirtualHost access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog logs/access.log common
"



Hi Rob... I have already read the info in there and as I interpret it, my
entry should read:

CustomLog e:/ftp server/access.log common

Unfortunately this doesn't work....
The server responds on startup with 'Error' and shuts down.

I want the access log to be stored on e:/ftp server/access.log

Am I doing something wrong?

Thanks
Steven


This should work

CustomLog "e:/ftp server/access.log" common

You need to use double quotes for it to work


Chris
  #5  
Old September 4th 04, 12:40 AM posted to uk.comp.home-networking
Steven
external usenet poster
 
Posts: 3
Default Changing Apache Log Location?


"Chris Lloyd" wrote in message
...
Steven wrote:
"Rob Morley" wrote in message
t...

In article , "Steven" steven54904
says...

Hi, I have just set up Apache 2.0.5.0 on a local pc, and was wondering
if
someone might be able to tell me where in the configuration file I need
to
be editing to save the 'access log' to a different location than the
default. The log is currently saved at the default location. I need
the
log to be saved at

F:/server/log/

Can I instruct apache to save the log at this location without having to
save other files to this location too?

What do I need to add and to where in the config file to achieve
this...?


The config file is self-documented - it contains stuff like

"
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32),
the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "E:/Program Files/Apache Group/Apache2" will be
interpreted by the
# server as "E:/Program Files/Apache Group/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
"

and

"
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a VirtualHost
# container, they will be logged here. Contrariwise, if you *do*
# define per-VirtualHost access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog logs/access.log common
"



Hi Rob... I have already read the info in there and as I interpret it, my
entry should read:

CustomLog e:/ftp server/access.log common

Unfortunately this doesn't work....
The server responds on startup with 'Error' and shuts down.

I want the access log to be stored on e:/ftp server/access.log

Am I doing something wrong?

Thanks
Steven


This should work

CustomLog "e:/ftp server/access.log" common

You need to use double quotes for it to work


Chris


Thanks ever so much Chris.. You have saved the few hairs I have left on my
head : - )

Amazing what a pair of " " can do!

Thanks Again

Steven


 




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB 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
Modem/router and Filter Location TheScullster uk.telecom.broadband (UK broadband) 3 October 29th 05 01:00 AM
location to exchange helps? desert uk.telecom.broadband (UK broadband) 2 March 9th 05 12:33 AM
IIS vs Apache...???? gerry uk.comp.home-networking (UK home networking) 9 September 7th 04 09:15 PM
Does location detrmine ADSL 'quality' ? Clive uk.telecom.broadband (UK broadband) 3 July 15th 04 07:49 PM
Using Freeserve Broadband from more than one location? Fred Finisterre uk.telecom.broadband (UK broadband) 5 January 16th 04 11:14 PM


All times are GMT +1. The time now is 06:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.Content Relevant URLs by vBSEO 2.4.0
Copyright 2004-2019 BroadbanterBanter.
The comments are property of their posters.