<?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>Bin-Blog &#187; Apache</title>
	<atom:link href="http://www.bin-co.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing LAMP(Apache Web Server/PHP/MySQL) in Debian/Ubuntu</title>
		<link>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/</link>
		<comments>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 19:10:07 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=125</guid>
		<description><![CDATA[Installing the <abbr title="Linux Apache MySQL PHP">LAMP</abbr> environment on a Linux system is easy if you are comfortable with using the native package management software. If you on a Red Hat/Fedora/CentOS system, that will be yum - and for Debian/Ubuntu systems, that will be apt. This tutorial shows you how to install Apache 2, PHP 5 and MySQL 5 in Debian using apt.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/lava_lamp.jpg" alt="LAMP - Linux, Apache, MySQL, PHP" title="Lamp" width="232" height="294" class="size-full wp-image-128 intro" align="right" /></p>
<p class="intro">Installing the <abbr title="Linux Apache MySQL PHP">LAMP</abbr> environment on a Linux system is easy if you are comfortable with using the native package management software. If you on a Red Hat/Fedora/CentOS system, that will be yum &#8211; and for Debian/Ubuntu systems, that will be apt. This tutorial shows you how to install Apache 2, PHP 5 and MySQL 5 in Debian using apt.</p>
<p>Before installation, a few points to remember. These instruction are not for a production environment &#8211; this is for a development environment. To install the software, you need root access. You can get that using this command&#8230;</p>
<pre><code class="cli">su -
[Enter root password]</code></pre>
<h2>Installing Apache 2</h2>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/apache.png" alt="" title="Apache Logo" width="230" height="90" class="alignnone size-full wp-image-126" align="right" /></p>
<p>Use this command to install Apache 2.</p>
<pre><code class="javascript">apt-get install apache2</code></pre>
<p>Make sure you specify &#8216;apache2&#8242; &#8211; or else, apache 1.3 will be installed.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/php-logo.png" alt="PHP Logo" title="PHP Logo" width="179" height="98" class="alignnone size-full wp-image-123" align="right" /></p>
<h2>Install PHP 5</h2>
<p>Now, install the PHP 5 packages&#8230;</p>
<pre><code class="javascript">apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi</code></pre>
<p>No go to the folder <code>/etc/apache2/sites-enabled/</code> and edit the file in that directory(usually 000-default). Find the line that says<br />
<code>RedirectMatch ^/$ /apache2-default/</code><br />
and remove it.</p>
<p>Now your document root is <code>/var/www/</code> &#8211; place all your HTML documents and scripts in this folder. If you want to make some other configuration changes, edit the configuration files at <code>/etc/apache2/apache2.conf</code></p>
<p>I also had to make the following changes&#8230;</p>
<ul>
<li>Changed the owner of <code>/var/log/apache2</code> to www-data &#8211; I used the command <code>chown www-data:www-data apache2</code></li>
<li>Created an empty file at <code>/etc/apache2/httpd.conf</code></li>
</ul>
<p>This was to fix a few errors I saw on my system &#8211; you may not have to do it.</p>
<h2>Install MySQL</h2>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/mysql_logo.gif" alt="" title="MySQL Logo" width="150" height="98" class="alignnone size-full wp-image-127" align="right" /></p>
<p>This is the command to install MySQL server, its client and PHP&#8217;s MySQL libraries&#8230;</p>
<pre><code class="javascript">apt-get install mysql-client mysql-common mysql-server php5-mysql</code></pre>
<p>Finally, Install the other packages you need as well</p>
<pre><code class="javascript">apt-get install php5-sqlite php5-gd ...</code></pre>
<h2>Testing the System</h2>
<p>Go to your document root(<code>/var/www</code>) and create a php files called &#8216;info.php&#8217; and put this code inside that&#8230;</p>
<pre><code class="php">&lt;?php
php<!-- PHP bug -->info();

</code></pre>
<h3>Start the Servers</h3>
<p>First, turn on the MySQL database server&#8230;</p>
<pre><code class="javascript">/etc/init.d/mysql start</code></pre>
<p>Then, start the Apache Web Server&#8230;</p>
<pre><code class="javascript">/etc/init.d/apache2 start</code></pre>
<p>Now fire up a browser and go to <a href="http://localhost/">localhost</a> &#8211; you should see a file listing page with a &#8216;info.php&#8217; in the list. Click on that link &#8211; if you see a PHP information page, your web server is setup correctly.</p>
<p>To make sure MySQL-PHP connection is working, <a href="http://www.bin-co.com/database/clients/phpmyadmin/installing_phpmyadmin.php">install phpMyAdmin</a> &#8211; or write a database connection script &#8211; whatever is easier for you.</p>
<h2>Related Links</h2>
<ul>
<li><a href="http://www.thegeekstuff.com/2008/09/how-to-install-or-upgrade-lamp-apache-mysql-and-php-stack-on-linux-using-yum/">How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum</a></li>
<li><a href="http://www.debianadmin.com/apache2-installation-and-configuration-with-php-support-in-debian-linux.html">Apache2 installation and configuration with php support</a></li>
<li><a href="http://www.debianadmin.com/install-and-configure-apache2-with-php5-and-ssl-support-in-debian-etch.html">Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch</a></li>
<li><a href="http://www.adobe.com/devnet/dreamweaver/articles/lamp.html">Setting Up Your PHP Server Environment Using Linux, Apache, MySQL, and PHP</a></li>
<li><a href="http://www.mysql-apache-php.com/">Quick Linux Server w/ Apache+PHP+MySQL</a></li>
<li><a href="http://www.debianhelp.co.uk/lamp.htm">LAMP (Linux Apache Mysql PHP) Configuration and Installing in Debian</a></li>
<li><a href="http://lamphowto.com/">HOWTO: Installing MySQL and Apache with PHP support on Linux</a></li>
<li><a href="http://www.kewanshunn.com/articles/how_to_install_apache2,_php5,_mysql5_on_redhat/3.html">How to install Apache2, PHP5, MySQL5 on RedHat</a></li>
</ul>
<p><strong>Shameless Plug</strong>: If you are a Linux user, you may want to check out my <a href="http://lindesk.com/">Linux Blog &#8211; LinDesk</a> &#8211; its about Linux on the Desktop &#8211; Articles, Application Reviews and Tutorials about many aspects of Linux included configuration and scripting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Case Sensitivity in URLs</title>
		<link>http://www.bin-co.com/blog/2007/10/case-sensitivity-in-urls/</link>
		<comments>http://www.bin-co.com/blog/2007/10/case-sensitivity-in-urls/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 18:16:29 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Case]]></category>
		<category><![CDATA[Sensitive]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/10/case-sensitivity-in-urls/</guid>
		<description><![CDATA[I am an open source guy - so naturally I prefer the flagship <abbr title="Open Source Software">OSS</abbr> software Apache to the proprietary Microsoft IIS. But there is one area where IIS does a better job than Apache - the case sensitivity of URLs.]]></description>
			<content:encoded><![CDATA[<p class="intro">I am an open source guy &#8211; so naturally I prefer the flagship <abbr title="Open Source Software">OSS</abbr> software Apache to the proprietary Microsoft IIS. But there is one area where IIS does a better job than Apache &#8211; the case sensitivity of URLs.</p>
<h2>Are URLs Case Sensitive?</h2>
<p>They should not be &#8211; but they sometimes are. Domain names are not case sensitive &#8211; for example <a href="http://www.apache.org/">http://www.apache.org/</a> and <a href="http://WWW.Apache.Org/">http://WWW.Apache.Org/</a> goes to the same location. But in the <abbr title="Linux/Apache/MySQL/PHP">LAMP</abbr> platform, the path is case sensitive&#8230;</p>
<ul>
<li><a href="http://www.apache.org/foundation/getinvolved.html">http://www.apache.org/foundation/getinvolved.html</a> is not</li>
<li><a href="http://www.apache.org/Foundation/GetInvolved.HTML">http://www.apache.org/Foundation/GetInvolved.HTML</a></li>
</ul>
<p>But in the case of Microsoft IIS server, this is not true &#8211; try&#8230;</p>
<ul>
<li><a href="http://www.microsoft.com/WindowsServer2003/IIS/Default.mspx">http://www.microsoft.com/WindowsServer2003/IIS/Default.mspx</a> is the same as</li>
<li><a href="http://www.microsoft.com/windowsserver2003/iis/default.mspx">http://www.microsoft.com/windowsserver2003/iis/default.mspx</a></li>
</ul>
<h2>Reason: Linux Filesystem is Case Sensitive</h2>
<p>The root cause of this is that the filesystem in the Linux OS is case sensitive &#8211; while FAT32/NTFS filesystems in Windows are not.</p>
<h2>Dynamic URLs</h2>
<p>Now Dynamic/friendly/clean URLs are appearing in many CMS tools. A good example for this is the &#8216;permalink structure&#8217; in WordPress. These dynamic URLs could be case sensitive or not &#8211; it depends on the software. In WordPress they are case insensitive. <a href="http://del.icio.us/">Del.icio.us</a> is also case insensitive. TinyURL is another service that uses case insensitive URLs. But it is possible for the tool to make the URLs case sensitive.</p>
<h2>From the SEO perspective</h2>
<p>If the search bot visits two urls say, example.com/MyWebPage/Index and example.com/mywebpage/index , will the bot index both page contents? If they are same, will one get the duplicate content penalty? Or will google just index the URL with lower case and ignore the other &#8211; remember, in Linux/Apache, both pages may have different content.</p>
<h2>Conclusion</h2>
<p>The <a href="http://www.ietf.org/rfc/rfc1738.txt">RFC for URL</a> says they must be case insensitive.</p>
<blockquote><p>For resiliency, programs interpreting URLs should treat upper case letters as equivalent to lower case in scheme names (e.g., allow &#8220;HTTP&#8221; as well as &#8220;http&#8221;).</p></blockquote>
<p>Apache must not use the filesystem as an excuse &#8211; I really hope they provide case insensitive URLs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/10/case-sensitivity-in-urls/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Between Web Application and Desktop Applications</title>
		<link>http://www.bin-co.com/blog/2007/08/between-web-application-and-desktop-applications/</link>
		<comments>http://www.bin-co.com/blog/2007/08/between-web-application-and-desktop-applications/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 17:39:10 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[local]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/08/between-web-application-and-desktop-applications/</guid>
		<description><![CDATA[There is a distinct line between web application and desktop applications. But over the last few years, this line is becoming thinner. Due to faster internet connection and technologies like ajax, web applications are becoming much faster and more responsive. And, if you have a local web server installed, a &#8216;web&#8217; application can become desktop [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">There is a distinct line between web application and desktop applications. But over the last few years, this line is becoming thinner. Due to faster internet connection and technologies like ajax, web applications are becoming much faster and more responsive. And, if you have a local web server installed, a &#8216;web&#8217; application can become desktop application.</p>
<p>I have a web server(Apache), and a database server(MySQL) running at all times on my local system. Since <abbr title="Linux/Apache/MySQL/PHP">LAMP</abbr> is my preferred platform of development, if I need a new software, I will create it on LAMP. A good example of this is <a href="http://www.bin-co.com/php/programs/apps/nexty/">Nexty</a>. Over time, I have discovered that web application can be used as desktop applications. All you need is a web server, a database server and a browser.</p>
<p>There must be some changes to the current model to make this system work. These are a few I could think of&#8230;</p>
<ul>
<li>Web Server must run as the current user. That way, you can read/write to any file using PHP(or equivalent).</li>
<li>The application must not be available over the network. Or, the web server must only accept connections from 127.0.0.1</li>
<li>An installer for these kind of applications must be made.</li>
</ul>
<h2>Advantages</h2>
<ul>
<li><strong>Familiarity</strong>: People are already used to web applications &#8211; so it will be easy to switch.</li>
<li><strong>User Customizable</strong>: Users can change the appearance of the application(user stylesheets), and to a limited extent, the functionality(GreaseMonkey).</li>
<li><strong>Open Source</strong>: If the code is in PHP or Ruby on Rails, or anything similar, the code will be available for study or even modification.</li>
<li><strong>Cross Platform</strong>: The same program can be installed in Windows or Linux or whatever &#8211; as long as it has a Web server.</li>
</ul>
<h2>Disadvantages</h2>
<ul>
<li><strong>Imaginary</strong>: As of yet no such system exists.</li>
<li><strong>High Level</strong>: The system will not be able to do low level system operations.</li>
<li><strong>Limited</strong>: There will be some very serious limitation to the application unless the current systems are modified. For example, the browser cannot read or write to the filesystem.</li>
</ul>
<p>I have been using some web applications as desktop applications for a while now &#8211; these include <a href="http://wordpress.org/">WordPress</a>(for keeping notes), <a href="http://www.activecollab.com/">activeCollab</a>(project management), Nexty(to do list), and Tiker(time tracker).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/08/between-web-application-and-desktop-applications/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

