<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Open Source Technologies</title>
	<atom:link href="http://somepalli.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://somepalli.wordpress.com</link>
	<description>It&#039;s all about Open Source</description>
	<lastBuildDate>Thu, 15 Dec 2011 07:00:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='somepalli.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/12affa498f4be55f757d29681e0dbc82?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Open Source Technologies</title>
		<link>http://somepalli.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://somepalli.wordpress.com/osd.xml" title="Open Source Technologies" />
	<atom:link rel='hub' href='http://somepalli.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Basic System admin Tips in Debian</title>
		<link>http://somepalli.wordpress.com/2011/12/15/system-admin-tips-in-debian/</link>
		<comments>http://somepalli.wordpress.com/2011/12/15/system-admin-tips-in-debian/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 06:45:03 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=163</guid>
		<description><![CDATA[How to change Log in message.(MOTD-Message of The Day) sudo vim /etc/motd  If you want to avoid /etc/motd to be overwritten with the old version upon reboot you also have to edit the following sudo vim /etc/default/rcS in this file change the EDITMOTD &#8220;yes&#8221; to &#8220;no&#8221; Changing the computer name sudo vim /etc/hostname<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=163&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>How to change Log in message.(MOTD-Message of The Day)</strong></p>
<blockquote><p>sudo vim /etc/motd</p></blockquote>
<p><strong> If you want to avoid /etc/motd to be overwritten with the old version upon reboot you also have to edit the following</strong></p>
<blockquote><p>sudo vim /etc/default/rcS</p>
<p>in this file change the EDITMOTD &#8220;yes&#8221; to &#8220;no&#8221;</p></blockquote>
<p><strong>Changing the computer name</strong></p>
<blockquote><p>sudo vim /etc/hostname</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=163&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2011/12/15/system-admin-tips-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>ORA-1113 signalled during: alter database open</title>
		<link>http://somepalli.wordpress.com/2011/04/20/ora-1113-signalled-during-alter-database-open/</link>
		<comments>http://somepalli.wordpress.com/2011/04/20/ora-1113-signalled-during-alter-database-open/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 09:58:37 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Recovering From Login Problem]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=160</guid>
		<description><![CDATA[The ORa-1113 error means that your Backup implementation (&#8220;Retrospect&#8221;) does an ALTER TABLESPACE BEGIN BACKUP and END BACKUP for each tablespace. In 8i, you would not have the &#8220;ALTER DATABASE END BACKUP&#8221; command. Nor the &#8220;ALTER DATABASE DATAFILE .. END BACKUP&#8221;. What you would do is : 1. Start the service. 2. Go to Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=160&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The ORa-1113 error means that your Backup implementation (&#8220;Retrospect&#8221;) does an ALTER TABLESPACE BEGIN BACKUP and END BACKUP for each tablespace.</p>
<p>In 8i, you would not have the &#8220;ALTER DATABASE END BACKUP&#8221; command. Nor the &#8220;ALTER DATABASE DATAFILE .. END BACKUP&#8221;.</p>
<p>What you would do is :</p>
<blockquote><p>
1. Start the service.<br />
2. Go to Windows command line prompt as the Administrator or account in the OS_DBA group (with the right ORACLE_SID, ORACLE_HOME and PATH)<br />
3. sqlplus / as sysdba<br />
4. startup mount &#8212; or ALTER DATABASE MOUNT if it did get started but not mounted<br />
5. ALTER TABLESPACE (tablespacename_that_was_in_backup_mode) END BACKUP ;<br />
(if there were multiple tablespaces in backup mode, issue the END BACKUP for each one of them)<br />
6. ALTER DATABASE OPEN ;</p></blockquote>
<p>The other option to step 5 is the &#8220;RECOVER DATABASE&#8221; . Oracle may apply archivelogs to synchronise the datafiles back.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=160&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2011/04/20/ora-1113-signalled-during-alter-database-open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding Oracle &#8216;dba&#8217; group to Ubuntu User</title>
		<link>http://somepalli.wordpress.com/2011/04/20/adding-oracle-dba-group-to-ubuntu-user/</link>
		<comments>http://somepalli.wordpress.com/2011/04/20/adding-oracle-dba-group-to-ubuntu-user/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 08:24:19 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=113</guid>
		<description><![CDATA[1- Go to System-&#62;Administration-&#62;Users and groups. Then select the &#8220;Group&#8221; tab, search for the &#8220;dba&#8221; group, click on properties and select your user moving from the pane on the left to the pane on the right. Accept the modification and you&#8217;re done. 2- use usermod from a terminal to add your user to the group: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=113&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>1- Go to System-&gt;Administration-&gt;Users and groups.</p></blockquote>
<p>Then select the &#8220;Group&#8221; tab, search for the &#8220;dba&#8221; group, click on properties and select your user moving from the pane on the left to the pane on the right. Accept the modification and you&#8217;re done.</p>
<blockquote><p><strong>2- use usermod from a terminal to add your user to the group:</strong></p>
<p>sudo usermod -a -Gdba stan</p></blockquote>
<p>Although I would recommend you keep starting and stopping the database with the oracle default user (just su &#8211; oracle in the terminal when you need to do it). It&#8217;s like the concept behind the &#8220;sudo&#8221; command in ubuntu: you&#8217;re protecting the user and yourself from mistakes, other people accesing your machine.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=113&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2011/04/20/adding-oracle-dba-group-to-ubuntu-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover MySQL root Password</title>
		<link>http://somepalli.wordpress.com/2010/08/06/recover-mysql-root-password/</link>
		<comments>http://somepalli.wordpress.com/2010/08/06/recover-mysql-root-password/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 10:36:19 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysqld]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=144</guid>
		<description><![CDATA[You Can Recover MySql database root password easily by following steps Step 1: Stop MySql Service # /etc/init.d/mysql stop You will see: Stopping MySql database server: mysqld Step 2: Start MySql With Out Password # mysqld_safe &#8211;skip-grany-tables &#38; You Will See: [1] 5988 Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[6025]: started Step 3: Connect [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=144&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>You Can Recover MySql database root password easily by following steps</strong></p>
<p><strong>Step 1: Stop MySql Service</strong></p>
<blockquote><p># /etc/init.d/mysql stop<strong><br />
</strong></p></blockquote>
<p><strong>You will see:</strong></p>
<blockquote><p>Stopping MySql database server: mysqld<strong> </strong></p></blockquote>
<p><strong>Step 2:</strong> <strong>Start MySql With Out Password</strong></p>
<blockquote><p># mysqld_safe &#8211;skip-grany-tables &amp;</p></blockquote>
<p><strong>You Will See:</strong></p>
<blockquote><p>[1] 5988</p>
<p>Starting mysqld daemon with databases from /var/lib/mysql</p>
<p>mysqld_safe[6025]: started</p></blockquote>
<p><strong>Step 3: Connect to mysql server using mysql client</strong></p>
<blockquote><p># mysql -u root</p></blockquote>
<p>You Will See:</p>
<blockquote><p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt;</p></blockquote>
<p><strong>Step 4: Setup New MySql root user Password</strong></p>
<blockquote><p>mysql&gt; use mysql;<br />
mysql&gt; update user set password=PASSWORD(&#8220;NEW-ROOT-PASSWORD&#8221;) where User=&#8217;root&#8217;;<br />
mysql&gt; flush privileges;<br />
mysql&gt; quit</p></blockquote>
<p><strong>Step 5: Stop MySql Server </strong></p>
<blockquote><p># /etc/init.d/mysql stop</p></blockquote>
<p><strong>You Will See:</strong></p>
<blockquote><p>Stopping MySQL database server: mysqld<br />
STOPPING server from pid file /var/run/mysqld/mysqld.pid<br />
mysqld_safe[6186]: ended</p>
<p>[1]+  Done                    mysqld_safe &#8211;skip-grant-tables</p></blockquote>
<p><strong>Step 6: Stop MySql Server and Login as root</strong></p>
<blockquote><p># /etc/init.d/mysql start<br />
# mysql -u root -p</p></blockquote>
<blockquote><p><strong><br />
</strong></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=144&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2010/08/06/recover-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>To delete the / after the src From HTML Files</title>
		<link>http://somepalli.wordpress.com/2010/08/05/to-delete-the-word-after-the-src-from-html-files/</link>
		<comments>http://somepalli.wordpress.com/2010/08/05/to-delete-the-word-after-the-src-from-html-files/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 03:59:13 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Delete the / after src=]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[src]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=124</guid>
		<description><![CDATA[Deleting the / from the all html file after src= Deleting the / from the all html files containing in one folder sed -i &#8216;s/src=&#8221;\//src=&#8221;/g&#8217; *.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=124&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Deleting the / from the all html file after src=</p>
<p>Deleting the / from the all html files containing in one folder</p>
<blockquote><p>sed -i &#8216;s/src=&#8221;\//src=&#8221;/g&#8217; *.html</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=124&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2010/08/05/to-delete-the-word-after-the-src-from-html-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>To delete the JavaScript Tag  in HTML Files</title>
		<link>http://somepalli.wordpress.com/2010/08/04/to-delete-the-javascript-tag-in-html-files/</link>
		<comments>http://somepalli.wordpress.com/2010/08/04/to-delete-the-javascript-tag-in-html-files/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 12:04:31 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Delete the JavaScript]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=119</guid>
		<description><![CDATA[sed -i  &#8216;/&#60;script type=&#8221;text\/javascript&#8221;/,/&#60;\/script&#62;/d&#8217;  *.html OR U can use following code also for same process #!/bin/bash # ALL HTML FILES FILES=&#8221;*.html&#8221; # for loop read each file for f in $FILES do INF=&#8221;$f&#8221; OUTF=&#8221;$f.out.tmp&#8221; # replace javascript sed &#8216;/&#60;script type=&#8221;text\/javascript&#8221;/,/&#60;\/script&#62;/d&#8217; $INF &#62; $OUTF /bin/cp $OUTF $INF /bin/rm -f $OUTF done<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=119&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>sed -i  &#8216;/&lt;script type=&#8221;text\/javascript&#8221;/,/&lt;\/script&gt;/d&#8217;  *.html</p></blockquote>
<p>OR</p>
<p>U can use following code also for same process</p>
<blockquote><p>#!/bin/bash<br />
# ALL HTML FILES<br />
FILES=&#8221;*.html&#8221;<br />
# for loop read each file<br />
for f in $FILES<br />
do<br />
INF=&#8221;$f&#8221;<br />
OUTF=&#8221;$f.out.tmp&#8221;<br />
# replace javascript<br />
sed &#8216;/&lt;script type=&#8221;text\/javascript&#8221;/,/&lt;\/script&gt;/d&#8217; $INF &gt; $OUTF<br />
/bin/cp $OUTF $INF<br />
/bin/rm -f $OUTF<br />
done</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=119&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2010/08/04/to-delete-the-javascript-tag-in-html-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>Executing Our Own Shell Script When OS Booting in Debian</title>
		<link>http://somepalli.wordpress.com/2010/08/04/make-our-own-shell-script-as-bootable/</link>
		<comments>http://somepalli.wordpress.com/2010/08/04/make-our-own-shell-script-as-bootable/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 11:07:19 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Executing Our Own Shell Script]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=114</guid>
		<description><![CDATA[Write a shell script. To Open the folder with super user permission #! /bin/sh sudo nautilus save the file as sample.sh Make sample file as executable chmod a+x sample.sh Copy the file into init.d folder sudo cp sample.sh /etc/init.d/ check which is default runlevel sudo vi /etc/inittab # The default runlevel. id:2:initdefault: This means your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=114&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Write a shell script.</p>
<p>To Open the folder with super user permission</p>
<blockquote><p>#! /bin/sh</p>
<p>sudo nautilus</p></blockquote>
<p>save the file as sample.sh</p>
<p>Make sample file as executable</p>
<blockquote><p>chmod a+x sample.sh</p></blockquote>
<p>Copy the file into init.d folder</p>
<blockquote><p>sudo cp sample.sh /etc/init.d/</p></blockquote>
<p>check which is default runlevel</p>
<blockquote><p>sudo vi /etc/inittab</p>
<p># The default runlevel.<br />
id:2:initdefault:</p></blockquote>
<p>This means your default run level is 2.</p>
<p>Give the link to to the default run level</p>
<blockquote><p>ln /etc/init.d/sample.sh /etc/rc2.d/S10sample</p></blockquote>
<p>why i gave the link rc2.d, because of the default runlevel is 2 so i gave the link to rc2.d.</p>
<p>In S10sample &#8216; S &#8216; is mandatory 10 is number u can give your own number from 10 to 99</p>
<p>After that update rc by following code</p>
<blockquote><p>sudo update-rc.d sample defaults</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=114&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2010/08/04/make-our-own-shell-script-as-bootable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Mono 2.4 in Ubuntu</title>
		<link>http://somepalli.wordpress.com/2010/02/15/installing-mono-2-4-in-ubuntu/</link>
		<comments>http://somepalli.wordpress.com/2010/02/15/installing-mono-2-4-in-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:12:03 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Mono]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[monodevelop]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/2010/02/15/installing-mono-2-4-in-ubuntu/</guid>
		<description><![CDATA[This is a step by step guide to installing Mono 2.4 and mod_mono on a fresh Ubuntu Server install. Let&#8217;s begin. 1) Logon to machine so you see a command prompt. Type: sudo bash Enter your password, you should now be root. This will allow you to do whatever you want without typing &#8220;sudo&#8221; in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=104&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-110" href="http://somepalli.wordpress.com/2010/02/15/installing-mono-2-4-in-ubuntu/mono-logo/"><img class="alignnone size-medium wp-image-110" title="mono-logo" src="http://somepalli.files.wordpress.com/2010/02/mono-logo1.png?w=300&#038;h=261" alt="" width="300" height="261" /></a></p>
<p>This is a step by step guide to installing Mono 2.4 and mod_mono on a</p>
<p>fresh Ubuntu Server install. Let&#8217;s begin.</p>
<p>1) Logon to machine so you see a command prompt.</p>
<blockquote><p>Type: sudo bash</p></blockquote>
<p>Enter your password, you should now be root. This will allow you to do</p>
<p>whatever you want without typing &#8220;sudo&#8221; in front of every command.</p>
<p>2) Install all prequisits for Mono. Note you can put all packages on a</p>
<p>single line, but if you&#8217;re just starting out, you might want to install</p>
<p>each one just to make sure it all goes well. If any package is already</p>
<p>installed, just continue on. Depending on your system, you might already</p>
<p>have some of these.</p>
<blockquote><p>Type: apt-get install build-essential</p></blockquote>
<blockquote><p>Type: apt-get install pkg-config</p></blockquote>
<blockquote><p>Type: apt-get install bison</p></blockquote>
<blockquote><p>Type: apt-get install libglib2.0-0 libglib2.0-dev</p></blockquote>
<blockquote><p>Type: apt-get install libpng12-dev</p></blockquote>
<blockquote><p>Type: apt-get install libx11-dev</p></blockquote>
<blockquote><p>Type: apt-get install libfontconfig1-dev</p></blockquote>
<blockquote><p>Type: apt-get install libfreetype6-dev</p></blockquote>
<blockquote><p>Type: apt-get install apache2</p></blockquote>
<blockquote><p>Type: apt-get install apache2-threaded-dev</p></blockquote>
<blockquote><p>Type: apt-get install gettext</p></blockquote>
<p>3) Download and build libgdiplus which is required for Mono to build.</p>
<blockquote><p>Type: cd ~</p></blockquote>
<blockquote><p>Type: wget</p></blockquote>
<p>http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.4.tar.bz2</p>
<p>You should now have the file libgdiplus-2.4.tar.bz2 in your ~/ directory</p>
<blockquote><p>Type: tar -xpjf libgdiplus-2.4.tar.bz2</p></blockquote>
<p>This will decompress the tar file into its own directory, note you won&#8217;t</p>
<p>see any output)</p>
<p>You should now have a directory called libgdiplus-2.4</p>
<blockquote><p>Type: cd libgdiplus-2.4/</p></blockquote>
<blockquote><p>Type: ./configure</p></blockquote>
<p>You should not see any errors, but if you&#8217;re missing any packages please</p>
<p>install them and run &#8220;./configure&#8221; again.</p>
<blockquote><p>Type: make</p></blockquote>
<p>Sometimes here I see some error about &#8220;link is not a valid<br />
libtool object&#8221; and Error 1. I have no idea what causes this, but I can<br />
usually work around it by running &#8220;apt-get update&#8221; and &#8220;./configure&#8221; again.</p>
<blockquote><p>Type: make install</p></blockquote>
<p>4) Build Mono:</p>
<blockquote><p>Type: cd ~<br />
Type: wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.tar.bz2<br />
Type: tar -xpjf mono-2.4.tar.bz2</p></blockquote>
<p>This will take a minute or so because it&#8217;s a big file and you won&#8217;t see<br />
anything on the screen because stuff isn&#8217;t too chatty in the UNIX world.</p>
<blockquote><p>Type: cd mono-2.4/<br />
Type: ./configure<br />
Type: make</p></blockquote>
<p>This will take a while &#8211; probably about 15 minutes or so.</p>
<blockquote><p>Type: make install</p></blockquote>
<p>When this is done, you should be able to type &#8220;mono&#8221; from the prompt and<br />
see mono options. This is a good sign.</p>
<p>5) Build xsp (this also includes mono-server which is used for Apache<br />
integration)</p>
<blockquote><p>Type: cd ~<br />
Type: wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.tar.bz2<br />
Type: tar -xpjf xsp-2.4.tar.bz2<br />
Type: cd xsp-2.4/<br />
Type: ./configure<br />
Type: make<br />
Type: make install</p></blockquote>
<p>6) Build mod_mono so you can run Mono web sites on Apache</p>
<blockquote><p>Type: cd ~<br />
Type: wget</p>
<p>http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.tar.bz2</p>
<p>Type: tar -xpjf mod_mono-2.4.tar.bz2<br />
Type: cd mod_mono-2.4/<br />
Type: ./configure<br />
Type: make<br />
Type: make install</p></blockquote>
<p>7) Configure Mod_Mono with Apache</p>
<blockquote><p>Type: cd /etc/apache2<br />
Type: pico apache2.conf</p></blockquote>
<blockquote><p>Search for this section:<br />
# Include module configuration:<br />
Include /etc/apache2/mods-enabled/*.</p></blockquote>
<p>load</p>
<blockquote><p>Include /etc/apache2/mods-enabled/*.conf</p></blockquote>
<p>Add the following line under the above lines:</p>
<blockquote><p>Include /etc/apache2/mod_mono.conf</p></blockquote>
<p>At the end of this file, add the following line:</p>
<blockquote><p>MonoServerPath /usr/local/bin/mod-mono-server2</p></blockquote>
<p>Press CTRL+X to exit Pico, answer &#8220;Yes&#8221; to save your changes and press</p>
<p>enter to use the same file name.</p>
<blockquote><p>Restart Apache by typing: /etc/init.d/apache2 restart</p></blockquote>
<p>8) Make sure it all works!</p>
<blockquote><p>Type: cd /var/www</p></blockquote>
<p>This is your default website directory. By default there&#8217;s just a</p>
<p>temporary index.html file that says &#8220;It works!&#8221;, you can remove this.</p>
<blockquote><p>Type: rm *</p></blockquote>
<p>Now let&#8217;s create a test ASPX page.</p>
<p>Type: pico default.aspx</p>
<p>If you know ASP.NET, you can write some code here. But for something</p>
<p>dirt simple, just use:</p>
<p>Save the file and exit Pico (CTRL+X)</p>
<p>In your web browser, you should now be able to browse to the site and</p>
<p>see &#8220;Hello World!&#8221; on your screen. From this point on, you should be good</p>
<p>to go and develop a much more complex application <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=104&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2010/02/15/installing-mono-2-4-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>

		<media:content url="http://somepalli.files.wordpress.com/2010/02/mono-logo1.png?w=300" medium="image">
			<media:title type="html">mono-logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual Hosting Using apache2</title>
		<link>http://somepalli.wordpress.com/2009/10/23/virtual-hosting-using-apache2/</link>
		<comments>http://somepalli.wordpress.com/2009/10/23/virtual-hosting-using-apache2/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 05:54:16 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[VirtualHosting]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=72</guid>
		<description><![CDATA[What is Virtual Hosting and where and why it is used? Vitual Hosting is a method that servers such as web servers use to host more than one domain name on the same computer. Virtual hosting allows a website owner to have a site hosted on a web server that is shared with other websites. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=72&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What is Virtual Hosting and where and why it is used?</strong></p>
<p><strong>Vitual Hosting </strong>is a method that servers such as web servers use to host more than one domain</p>
<p>name on the same computer.</p>
<p>Virtual hosting allows a website owner to have a site hosted on a web server that is shared with</p>
<p>other websites. In other words, virtual hosting services and bandwidht to more than one website.</p>
<p>Virtual web hosting is one of the most popular hosting options available at the moment -</p>
<p>probably because of cost effective because you won&#8217;t have to pay for a dedicated server to host just</p>
<p>your website.</p>
<p>Virtual web hosting is good solution for <strong>SME&#8217;s</strong> even for <strong>MNC&#8217;s</strong> also websites that aren&#8217;t constantly being visited</p>
<p>There are two basic methods of accomplishing virtual hosting: <strong>name-based</strong>, and IP address or <strong>ip-based</strong>.</p>
<p><em><strong><span style="color:#0000ff;">Lets move to the Practical Session<br />
</span></strong></em></p>
<p><strong>Check are you have Apache2, mysql5, php5 in your PC or Laptop or NoteBook what ever you calls otherwise follow below steps</strong></p>
<p>1. Install LAMP</p>
<p>2. Control Apache2</p>
<p>3. Control MySql</p>
<p>4. Virtual Hosting</p>
<p>5. Virtual Hosting with multiple names</p>
<p><strong>1. Install LAMP &#8211; Linux Apache2 Mysql Php</strong></p>
<p>I preasume you have Ubuntu Linux installed. Let’s install everything else (Apache 2, PHP5 and MySQL 5)</p>
<blockquote><p>sudo aptitude install apache2 mysql-server php5 php5-mysql libapache2-mod-php5</p></blockquote>
<p>Open your favourite web browser and enter http://localhost (or http://127.0.0.1)</p>
<p>Check if Apache 2 and PHP 5 work fine</p>
<p>Create a file called test.php and enter this text in it</p>
<blockquote><p>&lt;?php phpinfo(); ?&gt;</p></blockquote>
<p>Save the file and copy it to your web site folder, e.g. /var/www</p>
<p>Open your web browser and run</p>
<blockquote><p>http://localhost/test.php</p></blockquote>
<p><strong>2. Control Apache2</strong></p>
<p>To start Apache2</p>
<blockquote><p>sudo /etc/init.d/apache2 start</p></blockquote>
<p>To stop Apache2</p>
<blockquote><p>sudo /etc/init.d/apache2 stop</p></blockquote>
<p>To restart Apache2</p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
<p>After first install I always get this error:</p>
<blockquote><p>apache2: Could not determine the server&#8217;s domain name, using 127.0.0.1 for ServerName</p></blockquote>
<p>It is easily fixed &#8211; add ServerName localhost into apache2.conf</p>
<blockquote><p>gksudo gedit /etc/apache2/apache2.conf</p></blockquote>
<p><strong>3. Control MySQL</strong></p>
<p>To start MySQL</p>
<blockquote><p>sudo /etc/init.d/mysql start</p></blockquote>
<p>To restart MySQL</p>
<blockquote><p>sudo /etc/init.d/mysql restart</p></blockquote>
<p>To stop MySQL</p>
<blockquote><p>sudo /etc/init.d/mysql stop</p></blockquote>
<p><strong>Creating Database using MySql</strong></p>
<p>First Login into MySql Using Following Command here it will ask password then enter the root password of My Sql. MySql Password has given when it was Installing</p>
<blockquote><p>mysql -u root -p</p></blockquote>
<p>Create Database</p>
<blockquote><p>Create Database virtual;</p></blockquote>
<p>Use Database</p>
<blockquote><p>Use virtual;</p></blockquote>
<h3><strong>4. Virtual Hosting</strong></h3>
<p><strong><br />
</strong></p>
<p><strong>(a) Allow user to web directory </strong></p>
<p><strong>(b) Create Folder and link to web directory</strong></p>
<p><strong>(c) Using Virtual Hosts </strong></p>
<p><strong>(d) Adding Virtual Hosts</strong></p>
<p><strong>(e) Apache Configuaration<br />
</strong></p>
<p><strong><br />
</strong></p>
<p><strong>l</strong><strong>ocalhost</strong> is the default <strong>host</strong>, but if you add <strong>virtal hosts</strong>, you may want to change it to, say, <strong>somechow</strong></p>
<p>However, the address<strong> http://localhost/</strong> by default points to <strong>/var/www</strong>. That folder is basically empty that is why you do not see much in your web browser.</p>
<p>To show proper web site, you need to put some web pages in that folder.</p>
<p><strong>(a)</strong> allow yourselft to have access to the folder /var/www</p>
<blockquote><p>sudo chown -R USERNAME /var/www</p></blockquote>
<p>Now, you can copy your great web site to the folder <strong>/var/www</strong>.</p>
<p>Start Firefox again and type <strong>http://localhost/</strong>. Do you see you web site?</p>
<p>If you hate to always navigate to /var/www, you can press Control-D in Nautilus to add a new bookmark in Places menu. You can create a link to it in your home folder for easy access, alternatively.</p>
<p><strong>(b)</strong> Create a folder in your desired location and link to the web direcotry</p>
<blockquote><p>ln -s /var/www ~/WebSite</p></blockquote>
<p>Now you can place all your web content inside the folder WebSite in your home folder and you will see your web site by going to</p>
<blockquote><p>http://localhost/</p></blockquote>
<p><strong>(c)</strong> Using virtual hosts</p>
<p>If I put a folder called somechow inside <strong>/var/www</strong>, I can run my local web site by entering <strong>http://localhost/somechow</strong>.</p>
<p>However, I prefer more human-readable web addresses. For example, when I enter <strong>http://somechow</strong>, my local WordPress copy of somechow.Ws (located in /home/some/WebSites/somechow) runs in Firefox.</p>
<p>To use virtual hosts, you need to change hosts file and add some information for Apache.</p>
<p><strong>(d)</strong> I add my virtual host address to Hosts file</p>
<blockquote><p>sudo nano /etc/hosts</p>
<p>127.0.0.1 somechow</p></blockquote>
<p>In above quote instead of 127.0.0.1 I used my desktop IP.</p>
<p>Then I reboot the computer or networking for changes to take effect</p>
<blockquote><p>sudo /etc/init.d/networking restart</p></blockquote>
<p><strong>(e)</strong> Apache Configuration</p>
<p>Open the window in super user mode  uisng following command prompt</p>
<blockquote><p>sudo nautilus</p></blockquote>
<p>I create a copy of file default which is located in <strong>/etc/apache2/sites-available</strong> and rename it to <strong>somechow</strong>.</p>
<p>I created a link to this file by right-clicking and selected <strong>MakeLink</strong> option</p>
<p>I copy this link to <strong>/etc/apache2/sites-enabled</strong></p>
<p>I change link file into <strong>somechow</strong>:</p>
<p><strong>NameVirtualHost * </strong>is changed to <strong>NameVirtualHost somechow</strong></p>
<p><strong>ServerName@somechow</strong> is added under <strong>ServerAdmin</strong></p>
<p><strong>DocumentRoot /var/www/ </strong>is changed to <strong>DocumentRoot /home/some/WebSites/somechow</strong></p>
<h3></h3>
<h3><strong>5. Virtual Hosting with multiple names</strong></h3>
<p><strong><br />
</strong></p>
<p><strong>(a) Allow user to web directory </strong></p>
<p><strong>(b) Create Folder and link to web directory</strong></p>
<p><strong>(c) Using Virtual Hosts </strong></p>
<p><strong>(d) Adding Virtual Hosts</strong></p>
<p><strong>(e) Apache Configuaration</strong></p>
<p><strong>l</strong><strong>ocalhost</strong> is the default <strong>host</strong>, but if you add <strong>virtal hosts</strong>, you may want to change it to, say, <strong>somechow </strong>and<strong> somedary<br />
</strong></p>
<p>However, the address<strong> http://localhost/</strong> by default points to <strong>/var/www</strong>. That folder is basically empty that is why you do not see much in your web browser.</p>
<p>To show proper web site, you need to put some web pages in that folder.</p>
<p><strong>(a)</strong> allow yourselft to have access to the folder /var/www</p>
<blockquote><p>sudo chown -R USERNAME /var/www</p></blockquote>
<p>Now, you can copy your great web site to the folder <strong>/var/www</strong>.</p>
<p>Start Firefox again and type <strong>http://localhost/</strong>. Do you see you web site?</p>
<p>If you hate to always navigate to /var/www, you can press Control-D in Nautilus to add a new bookmark in Places menu. You can create a link to it in your home folder for easy access, alternatively.</p>
<p><strong>(b)</strong> Create a folder in your desired location and link to the web direcotry</p>
<blockquote><p>ln -s /var/www ~/WebSite</p></blockquote>
<p>Now you can place all your web content inside the folder WebSite in your home folder and you will see your web site by going to</p>
<blockquote><p>http://localhost/</p></blockquote>
<p><strong>(c)</strong> Using virtual hosts</p>
<p>If I put a folder called <strong>somechow</strong> and <strong>somedary</strong> inside <strong>/var/www</strong>, I can run my local web site by entering <strong>http://localhost/somechow</strong> or <strong>http://localhost/somedary</strong></p>
<p>However, I prefer more human-readable web addresses. For example, when I enter <strong>http://somechow</strong> and <strong>http://somedary</strong> , my local WordPress copy of somechow.Ws or somedary.ws(located in /home/some/WebSites/somechow and /home/some/WebSites/somedary ) runs in Firefox.</p>
<p>To use virtual hosts, you need to change hosts file and add some information for Apache.</p>
<p><strong>(d)</strong> I add my virtual host address to Hosts file</p>
<blockquote><p>sudo nano /etc/hosts</p>
<p>127.0.0.1 somechow</p>
<p>127.0.0.1 somedary</p></blockquote>
<p>In above quote instead of 127.0.0.1 I used my desktop IP.</p>
<p>Then I reboot the computer or networking for changes to take effect</p>
<blockquote><p>sudo /etc/init.d/networking restart</p></blockquote>
<p><strong>(e)</strong> Apache Configuration <strong> </strong></p>
<p><strong> (i) For</strong> <strong>somechow</strong></p>
<p>Open the window in super user mode  uisng following command prompt</p>
<blockquote><p>sudo nautilus</p></blockquote>
<p>I create a copy of file default which is located in <strong>/etc/apache2/sites-available</strong> and rename it to <strong>somechow</strong>.</p>
<p>I created a link to this file by right-clicking the <strong>somechow</strong> and selected <strong>MakeLink</strong> option</p>
<p>I copy this link to <strong>/etc/apache2/sites-enabled</strong></p>
<p>I change link file into <strong>somechow</strong>:</p>
<p><strong>NameVirtualHost * </strong>is changed to <strong>NameVirtualHost somechow</strong></p>
<p><strong>ServerName@somechow</strong> is added under <strong>ServerAdmin</strong></p>
<p><strong>DocumentRoot /var/www/ </strong>is changed to <strong>DocumentRoot /home/some/WebSites/somechow</strong></p>
<p><strong> </strong></p>
<p><strong> (ii) For</strong> <strong>somedary</strong></p>
<p>Open the window in super user mode  uisng following command prompt</p>
<blockquote><p>sudo nautilus</p></blockquote>
<p>I create a copy of file default which is located in <strong>/etc/apache2/sites-available</strong> and rename it to <strong>somedary</strong>.</p>
<p>I created a link to this file by right-clicking the <strong>somechow</strong> and selected <strong>MakeLink</strong> option</p>
<p>I copy this link to <strong>/etc/apache2/sites-enabled</strong></p>
<p>I change link file into <strong>somedary</strong>:</p>
<p><strong>NameVirtualHost * </strong>is changed to <strong>NameVirtualHost somedary</strong></p>
<p><strong>ServerName@somedary</strong> is added under <strong>ServerAdmin</strong></p>
<p><strong>DocumentRoot /var/www/ </strong>is changed to <strong>DocumentRoot /home/some/WebSites/somedary</strong></p>
<p><strong><br />
</strong></p>
<p><strong><br />
</strong></p>
<p><strong><span style="color:#339966;"><br />
</span></strong></p>
<p><strong><span style="color:#339966;"><br />
</span></strong></p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=72&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2009/10/23/virtual-hosting-using-apache2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing SVN and TRAC in Ubuntu 9.04 with Apache2 SSL</title>
		<link>http://somepalli.wordpress.com/2009/09/11/installing-svn-and-trac-in-ubuntu-9-04-with-apache2-ssl/</link>
		<comments>http://somepalli.wordpress.com/2009/09/11/installing-svn-and-trac-in-ubuntu-9-04-with-apache2-ssl/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 11:28:04 +0000</pubDate>
		<dc:creator>somepalli</dc:creator>
				<category><![CDATA[SVN]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>

		<guid isPermaLink="false">http://somepalli.wordpress.com/?p=31</guid>
		<description><![CDATA[This tutorial will guide you through installation of Apache, HTTPS, Subversion and Trac, in order to have an (almost) complete development environment for your team. This article is divided in following steps 1. Installing Subversion 2. Installing Apache 3. Configuring Apache with SSL 4. Configuring Subversion with Apache (and SSL) 5. Installing Trac You may [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=31&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This tutorial will guide you through installation of Apache, HTTPS, Subversion and Trac, in order to have an (almost) complete development environment for your team.</p>
<p>This article is divided in following steps</p>
<p>1. Installing Subversion<br />
2. Installing Apache<br />
3. Configuring Apache with SSL<br />
4. Configuring Subversion with Apache (and SSL)<br />
5. Installing Trac</p>
<p>You may choose for example to see how to install Apache and SSL, or having Apache plus subversion without Trac.<br />
Steps are voluntary isolated, and will require more operations than, for instance, issuing an &#8220;apt-get install trac&#8221; that will download and install all the packages in one step; but this will hopefully allow the readers to choose picking one section and forget about unneeded components.<br />
I&#8217;ll not explain what Subversion is, or what SSL is, etc. Ask google, for this info: I just say that for your software project you may need a server with those tools ready for your team.</p>
<h3>Requirements</h3>
<p>You need Ubuntu 9.04, in my case I used the &#8220;desktop edition&#8221; 32bit. But possibly this tutorial should be valid for Debian and previous Ubuntu version; but I have not verified that: if you do, post a comment to report your experience.</p>
<h3>Preparation</h3>
<p>After installing your server you have to ensure that apt system is up to date with available software on the repositories. Type the following command:</p>
<blockquote><p><em>$ sudo apt-get update</em></p></blockquote>
<p>upgrading installed packages may be a good idea to do now:</p>
<blockquote><p><em>$ sudo apt-get upgrade</em></p></blockquote>
<p>Answer Yes if asked to download and install the upgrades.</p>
<h3>1. Installing Subversion</h3>
<p>From the command line type the command:</p>
<blockquote><p><em>$ sudo apt-get install subversion </em></p></blockquote>
<p>If everything went fine you should able to verify the Subversion version installed with following command:</p>
<blockquote><p><em>$ svn &#8211;version</em></p>
<p><em>svn, version 1.5.4 (r33841)<br />
compiled Aug  7 2009, 01:44:11</em></p>
<p><em>Copyright (C) 2000-2008 CollabNet.<br />
Subversion is open source software, see http://subversion.tigris.org/<br />
This product includes software developed by CollabNet (http://www.Collab.Net/).</em></p>
<p><em>The following repository access (RA) modules are available:</em></p>
<p><em>* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.<br />
- handles &#8216;http&#8217; scheme<br />
- handles &#8216;https&#8217; scheme<br />
* ra_svn : Module for accessing a repository using the svn network protocol.<br />
- with Cyrus SASL authentication<br />
- handles &#8216;svn&#8217; scheme<br />
* ra_local : Module for accessing a repository on local disk.<br />
- handles &#8216;file&#8217; scheme</em></p>
<p>For now, let&#8217;s stop here: how to create the Subversion repository, configure the users etc. Will be explained later in conjunction with Apache2 configuration. Maybe I&#8217;ll write something on how to deal with svnserve, svnadmin, and user access control, in another article.</p></blockquote>
<p>Later we will see how to create a repository, configure it with apache and HTTP basic authentication.</p>
<h3></h3>
<h3>2. Installing Apache</h3>
<p>To install apache 2 type the command:</p>
<blockquote><p><em>$ sudo apt-get install apache</em></p></blockquote>
<p>When finished you should be able to connect with the browser at <a href="http://localhost/">http://localhost</a> and see the message &#8220;It works!&#8221;. Or you may verify that at the command line installing and using curl:</p>
<blockquote><p><em>$ sudo apt-get install curl</em></p></blockquote>
<blockquote><p><em>$ curl http://localhost<br />
&lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;</em></p></blockquote>
<h3>3. Configuring Apache with SSL</h3>
<p>Now we want to configure apache to run HTTPs.<br />
Following command will enable ssl Apache2 module with a2enmod (cryptic name for &#8220;Apache2 enable module&#8221;:</p>
<blockquote><p><em>$ sudo a2enmod ssl</em></p></blockquote>
<p>The previous command will suggest you to restart apache to let it to reload the configuration; ignore that message for now.</p>
<p>We need to enable the HTTPS port (443). Edit /etc/apache2/ports.conf and ensure that port 443 is defined as follows:</p>
<blockquote><p><em>$ sudo gedit /etc/apache2/ports.conf</em></p></blockquote>
<blockquote><p><em># If you just change the port or add more ports here, you will likely also<br />
# have to change the VirtualHost statement in<br />
# /etc/apache2/sites-enabled/000-default<br />
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from<br />
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and<br />
# README.Debian.gz</em></p>
<p><em>NameVirtualHost *:80<br />
Listen 80</em></p>
<p><em>&lt;IfModule mod_ssl.c&gt;<br />
# SSL name based virtual hosts are not yet supported, therefore no<br />
# NameVirtualHost statement here<br />
NameVirtualHost *:443<br />
Listen 443<br />
&lt;/IfModule&gt;</em></p></blockquote>
<p>I added the clause NameVirtualHost *:443 in the for SSL; this is not strictly necessary but it will be useful later if you want to have a VirtualHost for trac and other development services.</p>
<p>Now we need to configure the SSL site. Fortunately we have already the configuration file for that, we just need to enable it with a2ensite (cryptic name for &#8220;apache2 enable site&#8221;)</p>
<blockquote><p><em>$ sudo a2ensite default-ssl</em></p></blockquote>
<p>Again, the above command will suggest to reload apache configuration to activate the changes. This time the suggestion is almost right. As we made several changes I prefer to restart apache with following command:</p>
<blockquote><p><em>sudo /etc/init.d/apache2 restart<br />
* Restarting web server apache2 </em></p>
<p><em>apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName<br />
&#8230; waiting apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName</em></p></blockquote>
<p>If everything went fine you should see the above warning. You can ignore it, unless you want to configure the ServerName for your server. But this is out of scope, so do a search on Google, or consult an Apache expert.</p>
<p>So, if everything went fine, now we should be able to connect to our server through SSL.<br />
You can use firefox or curl, as before, but this time the URL will be <a href="https://localhost/">https://localhost</a></p>
<blockquote><p><em>$ curl -k https://localhost<br />
&lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;</em></p></blockquote>
<p>the -k option is to ignore certification validation. Also firefox will complain that our certificate is invalid, but you can add it to exceptions and it will nomore bug you with those messages.</p>
<p>If everything went fine, now we should have Apache2, HTTP and HTTPs ready.</p>
<h3>4. Configuring Subversion with Apache (and SSL)</h3>
<p>First of all, we need to install the Subversion modules for Apache2.</p>
<blockquote><p><em>$ sudo apt-get install libapache2-svn</em></p></blockquote>
<p>They will be enabled by default. So you don&#8217;t need to run a2enmod.</p>
<p>We only need to configure a repository. Let&#8217; say our project is called &#8216;myproject&#8217;.</p>
<p>First of all, let&#8217;s decide where our svn repositories will be created. I like /var/local/svn :</p>
<blockquote><p><em>$ sudo mkdir /var/local/svn/</em></p></blockquote>
<p>Then let&#8217;s create the repository using following procedure:</p>
<blockquote><p><em>$ sudo mkdir /var/local/svn/myproject<br />
$ sudo chown www-data:www-data /var/local/svn/myproject<br />
$ sudo -u www-data svnadmin create /var/local/svn/myproject</em></p></blockquote>
<p>Above commands will ensure that the user www-data (which is the apache user) can fully access the repository for reading and updating it.</p>
<p>We need to configure the repository in Apache. Edit /etc/apache2/mods-available/dav_svn.conf using:</p>
<blockquote><p><em>$ sudo gedit /etc/apache2/mods-available/dav_svn.conf</em></p></blockquote>
<p>And add a section like the following one:</p>
<blockquote><p><em>&lt;Location /svn/myproject&gt;<br />
DAV svn<br />
SVNPath /var/local/svn/myproject<br />
AuthType Basic<br />
AuthName &#8220;My Project Subversion Repository&#8221;<br />
AuthUserFile /etc/subversion/myproject.passwd<br />
&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
Require valid-user<br />
&lt;/LimitExcept&gt;<br />
&lt;/Location&gt;</em></p></blockquote>
<p>In the above file we indicated that, at the location svn our repository should respond. And for updating the repository we want a valid user. As per above configuration anonymous consultation is allowed; but you can disable it commenting with a leading &#8216;#&#8217; the lines &lt;LimitExcept &#8230; and &lt;/LimitExcept&gt; or just removing them as in following example:</p>
<blockquote><p><em>&lt;Location /svn/myproject&gt;<br />
DAV svn<br />
SVNPath /var/local/svn/myproject<br />
AuthType Basic<br />
AuthName &#8220;My Project Subversion Repository&#8221;<br />
AuthUserFile /etc/subversion/myproject.passwd<br />
#&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
Require valid-user<br />
#&lt;/LimitExcept&gt;<br />
&lt;/Location&gt;</em></p></blockquote>
<p>The above configuration indicates to Apache that even for consulting the repository we want a valid user.<br />
But valid users need a password, and in fact we indicated a password file for our repository called /etc/subversion/myproject.passwd. So let&#8217;s create a password file with a couple of users:</p>
<blockquote><p><em>$ sudo htpasswd -c /etc/subversion/myproject.passwd luigi<br />
$ sudo htpasswd /etc/subversion/myproject.passwd mario</em></p></blockquote>
<p>The -c option indicates that the password file should be created as new; and it is only necessary for the first user. Be aware of the fact that -c overwrites the existing password file without asking anything. Personally I think this is a quite stupid behavior, but that&#8217;s the way it is.</p>
<p>Now we should be ready.</p>
<p>Let&#8217;s reload apache configuration to make the changes effective:</p>
<blockquote><p><em>$ sudo /etc/init.d/apache2 reload</em></p></blockquote>
<p>and let&#8217;s test with the browser that our svn repository is now accessible through HTTP and HTTPs at following urls:<br />
<a href="http://localhost/svn/myproject/">http://localhost/svn/myproject/</a><br />
<a href="https://localhost/svn/myproject/">https://localhost/svn/myproject/</a></p>
<p>We can also use curl to verify it is working:</p>
<blockquote><p><em>$ curl http://username:password@localhost/svn/myproject/<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;myproject &#8211; Revision 0: /&lt;/title&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h2&gt;myproject &#8211; Revision 0: /&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;/ul&gt;<br />
&lt;hr noshade&gt;&lt;em&gt;Powered by &lt;a href=&#8221;http://subversion.tigris.org/&#8221;&gt;Subversion&lt;/a&gt; version 1.5.4 (r33841).&lt;/em&gt;<br />
&lt;/body&gt;&lt;/html&gt;</em></p></blockquote>
<blockquote><p><em>$ curl -k https://username:password@localhost/svn/myproject/<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;myproject &#8211; Revision 0: /&lt;/title&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h2&gt;myproject &#8211; Revision 0: /&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;/ul&gt;<br />
&lt;hr noshade&gt;&lt;em&gt;Powered by &lt;a href=&#8221;http://subversion.tigris.org/&#8221;&gt;Subversion&lt;/a&gt; version 1.5.4 (r33841).&lt;/em&gt;<br />
&lt;/body&gt;&lt;/html&gt;</em></p></blockquote>
<p>Now we can also download our project using svn</p>
<blockquote><p><em>$ svn co https://localhost/svn/myproject myproject &#8211;username luigi</em></p></blockquote>
<p>&#8220;luigi&#8221; is obviously my username, substitute it with yours.<br />
The first time it will prompt for accepting the SSL certificate, answer to accept it permanently (p). Then it will optionally ask you for the password, type it.<br />
We can also test that modifying the remote repository is working with:</p>
<blockquote><p><em>$ svn mkdir -m &#8220;created the trunk for the project&#8221; https://localhost/svn/myproject/trunk &#8211;username luigi</em></p></blockquote>
<p>It will answer: Committed revision 1.  If so, we&#8217;ve done.</p>
<h3>5. Installing Trac</h3>
<p>To install trac files and required dependencies, type the following command:</p>
<blockquote><p><em>$ sudo apt-get install trac<br />
$ sudo apt-get install libapache2-mod-python</em></p>
<p>Let&#8217;s create the directories for trac web folder:</p></blockquote>
<blockquote><p><em>$ sudo mkdir /var/local/trac<br />
$ sudo chown www-data:www-data /var/local/trac</em></p></blockquote>
<p>edit Apache configuration file for one of your enabled sites (in this example I modify the default http one, but you can choose to put trac on HTTPS modifying default-ssl)</p>
<blockquote><p><em>$ sudo gedit /etc/apache2/sites-enabled/000-default</em></p></blockquote>
<p>and add the following lines at the end of the file, before the &lt;/VirtualHost&gt; tag:</p>
<blockquote><p><em>&lt;Location /projects&gt;<br />
SetHandler mod_python<br />
PythonInterpreter main_interpreter<br />
PythonHandler trac.web.modpython_frontend<br />
PythonOption TracEnvParentDir /var/local/trac<br />
PythonOption TracUriRoot /projects<br />
PythonOption PYTHON_EGG_CACHE /tmp<br />
&lt;/Location&gt;</em></p>
<p><em># use the following for one authorization for all projects<br />
# (names containing &#8220;-&#8221; are not detected):<br />
&lt;LocationMatch &#8220;/projects/[[:alnum:]]+/login&#8221;&gt;<br />
AuthType Basic<br />
AuthName &#8220;trac&#8221;<br />
AuthUserFile /etc/trac/trac.passwd<br />
Require valid-user<br />
&lt;/LocationMatch&gt;</em></p></blockquote>
<p>Create a password file for trac users (if you want you can reuse or link the passwd file used for subversion  repositories)</p>
<blockquote><p><em>$ sudo htpasswd -c /etc/trac/trac.passwd luigi<br />
$ sudo htpasswd  /etc/trac/trac.passwd mario<br />
&#8230; continue this way for all your users.</em></p></blockquote>
<p>Create the trac environment for your project:</p>
<blockquote><p><em>$ sudo -u www-data trac-admin /var/local/trac/myproject initenv</em></p></blockquote>
<p>It will ask you some questions related to your project. Here&#8217;s my answers in blue</p>
<blockquote><p><em>Project Name [My Project]&gt;<span style="color:#0000ff;"> My Project</span><br />
Database connection string [sqlite:db/trac.db]&gt; <span style="color:#0000ff;">[Just press Enter to accept the default]</span><br />
Repository type [svn]&gt;  <span style="color:#0000ff;">[Just press Enter to accept the default]</span><br />
Path to repository [/path/to/repos]&gt; <span style="color:#0000ff;">/var/local/svn/myproject</span></em></p></blockquote>
<p>Now let&#8217;s restart apache:</p>
<blockquote><p><em>$ sudo /etc/init.d/apache2 restart</em></p></blockquote>
<p>Check that trac works properly connecting the browser to <a href="http://localhost/projects">http://localhost/projects</a> or use curl to verify that the url is responding properly as we did before. This url should display a link to &#8220;My Project&#8221;, click on it and you should see the project home page. Clicking on login the browser should ask you to provide username and password as recently defined with htpasswd command.</p>
<p>Last thing to do: add yourself as administrator for Trac. This will enable the Admin menu and allow to do much of the administration operations from the web, that you could also do at the command line with trac-admin tool.<br />
Execute the following command:</p>
<blockquote><p><em>$ sudo -u www-data trac-admin /var/local/trac/myproject permission add luigi TRAC_ADMIN</em></p></blockquote>
<p>This will make the username &#8216;luigi&#8217; administrator for the project.</p>
<p>You can tune additional configuration settings in Trac to enable email notification, change the project logo, etc. Everything you need to know is on Trac <a href="http://trac.edgewall.org/wiki/TracGuide">website</a>. For the configuration check here: <a href="http://trac.edgewall.org/wiki/TracIni">http://trac.edgewall.org/wiki/TracIni</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somepalli.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somepalli.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somepalli.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somepalli.wordpress.com&amp;blog=3677049&amp;post=31&amp;subd=somepalli&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://somepalli.wordpress.com/2009/09/11/installing-svn-and-trac-in-ubuntu-9-04-with-apache2-ssl/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/185ebe594a512ffa7f0bacdaed1346b8?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">somepalli</media:title>
		</media:content>
	</item>
	</channel>
</rss>
