Add support for subdirectories under wordpress.

The following is an excerpt.

Open your .htaccess file in webroot directory. nano .htaccess -w Find the following line. RewriteRule . /index.php [L] Replace it with the following line. RewriteRule ./ /index.php [L] Thats it !

Let nagios run binary as root under nrpe (non tty)

The following is an excerpt.

Enter edit mode for sudoers. visudo Add the following at the bottom. Defaults:nagios !requiretty nagios ALL = NOPASSWD: /usr/sbin/exim And thats that. Some explanation. Normally   defaults requiretty  is set earlier

Add new harddrive to linux based vm while running

The following is an excerpt.

Scan for new disks, change hostX to active controller echo "- - -" > /sys/class/scsi_host/hostX/scan Check if system catched new disk. fdisk -l Add partition to new disk. change sdX with new disk identifier. fdisk