Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.