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

<channel>
	<title>Ramkumar K R &#187; Apache</title>
	<atom:link href="http://www.ramkumarkr.com/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ramkumarkr.com</link>
	<description>Another online scratchpad!</description>
	<lastBuildDate>Thu, 04 Mar 2010 15:13:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Starting LAMPP automatically on startup</title>
		<link>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html</link>
		<comments>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 09:54:54 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/starting-lampp-automatically-on-startup/</guid>
		<description><![CDATA[For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file
/opt/lampp/lampp start
where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command.
Do let me know whether it worked for you  
]]></description>
			<content:encoded><![CDATA[<p>For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file</p>
<p>/opt/lampp/lampp start</p>
<p>where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command.</p>
<p>Do let me know whether it worked for you <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XAMPP an easy LAMP installation solution</title>
		<link>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html</link>
		<comments>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html#comments</comments>
		<pubDate>Mon, 25 Feb 2008 10:08:49 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/xampp-an-easy-lamp-installation-solution/</guid>
		<description><![CDATA[Earlier I had messed up my LAMP test server trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work..
Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each and [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier I had <a href="http://ramkumar.lifeatsearch.com/messed-up-my-lamp-test-server/" title="Messed up my LAMP test server">messed up my LAMP test serve</a>r trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work..</p>
<p>Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each and everything manually.. I had no clue that time but I understood that there is a solution for this..</p>
<p>Just browsed http://www.apachefriends.org/en/xampp.html and found proof that there is a solution available.</p>
<p>Have you tried this? I have to mess up my server again if I have to test this <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So let me see when time permits <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[Update] There wasn&#8217;t mysql enabled on PHP5 when I installed RHEL5 afresh. So I had to remove the rpms of PHP, stop httpd,vsftpd and mysqld forever. Installed XAMPP and everything is working perfectly now..</p>
<p>There is a bit of security issues in XAMPP (Not so big if you take care). So read their documents properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache&#8217;s Mod_Rewrite magics</title>
		<link>http://www.ramkumarkr.com/apaches-mod_rewrite-magics.html</link>
		<comments>http://www.ramkumarkr.com/apaches-mod_rewrite-magics.html#comments</comments>
		<pubDate>Wed, 24 Oct 2007 11:33:09 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/apaches-mod_rewrite-magics/</guid>
		<description><![CDATA[First lets see what is mod_rewrite
mod_rewrite is basically an apache module, using which we can play around with the URL&#8217;s
 Configuration 
You need to cross check in your httpd.conf whether the following lines are present
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
If its not there, make sure to add it along with the other modules of apache which is mentioned [...]]]></description>
			<content:encoded><![CDATA[<p><strong>First lets see what is mod_rewrite</strong></p>
<p>mod_rewrite is basically an apache module, using which we can play around with the URL&#8217;s</p>
<p><strong> Configuration </strong></p>
<p>You need to cross check in your httpd.conf whether the following lines are present</p>
<p><code>LoadModule rewrite_module modules/mod_rewrite.so</code><br />
<code>AddModule mod_rewrite.c</code></p>
<p>If its not there, make sure to add it along with the other modules of apache which is mentioned in httpd.conf</p>
<p>again check for the directives mentioned for the directory block where your scripts reside.</p>
<p>thats something withing &lt;Directory ..&gt;&lt;/Directory&gt; tags</p>
<p>Inside which make sure you have the following line for AllowOverrides</p>
<p><code>AllowOverride All</code></p>
<p>See Apache&#8217;s documentation for further info on the above configurations.</p>
<p><strong>Put into action</strong></p>
<p>create a file with name .htaccess in your website/folder where you would like to make fancy url&#8217;s. say we have kept in a folder /fancy</p>
<p>Now edit the .htaccess file and type in following.</p>
<blockquote><p>#### URL Rewriting example by Ramkumar &#8211; 08032007 #####</p>
<p>Options +Indexes<br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteBase /fancy<br />
RewriteRule ^(.*)/(.*)/(.*)\.html$ index.php?c=$1&amp;s=$2&amp;p=$3 [L]<br />
RewriteRule ^(.*)/(.*)\.html$ index.php?c=$1&amp;p=$2 [L]<br />
RewriteRule ^(.*)\.html$ index.php?p=$1 [L]</p></blockquote>
<p>In the above code, see the line RewriteBase /fancy , which is very important, this says from where the rewrite rules need to be applied (the folder)</p>
<p>Now create a php page with following contents.</p>
<blockquote><p> &lt;?php<br />
$page=$_GET['p'];</p>
<p>if(isset($_GET['c']))<br />
echo &#8220;&lt;h2&gt;You are on category: &lt;font color=&#8217;#FF0000&#8242;&gt;&#8221;.str_replace(&#8220;-&#8221;,&#8221; &#8220;,$_GET['c']).&#8221;&lt;/font&gt;&lt;/h2&gt;&#8221;;<br />
if(isset($_GET['s']))<br />
echo &#8220;&lt;h3&gt;You are on subcategory: &lt;font color=&#8217;#FF0000&#8242;&gt;&#8221;.str_replace(&#8220;-&#8221;,&#8221; &#8220;,$_GET['s']).&#8221;&lt;/font&gt;&lt;/h3&gt;&#8221;;</p>
<p>echo &#8220;&lt;h4&gt;You are viewing page: &lt;font color=&#8217;#FF0000&#8242;&gt;&#8221;.str_replace(&#8220;-&#8221;,&#8221; &#8220;,$_GET['p']).&#8221;&lt;/font&gt;&lt;/h4&gt;&#8221;;<br />
?&gt;</p></blockquote>
<p>Open the page in browser under your webserver and try following URL combinations</p>
<p>/fancy/first/second/third.html</p>
<p>/fancy/first/second.html</p>
<p>/fancy/first.html</p>
<p>You are sure that the files corresponding to above URL&#8217;s  doesn&#8217;t exist in server, but you will still see a valid page (provided the mod_rewrite is working fine). If it works, thats the example of URL manipulation using mod_rewrite !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/apaches-mod_rewrite-magics.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
