Page 1 of 1

Log Access Apache

PostPosted: 25. April 2018 14:01
by albinoed
Hello, I installed Xampp and I would like to know how I do manage the apache log file, my log file is 50 MB and in the future I will have problems, it is possible to delimit a size and after reaching the size, the log file auto recycle?
Another question how do I log file to register the network user who accesses a page in PHP?
Thank you !

Re: Log Access Apache

PostPosted: 26. April 2018 11:05
by Nobbie
albinoed wrote: it is possible to delimit a size and after reaching the size, the log file auto recycle?


I dont know for Windows (i do not recommend Apache under Windows anyway, I prefer Linux), but for Linux there is a tool called "logrotate" (Google!). Maybe there is something similar for Windows.

albinoed wrote: Another question how do I log file to register the network user who accesses a page in PHP?


I do not understand that, sorry.

Re: Log Access Apache

PostPosted: 26. April 2018 11:06
by Altrea
logrotate is available as Apache Module from ApacheLounge