<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A Sysadmin's Blog</title>
	<atom:link href="http://nakuls77.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nakuls77.wordpress.com</link>
	<description>Cpanel/WHM, Plesk, DirectAdmin, Webmin, Web hosting, &#38; Much more...</description>
	<lastBuildDate>Sat, 01 Aug 2009 08:49:50 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='nakuls77.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e9489c518cbd398c4bf44b15eaa9e4df?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>A Sysadmin's Blog</title>
		<link>http://nakuls77.wordpress.com</link>
	</image>
			<item>
		<title>send email via CLI (Command Line Interface)</title>
		<link>http://nakuls77.wordpress.com/2009/08/01/send-email-via-cli-command-line-interface/</link>
		<comments>http://nakuls77.wordpress.com/2009/08/01/send-email-via-cli-command-line-interface/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:49:50 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Linux/UNIX]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=286</guid>
		<description><![CDATA[how to send email using terminal – CLI mode.
You need to have root access for this ; 
# mail -s “test email” isp@google.com -c owner@google.com -b staff@google.com
This would send a blank email with “test email” as its subject. The email would be send to isp@google.com with CC to owner@google.com and blind CC to staff@google.com
# echo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=286&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>how to send email using terminal – CLI mode.</p>
<p>You need to have root access for this ; </p>
<p># mail -s “test email” isp@google.com -c owner@google.com -b staff@google.com</p>
<p>This would send a blank email with “test email” as its subject. The email would be send to isp@google.com with CC to owner@google.com and blind CC to staff@google.com</p>
<p># echo “How are you” | mail -s “test email” isp@google.com -c owner@google.com -b staff@google.com</p>
<p>would include “How are you” line as the body message of the email. This could be useful and incorporated from your shell scripts that does a particular function and informs you by email of its function result.</p>
<p>Another way is to</p>
<p># mutt -s “test email” -a /root/pic.jpg isp@google.com -c owner@google.com -b staff@google.com</p>
<p>would send email with “test emai” as subject name. Email is addressed to isp@google.com, with CC to owner@google.com and BCC to staff@google.com. You will noticed the new parameter. This email would attached /root/pic.jpg picture to this email.</p>
<p>Now, piping it like so</p>
<p># echo “How are you” | mutt -s “test email” -a /root/pic.jpg isp@google.com -c owner@google.com -b staff@google.com</p>
<p>would include “How are you” as body of the email.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/286/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=286&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/08/01/send-email-via-cli-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the Date and Time via NTP – ntpdate</title>
		<link>http://nakuls77.wordpress.com/2009/08/01/setting-the-date-and-time-via-ntp-%e2%80%93-ntpdate/</link>
		<comments>http://nakuls77.wordpress.com/2009/08/01/setting-the-date-and-time-via-ntp-%e2%80%93-ntpdate/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:47:46 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Linux/UNIX]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=284</guid>
		<description><![CDATA[Synopsis
ntpdate [ -bBdoqsuv ] [ -a key ] [ -e authdelay ] [ -k keyfile ] [ -o version ] [ -p samples ] [ -t timeout ] server [ ... ]
Description
ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=284&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Synopsis</strong></p>
<p>ntpdate [ -bBdoqsuv ] [ -a key ] [ -e authdelay ] [ -k keyfile ] [ -o version ] [ -p samples ] [ -t timeout ] server [ ... ]</p>
<p><strong>Description</strong></p>
<p>ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time. It must be run as root on the local host. A number of samples are obtained from each of the servers specified and a subset of the NTP clock filter and selection algorithms are applied to select the best of these. Note that the accuracy and reliability of ntpdate depends on the number of servers, the number of polls each time it is run and the interval between runs.</p>
<p>ntpdate can be run manually as necessary to set the host clock, or it can be run from the host startup script to set the clock at boot time. This is useful in some cases to set the clock initially before starting the NTP daemon ntpd. It is also possible to run ntpdate from a cron script. However, it is important to note that ntpdate with contrived cron scripts is no substitute for the NTP daemon, which uses sophisticated algorithms to maximize accuracy and reliability while minimizing resource use. Finally, since ntpdate does not discipline the host clock frequency as does ntpd, the accuracy using ntpdate is limited.</p>
<p>Time adjustments are made by ntpdate in one of two ways. If ntpdate determines the clock is in error more than 0.5 second it will simply step the time by calling the system settimeofday() routine. If the error is less than 0.5 seconds, it will slew the time by calling the system adjtime() routine. The latter technique is less disruptive and more accurate when the error is small, and works quite well when ntpdate is run by cron every hour or two.</p>
<p>ntpdate will decline to set the date if an NTP server daemon (e.g., ntpd) is running on the same host. When running ntpdate on a regular basis from cron as an alternative to running a daemon, doing so once every hour or two will result in precise enough timekeeping to avoid stepping the clock.</p>
<p>Note that in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a -6 qualifier forces DNS resolution to the IPv6 namespace.</p>
<p>If NetInfo support is compiled into ntpdate, then the server argument is optional if ntpdate can find a time server in the NetInfo configuration for ntpd.<br />
<strong> Command Line Options</strong></p>
<p>-4<br />
Force DNS resolution of following host names on the command line to the IPv4 namespace.<br />
-6<br />
Force DNS resolution of following host names on the command line to the IPv6 namespace.<br />
-a key<br />
Enable the authentication function and specify the key identifier to be used for authentication as the argument keyntpdate. The keys and key identifiers must match in both the client and server key files. The default is to disable the authentication function.<br />
-B<br />
Force the time to always be slewed using the adjtime() system call, even if the measured offset is greater than +-128 ms. The default is to step the time using settimeofday() if the offset is greater than +-128 ms. Note that, if the offset is much greater than +-128 ms in this case, that it can take a long time (hours) to slew the clock to the correct value. During this time. the host should not be used to synchronize clients.<br />
-b<br />
Force the time to be stepped using the settimeofday() system call, rather than slewed (default) using the adjtime() system call. This option should be used when called from a startup file at boot time.<br />
-d<br />
Enable the debugging mode, in which ntpdate will go through all the steps, but not adjust the local clock. Information useful for general debugging will also be printed.<br />
-e authdelay<br />
Specify the processing delay to perform an authentication function as the value authdelay, in seconds and fraction (see ntpd for details). This number is usually small enough to be negligible for most purposes, though specifying a value may improve timekeeping on very slow CPU’s.<br />
-k keyfile<br />
Specify the path for the authentication key file as the string keyfile. The default is /etc/ntp.keys. This file should be in the format described in ntpd.<br />
-o version<br />
Specify the NTP version for outgoing packets as the integer version, which can be 1 or 2. The default is 3. This allows ntpdate to be used with older NTP versions.<br />
-p samples<br />
Specify the number of samples to be acquired from each server as the integer samples, with values from 1 to 8 inclusive. The default is 4.<br />
-q<br />
Query only – don’t set the clock.<br />
-s<br />
Divert logging output from the standard output (default) to the system syslog facility. This is designed primarily for convenience of cron scripts.<br />
-t timeout<br />
Specify the maximum time waiting for a server response as the value timeout, in seconds and fraction. The value is is rounded to a multiple of 0.2 seconds. The default is 1 second, a value suitable for polling across a LAN.<br />
-u<br />
Direct ntpdate to use an unprivileged port or outgoing packets. This is most useful when behind a firewall that blocks incoming traffic to privileged ports, and you want to synchronise with hosts beyond the firewall. Note that the -d option always uses unprivileged ports.<br />
-v<br />
Be verbose. This option will cause ntpdate’s version identification string to be logged.</p>
<p><strong>Diagnostics</strong></p>
<p>ntpdate’s exit status is zero if it finds a server and updates the clock, and nonzero otherwise.<br />
Files</p>
<p>/etc/ntp.keys – encryption keys used by ntpdate.</p>
<p><strong>Referred from http://www.eecis.udel.edu/~ntp/ntp_spool/html/ntpdate.html</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=284&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/08/01/setting-the-date-and-time-via-ntp-%e2%80%93-ntpdate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting date in Linux</title>
		<link>http://nakuls77.wordpress.com/2009/08/01/setting-date-in-linux/</link>
		<comments>http://nakuls77.wordpress.com/2009/08/01/setting-date-in-linux/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:44:44 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Linux/UNIX]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=282</guid>
		<description><![CDATA[You need to have root access on your system t perform this operation.
date +%Y%m%d -s “20090502″
To set the time in Linux, enter
date +%T -s “11:14:00″
There are other ways too : 
date -s “2 MAY 2009 11:14:00″  OR date 05021118
The format is date MMDDhhmm
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=282&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You need to have root access on your system t perform this operation.</p>
<p>date +%Y%m%d -s “20090502″</p>
<p>To set the time in Linux, enter</p>
<p>date +%T -s “11:14:00″</p>
<p>There are other ways too : </p>
<p>date -s “2 MAY 2009 11:14:00″  OR date 05021118</p>
<p>The format is <strong>date MMDDhhmm</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=282&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/08/01/setting-date-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Ioncube on CentOS</title>
		<link>http://nakuls77.wordpress.com/2009/08/01/install-ioncube-on-centos/</link>
		<comments>http://nakuls77.wordpress.com/2009/08/01/install-ioncube-on-centos/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:35:23 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Direct Admin]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=279</guid>
		<description><![CDATA[I&#8217;ve seen many issues where Ioncube is required to be installed on a DA system. You can easily download and install it using the following steps;
Depending on your system OS/Platform select and download the loaders file which is compressed in different formats such as tar.gz, tar.bz2, zip. Make sure you select one which is of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=279&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve seen many issues where Ioncube is required to be installed on a DA system. You can easily download and install it using the following steps;</p>
<p>Depending on your system OS/Platform select and download the loaders file which is compressed in different formats such as tar.gz, tar.bz2, zip. Make sure you select one which is of the recent date and of the latest version and extract it to /usr/local it will be extracted into the following directory;</p>
<p>/usr/local/ioncube</p>
<p>Once done you need to add a line to your php.ini. It can be located using the following command;</p>
<p>php -i | grep php.ini</p>
<p>Once you get the path, just edit it using your favorate editor (vi or pico) in my case it&#8217;s vi</p>
<p>vi /etc/php.ini</p>
<p>search for extension and below that add;</p>
<p>zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so</p>
<p>Don&#8217;t forget to restart your web server after that, once done you won&#8217;t be getting the same errors for Ioncube as earlier.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=279&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/08/01/install-ioncube-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Updates</title>
		<link>http://nakuls77.wordpress.com/2009/08/01/updates/</link>
		<comments>http://nakuls77.wordpress.com/2009/08/01/updates/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:26:01 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Welcome :)]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=277</guid>
		<description><![CDATA[Hello Everyone,
Thanks for everyone who&#8217;s been using this blog as a help guide for fixing/resolving issue they face. I&#8217;ve lately been away from posting on my blog and now I&#8217;ll continue to add more useful articles and hope that those articles help every needful person out here who uses Internet &#38; Linux. People can personally [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=277&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello Everyone,</p>
<p>Thanks for everyone who&#8217;s been using this blog as a help guide for fixing/resolving issue they face. I&#8217;ve lately been away from posting on my blog and now I&#8217;ll continue to add more useful articles and hope that those articles help every needful person out here who uses Internet &amp; Linux. People can personally contact me on nakuls77@gmail.com just in case they need my helping hand in some issues. I&#8217;ll be glad to help anyone. </p>
<p>Sincere Regards,<br />
Nakul Mahajan.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=277&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/08/01/updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Disk Space Monitoring Script</title>
		<link>http://nakuls77.wordpress.com/2009/03/03/disk-space-monitoring-script/</link>
		<comments>http://nakuls77.wordpress.com/2009/03/03/disk-space-monitoring-script/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 08:03:04 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Linux/UNIX]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=275</guid>
		<description><![CDATA[Free space on system partitions are very important.
We may get several problems if /usr /var /tmp or / partition run out of disk space.
I have created one simple shell script to check the percentage space used on different drive and sent a notification if any of partition usage exceeds the 90% you can modify it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=275&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Free space on system partitions are very important.</p>
<p>We may get several problems if /usr /var /tmp or / partition run out of disk space.</p>
<p>I have created one simple shell script to check the percentage space used on different drive and sent a notification if any of partition usage exceeds the 90% you can modify it as pre needs and requirement.</p>
<p>    #!/bin/bash</p>
<p>    #################################################<br />
# disk space usage alert #<br />
#################################################</p>
<p>    df -h | grep -v ‘Use’ | awk ‘{print $5″ : “$6}’ | replace ‘%’ ” &gt; /tmp/disk-percent</p>
<p>    for i in `cut -f 1 -d : /tmp/disk-percent`</p>
<p>    do</p>
<p>    if [ $i -ge "90" ];</p>
<p>    then</p>
<p>    echo partition `grep $i /tmp/disk-percent | cut -f 2 -d :` running out of disk space on `hostname` &gt;&gt; /tmp/disk-warning</p>
<p>    fi</p>
<p>    done</p>
<p>    if [ -f /tmp/disk-warning ];<br />
    then</p>
<p>    mail -s “URGENT `hostname` running out of disk space” administrator@mazhar.co.in  /tmp/disk-percent</p>
<p>with</p>
<p>    df -h | grep -v ‘home\|Use’ | awk ‘{print $5″ : “$6}’ | replace ‘%’ ” &gt; /tmp/disk-percent</p>
<p>Create a file say /home/disk-monitoring.sh give executable permissions and add a cron to execute it after specific time intervals (say 3 hours)</p>
<p>    0 */3 * * * /home/disk-monitoring.sh</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=275&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2009/03/03/disk-space-monitoring-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing Iframes</title>
		<link>http://nakuls77.wordpress.com/2008/12/30/removing-iframes/</link>
		<comments>http://nakuls77.wordpress.com/2008/12/30/removing-iframes/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 07:08:26 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Apache & PHP]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=265</guid>
		<description><![CDATA[If you are running apache, you will want to use our iframe filtering countermeasures. To do so, you will need to
downloads two files:
remove-bad-iframes.txt
and
00_ASL_iframe_protection.conf
This will automatically clean all your websites and remove any iframes that would include trojans, etc. targeted at your users. Install the 00_ASL_iframe_protection.conf file in your /etc/httpd/conf.d directory, and the remove-bad-iframes.txt in /etc/asl.
Originally [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=265&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you are running apache, you will want to use our iframe filtering countermeasures. To do so, you will need to</p>
<p>downloads two files:</p>
<p><a class="alignleft" href="http://www.gotroot.com/downloads/ftp/iframe/remove-bad-iframes.txt" target="_blank"><strong>remove-bad-iframes.txt</strong></a></p>
<p>and</p>
<p><a class="alignleft" href="http://www.gotroot.com/downloads/ftp/iframe/00_ASL_iframe_protection.conf" target="_blank"><strong>00_ASL_iframe_protection.conf</strong></a></p>
<p>This will automatically clean all your websites and remove any iframes that would include trojans, etc. targeted at your users. Install the 00_ASL_iframe_protection.conf file in your /etc/httpd/conf.d directory, and the remove-bad-iframes.txt in /etc/asl.</p>
<p><strong>Originally posted on : </strong><strong>gotroot.com</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=265&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2008/12/30/removing-iframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Iframes</title>
		<link>http://nakuls77.wordpress.com/2008/12/30/iframes/</link>
		<comments>http://nakuls77.wordpress.com/2008/12/30/iframes/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 07:01:10 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Apache & PHP]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=262</guid>
		<description><![CDATA[Iframe attacks seem to be taking a hold with many vulnerable websites. The problem obviously being vulnerable ap plications, which we would all like to see fixed. However, not everyone can be so lucky as to have either perfect applications, or perfect countermeasures against these vulnerabilities. Enter output filtering. We&#8217;ve put together a special set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=262&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Iframe attacks seem to be taking a hold with many vulnerable websites. The problem obviously being vulnerable ap plications, which we would all like to see fixed. However, not everyone can be so lucky as to have either perfect applications, or perfect countermeasures against these vulnerabilities. Enter output filtering. We&#8217;ve put together a special set of rules for anyone running apache. This will filter out all your iframe attacks.</p>
<p><strong>More info about Iframes;</strong></p>
<p>IFrame (from Inline Frame) is an HTML element which makes it possible to embed an HTML document inside another HTML document.</p>
<p>The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in the browser while the IFrame is still being loaded. The IFrame behaves much like an inline image and the user can scroll it out of view. On the other hand, the IFrame can contain its own scroll bar, independent of the surrounding page&#8217;s scroll bar.</p>
<p>While regular frames are typically used to logically subdivide the content of one website, IFrames are more commonly used to insert content (for instance an advertisement) from another website into the current page.</p>
<p>The following is an example of an HTML document containing an IFrame:</p>
<p>====================================================<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/html4/loose.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Example&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
The material below comes from the website http://example.com<br />
&lt;iframe src=&#8221;http://example.com&#8221; height=&#8221;200&#8243;&gt;<br />
Alternative text for browsers that do not understand IFrames.<br />
&lt;/iframe&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
====================================================</p>
<p>The embedded document can be changed without reloading the surrounding page, by using the &#8220;target&#8221; attribute of an HTML anchor or by employing JavaScript. This makes many interactive applications possible, and IFrames are therefore commonly used by Ajax applications. The main alternative to using an IFrame in these situations is editing a document&#8217;s DOM tree. Sometimes invisible IFrames are also used for asynchronous communication with the server, as an alternative to XMLHTTPRequest.</p>
<p>More recently, Mozilla Firefox, Opera and Microsoft Internet Explorer introduced contentEditable and designMode, which enables users to edit the contents of the HTML contained in an IFrame. This feature has been used to develop rich text (WYSIWYG) editors within an IFrame element like FCKeditor or TinyMCE. Popular web applications which make use of this feature include Google Docs &amp; Spreadsheets (formerly Writely), JotSpot Live, and Windows Live Hotmail, to name a few.</p>
<p>First introduced by Microsoft Internet Explorer in 1997 and long only available in that browser, iframes eventually became supported by all major brands.</p>
<p><strong>Security Issues</strong></p>
<p>IFrames have been implicated in many malicious code attacks, due to a series of common vulnerabilities. This was evident in many 2007 web based threats, notably the so-called Italian Job of June, 2007.[1] An IFrame can be planted on an unsuspecting legitimate website, leading the casual viewer into an infection threat. This may happen when a site is cracked, or more easily, when a site forwards results of local searches to global search engines. On such a site, the cracker only needs to perform a search that includes a malicious IFrame; a user who clicks the search result in the global search engine will be infected.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=262&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2008/12/30/iframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Mastering phpMyAdmin</title>
		<link>http://nakuls77.wordpress.com/2008/12/26/mastering-phpmyadmin/</link>
		<comments>http://nakuls77.wordpress.com/2008/12/26/mastering-phpmyadmin/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 22:56:16 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Comments & Reviews]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=258</guid>
		<description><![CDATA[Hello Folks,
Been busy fro the last couple of months, so didn&#8217;t get time to place new posts. But I&#8217;ve started again where I left this blog behind and I do promise that I&#8217;ll keep this blog updated.
I&#8217;ve also received many comments since I started publishing this blog and it&#8217;s always great to know that people [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=258&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello Folks,</p>
<p>Been busy fro the last couple of months, so didn&#8217;t get time to place new posts. But I&#8217;ve started again where I left this blog behind and I do promise that I&#8217;ll keep this blog updated.</p>
<p>I&#8217;ve also received many comments since I started publishing this blog and it&#8217;s always great to know that people know you over the Internet and also praise for what you do, the experience is always exciting.</p>
<p>Recently I got a book gifted from <strong><a title="Packtpub" href="http://www.packtpub.com" target="_blank">packtpub</a> </strong>for creating this blog. I&#8217;m really thankful to them, I was able to discover new things, I wasn&#8217;t aware while using PHPMyAdmin.</p>
<p>I was great receiving a fantastic book which can provide extensive knowledge. I&#8217;ve read the book and I&#8217;m sure that people who read this book would also be the same and would also like to thank the great author of this book <strong><a title="Author" href="http://www.packtpub.com/author_view_profile/id/3" target="_blank">Mr. Marc  Delisle</a></strong></p>
<p><strong>Info about the Author;</strong></p>
<p>Marc Delisle is a member of the MySQL Developers Guild – which regroups community developers – because of his involvement with phpMyAdmin. He started to contribute to this popular MySQL web interface in December 1998, when he made the first multi-language version. He has been actively involved with the phpMyAdmin project since May 2001 as a developer and project administrator. He has worked since 1980 at Collège de Sherbrooke, Québec, Canada, as an application programmer and network manager. He has also been teaching networking, security, Linux servers, and PHP/MySQL application development. In one of his classes, he was pleased to meet a phpMyAdmin user from Argentina</p>
<p><strong>Info about the publishers;<br />
<span class="mw-headline"></span></strong></p>
<p><a title="Packtpub.com" href="http://www.packtpub.com" target="_blank">Packt</a> is a unique publishing company specializing in highly focused books on specific technologies and solutions.</p>
<p>You can also review the book on <strong><a title="Amazon" href="http://www.amazon.com/Mastering-phpMyAdmin-Effective-MySQL-Management/dp/1904811035" target="_blank">Amazon.com</a></strong></p>
<p>Last but not the least I would really thank Packtpub for gifting me such a wonderful resource and the author of this book who&#8217;s been writing such great stuff. I would  also like everyone interested in exploring PHPMyAdmin should get this book.</p>
<p>Regards,<br />
Nakul M.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=258&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2008/12/26/mastering-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Subversion with Plesk 8.0/ CentOs 4.3 as Subdomain</title>
		<link>http://nakuls77.wordpress.com/2008/10/18/installing-subversion-with-plesk-80-centos-43-as-subdomain/</link>
		<comments>http://nakuls77.wordpress.com/2008/10/18/installing-subversion-with-plesk-80-centos-43-as-subdomain/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 14:01:23 +0000</pubDate>
		<dc:creator>nakuls77</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://nakuls77.wordpress.com/?p=255</guid>
		<description><![CDATA[==== pre-SVN configuration ====
* Plesk 8.0
* CentOS
* Root access via SSH
* Subdomain setup via Plesk 8.0 Administrator page. In my case, I used svn.my-domain.com as the sub domain
* A folder /var/svnrepo/ is used to house my SVN repository.
After you created the subdomain for your domain, you can proceed to the next step: installing Subversion
==== A. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=255&subd=nakuls77&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>==== pre-SVN configuration ====</strong></p>
<p>* Plesk 8.0</p>
<p>* CentOS</p>
<p>* Root access via SSH</p>
<p>* Subdomain setup via Plesk 8.0 Administrator page. In my case, I used svn.my-domain.com as the sub domain</p>
<p>* A folder /var/svnrepo/ is used to house my SVN repository.</p>
<p>After you created the subdomain for your domain, you can proceed to the next step: installing Subversion</p>
<p><strong>==== A. Installing Subversion ====</strong></p>
<p>To install subversion, all you have to do is SSH into the box as the root user. (# denotes the root prompt)</p>
<p>* #yum install subversionThis command will painlessly install the subversion package to the CentOS.</p>
<p>* #cd /etc/httpd/modulesChange the current directory to the modules folder of Apache, where all the plugins of Apache are installed.</p>
<p>* #yum mod_dav_svnThis command will install the mod_dav_svn to apache</p>
<p>* #svn &#8211;versionThis command will ensure that you have successfully installed subversion. (At the current time of writing, the version of this SVN package is 1.1.4, while the current version of SVN is 1.4 — maybe another article on how to upgrade SVN?)</p>
<p>* #mkdir /var/svnrepoThis is our root repository.</p>
<p>* #svnaddmin create /var/svnrepoThis command will create a subversion repository in the /var/svnrepo folder.</p>
<p>* #chmod -R 777 /var/svnrepoChanging the permision of svnrepo folder to allow Apache/Subversion to have read/write rights. Without changing the permissions, you will get an error when you are trying to access the repository via your browser.</p>
<p><strong>==== B. Configuring Apache ====</strong></p>
<p>So with the painless installation of Subversion, now we can configure Apache to begin to serve our repository. First of all, you will need to make sure that Apache is loading the mod_dav_svn.so file. Personally, I like to use mc (Midnight Commander) for text-editting ((( *) I can use VI but it’s not on my list of user-friendly software so I opt for a more “notepad-like” text editor. If you don’t have Midnight Commander installed, run **#yum install mc** and that should take care of it. The nto run Midnight Commander, just type in #mc. If you use Putty like I do, use **#mc -a** instead to get a nicer frame instead of the weird ASCII characters.)).</p>
<p>* Open the file **/etc/httpd/conf/httpd.conf**</p>
<p>* Search for **mod_dav_svn.so** in the Modules section. If you don’t find this line in **httpd.conf**, then check the folder /etc/httpd/conf.d/ for other .conf files. I have a subversion.conf file here which is included in the main **/etc/httpd/conf/httpd.conf** at initialization time. In this subversion.conf file, there are these 2 lines to make sure that Apache loads the SVN modules:</p>
<p>#File: /etc/httpd/conf.d/subversion.conf</p>
<p>LoadModule dav_svn_module modules/mod_dav_svn.so</p>
<p>LoadModule authz_svn_module modules/mod_authz_svn.so</p>
<p>Cool! Apache does load the Subversion modules. Now we need to configure our subdomain created using Plesk earlier to use with Subversion. But let’s go over how Plesk organizes our file system.</p>
<p><strong>==== C. Working with Plesk: The primer ====</strong></p>
<p>If you’d like to by-pass the web-based administration page of Plesk and do some advanced customization, then here is how Plesk is organizing the files system:</p>
<p>* Web-docs (your domains) are stored under **/var/www/vhosts/**</p>
<p>* Custom configuration for your domain is stored under **/var/www/vhosts/[you_domain_name]/conf/vhost.conf**</p>
<p>* The **httpd.include** file in **/var/www/vhosts/[you_domain_name]/conf/** will be overwritten everytime you use the web-based Plesk to update your domain configuration. Hence manual updates of this file is NOT advisible. Your changes will be lost, so why bother. If you want to customize the domain, create a **vhost.conf** file in the conf/ folder instead.</p>
<p>* Similarly, for sub-domains, the main .conf file are **/var/www/vhosts/[you_domain_name]/subdomains/[you_subdomain_name]/conf/vhost.conf**. All you have to do is to create this vhost.file and it will be automatically included in the main httpd.conf file of apache.</p>
<p>Also,</p>
<p>* Only **Root users** can create vhost.conf files.</p>
<p>* After you make changes to the conf files, you have to tell Plesk to reload the new configuration. To do so, run#/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-vhost &#8211;vhost-name=</p>
<p>For more information, please consult the [[http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/apas02.html|Plesk’s Admins Guide on sub-domain customization]]</p>
<p><strong>==== D. Customizing Sub-Domain configurations ====</strong></p>
<p>As I created a subdomain “svn” for my site, makefun.us, I had to create a vhost.conf file under **/var/www/vhosts/makefun.us/subdomains/svn/conf/vhost.conf**. Also, my repository is under **/var/svnrepo/**, so here is the content of the vhost.conf file</p>
<p>#svn.makefun.us &#8212; vhost.conf file</p>
<p>DAV svn</p>
<p>SVNPath /var/svnrepo/</p>
<p>AuthType Basic</p>
<p>AuthName “Makefun.us Subversion Repository”</p>
<p>AuthUserFile /etc/svn-auth-file</p>
<p>Require valid-user</p>
<p>First of all, with **DAV svn** we ask Apache to hand over to the mod_dav_svn module when there’s a request to **http://svn.makefun.us** (the location /). Then we specify the **repository’s root** at **/var/svnrepo/**. Then we specify that this is a private repository by asking Apache to provide **Basic Authorization** (which means the authenticated password will be transmitted as text via the wire). Well, we name our private zone the “Makefun.us Subversion Repositor” and the user accounts are stored in **/etc/svn-auth-file**. Finally, to access the repository via the web, the user must be able to authenticate — as we only allow valid-user to access (Require valid-user)</p>
<p>Next, I created a new user account for myself so that I can access the repository:</p>
<p>#htpasswd -c /etc/svn-auth-file my_user_name</p>
<p>At this point, you can either restart Apache by running **#server httpd restart** or just use the **websrvmng** of Plesk to pick up the new configuration. I just restarted Apache.</p>
<p>If everything works out correctly for you, if you point your browser to **http://svn.yourdomain.com**, you would see a prompt for username and password. Enter your just created account, you can access to your very own the SVN repository</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nakuls77.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nakuls77.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nakuls77.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nakuls77.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nakuls77.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nakuls77.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nakuls77.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nakuls77.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nakuls77.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nakuls77.wordpress.com/255/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nakuls77.wordpress.com&blog=4531515&post=255&subd=nakuls77&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nakuls77.wordpress.com/2008/10/18/installing-subversion-with-plesk-80-centos-43-as-subdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd680caf41f4e6dca0401e7cefef9ab2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nakuls77</media:title>
		</media:content>
	</item>
	</channel>
</rss>