Apache

By Phil Frilling, 23 September, 2013
A list of useful commands that can be used to help identify a high server load:

Apache POST DOS Attach

  • Check the amount of POST requests to Apache:
    
    /usr/sbin/tcpdump -A -nnn -s0 -l 'dst port 80' | grep -Eo "POST\ /.*"
    
  • Find the culprit on a shared hosting environment:
    
    grep POST /var/www/vhosts/*/statistics/logs/access_log
    
By Phil Frilling, 2 August, 2013

I find myself searching for these commands more often than I should. So, until my mush brain remembers these I'll write them down here.

Archive a directory

tar -zcvf .tar.gz /DIR/You/WANT/TO/ARCHIVE 

Extract .tar.gz file