Monthly Archives: October 2011

Using IP Tables to quickly block an IP address

To block an offending (DOS/Spam/Password hacking attempts etc) IP address from connecting to your server, use iptables. xx.xx.xx.xx is ip address of remote. iptables -A INPUT -s xx.xx.xx.xx -j DROP To undo: iptables -D INPUT -s xx.xx.xx.xx -j DROP

Posted in iptables Tagged with: , ,

Apache SSL won’t start – make_sock: could not bind to address 0.0.0.0:443

Apache SSL won’t start with following error message: … waiting (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down It would be nice to have Apache2 state, in plain english, “Sorry, that

Posted in apache, linux Tagged with: , ,

Running PNGCrush on a recursive directories

One easy way of reducing website load time is by optimizing your images, which is what PNGCrush does. PNG graphics are often more bloated than they need to be so using PNGCRUSH should be obvious. Basic usage flags don’t allow for recursive

Posted in bash, compression, linux Tagged with: , , ,