[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Log Files
- Subject: RE: [cobalt-users] Log Files
- From: "Sim Ayers" <sim@xxxxxxxxxxxx>
- Date: Tue Jul 10 04:18:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Nick,
I had the same problem with the log files not rotating correctly,
so I wrote a script to:
1: copy the /var/log/httpd/access log file to a new location (current
working
directory)
2: delete the /var/log/httpd/access log file
3: creating a new /var/log/httpd/access log file using touch
4: reset the correct file permissions on the /var/log/httpd/access log file
5: restart the web server using '/etc/rc.d/init.d/httpd restart'
6: split-up the old access log file and append the info to each of the
sites on the server.
This script must be run as root, works on RQ3 and RQ4
You can download the script at:
http://www.perl-studio.com/cobalt/log_fix.txt
Upload the script to /home/sites/site1, chmod 755
login as root cd to /home/sites/site1
then type ./log_fix.cgi
Use at your own risk. The worst it can do is fix the log rotate problem,
and not append the access log hits to the virtual sites on your server.
However, it has worked correctly each time I've run the script on our
RQ3 and RQ4.
Sim Ayers
sim@xxxxxxxxxxxx
http://www.perl-studio.com
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Nicholas Piecora
Sent: Tuesday, July 10, 2001 11:05 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Log Files
Hello,
I am sure this question has come up many times before, but I cannot find a
concrete answer anywhere.
Everyday, at 4:07 AM, I get an email to the root account stating:
"errors occured while rotating /var/log/httpd/access
error running prerotate script --
leaving old log in place"
Now, I am not sure what the problem is here, but I do know that all of my
web stats are screwed up. Currently, my access file is 240Mb large (yeah,
huge, I know).
Here is some information that my assist anyone in helping me find a
solution:
1. Running Cobalt RaQ 4r, out of the box, never installed any patches or
upgrades.
2. Installed mySQL, Interbase, ColdFusion
3. /var/log/httpd is a link to /home/log/httpd
4. Using Virtual Hosting, all on 1 IP Address (currrently 125 virtual Sites
on this RaQ)
If there is any other information you might need, please let me know
You can also email me directly at nick@xxxxxxxxxxxxxxxxxxxx
Thank you for any assistance
Nick
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users