<?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>Linux Garage</title>
	<atom:link href="http://www.linuxgarage.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxgarage.net</link>
	<description>Opensource solutions  &#124;  Request for Free HowTo</description>
	<lastBuildDate>Sun, 30 Aug 2009 05:36:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use DarkSQLi</title>
		<link>http://www.linuxgarage.net/how-to-use-darksqli/</link>
		<comments>http://www.linuxgarage.net/how-to-use-darksqli/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:36:44 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[DarkSQLi help]]></category>
		<category><![CDATA[How to install DarkSQLi]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=139</guid>
		<description><![CDATA[Many people looking for tutorial how to use DarkSQLi. DarkSQLi is another sql injection tool.
DarkSQLi is simple Python script which does many good things for you for free of cost.
Download from here
You will need &#8220;rar&#8221; to extract it, its in rar extension. Here is HowTo install and extract rar files
cd DarkSQLi
./darksqli.py -u &#60;url&#62; &#8211;findcol      ( [...]]]></description>
			<content:encoded><![CDATA[<p>Many people looking for tutorial how to use DarkSQLi. <a title="DarkSQLi - SQL Injection tool" href="http://www.hackersgarage.com/darksqli-advance-sql-injection-script/" target="_blank">DarkSQLi</a> is another <a title="SQL Injections" href="http://www.hackersgarage.com/tag/sql-injections/" target="_blank">sql injection</a> tool.</p>
<p>DarkSQLi is simple Python script which does many good things for you for free of cost.</p>
<p>Download from <a title="DarkSQLi - Download" href="http://rapidshare.com/files/272078345/darkmysqli16.rar" target="_blank">here</a></p>
<p>You will need &#8220;rar&#8221; to extract it, its in rar extension. Here is <a title="How to install RAR on Linux" href="http://www.linuxgarage.net/how-to-install-rar/" target="_blank">HowTo install and extract rar files</a></p>
<blockquote><p>cd DarkSQLi</p>
<p>./darksqli.py -u &lt;url&gt; &#8211;findcol      ( It will find out the column length )</p>
<p>./darksqli.py -u &lt;url&gt; &#8211;info            ( MySQL server configuration )</p>
<p>./darksqli.py -h           ( To view complete help, different options )</p></blockquote>
<p>There are many option to test, it supports SSL too.</p>
<p>If you are facing any problem, Discuss it in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-use-darksqli/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install rar</title>
		<link>http://www.linuxgarage.net/how-to-install-rar/</link>
		<comments>http://www.linuxgarage.net/how-to-install-rar/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:23:47 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips n' Tricks]]></category>
		<category><![CDATA[How to extrat rar files on linux]]></category>
		<category><![CDATA[How to install rar on linux]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=140</guid>
		<description><![CDATA[Rar is compressing tool, many of us have use it on windows named &#8221; WinRar&#8221;.
Here, i&#8217;ll tell you how to install on linux.
If you are using RHEL/CentOS, you can simple install it through &#8220;yum&#8221;
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install rar
If you are using LinuxMint, Ubuntu, UbuntuME, run the following command;
apt-get install rar
or
aptitude install rar
You can try different [...]]]></description>
			<content:encoded><![CDATA[<p>Rar is compressing tool, many of us have use it on windows named &#8221; WinRar&#8221;.</p>
<p>Here, i&#8217;ll tell you how to install on linux.</p>
<p>If you are using RHEL/CentOS, you can simple install it through &#8220;yum&#8221;</p>
<blockquote><p>rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</p>
<p>yum install rar</p></blockquote>
<p>If you are using LinuxMint, Ubuntu, UbuntuME, run the following command;</p>
<blockquote><p>apt-get install rar</p></blockquote>
<p>or</p>
<blockquote><p>aptitude install rar</p></blockquote>
<p>You can try different switches, try ;</p>
<blockquote><p>rar  e      &#8221; Extract the data from .rar archive&#8221;</p>
<p>rar &#8211;help</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-install-rar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Haraldscan &#8211; Bluetooth discovery scanning.</title>
		<link>http://www.linuxgarage.net/how-to-haraldscan-bluetooth-discovery-scanning/</link>
		<comments>http://www.linuxgarage.net/how-to-haraldscan-bluetooth-discovery-scanning/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 07:35:47 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Bluetooth Hacking tools]]></category>
		<category><![CDATA[Bluetooth Scanners]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=135</guid>
		<description><![CDATA[Many of us looking for HowTo use Haraldscan &#8211; is another bluetooth discovery scanning.
Lets see How to install it.
Download from here
Install the following requirements:

Python 2.6
Pybluez
PySQLite

Installation

tar -zxvf haraldscan-0.3.tar.gz
cd haraldscan-0.3
python haraldscan -b

How to use it
python haraldscan
Or you can use different switches, e.g;
-w   &#8211; Writes the devices table to a file.
-h &#8211; Brings up the help menu.
]]></description>
			<content:encoded><![CDATA[<p>Many of us looking for HowTo use Haraldscan &#8211; is another bluetooth discovery scanning.</p>
<p>Lets see How to install it.</p>
<p>Download from <a title="HaraldScan Bluetooth Discovery tool" href="http://haraldscan.googlecode.com/files/haraldscan-0.3.tar.gz" target="_blank">here</a></p>
<p>Install the following requirements:</p>
<ul>
<li>Python 2.6</li>
<li>Pybluez</li>
<li>PySQLite</li>
</ul>
<p><span style="text-decoration: underline;">Installation</span></p>
<ol>
<li>tar -zxvf haraldscan-0.3.tar.gz</li>
<li>cd haraldscan-0.3</li>
<li>python haraldscan -b</li>
</ol>
<p><span style="text-decoration: underline;">How to use it</span></p>
<blockquote><p>python haraldscan</p></blockquote>
<p>Or you can use different switches, e.g;</p>
<blockquote><p>-w   &#8211; Writes the devices table to a file.</p>
<p>-h &#8211; Brings up the help menu.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-haraldscan-bluetooth-discovery-scanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find Largest File</title>
		<link>http://www.linuxgarage.net/how-to-find-largest-file/</link>
		<comments>http://www.linuxgarage.net/how-to-find-largest-file/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 09:16:09 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips n' Tricks]]></category>
		<category><![CDATA[Find]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=109</guid>
		<description><![CDATA[I was using Sarg with Squid, yesterday i noticed squid was not working. When i investigated, found /var was full. I was trying to find a file that consumed the space.
Here is the tip, it will  sort out the files from top to bottom.
find /var -mount -ls -xdev &#124; /usr/bin/sort -nr +6 &#124; more
]]></description>
			<content:encoded><![CDATA[<p>I was using Sarg with Squid, yesterday i noticed squid was not working. When i investigated, found /var was full. I was trying to find a file that consumed the space.</p>
<p>Here is the tip, it will  sort out the files from top to bottom.</p>
<blockquote><p>find /var -mount -ls -xdev | /usr/bin/sort -nr +6 | more</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-find-largest-file/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To List only Directories</title>
		<link>http://www.linuxgarage.net/how-to-list-only-directories/</link>
		<comments>http://www.linuxgarage.net/how-to-list-only-directories/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 08:45:57 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips n' Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=106</guid>
		<description><![CDATA[How to list only directories using &#8221; ls  -al &#8221; ?
Here is quick tip, using &#8220;grep&#8221; 

ls -al &#124; grep &#8220;^d&#8221;

]]></description>
			<content:encoded><![CDATA[<p>How to list only directories using &#8221; ls  -al &#8221; ?<br />
Here is quick tip, using &#8220;grep&#8221; </p>
<blockquote><p>
ls -al | grep &#8220;^d&#8221;
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-list-only-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Block Brute Force attacks using iptables</title>
		<link>http://www.linuxgarage.net/block-brute-force-attacks-using-iptables/</link>
		<comments>http://www.linuxgarage.net/block-brute-force-attacks-using-iptables/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:43:01 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[Brute Force]]></category>
		<category><![CDATA[Iptables]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=96</guid>
		<description><![CDATA[Few days ago, i setup one Proxy server for a client with static IP. I didn&#8217;t use any firewall, i used IPTABLES for MASQUERADING with fail over. After few days, i noticed that there are brute force attacks of ssh in the logs. How did i get ride of this, let me share it with [...]]]></description>
			<content:encoded><![CDATA[<p>Few days ago, i setup one Proxy server for a client with static IP. I didn&#8217;t use any firewall, i used IPTABLES for MASQUERADING with fail over. After few days, i noticed that there are brute force attacks of ssh in the logs. How did i get ride of this, let me share it with you.</p>
<p>Let me show you my &#8220;/var/log/secure&#8221; first, it was something like this;</p>
<blockquote><p>
May 11 13:23:54 proxy sshd[10855]: Illegal user administrator from 202.162.541.34<br />
May 11 13:23:54 proxy sshd[10855]: Failed password for illegal user administrator from 202.162.541.34 port 34645 ssh2<br />
May 16 10:43:04 proxy sshd[10857]: Illegal user samba from 116.11.72.234<br />
May 16 10:43:04 proxy sshd[10857]: Failed password for illegal user samba from 116.11.72.234 port 54645 ssh2
</p></blockquote>
<p>For this damn attacks, i used two simple rules of iptables as follows;</p>
<blockquote><p>
iptables -A INPUT -i eth1 -p tcp &#8211;dport 22 -m state &#8211;state NEW -m recent &#8211;set &#8211;name SSH<br />
iptables -A INPUT -i eth1 -p tcp &#8211;dport 22 -m state &#8211;state NEW -m recent &#8211;update &#8211;seconds 200 &#8211;hitcount 5 &#8211;name SSH -j DROP
</p></blockquote>
<p>Here let me describe the above command.<br />
&#8220;eth1&#8243; is the network interface to which ssh connections are made. In my case, i assigned Public IP to it. It can be change in your scenario.<br />
&#8220;&#8211;seconds 200&#8243; and &#8220;&#8211;hitcount 5&#8243; means 5 connections allowed in 200 seconds.</p>
<p>The only  bad thing is it will block you too, if you made wrong attempts like brute force.. lolz. For that thing, you can do add your IP to whitelist.</p>
<p>Hope it helps.<br />
Any question? follow up in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/block-brute-force-attacks-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Linux Failover Router</title>
		<link>http://www.linuxgarage.net/using-a-linux-failover-router/</link>
		<comments>http://www.linuxgarage.net/using-a-linux-failover-router/#comments</comments>
		<pubDate>Thu, 28 May 2009 17:06:23 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Proxy Server]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=68</guid>
		<description><![CDATA[In this HowTo, i will tell you how to setup Linux as Router for two ISPs link. Incase one gets down other will go up autometically.
I will use the following hardware, you can use your own depends on your requirements.
Pentium III -1 GHz
512 MB Ram
20 GB Hard drive
3 Lan cards
Why we are using 3 lan [...]]]></description>
			<content:encoded><![CDATA[<p>In this HowTo, i will tell you how to setup Linux as Router for two ISPs link. Incase one gets down other will go up autometically.</p>
<p>I will use the following hardware, you can use your own depends on your requirements.</p>
<blockquote><p>Pentium III -1 GHz</p>
<p>512 MB Ram</p>
<p>20 GB Hard drive</p>
<p>3 Lan cards</p></blockquote>
<p>Why we are using 3 lan cards?</p>
<p>We will use 2 Lan cards for two different ISPs, while 1 lan card for your LAN.</p>
<p>I will use the following scenario.</p>
<blockquote><p>Interface =  eth0</p>
<p>Connected = LAN</p>
<p>IP = 10.0.0.1</p></blockquote>
<blockquote><p>Interface = eth1</p>
<p>Connected =  ISP-1</p>
<p>IP = 192.168.0.2</p>
<p>Gateway = 192.168.0.1</p></blockquote>
<blockquote><p>Interface = eth2</p>
<p>Connected = ISP-2</p>
<p>IP = 192.168.1.2</p>
<p>Gateway = 192.168.1.1</p></blockquote>
<p><span style="text-decoration: underline;">Step 1 :</span> Setting up network interfaces.</p>
<blockquote><p>system-config-network-tui</p></blockquote>
<p>Please configure all interfaces as mentioned above with the above command one by one.</p>
<p><span style="text-decoration: underline;">Step 2 :</span> Turning on IP packet forwarding.</p>
<blockquote><p>vi /etc/sysctl.conf</p>
<p>By default value of  &#8220;<code>net.ipv4.ip_forward" is "= 0", change it to "= 1"</code></p>
<p>sysctl -p</p></blockquote>
<p><span style="text-decoration: underline;">Step 3 :</span> In this step, we need to configure iptables by adding some rules, so that our Internet LAN can route packets to the Internet.</p>
<blockquote><p>iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE</p>
<p>iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE</p>
<p>iptables -A FORWARD -s 10.0.0.0/8 -j ACCEPT</p>
<p>iptables -A FORWARD -d 10.0.0.0/8 -j ACCEPT</p>
<p>iptables -A FORWARD -s ! 10.0.0.0/8 -j DROP</p></blockquote>
<p>The above commands turn on masquerading in the NAT table by appending a POSTROUTING rule for all outgoign packets on the two Ethernet interfaces, eth1 and eth2. The next two lines accept forwarding of all packets to and from 10.0.0.0/8 network. The last line drops the packets that do not come from 10.0.0.0/8 network.</p>
<p><span style="text-decoration: underline;">Step 4 :</span> Save iptables rules permanent.</p>
<blockquote><p>iptables-save &gt; /etc/sysconfig/iptables</p>
<p>service network restart</p>
<p>service iptables restart</p></blockquote>
<p>Here, i will give you extra tip if you are using Squid Transparent Proxy. You will need the following rules in iptables.</p>
<p><em><strong>I will update it soon&#8230;</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/using-a-linux-failover-router/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Install Munin</title>
		<link>http://www.linuxgarage.net/how-to-install-munin/</link>
		<comments>http://www.linuxgarage.net/how-to-install-munin/#comments</comments>
		<pubDate>Wed, 27 May 2009 16:33:25 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=49</guid>
		<description><![CDATA[Munin is a highly flexible and powerfull solution used to create graphs of virtually everything imaginable throughout your network, while still maintining a rattling easy of installation and configuration.
I will use the following scenario:
munin-server.example &#8211; 192.168.1.254        # Munin Server
station1.example.com &#8211; 192.168.1.1            # Munin client
station2.example.com &#8211; 192.168.1.2            # Munin client
You can add many clients as much [...]]]></description>
			<content:encoded><![CDATA[<p>Munin is a highly flexible and powerfull solution used to create graphs of virtually everything imaginable throughout your network, while still maintining a rattling easy of installation and configuration.</p>
<p>I will use the following scenario:</p>
<p>munin-server.example &#8211; 192.168.1.254        # Munin Server</p>
<p>station1.example.com &#8211; 192.168.1.1            # Munin client</p>
<p>station2.example.com &#8211; 192.168.1.2            # Munin client</p>
<p>You can add many clients as much you want. Here i added two clients. Here on more thing to notice, using hostname is not necessary. We are not required any DNS resolution, it is just for clarity to recognize your client easily.</p>
<p>Let start with Installation and configuration:</p>
<p><span style="text-decoration: underline;"><strong>Server Side </strong></span></p>
<p><span style="text-decoration: underline;">Step 1 :</span> First of all enable CentOS repository to install the latest packages of munin, presonally i preffered dag/rpmforge repository is the best resource for upload packages of CentOS and RHEL distrobution.</p>
<blockquote><p>rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</p>
<p>yum install perl-Net-Server perl-Socket6 perl-Crypt-DES perl-Net-SNMP perl-Digest-HMAC perl-Digest-SHA1</p>
<p>yum install perl-rrdtool rrdtool perl-HTML-Template perl-DateManip munin</p></blockquote>
<p>By default it will create the following directories,files.</p>
<p>Main Server main Configuration file :</p>
<blockquote><p>/etc/munin/munin.conf</p></blockquote>
<p>Munin cron file :</p>
<blockquote><p>/usr/bin/munin-cron</p></blockquote>
<p>Munin libraries :</p>
<blockquote><p>/var/lib/munin</p></blockquote>
<p>Munin logs :</p>
<blockquote><p>/var/log/munin</p></blockquote>
<p>Munin Document Root :</p>
<blockquote><p>/var/www/munin</p></blockquote>
<p><span style="text-decoration: underline;">Step 2 :</span> Changing default Munin Document Root Path :</p>
<blockquote><p>mv /var/www/munin /var/www/html/munin</p></blockquote>
<p><span style="text-decoration: underline;">Step 3 :</span> Adding clients/nodes to monitor them in /etc/munin/munin.conf :</p>
<blockquote><p>vi /etc/munin/munin.conf</p>
<p>[station1.example.com]</p>
<p>address 192.168.1.1</p>
<p>use_node_name yes</p>
<p>[station2.example.com]</p>
<p>address 192.168.1.2</p>
<p>use_node_name yes</p></blockquote>
<p><span style="text-decoration: underline;">Step 4 :</span> Setting up permissions :</p>
<blockquote><p>groupadd munhttp</p>
<p>usermod -G munhttp munin</p>
<p>usermod -G munhttp apache</p>
<p>chown -v apache.munhttp /var/www/html/munin</p></blockquote>
<p><span style="text-decoration: underline;">Step 4 :</span> Setting up cron to schedule the munin to update every 5 minutes :</p>
<blockquote><p>crontab -e</p>
<p>*/5 * * * * /usr/bin/munin-cron &#8211;force-root</p></blockquote>
<p><span style="text-decoration: underline;">Step 5 :</span> Restart Apache :</p>
<blockquote><p>service httpd restart</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Client Side</strong></span></p>
<p>Here we go with installing the clients/nodes.</p>
<p><span style="text-decoration: underline;">Step 1 :</span> Installing the required packages :</p>
<blockquote><p>yum install perl-Net-Server perl-Net-SNMP perl-Digest-HMAC perl-Digest-SHA1 munin-node</p></blockquote>
<p><span style="text-decoration: underline;">Step 2 :</span> Editing /etc/munin/munin-node.conf for server ip address, you have to add it bottom of the file, below the line &#8221; allow ^127.0.0.1$&#8221;</p>
<blockquote><p>vi /etc/munin/munin-node.conf</p>
<p>allow ^192.168.1.254$</p></blockquote>
<p><span style="text-decoration: underline;">Step 3 :</span> The following command will scan the system for available services and will auto configure it. e.g Sendmail, mysql.</p>
<blockquote><p>munin-node-configure</p></blockquote>
<p><span style="text-decoration: underline;">Step 4 :</span> Start Munin-node client to available for the server.</p>
<blockquote><p>munin-node</p></blockquote>
<p><em><span style="text-decoration: underline;">Note :</span></em> If you modify the configure file &#8220;/etc/munin/munin-node.conf&#8221; you will need to run the following command to re-read the configure file.</p>
<blockquote><p>service munin-node restart</p></blockquote>
<p><strong>You can follow the &#8220;Client Side&#8221; configuration for the rest of clients/nodes.</strong></p>
<p>Hope thats work for you!</p>
<p>Got error? submit the comment and expect reply quickly <img src='http://www.linuxgarage.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-install-munin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Ping Hosts Table</title>
		<link>http://www.linuxgarage.net/how-to-ping-hosts-table/</link>
		<comments>http://www.linuxgarage.net/how-to-ping-hosts-table/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:15:26 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips n' Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=43</guid>
		<description><![CDATA[&#8220;/etc/hosts&#8221; has all hosts entries. Let suppose, you are requried to ping all at once what will you do? Don&#8217;t worry, here is the quick trick  
awk &#8216;/^[^#]/ {system(&#8220;ping -c 1 &#8220;$1)}&#8217; &#60; /etc/hosts


]]></description>
			<content:encoded><![CDATA[<p>&#8220;/etc/hosts&#8221; has all hosts entries. Let suppose, you are requried to ping all at once what will you do? Don&#8217;t worry, here is the quick trick <img src='http://www.linuxgarage.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p><span style="font-family: arial; font-size: 85%;">awk &#8216;/^[^#]/ {system(&#8220;ping -c 1 &#8220;$1)}&#8217; &lt; /etc/hosts</span></p></blockquote>
<p><span style="font-family: arial; font-size: 85%;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/how-to-ping-hosts-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache With Multiple PHP Versions</title>
		<link>http://www.linuxgarage.net/apache-with-multiple-php-versions/</link>
		<comments>http://www.linuxgarage.net/apache-with-multiple-php-versions/#comments</comments>
		<pubDate>Sun, 24 May 2009 10:00:34 +0000</pubDate>
		<dc:creator>Syed Alam</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgarage.net/?p=37</guid>
		<description><![CDATA[Some times developers require multiple php versions, here i will tell you how to configure two different php versions with single apache. There are different ways, i do not guarantee it will work for you, although it works fine for me.
In my scenario, I will use Php 5 as module and Php 4.4.9 as cgi-script [...]]]></description>
			<content:encoded><![CDATA[<p>Some times developers require multiple php versions, here i will tell you how to configure two different php versions with single apache. There are different ways, i do not guarantee it will work for you, although it works fine for me.</p>
<p>In my scenario, I will use Php 5 as module and Php 4.4.9 as cgi-script with Apache on CentOS 5.2.</p>
<p>Step 1 : Installing httpd and latest php from default CentOS yum repository.</p>
<blockquote><p>yum install httpd php</p></blockquote>
<p>Step 2 : Downloading Php-4.4.9.</p>
<blockquote><p>mkdir -v /temp</p>
<p>cd /temp</p>
<p>wget <span style="font-size: 85%;">http://au.php.net/get/php-4.4.9.tar.bz2/from/ca.php.net/mirror</span></p>
<p><span style="font-size: 85%;">tar -jxvf </span><span style="font-size: 85%;">php-4.4.9.tar.bz2</span></p>
<p><span style="font-size: 85%;">cd php-4.4.9</span></p></blockquote>
<p>Step 2.1 : Installing Php4.4.9. Make sure you configure and compile as it is mentioned below.</p>
<p>Note : Do not add support for apxs, it will break up the default php5 module for apache.</p>
<blockquote><p><span style="font-size: 85%;">./configure &#8211;prefix=/usr/local/php4</span></p>
<p>make &amp;&amp; make install</p>
<p>cp -av php.ini-recommended /usr/local/php/etc/php.ini</p></blockquote>
<p>Step 3 : Now configuring Php4 as cgi-script for apache.</p>
<blockquote><p>ln -s /usr/local/php4/bin/php /var/www/html/cgi-bin/php</p>
<p>chmod 755 /var/www/html/cgi-bin/php</p></blockquote>
<p>Step 3.1 : Adding support Php4 in apache.</p>
<blockquote><p>cp -av /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php4.conf</p>
<p>vi /etc/httpd/conf.d/php4.conf     # Add the following in it;</p>
<p>Action php4-script /cgi-bin/php</p>
<p>AddHandler php4-script .php4</p>
<p>AddType text/html .php</p>
<p>DirectoryIndex index.php4</p></blockquote>
<blockquote><p>service httpd restart</p></blockquote>
<p>Thats it! Hope it works.</p>
<p>Comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgarage.net/apache-with-multiple-php-versions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
