Category Archives: Services

Recovering data from a corrupted partition

Assume /dev/sdb7 ( say the old home partition ) is the dead partition from which we want to recover data. This is the case where old /home partition is corrupted so that

Good Exim Commands

1) Print a count of the messages in the queue: root@localhost# exim -bpc 2) Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): root@localhost# exim -bp

Delete emails of patricular email adderss which are in the email queue

Execute following command to delete emails of particular email address from the queue. exiqgrep -ir “” | xargs -n1 exim -Mrm Execute following command to delete emails of particular domain address from

Hotlink protection: How-To prevent people from stealing your images

Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where is your domain.

Repairing corrupted mysql database

Please follow the following steps to repair the database:Login to server with root access Stop mysql using following command /etc/init.d/mysql stop Run following command to check all teh tables in teh database