LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
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, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,640
Blog Entries: 17

Rep: Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256
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
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 rjo98 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 03:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration