Enabling mod_rewrite on Apache

To enable the mod_rewrite module:

LoadModule      rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

To enable for  specific <Directory> entry:

RewriteEngine On

To specify a rewrite pattern:

RewriteRule matchpattern rewriteto

Enabling SMART monitoring for your harddrives

Install: sudo apt-get install smartmontools

List SMART status, whether enabled:
sudo smartctl -i /dev/sda (change drive device here)

Run test for a drive:
smartctl -t long /dev/sda

You can view a drive’s test statistics by typing:
smartctl -l selftest /dev/sda

To display detailed SMART information for an IDE drive, type:
sudo smartctl -a /dev/hda

To display detailed SMART information for a SATA drive, type:
sudo smartctl -a -d ata /dev/sda