LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lampp log directory (https://www.linuxquestions.org/questions/linux-newbie-8/lampp-log-directory-877237/)

anon091 04-26-2011 03:36 PM

lampp log directory
 
I have a small site running in lampp, and the log directory is over 200MB. I'm assuming its ok to delete the log files from that folder once lampp has been stopped as they will be recreated when lampp restarts?

I can always just move them out of that folder and try it, but figured i'd ask in case anyone had any ideas.

There seems to be access_log's, apachestart.log, error_log, httpd.pid, ssl_request_log, ssl_scache.dir and ssl_scache.pag. there is also a cgisock in there, and that's the only one that shows as pink in my putty, whatever that means.

frankbell 04-26-2011 10:32 PM

It should cause no problems.

I would stop the lampp stack, gzip the log files, then restart lampp. It will create new, empty log files.

When I self-hosted my website, I had a script that did this for me every morning at four a. m. local time. It put the gzipped logfiles over on the second hard drive, where I would keep them until I was sure I didn't need them. I would delete them manually every three months or so.

anon091 04-27-2011 03:22 AM

Thanks. I made a copy of everything in that folder except the cgisock, then deleted everything except that file, seems to be ok!

what is that cgisock, and why is it pink in putty?


All times are GMT -5. The time now is 04:50 PM.