Networking Forums

Networking Forums > Network Hardware > Home Networking > Changing Apache Log Location?

Reply
Thread Tools Display Modes

Changing Apache Log Location?

 
 
Steven
Guest
Posts: n/a

 
      09-03-2004, 05:29 PM
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


 
Reply With Quote
 
 
 
 
Rob Morley
Guest
Posts: n/a

 
      09-03-2004, 05:40 PM
In article <(E-Mail Removed)>, "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
"
 
Reply With Quote
 
Steven
Guest
Posts: n/a

 
      09-03-2004, 08:56 PM

"Rob Morley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) t...
> In article <(E-Mail Removed)>, "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


 
Reply With Quote
 
Chris Lloyd
Guest
Posts: n/a

 
      09-03-2004, 09:43 PM
Steven wrote:
> "Rob Morley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) t...
>
>>In article <(E-Mail Removed)>, "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
>
>

This should work

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

You need to use double quotes for it to work


Chris
 
Reply With Quote
 
Steven
Guest
Posts: n/a

 
      09-03-2004, 10:40 PM

"Chris Lloyd" <lloyd101@[no-spam]blueyonder.co.uk> wrote in message
news:Uz5_c.1035$(E-Mail Removed)...
> Steven wrote:
>> "Rob Morley" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) t...
>>
>>>In article <(E-Mail Removed)>, "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
>>
>>

> 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


 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP WEP Key location tomd Wireless Networks 1 10-27-2007 10:47 AM
Location, location, location Tracey Wireless Networks 2 02-17-2007 07:37 PM
Changing Location of Offline Files folder Justin Wireless Networks 0 05-16-2005 02:28 PM
location of AP ggewrvgn245234 Wireless Internet 2 11-01-2004 10:02 PM
Windows can't see Apache on Linux machine when in one location, can in other. Linux PC can see server in both locations. Agent X Linux Networking 9 07-12-2004 05:17 PM



1 2 3 4 5 6 7 8 9 10 11