All posts in the Uncategorized category

Finding a SPAM Script in the Hosted Website.

Published December 12, 2016 by Siva

Linux Malware Detect (http://www.rfxn.com/projects/linux-malware-detect/) installation is quite easy :).

download via the link, http://www.rfxn.com/downloads/maldetect-current.tar.gz.

Unzip the file # tar zxvf maldetect-current.tar.gz
change the directory to extracted one.

sudo ./install.sh

which will install the scanner to your system. To perform the scanning itself you are to run

maldet -a

Eg: maldet -a /var/www/html

-a option here means that you want ro scan all the files.
Use -r instead to scan only recent ones.

Yout will get an scanned report in screen, use maldet -q to view the reports.

Nice tool.

Thank you

Apache – “Client denied by server configuration” – Resolved

Published January 3, 2014 by Siva

Linux and Windows System Administrators Stuffs

Having problems with displaying your site and getting error 403 in your web-browser?

does the log-file for apache errors contain lines like tis?
“client denied by server configuration: /path/to/files”

Then you probably have denied access to the directory in the httpd.conf file.

Allow access by adding:
<directory /path/to/files>
allow from all

If your are using VirtualHosts then add the directory-block inside the <virtualhost> block.

View original post

DynDNS Client configuration on Linux systems

Published December 16, 2013 by Siva

What is DynDNS:

As you know any domain should be pointed to an IP in order to be seen in browsers. If you don’t have a connection to the internet with static IP (cable, DSL, etc.), then it becomes tedious to set an A record for your domain every time your IP changes. Dynamic DNS is a feature that will allow you to point a domain name to any IP and the changes are almost immediate.

For example, you have a server at home and host a website on your computer. But you don’t have a static IP, that is the IP changes each time you reconnect to the Internet, you can setup Dynamic DNS for the domain.

Download from the below link:



1)   cp ddclient /usr/sbin/
2) mkdir /etc/ddclient
3)  cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
 4)  vi /etc/ddclient/ddclient.conf
  — and change hostnames, logins, and passwords appropriately

Example :

  ## For those using Redhat style rc files and using daemon-mode:
  cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
  ## enable automatic startup when booting
  /sbin/chkconfig –add ddclient
  ## start the first time by hand
  /etc/rc.d/init.d/ddclient start

  ## If you are not using daemon-mode, configure cron and dhcp or ppp
  ## as described below.
use=web, web=checkip.dyndns.com/, web-skip=’IP Address’

# I need to update for my subdomain

Debug :

ddclient -daemon=0 -debug -verbose -noquiet

Cache file location :


Force update:

ddclient –force




—– End —

grub normal.mod not found – Error Fix on Ubuntu

Published December 3, 2013 by Siva

Dear All,

After long time, I am back…As I bit busy with office work, I dont have time to spent.

Recently i faced on issue on ubuntu desktop 12.10. When i boot the system , I got grub normal.mod not found.

To follow the below steps

1) Boot Live CD or USB (Try ubuntu option)
2) It will automatically connect the internet, else please configure network settings as per your infrastructure
3) open terminal > sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update
4) apt-get install -y boot-repair && boot-repair
Press Enter. That’s it, the Boot-Repair window will appear!
5) Select recommended repair option, it will take 5 – 10 mins , then reboot,

Problem resolved.

Import CSV file Into MYSQL DB

Published September 18, 2012 by Siva

System administrators sometime automate CSV file in to MYSQL DB with requested structure.

Login into mysql as root user, And execute the Follwing query with correct your path & tour fileds.
load data local infile ‘/tmp/file.csv’ into table mytable fields terminated by ‘, ‘
lines terminated by ‘\n’

The query load the data from file to mysql talble called mytable.
I assume csv file contain , seperated. For Eg
# cat /tmp/file.csv

Once everything done use cron to automate. to write simple script for automate this.

Apache Error Response Codes & Explanation

Published April 8, 2011 by Siva


Silent Response Codes that signify that a request has been received and is currently being processed.


The request has been completed and the rest of the process can continue.


The user’s request to switch protocols (like from FTP to HTTP) was accepted.


Silent codes that confirm that requests have completed successfully.


Ok — the file which the client requested is available for transfer. This is the response code you want to see all of your users receiving.


When new pages are created by posted form data or by a CGI process, this is confirmation that it worked.


The client’s request was accepted, though not yet processed.


The information contained in the entity header is not from the original site, but from a third party server.


If you click a link which has no target URL, this response is elicited by the server. It’s silent and doesn’t warn the user about anything.


This allows the server to reset any content returned by a CGI.


Partial content — the requested file wasn’t downloaded entirely. This is returned when the user presses the stop button before a page is loaded, for example.


A redirection is occurring from the original request.


The requested address refers to more than one file. Depending on how the server is configured, you get an error or a choice of which page you want.


Moved Permanently — if the server is set up properly it will automatically redirect the reader to the new location of the file.


Found — page has been moved temporarily, and the new URL is available. You should be sent there by the server.


This is a “see other” SRC. Data is somewhere else and the GET method is used to retrieve it.


Not Modified — if the request header includes an ‘if modified since’ parameter, this code will be returned if the file has not changed since that date. Search engine robots may generate a lot of these.


Request is incomplete for some reason.


Bad Request — there is a syntax error in the request, and it is denied.


The request header did not contain the necessary authentication codes, and the client is denied access.


Payment is required. This code is not yet in operation.


Forbidden — the client is not allowed to see a certain file. This is also returned at times when the server doesn’t want any more visitors.


Document not found — the requested file was not found on the server. Possibly because it was deleted, or never existed before. Often caused by misspellings of URLs.


The method you are using to access the file is not allowed.


The requested file exists but cannot be used as the client system doesn’t understand the format the file is configured for.


The request must be authorised before it can take place.


Request Timeout — the server took longer than its allowed time to process the request. Often caused by heavy net traffic.


Too many concurrent requests for a single file.


The file used to be in this position, but is there no longer.


The request is missing its Content-Length header.


A certain configuration is required for this file to be delivered, but the client has not set this up.


The requested file was too big to process.


The address you entered was overly long for the server.


The filetype of the request is unsupported.


Errors have occurred in the server itself.


Internal Server Error — nasty response that is usually caused by a problem in your Perl code when a CGI program is run.


The request cannot be carried out by the server.


Bad Gateway — the server you’re trying to reach is sending back errors.


Temporarily Unavailable — the service or file that is being requested is not currently available.


The gateway has timed out. Like the 408 timeout error, but this one occurs at the gateway of the server.


The HTTP protocol you are asking for is not supported.

2010 in review

Published January 4, 2011 by Siva

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Fresher than ever.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 13,000 times in 2010. That’s about 31 full 747s.


In 2010, there were 23 new posts, growing the total archive of this blog to 59 posts. There were 3 pictures uploaded, taking up a total of 34kb.

The busiest day of the year was September 28th with 104 views. The most popular post that day was How To Create LVM Using pvcreate, vgcreate, lvcreate, and lvextend Commands.

Where did they come from?

The top referring sites in 2010 were google.com, google.co.in, pcproblems.wordpress.com, dray.com.np, and computertrick.wordpress.com.

Some visitors came searching, mostly for pvcreate, clear sendmail queue, redmine migration, sendmail clear queue, and howto pvcreate.

Attractions in 2010

These are the posts and pages that got the most views in 2010.


How To Create LVM Using pvcreate, vgcreate, lvcreate, and lvextend Commands August 2010
1 comment


How to install DNS server on CentOS 5. February 2010
1 comment


Installing Redmine & Redmine Migration Guide June 2009


How to clear sendmail queue June 2009
1 comment


RKHunter Configuration Guide January 2010
1 comment