Forum Moderators: phranque
I thought I would erase my access_log file to start fresh so I renamed the old one and created a new one and CHMOD'd it to 777. For some reason though Apache won't write to the access_log file. Even after I deleted the new file and renamed the old file back to its original filename of access_log it still wont write to even the old filename.
Can anyone help me out?
Thanks in advance for your help!
Wes
For instance, really strange things can happen if you gzip an open file; the application will continue to write to the file as though it were uncompressed. oy. =) As another extreme example, if you delete a file from the filesystem, and the application continues to write to the file descriptor for a REALLY long time, your disk will fill up. I mean, data's being written, right? However, if you search for disk for large files, you won't find the one that filled your disk, 'cause you deleted it. Once you bounce the application with that file descriptor open, *poof*. All your disk space comes back. =)
Note that you can see all the files that a given application has open using 'lsof' (available in source for from ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/, or (for linux/*bsd) in package form from your local package/ports respository.