Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Mar 2002
    Location
    Sacramento, California, USA
    Posts
    509
    Thanks
    4
    Thanked 1 Time in 1 Post
    I'm using Apache 2.2 under Windows as a local host.

    I have a subdirectory in my document directory which belongs to a project that I just finished. I'll call it httpd/xyz. When I tried to archive it I was unable to move some of the files. I found that a directory named httpd/xyz/stats/logs contained a half dozen files with names like ex20091015000002-73.161.103.12.log. All of these files appear to be access logs. Apache keeps all of them open as long as it is running, but has not modified them since last October (about the time I started the project).

    I tried shutting Apache down, deleting the files, and restarting. Apache failed to start. I had to undelete the files to revive it.

    I looked at httpd.conf, and found one customlog directive, which refers to "logs/access.log". Sure enough, there's an access log at that location, with a current time stamp.

    I can't find anything in httpd.conf which might be telling Apache to open the access files in httpd/xyz/stats/logs. I see no additional configuration files in httpd or httpd/xyz. There's a .htaccess file in httpd/xyz/stats, but it only contains one directive, "Options +Indexes".

    What could be making Apache open these extra files? I want to delete them, but until I can persuade Apache to give them up, I can't.

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,172
    Thanks
    47
    Thanked 981 Times in 911 Posts
    I suspect you have the projects as web sites under Apache. This means Apache will log access.
    Have you deleted the web sites from Apache?

    cheers, Paul

  3. #3
    4 Star Lounger
    Join Date
    Mar 2002
    Location
    Sacramento, California, USA
    Posts
    509
    Thanks
    4
    Thanked 1 Time in 1 Post
    I'm afraid this thread is going to end inconclusively, because when I tried to revisit the problem I found that it had spontaneously disappeared. I no longer had any trouble deleting the files.

    I wish that hadn't happened, because now I can't learn anything about how to avoid the problem or fix it if it recurs. But that's what did happen.

    By "as web sites under Apache," I gather you mean that httpd/xyz is designated as the root directory of a distinct URL, and indeed it is. But I defined several of those, and only this one exhibited a problem.

    Also, it seems odd that Apache would open more than one of a site's access log files at a time, or that it would open one but never write to it. (I observed that these files were time stamped from about the inception of the project, almost a year ago.) Something more than is happening than you said, or something different.

    At this point, though, we're unlikely ever to know what it was.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •