Category Archives: Security

How to recover deleted apache access log

If you accidentally deleted the apache access log, we can recover before you restart the httpd server.. Steps: First check the pid of the apache service by using the following command [root@proxy

Shutting down interface eth1: Error: Device ‘eth1′ NetworkManager/Devices/1 disconnecting failed: This device is not active

On Centos 6.2, while restarting the network service, I got the following error, # service network restart Shutting down interface eth0:  Device state: 3 (disconnected) [  OK  ] Shutting down interface eth1: 

Copy readonly or partially corrupted partition to New disk

Please check the following URL  This will help us to copy one readonly or partially corrupted partition(even one partition is not enough) to another new harddisk of same as primay and copy

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

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.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.