LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2011, 03:36 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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.
 
Old 04-26-2011, 10:32 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.

Last edited by frankbell; 04-26-2011 at 10:32 PM. Reason: missplet wrods
 
1 members found this post helpful.
Old 04-27-2011, 03:22 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lampp problem begby Linux - Software 11 10-12-2012 07:01 AM
Using webmin with lampp kmslick Linux - Software 1 10-29-2010 02:55 AM
[SOLVED] How to install LAMPP so it shows up in /opt/lampp anon091 Linux - Newbie 3 09-24-2009 05:13 PM
Lampp on Slackware 13.0 Bller Slackware 20 08-31-2009 02:12 PM
How to create Log messages in /var/log directory ratul_11 Linux - Server 4 03-12-2008 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration