Jump to content

Apache question


maliary

Recommended Posts

 

Thanks businessman332211,

 

Well you can just open your log file,and delete everything out of it.

Like a clean page. Then it'll just start loggin from that point.

 

I need something that works automatically after a certain period of time, say at the end of 30 days. Is this possible, in what language?

Link to comment
https://forums.phpfreaks.com/topic/73489-apache-question/#findComment-375466
Share on other sites

You might have to stop apache before you (re)move the logfile.

 

Your batch file should be something like:

c:\path\to\apache2 stop

copy access_log.txt access_log_$date.txt  (see: http://www.windowsitpro.com/Article/ArticleID/13575/13575.html)

delete access_log.txt

c:\path\to\apache2 start

 

-steve

Link to comment
https://forums.phpfreaks.com/topic/73489-apache-question/#findComment-378526
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.