Wednesday, June 22, 2005

Apache Dying Weekly – FIXED

by damonp on June 22, 2005

in SysAdmin

Update to Apache Dying Weekly

I ran a full system update via RPM/yum to upgrade most of the packages to latest stable versions last weekend. I was thinking maybe one of the underlying packages was not quite stable on this system for some reason. That didn’t immediately fix the problem.

Last night I rebuilt PHP4.3.11 using the newly updated packages and the system finally stabilized. As rock solid as its brother serving the same forums. Not a hiccup in eighteen hours.

These PHP setups are paired down only running a handful of PHP extensions: MySQL, zlib, sockets and XML. I would hazard a guess that one of those packages was either corrupted or not fully stable on this box.

Popularity: 1%

{ 0 comments }

Find Large Files

by damonp on June 22, 2005

in Snippets

Running out of disk space? Use these shell commands to find where your space is going. Maybe you need to clear out some logs. ;)

Find all files on a system larger than 8000k:

find /$1 -mount -size +8000k -exec ls -sh {} \; | /bin/sort -n

Change 8000k to another limit value, but 8000k seems to work well for me. Only a couple of dozen files to go through.

This one is useful in a crontab to mail the results to any email you specify. I use it weekly on Saturday night so I can go through them on Sunday afternoon.

find /$1 -mount -size +8000k -exec ls -sh {} \; | /bin/sort -n | mail <em>user@domain.com</em>

Popularity: 1%

{ 0 comments }