httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Paxson <>
Subject RE: [users@httpd] Changing Log directory
Date Sun, 23 Nov 2003 17:07:52 GMT
Thanks for the replies!!

Yes, I did recompile Apache after making my change.  I modified <Layout
Apache> and recompiled with this command:

./configure --enable-layout=Apache

I think this is the layout that configure uses by default, but just to make
sure, I declared it.  By the way, this is for httpd-2.0.48.

Here's the layout:

#   Classical Apache path layout.
<Layout Apache>
    prefix:        /usr/local/apache
    exec_prefix:   ${prefix}
    bindir:        ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/bin
    libdir:        ${exec_prefix}/lib
    libexecdir:    ${exec_prefix}/modules
    mandir:        ${prefix}/man
    sysconfdir:    ${prefix}/conf
    datadir:       ${prefix}
    installbuilddir: ${datadir}/build
    errordir:      ${datadir}/error
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs
    manualdir:     ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin
    includedir:    ${prefix}/include
    localstatedir: ${prefix}
--->    runtimedir:    /var/log/apache/logs
--->    logfiledir:    /var/log/apache
    proxycachedir: ${localstatedir}/proxy

Looking at my httpd.conf file I see these config directives:

ErrorLog $/var/log/apache/error_log
CustomLog $/var/log/apache/access_log common

Taking the '$' seems to work.  I can now start my apache web server using
the new log directory without errors.  

Now, this poses another question:

Why does the prefix still get put into the httpd.conf, when I explicitly
declared it in my config.layout?  This maybe one of those questions, that
never get answered.  

In the mean time, IT WORKS!  Thanks so much for everyone's help!


-----Original Message-----
From: Carsten P. Gehrke
Sent: 11/23/2003 12:06 PM
Subject: Re: [users@httpd] Changing Log directory

At 08:35 23-11-03, you wrote:

>I need to change the log directory for my Apache web server.  I've set
>a separate drive with it's own controller to increase performance for
>logs, and have mounted it as /var/log.
>How can I properly change my /usr/local/apache/logs to that 
>directory?  I've modified my 'config.layout' to change the
>to the new log path, but when I try to start up Apache:
>[Sun Nov 23 11:43:52 2003] [error] (2)No such file or directory: could
>open transfer log file /usr/local/apache/$/var/log/apache/access_log.
>Unable to open logs
>I have no idea why it still places the {prefix} into the path.  I even 
>changed the runtimedir to use this location as well, just as a 
>guess.  What did I do wrong?
>Huge thanks in advance!!

BTW, it would help if you posted the snippet of config.layout that you 
actually changed.  The $ in the path looks odd...

Carsten Gehrke     LFS No.: 190    using Linux since kernel 0.98       

The official User-To-User support forum of the Apache HTTP Server
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message