<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Surgeon</title>
	<atom:link href="http://www.unixsurgeon.com/kb/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Fri, 13 Aug 2010 20:07:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exim Error [ 550 &quot;REJECTED - Bad HELO - Host impersonating ]….</title>
		<link>http://www.unixsurgeon.com/kb/exim-error-550-rejected-bad-helo-host-impersonating-%e2%80%a6.html</link>
		<comments>http://www.unixsurgeon.com/kb/exim-error-550-rejected-bad-helo-host-impersonating-%e2%80%a6.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 20:07:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[550 "rejected-bad helo"]]></category>
		<category><![CDATA[Exim error bad helo]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=104</guid>
		<description><![CDATA[550 “REJECTED – Bad HELO – Host impersonating
If you found this error for any  particular domain say unixsurgeon.com, then first check the mx record for this domain. If the MX record is pointing to a different server, then just remove the domain entry unixsurgeon.com from the /etc/localdomains, And add the same entry in /etc/remotedomains. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>550 “REJECTED – Bad HELO – Host impersonating</strong></p>
<p>If you found this error for any  particular domain say unixsurgeon.com, then first check the mx record for this domain. If the MX record is pointing to a different server, then just remove the domain entry unixsurgeon.com from the /etc/localdomains, And add the same entry in /etc/remotedomains. After that restart the exim service.</p>
<p>    [root@p-root]#  /etc/init.d/exim  stop</p>
<p>    [root@p-root]#  /etc/init.d/exim  start</p>
<p>It will solve your problem. And Other option is  find the following line in exim.conf  and  comment it.</p>
<p>    [root@p-root]#  vi  /etc/exim.conf</p>
<p>    drop<br />
    condition = ${if match{$sender_helo_name}{$primary_hostname}}<br />
    message   = “REJECTED – Bad HELO – Host impersonating [$sender_helo_name]“</p>
<p>======================================================================================</p>
<p>Enjoy Linux !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/exim-error-550-rejected-bad-helo-host-impersonating-%e2%80%a6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent from DDOS</title>
		<link>http://www.unixsurgeon.com/kb/how-to-prevent-from-ddos.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-prevent-from-ddos.html#comments</comments>
		<pubDate>Thu, 12 Aug 2010 21:50:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[DDOS Attacks]]></category>
		<category><![CDATA[ddos-deflate]]></category>
		<category><![CDATA[mod_dosevasive]]></category>
		<category><![CDATA[mod_evasive]]></category>
		<category><![CDATA[SYNFLOOD]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=98</guid>
		<description><![CDATA[How to prevent from DDoS Attacks:-
Implement security features in your server like:
1) DDOS protection using CSF through “SYNFLOOD”.
2) Install apache modules like mod_dosevasive and mod_security in your server.
3) The best,free &#38; open sources solution to protect from DDOs :- http://deflate.medialayer.com/
4) Configure APF and IPTABLES to reduce the DDOS.
Description here :-
1.) DDOS protection using CSF through [...]]]></description>
			<content:encoded><![CDATA[<p>How to prevent from DDoS Attacks:-</p>
<p>Implement security features in your server like:</p>
<p>1) DDOS protection using CSF through “SYNFLOOD”.<br />
2) Install apache modules like mod_dosevasive and mod_security in your server.<br />
3) The best,free &amp; open sources solution to protect from DDOs :- http://deflate.medialayer.com/<br />
4) Configure APF and IPTABLES to reduce the DDOS.</p>
<p>Description here :-</p>
<p><strong>1.) DDOS protection using CSF through “SYNFLOOD”. &amp; Connection tracking :- Please modify these option through CSF<br />
:- </strong><br />
# Enable SYN Flood Protection. This option configures iptables to offer some<br />
# protection from tcp SYN packet DOS attempts. You should set the RATE so that<br />
# false-positives are kept to a minimum otherwise visitors may see connection<br />
# issues (check /var/log/messages for *SYNFLOOD Blocked*). See the iptables<br />
# man page for the correct &#8211;limit rate syntax<br />
SYNFLOOD = Default: 0<br />
SYNFLOOD_RATE = 100/s<br />
SYNFLOOD_BURST = 150</p>
<p># Connection Tracking. This option enables tracking of all connections from IP<br />
# addresses to the server. If the total number of connections is greater than<br />
# this value then the offending IP address is blocked. This can be used to help<br />
# prevent some types of DOS attack.<br />
#<br />
# Care should be taken with this option. It&#8217;s entirely possible that you will<br />
# see false-positives. Some protocols can be connection hungry, e.g. FTP, IMAPD<br />
# and HTTP so it could be quite easy to trigger, especially with a lot of<br />
# closed connections in TIME_WAIT. However, for a server that is prone to DOS<br />
# attacks this may be very useful. A reasonable setting for this option might<br />
# be arround 300.<br />
#<br />
# To disable this feature, set this to 0<br />
CT_LIMIT = Default: 50 (means 50 connections per ip address)<br />
# Connection Tracking interval. Set this to the the number of seconds between<br />
# connection tracking scans<br />
CT_INTERVAL = Default: 30<br />
# Send an email alert if an IP address is blocked due to connection tracking<br />
CT_EMAIL_ALERT = Default: 1<br />
# If you want to make IP blocks permanent then set this to 1, otherwise blocks<br />
# will be temporary and will be cleared after CT_BLOCK_TIME seconds<br />
CT_PERMANENT = Default: 0<br />
# If you opt for temporary IP blocks for CT, then the following is the interval<br />
# in seconds that the IP will remained blocked for (e.g. 1800 = 30 mins)<br />
CT_BLOCK_TIME = Default: 1800<br />
# If you don&#8217;t want to count the TIME_WAIT state against the connection count<br />
# then set the following to &#8220;1&#8243;<br />
CT_SKIP_TIME_WAIT = Default: 0<br />
# If you only want to count specific states (e.g. SYN_RECV) then add the states<br />
# to the following as a comma separated list. E.g. &#8220;SYN_RECV,TIME_WAIT&#8221;<br />
#<br />
# Leave this option empty to count all states against CT_LIMIT<br />
CT_STATES =<br />
# If you only want to count specific ports (e.g. 80,443) then add the ports<br />
# to the following as a comma separated list. E.g. &#8220;80,443&#8243;<br />
#<br />
# Leave this option empty to count all ports against CT_LIMIT<br />
CT_PORTS = 80,443<br />
====================================================<br />
<strong>2) Install apache modules like mod_dosevasive and mod_security in your server= :-</strong></p>
<p>mod_evasive and mod_security modules are used to secure Apache Web Server from DDoS and brute force attacks by implementing web application firewall.</p>
<p>The mod_evasive authoring site (zdziarski.com) states that mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera..</p>
<p>*Note: mod_evasive module has been known to cause problems with frontpage server extensions. If you use frontpage server extension, you should thoroughly test your mod_evasive installation before deploying a production server.</p>
<p># wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz<br />
#tar -xvzf mod_evasive_1.10.1.tar.gz<br />
# cd mod_evasive<br />
# /usr/local/apache/bin/apxs -cia mod_evasive.c<br />
# mv mod_evasive.loT mod_evasive.lo<br />
# /usr/local/apache/bin/apxs -cia mod_evasive.c<br />
# httpd -M|grep evasiv<br />
# vi /etc/httpd/conf/httpd.conf  (edit httpd.conf with the following details)</p>
<p>&lt;IfModule mod_evasive20.c&gt;<br />
DOSHashTableSize   3097<br />
DOSPageCount   2<br />
DOSSiteCount   50<br />
DOSPageInterval   1<br />
DOSSiteInterval   1<br />
DOSBlockingPeriod   600<br />
&lt;/IfModule&gt;</p>
<p># cd /usr/local/apache/modules/<br />
Then download mod_evasive20.so through web and place it in modules directory and change the permission with 755.</p>
<p># /etc/init.d/httpd restart<br />
==================================================================================</p>
<p><strong>3) The best,free &amp; open sources solution to protect from DDOs :- http://deflate.medialayer.com/ :-</strong></p>
<p>(D)DoS Deflate is a lightweight bash shell script designed to assist in the process of blocking a denial of service attack. It utilizes the command below to create a list of IP addresses connected to the server, along with their total number of connections. It is one of the simplest and easiest to install solutions at the software level.</p>
<p>netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>IP addresses with over a pre-configured number of connections are automatically blocked in the server&#8217;s firewall, which can be direct iptables or Advanced Policy Firewall (APF). (We highly recommend that you use APF on your server in general, but deflate will work without it.)<br />
Notable Features :-</p>
<p>* It is possible to whitelist IP addresses, via /usr/local/ddos/ignore.ip.list.<br />
* Simple configuration file: /usr/local/ddos/ddos.conf<br />
* IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds)<br />
* The script can run at a chosen frequency via the configuration file (default: 1 minute)<br />
* You can receive email alerts when IP addresses are blocked.</p>
<p>Installation :-</p>
<p>wget http://www.inetbase.com/scripts/ddos/install.sh<br />
chmod 0700 install.sh<br />
./install.sh</p>
<p>Uninstallation :-</p>
<p>wget http://www.inetbase.com/scripts/ddos/uninstall.ddos<br />
chmod 0700 uninstall.ddos<br />
./uninstall.ddos<br />
===================================================================</p>
<p><strong>4) Configure APF and IPTABLES to reduce the DDOS. :-</strong><br />
Ans :- Please install APF/CSF or iptables to reduce the DDOS ,also an hardware firewall (cisco guard ) also help to mitigate DDOS attacks.</p>
<p>Enjoy Linux&#8230;!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-prevent-from-ddos.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to set cron job in Cpanel</title>
		<link>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:17:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[cron job in cpanel]]></category>
		<category><![CDATA[cron jobs in Cpanel]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=92</guid>
		<description><![CDATA[This tutorial will provide you step-by-step instructions on how to set up a cron job in the cPanel . It will cover both the standard and advanced method.
Standard Method :-
1. At the bottom of the cPanel interface, locate and click the “Cron Jobs” icon.
2. Click on the “Standard” tab.
3. The first option calls for you [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will provide you step-by-step instructions on how to set up a cron job in the cPanel . It will cover both the standard and advanced method.</p>
<p><strong>Standard Method :-</strong></p>
<p>1. At the bottom of the cPanel interface, locate and click the “Cron Jobs” icon.</p>
<p>2. Click on the “Standard” tab.</p>
<p>3. The first option calls for you to enter the email address of where you want the results of the<br />
cron job to be sent. Simply enter the email address in the provided field and move onto the next step.</p>
<p>4. For “Entry 1″ you will see the text “Command to run” with a text box beside. Input the command or path to the script you want to run in the field.</p>
<p>Example :- php -q /home/username/public_html/cron.php</p>
<p>5. Below “Command to run”, there are five options that will allow you the set the time and intervals for your cron job. Those options are listed as follows:</p>
<p>Minute(s)<br />
Hour(s)<br />
Day(s)<br />
Month(s)<br />
Weekday(s)</p>
<p>Once you create the Cron job, a confirmation page will be displayed stating “Cron Updated”.</p>
<p>6. After making the appropriate selections, click the “Save Crontab” button to create the entry. If you elect to reset the changes and go back to the default settings, simply click the “Reset Changes” button.</p>
<p>7. Click the “Go Back” tab and you will be redirected back to the main Cron Job screen.</p>
<p>8. Check your email address to view the results of the cron job.</p>
<p><strong>Advanced Method :-</strong></p>
<p>1. From the main Cron Job screen, click the “Advanced (Unix Style) tab.</p>
<p>2. The first option calls for you to enter the email address of where you want the cron job results to be sent. Simply enter the email address in the provided text box.</p>
<p>3. From there, enter the Minute(s), Hour(s), Day(s), Month(s) Weekday and Command in the provided text boxes.</p>
<p>4. Next, click the “Save Crontab” button to create the entry. If want to the reset the changes and revert back to the default settings, simply click the “Reset Changes” button.</p>
<p>5. A confirmation page will be displayed stating “Cron Updated!” Click the “Go Back” button and you will be redirected back to the main Cron Job screen.</p>
<p>6.) Check your email address to view the results of the cron job.</p>
<p>If you want to benefit from cron jobs and use them effectively, you will need to have some familiarity with Linux commands. This is especially true when creating cron jobs in the Advanced Unix variation. For this reason, it is recommended to inquire within your web host about the files and scripts you want to run before executing them.</p>
<p>Enjoy Linux.. <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cron Job Tutorial</title>
		<link>http://www.unixsurgeon.com/kb/cron-job-tutorial.html</link>
		<comments>http://www.unixsurgeon.com/kb/cron-job-tutorial.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[cron job]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[shedule tasks]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=89</guid>
		<description><![CDATA[What is cron?
Actually its called ‘cron daemon’. Cron is an automatic task machine. You will use it on your Unix or Linux operating system for doing some tasks at specific intervals. If you set the clock and forget the task. The cron daemon runs the work for you.
What is cron tab?
Cron tab  is a [...]]]></description>
			<content:encoded><![CDATA[<p>What is cron?</p>
<p>Actually its called ‘cron daemon’. Cron is an automatic task machine. You will use it on your Unix or Linux operating system for doing some tasks at specific intervals. If you set the clock and forget the task. The cron daemon runs the work for you.</p>
<p>What is cron tab?</p>
<p>Cron tab  is a text file that contains a Cron Job or your scheduled applications information.</p>
<p>On most of Linux distributions crond is automatically installed and entered into the start up scripts. To find out if it’s running do the following command to check crond deamon  is running or not:-</p>
<p>[root@p-root]$ ps aux | grep crond</p>
<p>root              331    0.0   0.7     1124    123  ?     s      Nov11     0:00    crond</p>
<p>p-root     8660    3.9   2.1     1132   345  tty1    s      11:11     0:00    grep   crond</p>
<p>The top line shows that crond is running, and the bottom line is the search we just run.</p>
<p>Crontab file contains the  following informations :-</p>
<p>1:   minutes (Value is 00 – 59. exact minute the cron executes)<br />
2:   hour (Value is 00 – 23. hour of the day the cron executes. 0 means midnight)<br />
3:   day (Value is 01 – 31. day of the month the cron executes)<br />
4:   month (Value is 01 – 12. month of the year the cron executes)<br />
5:   weekday (Value is 00 – 06. day of the week the cron executes. Sunday=0,Monday=1…)</p>
<p>field	 allowed values<br />
	   &#8212;&#8211;	 &#8212;&#8212;&#8212;&#8212;&#8211;<br />
	   minute	 0-59<br />
	   hour		 0-23<br />
	   day of month	 1-31<br />
	   month	 1-12 (or names, see below)<br />
	   day of week	 0-7 (0 or 7 is Sun, or use names)</p>
<p>Examples :-</p>
<p>If you have installed a script in your public_html/ directory called mail.sh.</p>
<p>If you want to run this file each night at 11.30 PM every day:</p>
<p>30 23 * * * /home/username/public_html/mail.sh<br />
30 – represents the minute of cron work<br />
23 – represents the hour of the day<br />
The * represent every day, month, and weekday.</p>
<p>If you want to set the cron job every sunday at midnight 11.30 PM:</p>
<p>30 23 * * 0 /home/username/public_html/mail.sh<br />
0 – represents the Sunday.</p>
<p>If you want the cron job to run at 1:00 and 2:00 A.M:</p>
<p>* 1,2 * * * /home/username/public_html/mail.sh</p>
<p>This runs your cron at 1A.M and 2A.M every day, every month and every week.</p>
<p>If you want to run the above task only from Monday to Friday and at 11.30 P.M:</p>
<p>30 23 * * 1-5 /home/username/public_html/mail.sh</p>
<p>This runs your cron from Monday to Friday and everyday at 11.30 PM.</p>
<p>Multiuser cron :-</p>
<p>As Linux or Unix is a multiuser OS, Some of the applications have to be able to support multiple users, cron is one of these. Each user can have their own crontab file. Which can be created/edited/removed by the command crontab. This command creates an individual crontab file and although this is a text file, as the /etc/crontab is, it should not be edited directly. The crontab file is often stored in /var/spool/cron/crontabs/username (Unix/Slackware etc..) , and /var/spool/cron/username (Redhat , CentOS, Fedora) . But might be kept elsewhere depending on what flavor you are using.</p>
<p>To edit or create your crontab file, use command crontab -e and this will open in editor.</p>
<p>Cron Commands:</p>
<p>crontab filename  Install filename as your crontab file</p>
<p>crontab -e        Edit your crontab file, or create one if it doesn’t already exist.<br />
crontab -l        Display your crontab file.<br />
crontab -r        Remove your crontab file.<br />
crontab -v        Display the last time you edited your crontab file.</p>
<p>For more information please check man page of cron.</p>
<p>====================================================================</p>
<p>Enjoy Linux &#8230; <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/cron-job-tutorial.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install Nagios on Redhat/fedora/CentOS..</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 11:30:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Monitoring Tool]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[free monitoring tool]]></category>
		<category><![CDATA[free monitoring tool for windows & linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[open sources monitoring application]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=86</guid>
		<description><![CDATA[Hi,
Today I was hunting about monitoring tool in linux and found lots of monitoring tools (i.e. Nagios, openNMS, Cacti,Centreon etc..) And I try to install nagios. You can also install nagios by following steps :-
Prerequisites:
   1. Apache
   2. PHP
   3. GCC compiler
   4. GD development libraries
  [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today I was hunting about monitoring tool in linux and found lots of monitoring tools (i.e. Nagios, openNMS, Cacti,Centreon etc..) And I try to install nagios. You can also install nagios by following steps :-</p>
<p>Prerequisites:</p>
<p>   1. Apache<br />
   2. PHP<br />
   3. GCC compiler<br />
   4. GD development libraries<br />
   5. PERL Modules<br />
   6. RRDTOOL</p>
<p>And you can install these packages through yum:-</p>
<p>    [root@p-root]# yum install httpd</p>
<p>    [root@p-root]# yum install php php-mysql php-gd php-ldap php-xml</p>
<p>    [root@p-root]# yum install gd  gd-devel</p>
<p>    [root@p-root]# yum install gcc  glibc  glibc-common libstdc++-devel gcc-c++</p>
<p>    [root@p-root]# yum install install perl-DBI perl-DBD-MySQL</p>
<p>    [root@p-root]# yum install install perl-Config-IniFiles</p>
<p>    [root@p-root]# yum install install rrdtool perl-rrdtool</p>
<p>Now create new nagios user account and give it password….</p>
<p>    [root@p-root]#  useradd  nagios</p>
<p>    [root@p-root]#   passwd nagios</p>
<p>Now create nagcmd group for external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.</p>
<p>    [root@p-root]# groupadd  nagcmd</p>
<p>    [root@p-root]# usermod –a –G  nagcmd nagios</p>
<p>    [root@p-root]# usermod –a –G nagcmd apache</p>
<p>Now download Nagios and Nagios-Plugins :-</p>
<p>    [root@p-root]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz</p>
<p>    [root@p-root]# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz</p>
<p>    [root@p-root]# tar –zxvf nagios-3.2.1.tar.gz</p>
<p>    [root@p-root]#  cd  nagios-3.2.1</p>
<p>    [root@p-root]# ./configure  &#8211; -with-command-group=nagcmd</p>
<p>    [root@p-root]#  make all</p>
<p>    [root@p-root]#  make install</p>
<p>    [root@p-root]# make install-init</p>
<p>    [root@p-root]# make install-config</p>
<p>    [root@p-root]# make install-commandmode</p>
<p>    [root@p-root]# make install-webconf </p>
<p>(it will create nagios web config file in apache conf.d direcotry)<br />
Now create nagiosadmin account for nagios web interface.</p>
<p>    [root@p-root]#  htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</p>
<p>    Password:</p>
<p>    [root@p-root]#  /etc/init.d/httpd  restart</p>
<p>Now install nagios-plugin.</p>
<p>    [root@p-root]# tar –zxvf nagios-plugins-1.4.11.tar.gz</p>
<p>    [root@p-root]# cd nagios-plugins-1.4.11</p>
<p>    [root@p-root]# ./configure  –with-nagios-user=nagios –with-nagio-group=nagios</p>
<p>    [root@p-root]# make</p>
<p>    [root@p-root]# make install</p>
<p>Now you have installed all the required packages and services.<br />
Now start nagios.</p>
<p>    [root@p-root]#  chkconfig  –add nagios</p>
<p>    [root@p-root]#  chkconfig nagios on</p>
<p>Verify your nagios config file.</p>
<p>    [root@p-root]#  /usr/local/nagios/bin/nagios  -v  /usr/local/nagios/etc/nagios.cfg</p>
<p>If there is no error it means your nagios configuration is correct and you can start nagios service.</p>
<p>    [root@p-root]#  /etc/init.d/nagios  start</p>
<p>Now access your nagios web interface :-</p>
<p>    http://localhost/nagios</p>
<p>==============================================<br />
NRPE  Installation and Setup:-</p>
<p>Download and Install NRPE</p>
<p>You may download nrpe from http://www.nagios.org/download/download.php</p>
<p>    [root@p-root~]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz</p>
<p>Extract the Files:</p>
<p>    [root@p-root~]# tar -xzf nrpe-2.12.tar.gz<br />
    [root@p-root~]# cd nrpe-2.12</p>
<p>Compile and Configure NRPE</p>
<p>You need the openssl-devel package installed to compile NRPE with ssl support.  So make sure that open ssl is already installed on the server.</p>
<p>Install NRPE:</p>
<p>    [root@p-root~]# ./configure</p>
<p>    General Options:</p>
<p>    ————————-<br />
    NRPE port: 5666<br />
    NRPE user: nagios<br />
    NRPE group: nagios<br />
    Nagios user: nagios<br />
    Nagios group: nagios</p>
<p>    [root@p-root~]# make all</p>
<p>    [root@p-root~]# make install-plugin</p>
<p>    [root@p-root~]# make install-daemon</p>
<p>    [root@p-root~]# make install-daemon-config</p>
<p>    [root@p-root~]# make install-xinetd</p>
<p>Post NRPE Configuration</p>
<p>Edit Xinetd NRPE entry:</p>
<p>Add Nagios Monitoring server to the “only_from” directive</p>
<p>    [root@p-root~]# vi /etc/xinetd.d/nrpe</p>
<p>    Entry will be like this:-</p>
<p>    service nrpe<br />
    {<br />
    flags           = REUSE<br />
    socket_type     = stream<br />
    port            = 5666<br />
    wait            = no<br />
    user            = nagios<br />
    group           = nagios<br />
    server          = /usr/local/nagios/bin/nrpe<br />
    server_args     = -c /etc/nrpe.conf –inetd<br />
    log_on_failure  += USERID<br />
    disable         = no<br />
    #       only_from       = 127.0.0.1<br />
    }</p>
<p>    only_from = 127.0.0.1 <nagios_ip_address, replace the 127.0.0.1 with the nagios server ip or comment it></p>
<p>Edit services file entry:</p>
<p>Add entry for nrpe daemon</p>
<p>    [root@p-root~]# vi /etc/services</p>
<p>    nrpe 5666/tcp # NRPE</p>
<p>Restart Xinetd and Set to start at boot:</p>
<p>    [root@p-root~]# chkconfig xinetd on</p>
<p>    [root@p-root~]# service xinetd restart</p>
<p>Test NRPE Daemon Install</p>
<p>Check NRPE daemon is running and listening on port 5666:</p>
<p>    [root@p-root~]# netstat -at |grep nrpe</p>
<p>    Output should be:-</p>
<p>    tcp 0 0 *:nrpe *.* LISTEN</p>
<p>    or</p>
<p>    [root@p-root]# netstat -plan | grep 5666</p>
<p>    tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN      15721/xinetd</p>
<p>Check NRPE daemon is functioning:</p>
<p>    [root@p-root]# /usr/local/nagios/libexec/check_nrpe -H localhost</p>
<p>    Output should be NRPE version:</p>
<p>    NRPE v2.12</p>
<p>======================================================================</p>
<p>Enjoy Linux !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Recover lost files after shift+delete</title>
		<link>http://www.unixsurgeon.com/kb/how-to-recover-lost-files-after-shiftdelete.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-recover-lost-files-after-shiftdelete.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 08:59:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[Recovery tool]]></category>
		<category><![CDATA[shift-delete data recovery]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=66</guid>
		<description><![CDATA[Recently by mistake I deleted some useful data. After that I started searching any tool to retrieve my all deleted files. I search various document and tools if any of them recover my files and data. Finally, I find 5 best recovery tool for linux.
They all are OpenSource softwares and licensed under the terms of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently by mistake I deleted some useful data. After that I started searching any tool to retrieve my all deleted files. I search various document and tools if any of them recover my files and data. Finally, I find 5 best recovery tool for linux.</p>
<p>They all are OpenSource softwares and licensed under the terms of the GNU Public Licence(GPL).But I prefered &#8220;TestDisk &amp; PhotoRec&#8221; most,becasue  TestDisk can recover lost partitions and also can make non-booting disks bootable again.PhotoRec can recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures from digital camera memory.PhotoRec can be used on existing partitions, or can be used to recover files on deleted partitions without having to recover the underlying partitions.Both PhotoRec and TestDisk can be run on Linux,DOS, Windows,FreeBSD, NetBSD, OpenBSD, Sun Solaris, and Mac OS X, and, their developers claim, can be compiled and run on most Unix systems.</p>
<p>Data recovery is the process of retrieving data from corrupted or damaged storage media when it cannot be accessed. The storage media in question will often be a hard disk, but it can also be removable media such as CDs, DVDs, Blu-rays, and storage tapes. There are many different reasons why a system administrator may need to use data recovery tools.</p>
<p>At boot up, mainstream Linux distributions perform routine scans to identify and fix any inconsistencies in the file system. A damaged file system might be caused by the computer not shutting down in an orderly fashion, which can occur say in the event of a power cut. However, such routine scans will not detect hardware failure which might exist for a long period without being noticeable to users. Accesses to bad sectors on the media can make the situation worse, and with further usage as well as the passage of time, the media can eventually become unreadable.</p>
<p>A.)    Mondo Rescue   :- 	  Tool for configuring and maintaining network machines<br />
B.)    TestDisk 	          :-      Partition scanner and disk recovery tool<br />
C.)    Safecopy 	          :-      Copy utility ignoring errors<br />
D.)    PhotoRec 	  :-      Digital Picture and File Recovery<br />
E.)    Ddrescue 	           :-     GNU data recovery tool</p>
<p>To Download :-</p>
<p>1. TestDisk <a href="http://www.cgsecurity.org"></a><br />
2. Safecopy </a><a href="http://safecopy.sourceforge.net"></a><br />
3. PhotoRec </a><a href="http://www.cgsecurity.org/wiki/PhotoRec"></a><br />
4. Ddrescue </a><a href="http://www.gnu.org/software/ddrescue/ddrescue.html"></a><br />
5. MondoRescue </a><a href="http://www.mondorescue.org"></a></p>
<p>Enjoy Linux !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-recover-lost-files-after-shiftdelete.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset VTiger 5.0.4 CRM default admin password.</title>
		<link>http://www.unixsurgeon.com/kb/reset-vtiger-5-0-4-crm-default-admin-password.html</link>
		<comments>http://www.unixsurgeon.com/kb/reset-vtiger-5-0-4-crm-default-admin-password.html#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:42:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[Vtiger]]></category>
		<category><![CDATA[VTiger change admin password]]></category>
		<category><![CDATA[vtiger change password]]></category>
		<category><![CDATA[Vtiger CRM]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=61</guid>
		<description><![CDATA[Hi,
Today i am hunting regarding how to reset the default Admin password for Vtiger 5.0.4 Open source CRM Application,because i just forgot password for my admin panel,After half an hour I got the solution and worked perfectly for me.  I am sharing some tricky steps for the same:-
1. Login to the mysql database.
(if you [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today i am hunting regarding how to reset the default Admin password for Vtiger 5.0.4 Open source CRM Application,because i just forgot password for my admin panel,After half an hour I got the solution and worked perfectly for me.  I am sharing some tricky steps for the same:-</p>
<p>1. Login to the mysql database.<br />
(if you have root access of your server then)</p>
<p>[root@p-root]# mysql -u root</p>
<p>2. Using the following commands on mysql command line :-</p>
<p><strong>use &#8216;vtiger_database_name&#8217;;</strong></p>
<p><strong><span style="color: #ff6600;">For versions &lt; 5.0.4 :</span></strong></p>
<p><strong>update vtiger_users set user_password = &#8216;HTy&amp;N9@nSd$RM&#8217; where user_name = &#8216;admin&#8217;;</strong></p>
<p><strong><span style="color: #ff6600;">For versions 5.0.4 or later:</span></strong></p>
<p><strong>update vtiger_users set user_password = &#8216;HTy&amp;N9@nSd$RM&#8217;, crypt_type = &#8221; where user_name = &#8216;admin&#8217;;</strong></p>
<p>This will reset the password to &#8216;admin&#8217; &amp; &#8220;HTy&amp;N9@nSd$RM&#8221; is your new password for login.</p>
<p>Note: Replace &#8216;admin&#8217; with whichever user_name you want to reset the password for.</p>
<p>Enjoy Linux&#8230; <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/reset-vtiger-5-0-4-crm-default-admin-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDoS Attack.</title>
		<link>http://www.unixsurgeon.com/kb/ddos-attack.html</link>
		<comments>http://www.unixsurgeon.com/kb/ddos-attack.html#comments</comments>
		<pubDate>Thu, 20 May 2010 20:51:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[DDOS Attacks]]></category>
		<category><![CDATA[DDOS_DEFLATE]]></category>
		<category><![CDATA[denial-of-service attack]]></category>
		<category><![CDATA[distributed denial-of-service attack]]></category>
		<category><![CDATA[mod_dosevasive]]></category>
		<category><![CDATA[mod_evasive]]></category>
		<category><![CDATA[SYNFLOOD]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=53</guid>
		<description><![CDATA[A denial-of-service attack (DoS attack) or distributed denial-of-service attack (DDoS attack) is an attempt to make a computer resource unavailable to its intended users. Although the means to carry out, motives for, and targets of a DoS attack may vary, it generally consists of the concerted efforts of a person or people to prevent an [...]]]></description>
			<content:encoded><![CDATA[<p><span>A denial-of-service attack (DoS attack) or distributed denial-of-service attack (DDoS attack) is an attempt to make a computer resource unavailable to its intended users. Although the means to carry out, motives for, and targets of a DoS attack may vary, it generally consists of the concerted efforts of a person or people to prevent an Internet site or service from functioning efficiently or at all, temporarily or indefinitely. Perpetrators of DoS attacks typically target sites or services hosted on high-profile web servers such as banks, credit card payment gateways, and even root nameservers.</span></p>
<p>Like DOS , DDOS also tries to deny the important services running on a server by broadcasting packets to the destination server in a way that the Destination server cannot handle it. The speciality of the DDOS is that, it relays attacks not from a single network/host like DOS. The DDOS attack will be launched from different dynamic networks which has already been compromised.</p>
<p>Normally, DDOS consists of 3 parts . One is the Master ,Other the slave and atlast the victim. The master is the attack launcher i.e the person/machine behind all this. The slave is the network which is being compromised by the Master and Victim is the target site/server . Master informs the compromised machines, so called slaves to launch attack on the victim&#8217;s site/machine. Hence its also called co-ordinated attack.</p>
<p>One common method of attack involves saturating the target (victim) machine with external communications requests, such that it cannot respond to legitimate traffic, or responds so slowly as to be rendered effectively unavailable. In general terms, DoS attacks are implemented by either forcing the targeted computer(s) to reset, or consuming its resources so that it can no longer provide its intended service or obstructing the communication media between the intended users and the victim so that they can no longer communicate adequately.</p>
<p><strong>DDoS Process :-</strong></p>
<p>DDOS is done in 2 phases. In first phase attackers try to compromise weak machines in different networks around the world. This phase is called Intrusion Phase. Its in the next phase that they install DDOS tools and starts attacking the victims machines/site. This Phase is called Distributed DoS attacks phase.</p>
<p><strong>Comman Reasons/Loop holes :-</strong></p>
<p>1) Vulnerable softwares/Applications running on a machine or network.</p>
<p>2) Open network setup.</p>
<p>3) Network/ machine setup without taking security into account.</p>
<p>4) No monitoring or DataAnalysis are being conducted.</p>
<p>5) No regular Audit / Software upgrades being conducted.</p>
<p>———————————————————————————————————</p>
<p>netstat -alpn | grep :80 | awk ‘{print $4}’ | cut -d: -f1 |sort |uniq -c<br />
netstat -alpn | grep :80 | awk ‘{print $5}’ | cut -d: -f1 |sort |uniq -c</p>
<p>———————————————————————————————————</p>
<p><strong>RedHat</strong>: netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p><strong>BSD</strong>: netstat -na |awk ‘{print $5}’ |cut -d “.” -f1,2,3,4 |sort |uniq -c |sort -n</p>
<p>You can also check for connections by running the following command.<br />
netstat -plan | grep :80 | awk ‘{print $4 }’ | sort -n | uniq -c | sort</p>
<p>These are few step to be taken when you feel the server is under attack:<br />
——————————————————————————-<br />
Step 1: Check the load using the command “w”.<br />
Step 2: Check which service is utilizing maximum CPU by “nice top”.<br />
Step 3: Check which IP is taking maximum connection by netstat -anpl|grep :80|awk {’print $5′}|cut -d”:” -f1|sort|uniq -c|sort -n<br />
Step 4: Then block the IP using firewall (APF or iptables “apf -d &lt; IP&gt;” )<br />
——————————————————————————-</p>
<p><strong>How to prevent from DDoS :-</strong></p>
<p>Implement security features in your server like:</p>
<p>1) Install apache modules like mod_dosevasive and mod_security in your server.<br />
2) DDOS protection using CSF through &#8220;SYNFLOOD&#8221;.<br />
3) The best,free &amp; open sources solution to protect from DDOs :- http://deflate.medialayer.com/<br />
4) Configure APF and IPTABLES to reduce the DDOS.</p>
<p><strong>Basic server securing steps :</strong><br />
===============================<br />
5) Configure sysctl parameters in your server to drop attacks.</p>
<p>You can block the IP which is attacking your server using Ipsec from command prompt.<br />
=========<br />
&gt;&gt; netsh ipsec static add filterlist name=myfilterlist<br />
&gt;&gt; netsh ipsec static add filter filterlist=myfilterlist srcaddr=a.b.c.d dstaddr=Me<br />
&gt;&gt; netsh ipsec static add filteraction name=myaction action=block<br />
&gt;&gt; netsh ipsec static add policy name=mypolicy assign=yes<br />
&gt;&gt; netsh ipsec static add rule name=myrule policy=mypolicy filterlist=myfilterlist filteraction=myaction<br />
========</p>
<p>Enjoy Linux.. <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/ddos-attack.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install ClamAV</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-clamav.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-clamav.html#comments</comments>
		<pubDate>Wed, 19 May 2010 22:49:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[clam anti virus]]></category>
		<category><![CDATA[clam-milter]]></category>
		<category><![CDATA[ClamAV]]></category>
		<category><![CDATA[mail scanner]]></category>
		<category><![CDATA[milter]]></category>
		<category><![CDATA[open sources anti virus]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=43</guid>
		<description><![CDATA[ If you Want to install ClamAV on your Red Hat Enterprise Linux, CentOS, or Fedora Core box to scan your server files &#38; folders as well as your all mails,please use the following steps to install the Open sources Anti-Virus &#8220;Clam-AV&#8221;.
In Clam AV :-
Clamd is the scanning daemon, clamav-milter is the milter, and freshclam [...]]]></description>
			<content:encoded><![CDATA[<p><!-- @page { margin: 0.79in } 		P { margin-bottom: 0.08in } --> <!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --><span style="color: #0000ff;"><span style="font-size: small;">If you Want to install ClamAV on your Red Hat Enterprise Linux, CentOS, or Fedora Core box to scan your server files &amp; folders as well as your all mails,please use the following steps to install the Open sources Anti-Virus &#8220;Clam-AV&#8221;.</span></span></p>
<p><span style="font-size: small;">In Clam AV :-</span></p>
<p><span style="font-size: small;">Clamd is the scanning daemon, clamav-milter is the milter, and freshclam is the process that updates the virus definitions on regular basis.</span></p>
<p><span style="font-size: small;"><strong>1.</strong>Install gmp, gmp-devel, sendmail, sendmail-cf, sendmail-devel, zlib, zlib-devel, bzip2, bzip2-devel.</span></p>
<p><span style="font-size: small;"><strong>2.</strong>Get the sendmail source from sendmail.org. Extract it, go into the libmilter subdirectory. Run &#8220;make&#8221; and &#8220;make install&#8221;. That will install libmilter into /usr, where sendmail can find it. No need to build the whole sendmail.</span></p>
<p><span style="font-size: small;"><strong>3. </strong>Download the latest stable ClamAV distribution from http://www.clamav.net or from sourgeforge http://sourceforge.net/projects/clamav/files/</span></p>
<p><span style="font-size: small;"><strong>4. </strong>Next you will need to create a user &amp; group for clamav to use:</span></p>
<p><span style="font-size: small;"># useradd clamav</span></p>
<p><span style="font-size: small;">Some OS&#8217;s require you to add the group as well:</span></p>
<p><span style="font-size: small;"># groupadd clamav</span></p>
<p><span style="font-size: small;">#useradd -g clamav -s /bin/false -c &#8220;Clam AntiVirus&#8221; clamav</span></p>
<p><span style="font-size: small;"><strong>5.</strong> Extract the ClamAv tar ball, build it, install it (three lines, two are make):</span></p>
<p><span style="font-size: small;"># ./configure &#8211;prefix=/usr/local/clamav &#8211;disable-zlib-vcheck &#8211;enable-milter</span></p>
<p><span style="font-size: small;"># make</span></p>
<p><span style="font-size: small;"># make install</span></p>
<p><span style="font-size: small;"><strong>6. </strong>Configure /usr/local/clamav/etc/clamd.conf. I changed the following:</span></p>
<p><span style="font-size: small;"># Example (default is uncommented you just add the # or comment that line )</span></p>
<p><span style="font-size: small;">And uncomment the following lines :-</span></p>
<p><span style="font-size: small;">LogTime: yes</span></p>
<p><span style="font-size: small;">LogSyslog yes</span></p>
<p><span style="font-size: small;">LogFacility LOG_MAIL</span></p>
<p><span style="font-size: small;">PidFile /var/run/clamav/clamd.pid</span></p>
<p><span style="font-size: small;">TemporaryDirectory /tmp</span></p>
<p><span style="font-size: small;">LocalSocket /var/run/clamav/clamd.socket or LocalSocket /tmp/clamd</span></p>
<p><span style="font-size: small;">FixStaleSocket yes</span></p>
<p><span style="font-size: small;">User clamav</span></p>
<p><span style="font-size: small;"><strong>7.</strong> Configure /usr/local/clamav/etc/freshclam.conf. I changed the following:</span></p>
<p><span style="font-size: small;"># Example (default is uncommented you just add the # or comment that line )</span></p>
<p><span style="font-size: small;">And uncomment the following lines :-</span></p>
<p><span style="font-size: small;">LogSyslog yes</span></p>
<p><span style="font-size: small;">LogFacility LOG_MAIL</span></p>
<p><span style="font-size: small;">PidFile /var/run/clamav/freshclam.pid</span></p>
<p><span style="font-size: small;">DatabaseMirror db.us.clamav.net</span></p>
<p><span style="font-size: small;">NotifyClamd /usr/local/clamav/etc/clamd.conf</span></p>
<p><span style="font-size: small;"><strong>8.</strong> # mkdir /var/run/clamav</span></p>
<p><span style="font-size: small;"><strong>9.</strong> # chown clamav.clamav /var/run/clamav/</span></p>
<p><span style="font-size: small;"><strong>10.</strong> # chmod 700 /var/run/clamav</span></p>
<p><span style="font-size: small;"><strong>11. </strong>Create an empty log file for clamav updates:</span></p>
<p><span style="font-size: small;"># touch /var/log/clam-update.log</span></p>
<p><span style="font-size: small;"># chown clamav:clamav /var/log/clam-update.log</span></p>
<p><span style="font-size: small;"><strong>12.</strong> Start the base services to make sure they work. You may want to &#8220;tail -f /var/log/maillog&#8221; while you’re doing this:</span></p>
<p><span style="font-size: small;"># /usr/local/clamav/sbin/clamd</span></p>
<p><span style="font-size: small;"># /usr/local/clamav/bin/freshclam -d</span></p>
<p><span style="font-size: small;"><strong>13.</strong> Configure the milter. Add the following to /etc/mail/sendmail.mc right before the MAILER(smtp)dnl line. It’s two lines, the second beginning with “define”:</span></p>
<p><span style="font-size: small;">INPUT_MAIL_FILTER(`clamav’, `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m;C:30s;E:10m’)dnl</span></p>
<p><span style="font-size: small;">define(`confINPUT_MAIL_FILTERS’, `clamav’)</span></p>
<p><span style="font-size: small;"><strong>14. </strong>Make the new sendmail.cf by issuing a &#8220;make -C /etc/mail&#8221; command.</span></p>
<p><span style="font-size: small;"><strong>15. </strong>Start the milter process to test it:</span></p>
<p><span style="font-size: small;">/usr/local/clamav/sbin/clamav-milter -lo /var/run/clamav/clmilter.sock</span></p>
<p><span style="font-size: small;"><strong>16. </strong>Restart sendmail to make it pick up the configuration changes (service sendmail restart).</span></p>
<p><span style="font-size: small;"><strong>17.</strong> Then send a test mail.</span></p>
<p><span style="font-size: small;"><strong>18. </strong>Please add clamd service in your init.d directory to run this server at boot time of your machine.</span></p>
<p><span style="font-size: small;"><strong>Enjoy Linux&#8230;!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-clamav.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Fantastico.</title>
		<link>http://www.unixsurgeon.com/kb/40.html</link>
		<comments>http://www.unixsurgeon.com/kb/40.html#comments</comments>
		<pubDate>Tue, 18 May 2010 21:30:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Fantastico]]></category>
		<category><![CDATA[Cpanel-Fantastico]]></category>
		<category><![CDATA[Fantastico one click installation]]></category>
		<category><![CDATA[open source php applications]]></category>
		<category><![CDATA[open sources php scripts]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=40</guid>
		<description><![CDATA[Hi,
Today i am installing fantastico on my linux server but i am getting some problem.I have installed properly but i am not able to see Fantastico in Cpanel so i searched on google and found a solution after a long time so i thought for people who are suffering from same problem so i put [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today i am installing fantastico on my linux server but i am getting some problem.I have installed properly but i am not able to see Fantastico in Cpanel so i searched on google and found a solution after a long time so i thought for people who are suffering from same problem so i put this article on my site for the Linux guys ……………..</p>
<p># SSH to your server and enter following commands:</p>
<p>————————————————————————————————————————————-</p>
<p>cd /usr/local/cpanel/whostmgr/docroot/cgi</p>
<p>wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz</p>
<p>tar -xzpf fantastico_whm_admin.tgz</p>
<p>rm -rf fantastico_whm_admin.tgz</p>
<p>————————————————————————————————————————————-</p>
<p><strong>NOTE: if you have problems contacting this server, please try this alternate location:</strong></p>
<p><strong> </strong><br />
wget -N <a href="http://netenberg.com/files/free/fantastico_whm_admin.tgz" target="_blank">http://netenberg.com/files/free/fantastico_whm_admin.tgz</a></p>
<p>————————————————————————————————————————————-</p>
<p>Go to WHM, login as root and click on Tweak Settings, then you should ensure that both the Ioncube loader is selected for the backend copy of PHP. Save changes.</p>
<p>Now go here:<br />
<strong>WHM -&gt; Add-Ons (Plugins on v11.x or higher) -&gt; Fantastico De Luxe WHM Admin</strong> (scroll down the left menu).</p>
<p>Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation (if existing). All admin files (masterfiles, tarballs, settings etc) will be moved to or created at /var/netenberg.</p>
<p>————————————————————————————————————————————-</p>
<p>After the installation is complete, click on “Settings” and go through the settings. While some settings are not important, some other (marked below with an *) are essential for a proper functioning of Fantastico installations.<br />
<strong>Language:</strong> Select the language for the admin backend AND default language for users without a language selected.<br />
<strong>Email notifications:</strong> Enter an email address in order to receive notifications when users perform installations using Fantastico.<br />
<strong>Master files settings (*):</strong> If you are not an advanced user who modifies the master files, leave this to “Remove”. Change this only if you know what you are doing.<br />
<strong>PHPsuexec (*):</strong> VERY ESSENTIAL!!! Changing this value will not install or de-install phpsuexec for you. It will only tell Fantastico that you have phpsuexec installed or not installed on your server. Change to “installed” if you perform installations which produce an “Internal Server Error”. Notice: Changes will not apply to existing installations! You have to re-install in order to have working installations.<br />
<strong>Path to netPBM:</strong> Enter the full path to the netPBM binaries in order to enable Gallery installations. As long as this field has no value, your users will not be able to install Gallery.<br />
<strong>Select Fantastico licensing and files server:</strong> If the Fantastico pages take long to load switch to the server that works best for you. Fantastico will auto-switch if connections time out.<br />
<strong>Update preference:</strong> Select latest version (sometimes experimental) or stable version (best working).</p>
<p>————————————————————————————————————————————-</p>
<p><strong>Now you have installed Fantastico perfectly.Go to Cpanel and check it r u able to see Fantastico under Cpanel or not ? If you are not able to see then Follow the steps.</strong></p>
<p>————————————————————————————————————————————-</p>
<p>If it is <strong>wget-1.10.2-3.3.fc5</strong> or <strong>wget-1.10.2-8.fc6.1</strong>, or any version that yum installs on those OSes (they will typically end with .fc5 or .fc6 or .el5) we suggest that you replace it immediately with an older and/or stabler version. This version does not honor the “-P” switch.</p>
<p>An alternate version that we know works is <strong>wget-1.10.2-3.2.1</strong> (though more recent versions should also work).</p>
<p>You can use the following commands for this purpose.</p>
<p><strong>For 32-bit:</strong></p>
<p>————————————————————————————————————————————–</p>
<p>rpm -qa wget ;</p>
<p>wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm</p>
<p>chattr -ia /usr/bin/wget</p>
<p>rpm -e wget ;</p>
<p>rpm -ivh –force wget-1.10.2-3.2.1.i386.rpm ;</p>
<p>rpm -qa wget ;<br />
————————————————————————————————————————————–<br />
<strong>For 64-bit:</strong></p>
<p>————————————————————————————————————————————–</p>
<p>rpm -qa wget ;</p>
<p>wget http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/x86_64/os/Fedora/wget-1.10.2-15.fc7.x86_64.rpm ;</p>
<p>chattr -ia /usr/bin/wget</p>
<p>rpm -e wget ;</p>
<p>rpm -ivh –force wget-1.10.2-15.fc7.x86_64.rpm ;</p>
<p>rpm -qa wget ;<br />
————————————————————————————————————————————–</p>
<p>Now reinstall your Fantastico and check it ………………..Its Done !!!</p>
<p>————————————————————————————————————————————–</p>
<h2><span style="color: #000000;"><a title="Permanent Link: Uninstall Fantastico" rel="bookmark" href="http://karthickv.wordpress.com/2008/06/29/uninstall-fantastico/">Uninstall Fantastico</a></span></h2>
<div>————————————————————————————————————————————–UNINSTALL FANTASTICO</p>
<p>rm -rf /var/netenberg/fantastico_de_luxe/<br />
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/<br />
rm -rf /usr/local/cpanel/3rdparty/fantastico*<br />
rm -rf /usr/local/cpanel/base/frontend/*/fantastico<br />
rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html<br />
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi</p></div>
<div>————————————————————————————————————————————–</div>
<div>
<p>Enjoy Linux !!!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/40.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
