<?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>Rubayat Hasan &#187; Tutorial</title>
	<atom:link href="http://rubayathasan.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubayathasan.com</link>
	<description>Software Development, Music, Web Design, life, thoughts...</description>
	<lastBuildDate>Sat, 03 Apr 2010 05:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up Apache HTTPS/SSL on Windows</title>
		<link>http://rubayathasan.com/tutorial/apache-ssl-on-windows/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=apache-ssl-on-windows</link>
		<comments>http://rubayathasan.com/tutorial/apache-ssl-on-windows/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 04:44:03 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[SSL Certificate]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=876</guid>
		<description><![CDATA[I am assuming that you already have Apache2 installed and working on a Windows server. For SSL/HTTPS to work you need to download and setup the Win32 Binary including OpenSSL &#34;httpd/apache_x.x.x-win32-x86-openssl-x.x.x.msi&#34; on your Windows server. If you now have regular HTTP server working follow the guide below to setup HTTPS. Setting up HTTPS on a [...]


Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/guide-to-running-apache-on-windows-or-ubuntu/' rel='bookmark' title='Permanent Link: Guide to Running Apache on Windows or Ubuntu'>Guide to Running Apache on Windows or Ubuntu</a> <small>After using IIS for almost 4 years now, I have...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>I am assuming that you already have Apache2 installed and working on a Windows server.</p>
<p>For SSL/HTTPS to work you need to <a title="Apache.org" href="http://httpd.apache.org/" target="_blank">download </a>and setup the Win32 Binary including OpenSSL &quot;<strong>httpd/apache_x.x.x-win32-x86-openssl-x.x.x.msi</strong>&quot; on your Windows server.</p>
<p>If you now have regular HTTP server working follow the guide below to setup HTTPS.</p>
<p> <span id="more-876"></span>
</p>
<h2><strong>Setting up HTTPS on a Windows Server:</strong></h2>
<h2>&#160;</h2>
<ul>
<li>
<h2>Creating a self-signed SSL Certificate using OpenSSL:</h2>
<p>Open the command prompt and <em>cd</em> to your Apache installations &quot;bin&quot; directory. Usually it would be: </p>
<p><strong>cd &quot;C:\Program Files\Apache Software Foundation\Apache2.2\bin&quot;</strong> </p>
<p>To create the SSL certificate we will need the openssl.cnf files location but the default location set by OpenSSL for this file is setup according to a Linux distribution, so we need to fix it for Windows. </p>
<p>We need to <strong>setup the Windows environment variable</strong> OPENSSL_CONF to point to the openssl.cnf files location. It is usually located in &quot;C:\Program Files\Apache Software Foundation\Apache2.2\conf\openssl.cnf&quot; directory. </p>
<p>So we can set it up by the following command or through the GUI interface:</p>
<p><strong>set OPENSSL_CONF=C:\Program Files\Apache Software Foundation\Apache2.2\conf\openssl.cnf</strong></p>
<p>All files generated from the following commands will reside in &quot;C:\Program Files\Apache Software Foundation\Apache2.2\bin&quot; folder. </p>
<p>Now that we have the environment variable set we need to create a new OpenSSL certificate request using the following command:        </p>
<p>     <strong></strong>
<p><strong>openssl req -new -out server.csr</strong></p>
<p>It will ask you some questions and you can safely ignore them and just answer the following questions:        <br /><strong>PEM pass phrase</strong>: Password associated with the private key you&#8217;re generating (anything of your choice).&#160; <br /><strong>Common Name</strong>: The fully-qualified domain name associated with this certificate (i.e. www.your-domain.com). </p>
<p>Now we need to remove the passphrase from the private key. The file &quot;server.key&quot; created from the following command should be only readable by the apache server and the administrator. You should also delete the .rnd file because it contains the entropy information for creating the key and could be used for cryptographic attacks against your private key. </p>
<p><strong>openssl rsa -in privkey.pem -out server.key</strong></p>
<p>Now we need to set up an expiry date, it could be any time of your choice, we use 365 days below: </p>
<p><strong>openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 365</strong> </p>
<p>We have the Self-signed SSL certificates ready now. Now We need to MOVE the &quot;server.cert&quot; and &quot;server.key&quot; file to the </p>
<p>&quot;C:\Program Files\Apache Software Foundation\Apache2.2\conf&quot; location.</p>
</li>
<li>
<h2>Configuring Apache to run SSL/HTTPS server: </h2>
<p>Now that we have the Self-signed SSL certificate ready, all we need is to configure Apache to start the SSL server. </p>
<p>First we modify the &quot;C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf&quot; file. </p>
<p>Open up conf\httpd.conf in a text editor and look for the line: </p>
<p><strong>LoadModule ssl_module modules/mod_ssl.so</strong> and remove any pound sign (#) characters preceding it. </p>
<p><strong>Include conf/extra/httpd-ssl.conf</strong> and remove any pound sign (#) characters preceding it. </p>
<p>Now we need to modify the &quot;C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-ssl.conf&quot;. Let all the default options as it is but make sure to modify the following section according to your need:</p>
<p>&lt;VirtualHost _default_:443&gt;        <br />&#160;&#160;&#160; ServerAdmin some@email.com         <br />&#160;&#160;&#160; DocumentRoot &quot;Your Root folder location&quot;         <br />&#160;&#160;&#160; ServerName www.domain.com:443         <br />&#160;&#160;&#160; ServerAlias domain.com:443         <br />&#160;&#160;&#160; ErrorLog &quot;logs/anyFile-error.log&quot;         <br />&#160;&#160;&#160; CustomLog &quot;logs/anyFile-access.log&quot; common         <br />&#160;&#160;&#160; SSLEngine on </p>
<p>&#160;&#160;&#160; SSLCertificateFile &quot;C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.cert&quot; </p>
<p>&#160;&#160;&#160; SSLCertificateKeyFile &quot;C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key&quot;        <br />&lt;/VirtualHost&gt; </p>
<p>Make sure that &quot;SSLCertificateFile&quot; and &quot;SSLCertificateKeyFile&quot; are properly located.</p>
<p>For better organizing you can also put the whole &lt;VirtualHost&gt;&lt;/VirtualHost&gt; section in the &quot;C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf&quot; along with your other Virtual Host settings there but you need to uncomment “Include conf/extra/httpd-vhosts.conf” in your conf\httpd.conf file to use that.</p>
</li>
<li>
<h2>Opening SSL/HTTPS port on Windows:</h2>
<p>Now we need to <strong>open an exception in Windows Firewall for TCP port 443.</strong> You can do that by going to “Windows Firewall” settings in Control Panel and adding a port in the exception section.</p>
</li>
</ul>
<p>Well that was long and painful but but now <strong>Restart the server</strong> and everything should work fine.</p>
<p>Please feel free to leave comments if this guide helped.</p>
<div style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px" id="_mcePaste">
<h2>Create Self-Signed CertificateC</h2>
</p></div>
<!--INFOLINKS_OFF-->

<p>Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/guide-to-running-apache-on-windows-or-ubuntu/' rel='bookmark' title='Permanent Link: Guide to Running Apache on Windows or Ubuntu'>Guide to Running Apache on Windows or Ubuntu</a> <small>After using IIS for almost 4 years now, I have...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/apache-ssl-on-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>IE8 addEventListener Alternative Example</title>
		<link>http://rubayathasan.com/tutorial/ie8-addeventlistener-alternative-example/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ie8-addeventlistener-alternative-example</link>
		<comments>http://rubayathasan.com/tutorial/ie8-addeventlistener-alternative-example/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 06:15:40 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/tutorial/ie8-addeventlistener-alternative-example/</guid>
		<description><![CDATA[The W3C DOM Level 2 Event Model specifies addEventListener as the standard way to register event handlers but IE doesn&#8217;t support addEventListener. Instead IE provides an alternative attachEvent method for that purpose. It does exactly the same thing but Microsoft decided to create their own method for the same purpose. An example is given below [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>The W3C DOM Level 2 Event Model specifies <strong>addEventListener</strong> as the standard way to register event handlers but IE doesn&#8217;t support addEventListener. Instead IE provides an alternative attachEvent method for that purpose. </p>
<p>It does exactly the same thing but Microsoft decided to create their own method for the same purpose. </p>
<p>An example is given below shows how to provide cross browser compatibility for addEventListener: </p>
<div id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">someElement = document.getElementById(<span style="color: #006080">'divName'</span>); </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #008000">// for IE compatability</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">if</span> (!someElement.addEventListener) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    someElement.attachEvent(<span style="color: #006080">&quot;onclick&quot;</span>, someFunction);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">}</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    someElement.addEventListener(<span style="color: #006080">&quot;click&quot;</span>, someFunction, <span style="color: #0000ff">false</span>);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">}</pre>
<p><!--CRLF--></div>
</div>
<p>Please feel free to post other alternatives, if you know.</p>
<!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/ie8-addeventlistener-alternative-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disabling Quicktime as Firefox Default mp3 Player</title>
		<link>http://rubayathasan.com/tutorial/disabling-quicktime-as-firefox-default-mp3-player/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=disabling-quicktime-as-firefox-default-mp3-player</link>
		<comments>http://rubayathasan.com/tutorial/disabling-quicktime-as-firefox-default-mp3-player/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 00:20:37 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Troubleshoot]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[quicktime]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=806</guid>
		<description><![CDATA[If you have Quicktime plugin for Firefox, annoyingly enough, Quicktime takes control and becomes the default mp3 player for your browser and leaving no option whatsoever to change the default mp3 player. Even if you change the  Tools -> Options -> Applications settings to change the default player, it will have no effect as Quicktime [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>If you have Quicktime plugin for Firefox, annoyingly enough, Quicktime takes control and becomes the default mp3 player for your browser and leaving no option whatsoever to change the default mp3 player. Even if you change the  Tools -> Options -> Applications settings to change the default player, it will have no effect as Quicktime has already Hijacked this setting from users.</p>
<p>Now, we go brute force and restrict these kind of plugins to take such controls in the future:</p>
<ul>
<li>Go to about:config</li>
<li>Type ‘plugin’ in the filter box (minus quotes)</li>
<li>Look for ‘plugin.disable_full_page_plugin_for_types’</li>
<li>If it already exists and contains a value, add ‘,audio/mpeg’ to the end of it, otherwise just change the value to ‘audio/mpeg’</li>
<li>Fully close Firefox, wait a few seconds for it to clean up and die</li>
<li>Launch Firefox again.. click an MP3 link.. </li>
</ul>
<p>voila! it does whatever you’ve specified in your Firefox Options -> Applications.</p>
<!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/disabling-quicktime-as-firefox-default-mp3-player/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone &#8211; Manually Backup SMS, Notes, Pictures, Video, MxTube Folder</title>
		<link>http://rubayathasan.com/iphone/iphone-backup-sms-notes-pictures-video-mxtube/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=iphone-backup-sms-notes-pictures-video-mxtube</link>
		<comments>http://rubayathasan.com/iphone/iphone-backup-sms-notes-pictures-video-mxtube/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 05:53:05 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mxtube]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[yourtube]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=757</guid>
		<description><![CDATA[iTunes although does a great job backing up all the data which you can restore at any time if you have issues but if you are upgrading hardware, i.e. 3G to 3GS or a major OS update like version 2.x to 3.x, restoring from old stuff may often create unnecessary legacy files left on the [...]


Related posts:<ol><li><a href='http://rubayathasan.com/iphone/iphone-3gs-camera-not-saving-pictures/' rel='bookmark' title='Permanent Link: iPhone &#8211; 3GS Camera not saving Pictures'>iPhone &#8211; 3GS Camera not saving Pictures</a> <small>If you have recently Jailbroken the iPhone 3GS with the...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><div class="alignright"><script type="text/javascript"><!--
google_ad_client = "pub-8160763381013811";
google_ad_slot = "3500113933";
google_ad_width = 250;
google_ad_height = 250;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<p>iTunes although does a great job backing up all the data which you can restore at any time if you have issues but if you are upgrading hardware, i.e. 3G to 3GS or a major OS update like version 2.x to 3.x, restoring from old stuff may often create unnecessary legacy files left on the system, slowing up the OS or in some cases may also contribute to battery depletion issues (This has not been confirmed yet but there might be some conflicts in the system that might cause faster depletion of battery).</p>
<p><img class="pie-img alignright noframe" src="http://lh5.ggpht.com/_R6m1UItV_D8/SsbkPW7ZshI/AAAAAAAAAhQ/1M59IwJmhX4/s640/iphone_3g.png" alt="iphone_3g.png" width="250" height="383" /></p>
<p>So the best way to get started with your brand new system would be to connect to iTunes and select “<strong>Setup as new</strong>”  instead of “Restore from backup”. This will ensure that you have a fresh and clean system running without any kind of conflicts going on in the background.</p>
<p>Before you do “Setup as new” phone you will need to backup your important files/data. The process of backing up your data described below is a manual backing up procedure and would require you to have SSH access to your iPhone. If you know what I am talking about go ahead and proceed at your own risk. Backup these following folders so that later you can restore them manually after you have your new System up and running. In most cases it will be a very easy <strong>Copy/Paste</strong> operation of the following folders after you SSH to your iPhone.<span id="more-757"></span></p>
<p>The important folders that you may want to backup first:</p>
<ul>
<li><strong>Notes</strong> Database:
<ul>
<li>/private/var/mobile/Library/Notes </li>
</ul>
</li>
<li><strong>SMS</strong> Database:
<ul>
<li>/private/var/Mobile/Library/SMS </li>
</ul>
</li>
<li>Pictures and Video Recordings
<ul>
<li>/private/var/mobile/Media/DCIM/100APPLE</li>
</ul>
</li>
<li><strong>Call History</strong> Database:
<ul>
<li>/private/var/mobile/Library/CallHistory </li>
</ul>
</li>
<li><strong>Voicemail</strong> Database:
<ul>
<li>/private/var/mobile/Library/Voicemail </li>
</ul>
</li>
<li><strong>YourTube </strong>Downloaded Video Folder:
<ul>
<li>/private/var/mobile/Media/Downloads/YourTube</li>
</ul>
</li>
<li><strong>MxTube</strong> Downloaded Video folder:
<ul>
<li>/var/mobile/Media/MxTube </li>
</ul>
</li>
</ul>
<p>The following databases may <strong>not work directly</strong> by Copy/Paste method as they may require iTunes Syncing:</p>
<ul>
<li>AddressBook DB
<ul>
<li>/private/var/mobile/Library/AddressBook/AddressBook.sqlitedb </li>
</ul>
</li>
<li>AddressBook Images DB
<ul>
<li>/private/var/mobile/Library/AddressBook/AddressBookImages.sqlitedb </li>
</ul>
</li>
<li>Maptiles DB
<ul>
<li>/private/var/mobile/Library/Caches/MapTiles/MapTiles.sqlitedb </li>
</ul>
</li>
<li>Calendar DB
<ul>
<li>/private/var/mobile/Library/Calendar/Calendar.sqlitedb</li>
</ul>
</li>
</ul>
<p><br class="spacer_" /></p>
<p>My address book and calender is always synced with Google, so I don&#8217;t have to worry backing them up but if you backed them manually, feel free to share. I have tried this on 3G, 3GS using OS 3.x and worked without any problem. Please feel free to post your experience doing this below.</p>
<!--INFOLINKS_OFF-->

<p>Related posts:<ol><li><a href='http://rubayathasan.com/iphone/iphone-3gs-camera-not-saving-pictures/' rel='bookmark' title='Permanent Link: iPhone &#8211; 3GS Camera not saving Pictures'>iPhone &#8211; 3GS Camera not saving Pictures</a> <small>If you have recently Jailbroken the iPhone 3GS with the...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/iphone/iphone-backup-sms-notes-pictures-video-mxtube/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compressing a Servlet Project into a .war file</title>
		<link>http://rubayathasan.com/tutorial/compressing-a-servlet-project-into-a-war-file/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=compressing-a-servlet-project-into-a-war-file</link>
		<comments>http://rubayathasan.com/tutorial/compressing-a-servlet-project-into-a-war-file/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 03:43:28 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[.war]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=756</guid>
		<description><![CDATA[In order to compress a &#8216;pets&#8217; servlet/web application/project into a &#34;Web Archive&#34; file named pets.war which can easily be imported in Eclipse or other IDE&#8221;s or can easily be transported to another server, Execute the following commands in the terminal: &#160; 1: cd \webapps\pets 2:&#160; 3: // Use the java archive command 'jar' to bundle [...]


Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/jdbc-connection-pooling-support/' rel='bookmark' title='Permanent Link: Resource Needed for JDBC Connection Pooling Support'>Resource Needed for JDBC Connection Pooling Support</a> <small>In order to get JDBC working with Connection Pooling Support,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>In order to compress a &#8216;pets&#8217; servlet/web application/project into a &quot;Web Archive&quot; file named pets.war which can easily be imported in Eclipse or other IDE&#8221;s or can easily be transported to another server, Execute the following commands in the terminal:</p>
<p> <span id="more-756"></span></p>
<p>&#160;</p>
<div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-8160763381013811";
google_ad_slot = "2721987337";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; height: 200px; max-height: 300px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> cd \webapps\pets </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> <span style="color: #008000">// Use the java archive command 'jar' to bundle up your application</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> <span style="color: #008000">// compress everything in this directory into a file named pets.war</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span> <span style="color: #008000">// (c=create, v=verbose, f=file)</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span> jar -cvf pets.war *</pre>
<p><!--CRLF--></div>
</div>
<p>&#160;</p>
<p>Now you can copy pets.war to any webapps directory on a new Tomcat Server. If Tomcat is running, the war file will be automatically decompressed and a web application named &#8216;pets&#8217; will be created in the appropriate directory as soon as you save it!!</p>
<p>Please let me know if it helps :).</p>
<!--INFOLINKS_OFF-->

<p>Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/jdbc-connection-pooling-support/' rel='bookmark' title='Permanent Link: Resource Needed for JDBC Connection Pooling Support'>Resource Needed for JDBC Connection Pooling Support</a> <small>In order to get JDBC working with Connection Pooling Support,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/compressing-a-servlet-project-into-a-war-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resource Needed for JDBC Connection Pooling Support</title>
		<link>http://rubayathasan.com/tutorial/jdbc-connection-pooling-support/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jdbc-connection-pooling-support</link>
		<comments>http://rubayathasan.com/tutorial/jdbc-connection-pooling-support/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 01:48:13 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[connection pooling]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=768</guid>
		<description><![CDATA[In order to get JDBC working with Connection Pooling Support, you will need to add the latest version of the following files to your Library: commons-dbcp-x.x.x.jar (http://commons.apache.org/dbcp/) commons-pool-x.x.x (http://commons.apache.org/pool/) mysql-connector-java-x.x.x-bin.jar (http://dev.mysql.com/downloads/connector/j/) Put the above files in your WEB-INF/lib folder and let your IDE(Eclipse) know the existence of of the above files. You will also need [...]


Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/compressing-a-servlet-project-into-a-war-file/' rel='bookmark' title='Permanent Link: Compressing a Servlet Project into a .war file'>Compressing a Servlet Project into a .war file</a> <small>In order to compress a &#8216;pets&#8217; servlet/web application/project into a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-8160763381013811";
google_ad_slot = "2721987337";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>In order to get JDBC working with Connection Pooling Support, you will need to add the latest version of the following files to your Library:</p>
<ul>
<li>commons-dbcp-x.x.x.jar (<a href="http://commons.apache.org/dbcp/" target="_blank">http://commons.apache.org/dbcp/</a>)</li>
<li>commons-pool-x.x.x (<a href="http://commons.apache.org/pool/" target="_blank">http://commons.apache.org/pool/</a>)</li>
<li>mysql-connector-java-x.x.x-bin.jar (<a href="http://dev.mysql.com/downloads/connector/j/" target="_blank">http://dev.mysql.com/downloads/connector/j</a>/)</li>
</ul>
<p>Put the above files in your WEB-INF/lib folder and let your IDE(Eclipse) know the existence of of the above files.</p>
<p>You will also need to add the following imports at the the top of files where you want access to CPDS:</p>
<ul>
<li>import org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS;</li>
<li>import org.apache.commons.dbcp.datasources.SharedPoolDataSource;</li>
</ul>
<!--INFOLINKS_OFF-->

<p>Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/compressing-a-servlet-project-into-a-war-file/' rel='bookmark' title='Permanent Link: Compressing a Servlet Project into a .war file'>Compressing a Servlet Project into a .war file</a> <small>In order to compress a &#8216;pets&#8217; servlet/web application/project into a...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/jdbc-connection-pooling-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSx86 &#8211; Changing Default Kernel</title>
		<link>http://rubayathasan.com/tutorial/osx86-changing-default-kernel/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=osx86-changing-default-kernel</link>
		<comments>http://rubayathasan.com/tutorial/osx86-changing-default-kernel/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 22:28:07 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[osx86]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=674</guid>
		<description><![CDATA[OSX by default uses a kernel that is placed in the root directory &#34;/&#34; and loads from a file named &#34;mach_kernel&#34;. So in order to replace the default kernel, all you have to do is to replace that file with your own kernel file. But remember, the kernel you are replacing with must be compatible [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p><img class="noframe alignright" alt="wiki.png" src="http://lh4.ggpht.com/_R6m1UItV_D8/SkfqLudi99I/AAAAAAAAAfA/wDGx0AF21Sg/s128/wiki.png" width="74" height="107" />OSX by default uses a kernel that is placed in the root directory<strong> &quot;/&quot;</strong> and loads from a file named &quot;<strong>mach_kernel</strong>&quot;.</p>
<p>So in order to replace the default kernel, all you have to do is to replace that file with your own kernel file. But remember, the kernel you are replacing with must be compatible with your current system otherwise you will not be able to boot.</p>
<p>In my case, I have several kernels in my root directory anv, voodoo, kabyl, and vanilla. I would like &quot;<strong>anv</strong>&quot; to my default kernel. To do that open the terminal and type following command&#8217;s :</p>
<p><span id="more-674"></span></p>
<div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-8160763381013811";
google_ad_slot = "2721987337";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 400px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> <span style="color: #008000">// backup your current kernel First</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span> <span style="color: #008000">// Enter your password</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> <span style="color: #008000">// replace your current kernel with new one &quot;anv&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> <span style="color: #008000">// Change the owner to root</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span> <span style="color: #008000">// change the file permission</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span> &gt; sudo cp /mach_kernel /mach_kernel_old </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span> &gt; (type your password) </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span> &gt; sudo cp -f /anv  /mach_kernel</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span> &gt; sudo chown root:wheel /mach_kernel* </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span> &gt; sudo chmod 644 /mach_kernel* </pre>
<p><!--CRLF--></p>
</p></div>
</div>
<p>Now reboot and you should be booting with your new &quot;anv&quot; kernel.</p>
<div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-8160763381013811";
google_ad_slot = "3500113933";
google_ad_width = 250;
google_ad_height = 250;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/osx86-changing-default-kernel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Guide to Running Apache on Windows or Ubuntu</title>
		<link>http://rubayathasan.com/tutorial/guide-to-running-apache-on-windows-or-ubuntu/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=guide-to-running-apache-on-windows-or-ubuntu</link>
		<comments>http://rubayathasan.com/tutorial/guide-to-running-apache-on-windows-or-ubuntu/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 11:39:40 +0000</pubDate>
		<dc:creator>Rubayat</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[permalink]]></category>

		<guid isPermaLink="false">http://rubayathasan.com/?p=223</guid>
		<description><![CDATA[After using IIS for almost 4 years now, I have decided to give up on IIS for so many of its limitations. Among one of those limitations was the inability to use &#8220;pretty permalink&#8221; or the mod-rewrite feature which comes built in with Apache. Although IIS 7 seems to have a plan to include similar [...]


Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/apache-ssl-on-windows/' rel='bookmark' title='Permanent Link: Setting up Apache HTTPS/SSL on Windows'>Setting up Apache HTTPS/SSL on Windows</a> <small>I am assuming that you already have Apache2 installed and...</small></li>
<li><a href='http://rubayathasan.com/wordpress/plugin/wordpress-on-windows-iis-server-with-smtp/' rel='bookmark' title='Permanent Link: WordPress on Windows IIS Server with SMTP'>WordPress on Windows IIS Server with SMTP</a> <small>WordPress 2.7 runs very smoothly on IIS 6 with PHP...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>After using IIS for almost 4 years now, I have decided to give up on IIS for so many of its limitations.</p>
<p><img class="alignleft noframe" src="http://apache.org/images/feather.gif" alt="" width="225" height="106" />Among one of those limitations was the inability to use &#8220;pretty permalink&#8221; or the mod-rewrite feature which comes built in with Apache. Although IIS 7 seems to have a plan to include similar sort of functionality but waiting for that to come and who knows how many more problems along with it, is just not worth waiting for. Its just more easier to get Apache running on your machine and get everything that IIS gives and much more.<span id="more-223"></span></p>
<p>You can either run Apache on Windows or in a Linux machine, for most people it will be easier to run it on windows.</p>
<p><strong>To Run Apache on Windows:</strong></p>
<ol>
<li>Download latest Windows version of Apache from <a href="http://apache.org/" target="_blank">apache.org</a></li>
<li>And then there are some steps we will need to follow to configure the Apache2.2\conf\httpd.conf file located in your Apache installation directory (I will soon post the necessary modifications for the httpd.conf file).</li>
<li>After modifying the file you can easily restart the Apache server using the GUI that comes with Apache.</li>
<li>And your new Server is set to go.</li>
</ol>
<p>And the second<strong> best option</strong> is to totally get rid of windows and start with a brand new Debian distribution Ubuntu and follow the following steps after you get Ubuntu running.</p>
<p><strong>To Run Apache on Ubuntu 8.10 (Intrepid Ibex)</strong><strong>/Linux with PHP, MySQL support:</strong></p>
<ol>
<li> Optionally, install SSH Client and Server (for remote access to this server)<br />
 <code>sudo apt-get install ssh<br />
 </code></li>
<li> Install Database Server<br />
 <code>sudo apt-get install mysql-server<br />
 </code></li>
<li> Install Apache2 web server<br />
 <code>sudo apt-get install apache2<br />
 </code></li>
<li> Install PHP5<br />
 <code>sudo apt-get install php5 libapache2-mod-php5<br />
 </code></li>
<li>Install PHP5-MySQL support<br />
 <code>sudo apt-get install php5-mysql<br />
 </code></li>
<li> Restart Apache<br />
 <code>sudo /etc/init.d/apache2 restart<br />
 </code></li>
<li> Optionally, install phpMyAdmin<br />
 <code>sudo apt-get install phpmyadmin</code></li>
<li>Restart the machine and you are set with your new LAMP server.</li>
</ol>
<p><strong>Note:</strong> If you are not very familier with Apache, it might help to start with a GUI control panel to manage all aspects of Apache. I found <a href="http://www.webmin.com/" target="_blank">http://www.webmin.com/</a> to do a great job when it comes to managing Apache servers. It comes with tons of other goodies too.</p>
<!--INFOLINKS_OFF-->

<p>Related posts:<ol><li><a href='http://rubayathasan.com/tutorial/apache-ssl-on-windows/' rel='bookmark' title='Permanent Link: Setting up Apache HTTPS/SSL on Windows'>Setting up Apache HTTPS/SSL on Windows</a> <small>I am assuming that you already have Apache2 installed and...</small></li>
<li><a href='http://rubayathasan.com/wordpress/plugin/wordpress-on-windows-iis-server-with-smtp/' rel='bookmark' title='Permanent Link: WordPress on Windows IIS Server with SMTP'>WordPress on Windows IIS Server with SMTP</a> <small>WordPress 2.7 runs very smoothly on IIS 6 with PHP...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rubayathasan.com/tutorial/guide-to-running-apache-on-windows-or-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
