<?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>St0rY oF uNpReDiCtAbLe LiFe II &#187; MS Windows</title>
	<atom:link href="http://blog.amirhamzah.net/category/ms-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.amirhamzah.net</link>
	<description>.:My Continuous Whining About Life~sighh~:.</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:18:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dark Screen for Users of Pirated Windows</title>
		<link>http://blog.amirhamzah.net/2008/08/dark-screen-of-pirated-windows/</link>
		<comments>http://blog.amirhamzah.net/2008/08/dark-screen-of-pirated-windows/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 14:30:00 +0000</pubDate>
		<dc:creator>Amir Hamzah</dc:creator>
				<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[piracy]]></category>
		<category><![CDATA[wga]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows xp pro]]></category>

		<guid isPermaLink="false">http://blog.amirhamzah.net/?p=218</guid>
		<description><![CDATA[You're screwed if you're one of users with pirated Windows...for the time being that is~~~]]></description>
			<content:encoded><![CDATA[<p>Well, I got the news from The Star online today saying that Microsoft will take a step further to combat piracy on its products by implementing some sort of dark/black/blank (or they prefer to use the word &#8220;Blackouts&#8221;) screen for users of pirated Windows XP Pro.</p>
<blockquote><p>PETALING JAYA: Starting Wednesday, users with pirated copies of Microsoft Corp&#8217;s Windows XP Professional operating system (OS) on machines that are Internet-capable could find their computer displays going black and with no screen icons visible.</p>
<p>There are 8.6 million users of Win XP Pro in Malaysia and about three million are expected to suffer the “blackouts,” according to Microsoft Malaysia.</p>
<p>To continue working, the user would need to reset the machine’s desktop background. Everything will return to normal. But when 60 minutes are up, the black screen will reappear and the user must go through the whole process again.</p>
<p>Source: <a title="Blackouts for Users of Pirated Windows" href="http://thestar.com.my/news/story.asp?file=/2008/8/26/nation/20080826201600&amp;sec=nation" target="_blank" onclick="pageTracker._trackPageview('/outgoing/thestar.com.my/news/story.asp?file=/2008/8/26/nation/20080826201600_amp_sec=nation&amp;referer=');">TheStar Online</a></p></blockquote>
<p><strong>My Take</strong></p>
<p>Well, I don&#8217;t know if this step only apply to Malaysian user but I have little doubt Microsoft will even stop there. Expect another fuss coming from either Microsoft or the *ehem* <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_pirate.gif' alt=':arrow:' class='wp-smiley' /> *ehem* community. You can read the full article by following the given url and evaluate everything yourself. I suddenly remembered a quote from Jurassic Park movie which sound something like &#8220;Nature will find it&#8217;s way&#8221; and seeing how Windows XP is still very popular, I kinda can see Microsoft latest move will end in vain (remember WGA<sup class='footnote'><a href='#fn-218-1' id='fnref-218-1'>1</a></sup> anyone?). I&#8217;m not praying it to happen though; just predicting <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>Owh&#8230;.don&#8217;t make that gloomy face <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_cry.gif' alt=':cry:' class='wp-smiley' /> ; isn&#8217;t this the best time to jump to Linux? <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_evil.gif' alt=':evil:' class='wp-smiley' /> </p>
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-218-1'><a title="WGA@Wikipedia" href="http://en.wikipedia.org/wiki/Windows_Genuine_Advantage" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Windows_Genuine_Advantage?referer=');">Windows Genuine Advantage</a> <span class='footnotereverse'><a href='#fnref-218-1'>&#8617;</a></span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.amirhamzah.net/2008/08/dark-screen-of-pirated-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Local WAMP Setup</title>
		<link>http://blog.amirhamzah.net/2008/07/personal-wamp-setup/</link>
		<comments>http://blog.amirhamzah.net/2008/07/personal-wamp-setup/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 06:00:24 +0000</pubDate>
		<dc:creator>Amir Hamzah</dc:creator>
				<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[Tips & Howto]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://blog.amirhamzah.net/?p=75</guid>
		<description><![CDATA[A guide to setup your WAMP on the local machine]]></description>
			<content:encoded><![CDATA[<p>WAMP is an acronym that derived from the first letter of the following components; Windows (Microsoft&#8217;s Operating System), Apache (a web server), MySQL (a <abbr title="Relational Database Management System">RDBMS</abbr>), and php (a server side script for producing a dynamic web pages). Basically, it&#8217;s a combination of software packages to make your Windows machine capable of running as a server; serving web pages with php as the scripting language and MySQL as the database engine. There&#8217;s a time that you want to mimic your actual server on your local <abbr title="Personal Computer">PC</abbr> (<em>eg</em>: testing the update that you make on your site) and to do that, assuming you&#8217;re using Microsoft Windows, I&#8217;ll show you how.</p>
<p><span id="more-75"></span><br />
<strong>Why I need it?</strong><br />
Let say, for example, you host your own WordPress blog and at some point, there is a new version of WordPress. It&#8217;s wise to test whether the new version compatible with your existing plugins and/or theme before you doing an upgrade. Doing it locally will save you from hassle and time wasting.</p>
<p><strong>Disclaimer</strong><br />
Before we begin, there are a couple of things I would like to point out:</p>
<ol>
<li>This guide been made mainly for those that didn&#8217;t have any experience setting up a server, but not limited to those group.</li>
<li>This guide can also benefit those who want to shift from using WAMP stack software distribution (<em>eg</em>: Apache2Triad, phptriad, XAMPP) to individual components installation. Just make sure you uninstall your old WAMP first (<strong>be mindful to do a backup first!!</strong>).</li>
<li>Click the picture to view it in larger resolution.</li>
<li>I don&#8217;t have a Vista machine, so I can&#8217;t say for sure these steps will work perfectly in Windows Vista. But it shouldn&#8217;t have much different though.</li>
<li>It is a guide for newbies, but still, use a common sense when needed. Folder structure and its&#8217; naming convention mostly is my self preferences; if using your own preferences, change accordingly where it&#8217;s applied. <em>Eg</em>: If the guide stated that it install in L partition but you install in C, change accordingly where it&#8217;s applied.</li>
<li>This guide is only intended for setting up WAMP locally. It&#8217;s obviously not enough if you intended to configure your online server without additional steps to the guide.</li>
<li>There is an extra section that point out added information. Check em&#8217; out for common problems, solutions, references, and suggestions.
<li>Questions, comments, &#038; suggestions are always welcomed.</li>
</ol>
<p><strong>Table of Content (<a name="toc"></a>TOC)</strong><br />
This is a section that contains a link to the specific sections.</p>
<ul>
<li><a href="#struc">Preparation (Structure)</a></li>
<li><a href="#down">Preparation (Download)</a></li>
<li><a href="#apache">Installing Apache</a></li>
<li><a href="#php">Installing php</a></li>
<li><a href="#mysql">Installing MySQL</a></li>
<li><a href="#pma">Installing phpMyAdmin</a></li>
<li><a href="#extra">Extra</a></li>
</ul>
<p><strong><a name="struc"></a>Preparation (Structure)</strong><br />
I always put all the related components in one place, so it would be easy for me to make any changes later or just for the sake of keeping everything neat.</p>
<ol>
<li>Start by making a new folder on the intended location (<em>eg</em>: I make a folder called &#8220;<em>MyPHP</em>&#8221; in my &#8220;<em>L</em>&#8221; partition).</li>
<li>In that newly created folder, create another new folder called &#8220;<em>install</em>&#8221; (it will be a place for all your downloaded components).</li>
<li>Create another folder called &#8220;<em>root</em>&#8221; (it will be a place for your web files &amp; folders).</li>
<li>Create another folder called &#8220;<em>Sessions</em>&#8220;.</li>
</ol>
<p>Done with this part; refer to screen shot below. You should have the same structure. (<a href="#toc" title="Back to Table of Content">TOC</a>)<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_structure.jpg' title="Preparations (structure)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_structure-150x150.jpg" alt="The Folder Structure" title="Preparations (structure)" width="150" height="150" class="alignnone size-thumbnail wp-image-83" /></a></p>
<p><strong><a name="down"></a>Preparation (Download)</strong><br />
In this part, we will download all the components and put it inside the &#8220;<em>install</em>&#8221; folder we created earlier. The components needed are <span style="color: #ff00ff;"><strong>Apache Web Server</strong></span>, <span style="color: #0000ff;"><strong>php</strong></span>, <span style="color: #ff0000;"><strong>mysql</strong></span>, and <span style="color: #ff6600;"><strong>phpMyAdmin</strong></span>.</p>
<ol>
<li>Download Apache binary at <a title="ApacheLounge Site" href="http://www.apachelounge.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.apachelounge.com?referer=');">apachelounge.com</a> download section (<a title="ApacheLounge Download" href="http://www.apachelounge.com/download/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.apachelounge.com/download/?referer=');">http://www.apachelounge.com/download/</a>). At the time of writing, the latest version was 2.2.9. (<span style="color: #ff0000;"><strong>**Notes</strong></span>: Since the Apache binary from ApacheLounge was built with the latest <strong>Windows® Platform SDK</strong> and <strong>Visual Studio C++ 2008</strong> <abbr title="Also Known As">a.k.a</abbr> <strong>VC9</strong>, you also need to download &amp; install the <strong>Visual C++ 2008 Redistributable Package</strong>. Refer the readme that included in the zip files to find out the exact requirement and specifically for this build, you can download the Visual C++ 2008 Redistributable Package from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF_amp_displaylang=en&amp;referer=');">Microsoft.com</a>)</li>
<li>Download php windows binary <strong>zip package</strong> from <a href="http://www.php.net/downloads.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.php.net/downloads.php?referer=');">php.net</a>. At the time of writing, the latest version was 5.2.6.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/php_download.jpg' title="Php (download)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/php_download-150x150.jpg" alt="Php download list" title="Php (download)" width="150" height="150" class="alignnone size-thumbnail wp-image-89" /></a></li>
<li>Download mysql community server from <a href="http://dev.mysql.com/downloads/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/dev.mysql.com/downloads/?referer=');">mysql.com</a>. At the time of writing, the latest version was 5.0.51b.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_download.jpg' title="MySQL (download)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_download-150x150.jpg" alt="MySQL Download List" title="MySQL (download)" width="150" height="150" class="alignnone size-thumbnail wp-image-90" /></a></li>
<li>Download phpmyadmin from <a href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.phpmyadmin.net/home_page/downloads.php?referer=');">phpMyAdmin.net</a>. Choose stable version, not release candidate. At the time of writing, the latest stable version was 2.11.7.</li>
</ol>
<p>Done with this part; refer to screen shot below. Your &#8220;<em>install</em>&#8221; folder should be just like in the picture. (<a href="#toc" title="Back to Table of Content">TOC</a>)<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_download.jpg' title="Preparations (download)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_download-150x150.jpg" alt="Install Folder Structure" title="Preparations (download)" width="150" height="150" class="alignnone size-thumbnail wp-image-84" /></a><br />

<script type="text/javascript"><!--
google_ad_client = "pub-6772172402360366";
/* 468x60_7/15/08 */
google_ad_slot = "4464847844";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
<strong><a name="apache"></a>Installing Apache</strong><br />
In this part, we will go through on the process to install Apache http server. Read more about Apache http server at <a href="http://httpd.apache.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/httpd.apache.org/?referer=');">apache.org</a>.</p>
<ol>
<li>Extract the <span style="color: #ff00ff;">httpd-2.2.9-win32-x86-ssl.zip</span> file that had been downloaded earlier.</li>
<li>Read the readme files that come along extracted. Make sure you had fulfilled all the requirement (<em>eg</em>: install Visual C++ 2008 Redistributable Package if you not done it yet)</li>
<li>Rename the extracted folder &#8220;<em>Apache2</em>&#8221; into &#8220;<em>Apache229</em>&#8220;.</li>
<li>Move the newly renamed folder into the &#8220;<em>MyPHP</em>&#8221; folder (just up one level).<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_apache.jpg' title="Preparations (apache)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_apache-150x150.jpg" alt="Folder Structure (Apache)" title="Preparations (apache)" width="150" height="150" class="alignnone size-thumbnail wp-image-85" /></a></li>
<li>Enter the &#8220;<em>Apache229</em>&#8221; folder and then to &#8220;<em>conf</em>&#8220;. Open the &#8220;<em>httpd.conf</em>&#8221; files with your favorite text editor (<em>eg</em>: you can use notepad).</li>
<li>We are going to do some editing here. Scroll down until you found the following lines and change them accordingly:
<ul>
<li><strong>ServerRoot &#8220;c:/Apache2&#8243;</strong> change it into

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">ServerRoot</span> <span style="color: #7f007f;">&quot;L:/MyPHP/Apache229&quot;</span></pre></div></div>

</li>
<li><strong>DocumentRoot &#8220;c:/Apache2/htdocs&#8221;</strong> change it into

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">DocumentRoot</span> <span style="color: #7f007f;">&quot;L:/MyPHP/root&quot;</span></pre></div></div>

</li>
<li><strong>&lt;Directory &#8220;c:/Apache2/htdocs&#8221;&gt;</strong> change it into

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;L:/MyPHP/root&quot;</span>&gt;</pre></div></div>

</li>
</ul>
</li>
<li>Next, open <strong>command prompt</strong> (<em>shortcut</em>: <em>Run&gt;cmd</em>). Enter the command below to change directory

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">cd</span> &quot;L:\MyPHP\Apache229\bin&quot;</pre></div></div>

</li>
<li>Enter the next command to start apache server

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">httpd.exe -k start</pre></div></div>

</li>
<li>Click unblock if you get this pop-up.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/security.jpg' title="Security Pop-Up"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/security-150x150.jpg" alt="Windows Security Alert" title="Security Pop-Up" width="150" height="150" class="alignnone size-thumbnail wp-image-86" /></a></li>
<li>Enter the command below to install apache server as service (<em>to make Apache running when the machine start</em>)

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">httpd.exe -k install</pre></div></div>

</li>
<li>Now, go back inside &#8220;<em>Apache229</em>&#8221; folder and then to &#8220;<em>bin</em>&#8220;. Double click <strong>ApacheMonitor.exe</strong> and the ApacheMonitor icon will sit next to your clock (<span style="color: #33ff00;">green</span> will indicate the server is running, while <span style="color: #ff0000;">red</span> indicate otherwise). Make a shortcut of ApacheMonitor and put it into your &#8220;<em>startup</em>&#8221; folder to make it start automatically everytime you boot your machine.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor.jpg' title="Apache Monitor"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor-150x75.jpg" alt="Apache Monitor on Taskbar" title="Apache Monitor" width="150" height="75" class="alignnone size-thumbnail wp-image-87" /></a></li>
<li>Put some html files into your &#8220;<em>root</em>&#8221; folder. Or you can just copy the text below and save it as &#8220;<em>index.html</em>&#8221;
<div class="wp_syntax">
<div class="code">
<pre class="html4strict"><span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;html&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;head&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;title&gt;</span></span>Test Document<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;/title&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;/head&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;body&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;b&gt;</span></span>It works...yehaa<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;/b&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: 700; color: #000000;">&lt;/html&gt;</span></span></pre>
</div>
</div>
</li>
<li>Open your web browser and type <em><strong>localhost</strong></em> (or if your test files use another name like <strong>test.html</strong>, type <em>http://localhost/test.html</em> instead). If you can see a page load with the phrase &#8220;<em>It works&#8230;yehaa</em>&#8220;, then the installation process is a success. If not, retrace back your step to see if you&#8217;re missing anything. (<a href="#toc" title="Back to Table of Content">TOC</a>)</li>
</ol>
<p><strong><a name="php"></a>Installing PHP</strong><br />
In this part, we will go through on the process to install php. Read more about php at <a href="http://php.net/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/php.net/?referer=');">php.net</a>.</p>
<ol>
<li>Create a folder called &#8220;<em>php526</em>&#8221; inside the &#8220;<em>MyPHP</em>&#8221; folder.</li>
<li>Go inside the &#8220;<em>install</em>&#8221; folder and extract <span style="color: #0000ff;">php-5.2.6-Win32.zip</span> into the newly created &#8220;<em>php526</em>&#8221; folder.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_php.jpg' title="Preparation (php)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_php-150x150.jpg" alt="Php\&#039;s Folder Structure" title="Preparation (php)" width="150" height="150" class="alignnone size-thumbnail wp-image-88" /></a></li>
<li>Now, go inside the &#8220;<em>php526</em>&#8221; folder and rename the file <strong>php.ini-dist</strong> to <strong>php.ini</strong></li>
<li>Open the &#8220;<em>php.ini</em>&#8221; with your text editor and get ready for some editing.
<ol>
<li><strong>doc_root =</strong> change it into</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">doc_root</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;L:\MyPHP\root&quot;</span></pre></div></div>

</li>
<li><strong>extension_dir = &#8220;./&#8221;</strong> change it into

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">extension_dir</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;L:\MyPHP\php526\ext&quot;</span></pre></div></div>

</li>
<li>Scroll down a little bit until you arrive at a section known as &#8220;<em>Windows Extensions</em>&#8220;. There are a couple of extension list here with the format &#8220;<em>extension=name_of_extension.dll</em>&#8221; and by default all of them is commented (they have semicolon symbol at the front). So, what you have to do here is uncomment the desired extension by deleting the semicolon symbol to enable them. Now, since we want to run the server with mysql support, the obvious extension that needs to be enable is <strong>php_mysql.dll</strong>, <strong>php_mysqli.dll</strong> and <strong>php_pdo_mysql.dll</strong> (it&#8217;s also a good idea to enable <strong>php_mbstring.dll</strong> and <strong>php_gd2.dll</strong> since <span style="color: #ff6600;">phpmyadmin</span> need it). If the needs to enable other extensions arise later, you can comeback to this section and uncomment them. Do remember to restart Apache to make any changes take effect. (<a href="#restart">How to restart Apache</a>)</li>
<li><strong>;session.save_path = &#8220;/tmp&#8221;</strong> change it into

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">session.save_path <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;L:\MyPHP\Sessions&quot;</span></pre></div></div>

<p><span style="color: #ff0000;"><strong>*<em>!!Make sure you don&#8217;t forget to delete the semicolon symbol &#8211;> ; at the front (to uncomment it)</em>*</strong></span></li>
</ol>
</li>
<li>Enter the &#8220;<em>Apache229</em>&#8221; folder and then to &#8220;<em>conf</em>&#8220;. Open the &#8220;<em>httpd.conf</em>&#8221; files with your favorite text editor. Do some editing here:
<ol>
<li>Scroll down until you encounter with the <strong>LoadModule</strong> section. Add a new line among the LoadModule lines (anywhere; at the end or beginning) as the following:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> php5_module <span style="color: #7f007f;">&quot;L:/MyPHP/php526/php5apache2_2.dll&quot;</span></pre></div></div>

<p>Example of my LoadModule section (snippets only; more to show where I personally put the line)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> isapi_module modules/mod_isapi.so
<span style="color: #00007f;">LoadModule</span> log_config_module modules/mod_log_config.so
<span style="color: #00007f;">LoadModule</span> mime_module modules/mod_mime.so
<span style="color: #adadad; font-style: italic;">#LoadModule mime_magic_module modules/mod_mime_magic.so</span>
<span style="color: #00007f;">LoadModule</span> php5_module <span style="color: #7f007f;">&quot;L:/MyPHP/php526/php5apache2_2.dll&quot;</span>
<span style="color: #adadad; font-style: italic;">#LoadModule proxy_module modules/mod_proxy.so</span>
<span style="color: #adadad; font-style: italic;">#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so</span></pre></div></div>

</li>
<li>Then, scroll down a bit more, find <strong>DirectoryIndex index.html</strong> line and change it as the following:

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">DirectoryIndex</span> index.php index.htm index.html index.html.var</pre></div></div>

</li>
<li>Now, on the same &#8220;<em>conf</em>&#8221; folder, open file &#8220;<em>mime.types</em>&#8221; with your text editor. Add the following line into it:

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">application/x-httpd-php 	 		php php5</pre></div></div>

</li>
</ol>
</li>
<li>Next, open your <em>System Properties</em> (shortcut: <em>WinFlag + Pause/Break</em>).</li>
<li>Click the <em>Advanced</em> tab and click <em>Environment Variables</em> at lower left side. Go to the <em>System Variables</em> section, find the variable named &#8220;<strong>Path</strong>&#8220;, and double click it. Add the following line at the end of line on the <em>Variable value</em> textbox and click OK

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">;L:\MyPHP\php526</pre></div></div>

<p><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/system_property1.jpg' title="System Properties 1"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/system_property1-150x150.jpg" alt="System Properties Screen" title="System Properties 1" width="150" height="150" class="alignnone size-thumbnail wp-image-91" /></a></li>
<li>Next, click the <strong>New</strong> button on the <em>System Variable</em> section. Put &#8220;<strong>PHPRC</strong>&#8221; as the <em>Variable name</em> and the following line as the <em>Variable value</em>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">L:\MyPHP\php526;</pre></div></div>

<p><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/system_property2.jpg' title="Environment Variables"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/system_property2-150x150.jpg" alt="Environment Variables Screen" title="Environment Variables" width="150" height="150" class="alignnone size-thumbnail wp-image-92" /></a></li>
<li>We&#8217;re doing all this <em>Environment Variables</em> changes so that we don&#8217;t need to contaminate our <em>System32</em> folder with all the necessary php&#8217;s .dll and .ini files.</li>
<li>Restart Apache to make all changes take effect.(<a href="#restart">How to restart Apache</a>)</li>
<li>Open your favorite text editor, paste the following line and saved it as &#8220;phpinfo.php&#8221; (or whatever names that you like as long as it have the .<em>php</em> extension) in the &#8220;<em>root</em>&#8221; folder

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</li>
<li>Lastly, open your web browser and type &#8220;<em>http://localhost/phpinfo.php</em>&#8221; in the address bar. It should now show a page that reveal all your php and apache configuration. If it&#8217;s not, retrace your step back to see if you&#8217;re missing anything. If it still failed to show, as a last resort, you should restart your PC and test it again by opening your web browser. It should work.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/phpinfo.jpg' title="phpinfo Screen shot"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/phpinfo-150x150.jpg" alt="phpinfo Screen shot" title="phpinfo Screen shot" width="150" height="150" class="alignnone size-thumbnail wp-image-107" /></a><br /> (<a href="#toc" title="Back to Table of Content">TOC</a>)</li>
</ol>
<p><strong><a name="mysql"></a>Installing MySQL</strong><br />
In this part, we will go through on the process to install MySQL. I must say that this is by far the easiest part of the whole setup process; you shouldn&#8217;t encounter much problem since the process is quite straight forward. Read more about MySQL at <a href="http://www.mysql.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.mysql.com/?referer=');">mysql.com</a>.</p>
<ol>
<li>Extract the <span style="color: #ff0000;">mysql-5.0.51b-win32.zip</span> and run the <em>setup.exe</em> file.</li>
<li><em>Welcome Screen</em> for the installer; click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_1.jpg' title="MySQl Install Welcome Screen"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_1-150x150.jpg" alt="Welcome Screen" title="MySQl Install Welcome Screen" width="150" height="150" class="alignnone size-thumbnail wp-image-93" /></a></li>
<li><em>Setup Type</em>; choose <strong>Custom</strong> and click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_2.jpg' title="MySQL Setup type"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_2-150x150.jpg" alt="MySQL Setup Type Screen" title="MySQL Setup type" width="150" height="150" class="alignnone size-thumbnail wp-image-94" /></a></li>
<li><em>Custom Setup</em>; since I like to group my stuffs in one place, I decided to install MySQL at &#8220;<em>L:\MyPHP\MySQL\</em>&#8221; (click <em>Change</em> to change the location). Other settings here, leave it at default and click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_3.jpg' title="MySQL Custom Setup Screen"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_3-150x150.jpg" alt="MySQL Custom Setup Screen" title="MySQL Custom Setup Screen" width="150" height="150" class="alignnone size-thumbnail wp-image-95" /></a></li>
<li><em>Ready to Install the Program</em>; click <strong>Install</strong> and wait until it finish.</li>
<li><em>MySQL Enterprise</em>; click next 2 times to skip the advert.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_4.jpg' title="MySQL Enterprise Screen"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_4-150x150.jpg" alt="MySQL Enterprise Screen" title="MySQL Enterprise Screen" width="150" height="150" class="alignnone size-thumbnail wp-image-96" /></a></li>
<li><em>Wizard Completed</em>; make sure to checked the &#8220;<em>Configure the MySQL Server Now</em>&#8221; option and click <strong>Finish</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_5.jpg' title="Wizard Completed."><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_5-150x150.jpg" alt="Wizard Completed." title="Wizard Completed." width="150" height="150" class="alignnone size-thumbnail wp-image-97" /></a></li>
<li><em>MySQL Server Instance Configuration Wizard</em>; click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_6.jpg' title="Server Instance Configuration Wizard"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_6-150x150.jpg" alt="Server Instance Configuration Wizard" title="Server Instance Configuration Wizard" width="150" height="150" class="alignnone size-thumbnail wp-image-98" /></a></li>
<li><em>Select a configuration type</em>; choose <strong>Standard Configuration</strong> and click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_7.jpg' title="MySQL Configuration Type"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_7-150x150.jpg" alt="MySQL Configuration Type" title="MySQL Configuration Type" width="150" height="150" class="alignnone size-thumbnail wp-image-99" /></a></li>
<li><em>Set Windows Option</em>; make sure to checked &#8220;<strong>Install As Windows Service</strong>&#8220;, &#8220;<strong>Launch the MySQL Server automatically</strong>&#8221; and &#8220;<strong>Include Bin Directory in Windows Path</strong>&#8221; option. Choose any name from the provided list for the service name and click <strong>Next</strong>.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_8.jpg' title="Set Windows Option"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_8-150x150.jpg" alt="Set Windows Option" title="Set Windows Option" width="150" height="150" class="alignnone size-thumbnail wp-image-100" /></a></li>
<li><em>Security options</em>; since this is a local setup and for the purpose not to complicated things, I choose to unchecked &#8220;<strong>Modify Security Settings</strong>&#8220;. This means that my MySQl Server will have a root user with no password. You can put a password here if you like, just don&#8217;t forget em&#8217; later.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_9.jpg' title="MySQL Modify Security Setting"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_9-150x150.jpg" alt="MySQL Modify Security Setting" title="MySQL Modify Security Setting" width="150" height="150" class="alignnone size-thumbnail wp-image-101" /></a></li>
<li><em>Ready to execute</em>; click <strong>Execute</strong> and wait for it to finish.</li>
<li><strong>Processing configuration</strong>; press <strong>Finish</strong> when it&#8217;s done.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_10.jpg' title="MySQL Processing Configuration"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_install_10-150x150.jpg" alt="MySQL Processing Configuration" title="MySQL Processing Configuration" width="150" height="150" class="alignnone size-thumbnail wp-image-102" /></a></li>
<li>Next, open <strong>command prompt</strong> (<em>shortcut</em>: <em>Run&gt;cmd</em>). Enter the command below to test the MySQL server.

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">mysql -u root -p</pre></div></div>

<p>Enter the password if you set one and if not, leave it blank and press the enter key.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_cmd.jpg' title="MySQL cmd Screen"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/mysql_cmd-150x150.jpg" alt="MySQL cmd" title="MySQL cmd Screen" width="150" height="150" class="alignnone size-thumbnail wp-image-103" /></a></li>
<li>You should been welcomed to the mysql monitor. Type <strong>exit</strong> to leave mysql and you&#8217;re done on this part. (<a href="#toc" title="Back to Table of Content">TOC</a>)</li>
</ol>
<p><strong><a name="pma"></a>Installing phpMyAdmin</strong><br />
In this part, we will go through on the process to install phpMyAdmin. Read more about phpMyAdmin at <a href="http://www.phpmyadmin.net" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.phpmyadmin.net?referer=');">phpmyadmin.net</a>.</p>
<ol>
<li>Extract the <span style="color: #ff6600;">phpMyAdmin-2.11.7-english.zip</span> that had been downloaded earlier.</li>
<li>Rename the extracted folder from <strong>phpMyAdmin-2.11.7-english</strong> to <strong>phpMyAdmin-2.11.7</strong></li>
<li>Since I don&#8217;t want to mix up my phpMyAdmin folder with the other web files in the &#8220;<em>root</em>&#8221; folder, I decided to isolate it from there. Move the newly renamed folder (including the content) into the &#8220;<em>MyPHP</em>&#8221; folder.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_pma.jpg' title="Preparations (pma)"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/preparations_pma-150x150.jpg" alt="Preparations (pma)" title="Preparations (pma)" width="150" height="150" class="alignnone size-thumbnail wp-image-104" /></a></li>
<li><a name="alias"></a>Enter the &#8220;<em>Apache229</em>&#8221; folder and then to &#8220;<em>conf</em>&#8220;. Open the &#8220;<em>httpd.conf</em>&#8221; files with your favorite text editor. We&#8217;re going to make some editing here to tell the server where is our phpMyAdmin folder because we didn&#8217;t put it in its&#8217; usual place (which is usualy the &#8220;<em>root</em>&#8221; folder).
<ol>
<li>Scroll down until you find <strong>&lt;IfModule alias_module&gt;</strong></li>
<li>There is a couple of lines after that explaining about the section. Now, after the explanation, but before <strong>&lt;/IfModule&gt;</strong> add the following line

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">Alias</span> /mysql/ <span style="color: #7f007f;">&quot;L:/MyPHP/phpMyAdmin-2.11.7/&quot;</span>
&nbsp;
&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;L:/MyPHP/phpMyAdmin-2.11.7/&quot;</span>&gt;
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">All</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
    <span style="color: #00007f;">Deny</span> from <span style="color: #0000ff;">all</span>
    <span style="color: #00007f;">Allow</span> from 127.0.0.1, localhost
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></div></div>

</li>
<li>Now, if you dislike the alias <strong>/mysql/</strong>, you can change it to your liking. Just remember it well so you can access it later.</li>
</ol>
</li>
<li><a href="#restart">Restart Apache server</a>, open your web browser, and enter &#8220;<em>http://localhost/mysql/</em>&#8221; on the address bar to start using phpMyAdmin. Don&#8217;t forget the trailing forward slash since we declare it has one in the <em>httpd.conf</em>. Just change the <strong>mysql/</strong> part if you didn&#8217;t use it with yours.<br /><a rel='lightbox' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/pma.jpg' title="phpMyAdmin Page"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/pma-150x150.jpg" alt="phpMyAdmin Page" title="phpMyAdmin Page" width="150" height="150" class="alignnone size-thumbnail wp-image-111" /></a></li>
<li>Up to this point, your phpMyAdmin will run with default configuration. If its&#8217; ask for a username or password, it means your MySQL&#8217;s user and password.</li>
<li>If you want to make your own configuration file, refer to the <strong>phpMyAdmin documentation</strong>; the link can be found on the right side of your phpMyAdmin front page (or you can open the file <strong>Documentation.html</strong> directly located inside your phpMyAdmin folder)</li>
<li>For reference purpose, here is my configuration file. You can copy it and save it as <strong>config.inc.php</strong> in the phpMyAdmin folder

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
 * Generated configuration file
 * Generated by: phpMyAdmin 2.11.5.2 setup script by Michal Čihař &lt;michal@cihar.com&gt;
 * Version: $Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $
 * Date: Wed, 23 Apr 2008 06:08:22 GMT
 */</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Servers configuration */</span>
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Server localhost (config:root) [1] */</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'host'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'extension'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'mysql'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'connect_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'tcp'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'compress'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'auth_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'config'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'root'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* End of servers configuration */</span>
&nbsp;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftFrameLight'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftFrameDBTree'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftFrameDBSeparator'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'_'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftFrameTableSeparator'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'__'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftFrameTableLevel'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftDisplayLogo'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftDisplayServers'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DisplayServersList'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DisplayDatabasesList'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LeftPointerEnable'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DefaultTabServer'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'main.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DefaultTabDatabase'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'db_structure.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DefaultTabTable'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'tbl_structure.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'LightTabs'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ErrorIconic'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MainPageIconic'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ReplaceHelpImg'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'NavigationBarIconic'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'both'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PropertiesIconic'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'both'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'BrowsePointerEnable'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'BrowseMarkerEnable'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ModifyDeleteAtRight'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ModifyDeleteAtLeft'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'RepeatCells'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DefaultDisplay'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'horizontal'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'GD2Available'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'yes'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</li>
<p>(<a href="#toc" title="Back to Table of Content">TOC</a>)
</ol>
<p>Now, all things are done. Start placing your web files and folders in the &#8220;<em>root</em>&#8221; folder. Let say your blog files in the &#8220;<em>blog</em>&#8221; folder; to access it enter &#8220;<em>http://localhost/blog</em>&#8221; in your web browser. Don&#8217;t panic if there is nothing coming out except for a list of files like the screen shot below. It just mean that at that level you didn&#8217;t have one of these files; index.php, index.htm, index.html, or index.html.var (because we set them to be serve first at DirectoryIndex in <em>httpd.conf</em>). If you intent to open a single files directly, type the full address like &#8220;<em>http://localhost/blog/wp-admin.php</em>&#8220;.<br /><a rel='lightbox[finish]' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/root.jpg' title="Root folder"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/root-150x150.jpg" alt="My Root Folder Content" title="Root folder" width="150" height="150" class="alignnone size-thumbnail wp-image-108" /></a>&nbsp;<a rel='lightbox[finish]' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/root_index.jpg' title="Index of"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/root_index-150x150.jpg" alt="Index of" title="Index of" width="150" height="150" class="alignnone size-thumbnail wp-image-109" /></a><br />

<script type="text/javascript"><!--
google_ad_client = "pub-6772172402360366";
/* 468x60_7/15/08 */
google_ad_slot = "4464847844";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
<strong><a name="extra"></a>Extra</strong><br />
This section contains extra info that related to the installation process.</p>
<ul>
<li><strong><a name="restart"></a>How to restart Apache Server.</strong>
<ol>
<li>There are two ways to restart Apache server; through cmd or Apache Monitor.</li>
<li>Through cmd; open <strong>command prompt</strong> (<em>shortcut</em>: <em>Run&gt;cmd</em>). Enter the command below to change directory

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">cd</span> &quot;L:\MyPHP\Apache229\bin&quot;</pre></div></div>

<p>Enter the command below to restart Apache</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">httpd.exe -k restart</pre></div></div>

</li>
<li>Through Apache Monitor; right click your Apache Monitor icon on the taskbar, choose open and click restart.<br /><a rel='lightbox[apache]' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor_restart0.jpg' title="Apache Monitor Restart I"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor_restart0-150x84.jpg" alt="Apache Monitor Restart I" title="Apache Monitor Restart I" width="150" height="84" class="alignnone size-thumbnail wp-image-105" /></a>&nbsp;<a rel='lightbox[apache]' href='http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor_restart.jpg' title="Apache Monitor Restart II"><img src="http://blog.amirhamzah.net/wp-content/uploads/2008/07/apache_monitor_restart-150x150.jpg" alt="Apache Monitor Restart II" title="Apache Monitor Restart II" width="150" height="150" class="alignnone size-thumbnail wp-image-106" /></a></li>
</ol>
</li>
<li>There is an alternatives to phpMyAdmin; known as <a href="http://www.sqlbuddy.com/" target="_blank" title="SQLBuddy Official Page" onclick="pageTracker._trackPageview('/outgoing/www.sqlbuddy.com/?referer=');">SQLBuddy</a>. Download it, extract and if you put the folder outside of &#8220;<em>root</em>&#8221; folder, make sure to do the same step as mentioned <a href="#alias">here</a>. If you put it inside &#8220;<em>root</em>&#8221; folder, you didn&#8217;t have to do anything; no configuration to alter. Open your browser and enter the address &#8220;<em>http://localhost/sqlbuddy</em>&#8221; (or whatever name that you use).</li>
<li>If you feel tired scrolling when editing a config file, use the built-in search function of your text editor (usually the shortcut key is <em>ctrl</em> + <em>F</em>).</li>
<li>I suggest when you finish every single phase (installing the component), recheck and make sure it&#8217;s running. It&#8217;s easier to detect problem if we check it as early as possible. If you already out of idea how to solve things and before you drop me a questions, restart you PC first and retest again.</li>
<li>When one of the new components been updated by their developer, before you update your setup, make sure it&#8217;s compatible with your other components first. Most of the time, not all the components been updated simultaneously by the developer and that can sometime break things. If you&#8217;re sure already, then update your component by revisiting the correspondent steps on this guide.</li>
<li>It&#8217;s a lie if I said that I come out with all of this purely on my own. Here is example of another guide that I refer:
<ol>
<li><a href="http://johnbokma.com/windows/apache-virtual-hosts-xp.html" target="_blank" title="John Bokma||Windows tips and tricks" onclick="pageTracker._trackPageview('/outgoing/johnbokma.com/windows/apache-virtual-hosts-xp.html?referer=');">Installing and configuring Apache on Windows XP</a></li>
<li><a href="http://www.tanguay.info/web/tutorial.php?idCode=phpDevelopment" target="_blank" title="Edward's Web Developer Site" onclick="pageTracker._trackPageview('/outgoing/www.tanguay.info/web/tutorial.php?idCode=phpDevelopment&amp;referer=');">Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod</a></li>
<li><a href="http://www.chronosight.net/view/2005/09/243-setup-wamp-windows-apache-mysql-php.html" title="ChronoSight.net" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.chronosight.net/view/2005/09/243-setup-wamp-windows-apache-mysql-php.html?referer=');">Setup WAMP (Windows-Apache-MySQL-PHP)</a></li>
</ol>
</li>
<li>For those who really didn&#8217;t have time to configure all this components yourself or just wanna a quick setup (<em>eg</em>: 5 minutes to the class project presentation <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_razz.gif' alt=':-P' class='wp-smiley' /> ), there are an easy way. Using WAMP stack software distribution, most of the time you just need one click install or one time file extraction to install all the necessary components. Among them are:
<ol>
<li><a href="http://www.en.wampserver.com/" target="_blank" title="WampServer" onclick="pageTracker._trackPageview('/outgoing/www.en.wampserver.com/?referer=');">WampServer</a></li>
<li><a href="http://www.apachefriends.org/en/index.html" target="_blank" title="ApacheFriends" onclick="pageTracker._trackPageview('/outgoing/www.apachefriends.org/en/index.html?referer=');">XAMPP</a></li>
<li><a href="http://glossword.biz/glosswordwamp/" target="_blank" title="GlossWord WAMP" onclick="pageTracker._trackPageview('/outgoing/glossword.biz/glosswordwamp/?referer=');">GlossWord WAMP</a></li>
<li><a href="http://apache2triad.net/" target="_blank" title="Apache2Triad" onclick="pageTracker._trackPageview('/outgoing/apache2triad.net/?referer=');">Apache2Triad</a></li>
</ol>
</li>
</ul>
<p><strong>Conclusion</strong><br />
I do hope my post here brings benefit to anyone (including me&#8230;I tend to forget things <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_razz.gif' alt=':-P' class='wp-smiley' /> ). One of the main reasons that motivate me to do this post is a constant repetitive emails from some of my friends asking how to setup WAMP on their machine. Well, after this I can point em&#8217; to this post <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_razz.gif' alt=':-P' class='wp-smiley' /> . Again, you guys can help me make this guide better; so any questions or suggestions, drop em&#8217; at the comment box <img src='http://blog.amirhamzah.net/wp-content/plugins/smilies-themer/NoktahHitam_Smileys/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amirhamzah.net/2008/07/personal-wamp-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMPlayer</title>
		<link>http://blog.amirhamzah.net/2007/09/smplayer/</link>
		<comments>http://blog.amirhamzah.net/2007/09/smplayer/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 17:58:54 +0000</pubDate>
		<dc:creator>Amir Hamzah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://overlord666.wordpress.com/?p=43</guid>
		<description><![CDATA[I’m always searching for media player that will let me watch my video files hassle free; meaning that I don’t have to worry about codec installation/setup and having different player for different file types. Before this, whether on Windows or Ubuntu, I often end up needing a different media player due to some problems that [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">I’m always searching for media player that will let me watch my video files hassle free; meaning that I don’t have to worry about codec installation/setup and having different player for different file types. Before this, whether on Windows or Ubuntu, I often end up needing a different media player due to some problems that occurred. Mainly the problem consist of a bloated codec and its’ compatibility with my media player. At that time I used <a title="About K-Lite Codec Pack" href="http://www.codecguide.com/about_kl.htm" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.codecguide.com/about_kl.htm?referer=');">K-Lite Codec Pack</a> as my main codec pack. Time passed by and I realized that I must change to other codec pack to rectify my problem; and doing some search on the net I’ve encountered with <a title="Combined Comunity Codec Pack" href="http://cccp-project.net/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/cccp-project.net/?referer=');">CCCP</a>. It solve most of my problem thank GOD, but I realize how do I install CCCP in my Ubuntu machine?</p>
<p align="justify">Don’t get me wrong, the codec that I’ve downloaded from Ubuntu’s repositories provide me with no major problem at all but still I feel that it can become much better. Then through some of my acquaintances, I tried <a title="VideoLan - VLC Media Player" href="http://www.videolan.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.videolan.org/?referer=');">VLC media player</a>. But it seems some of my *<a title="Matroska @ Wikipedia" href="http://en.wikipedia.org/wiki/Mkv" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Mkv?referer=');">.mkv</a> files will not play properly using this player. Some times the screen goes blank or when viewing videos with external subtitle files, there’s some kind of green line been drawn at the bottom of the screen. My searching at the net again had resulted in the discovery of another media player that share some of the greatness of VLC media player, <a title="SMPlayer" href="http://smplayer.sourceforge.net/en/index.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/smplayer.sourceforge.net/en/index.php?referer=');">SMPlayer</a>.<span id="more-48"></span></p>
<blockquote><p><strong>SMPlayer</strong> is a new multimedia player, it uses the award-winning  <a href="http://www.mplayerhq.hu/" onclick="pageTracker._trackPageview('/outgoing/www.mplayerhq.hu/?referer=');">MPlayer</a> as engine, so it’s able to play  the most known video &amp; audio formats without the need of external codecs.</p>
<p>SMPlayer is available for Windows and Linux.</p>
<p>Other additional interesting features:</p>
<ul>
<li>Configurable subtitles. You can choose font and size, and even colors for<br />
the subtitles.</li>
<li>Audio track switching. You can choose the audio track you want<br />
to listen. Works with avi and mkv. And of course with DVDs.</li>
<li>Seeking by mouse wheel. You can use your mouse wheel to go forward<br />
or backward in the video.</li>
<li>Video equalizer, allows you to adjust the brightness, contrast, hue,<br />
saturation and gamma of the video image.</li>
<li>Multiple speed playback. You can play at 2X, 4X&#8230; and even in slow motion.</li>
<li>Filters. Several filters are available: deinterlace, postprocessing,<br />
denoise&#8230; and even a karaoke filter (voice removal).</li>
<li>Audio and subtitles delay adjustment. Allows you to sync audio and<br />
subtitles.</li>
<li>Advanced options, such as selecting a demuxer or video &amp; audio codecs.</li>
<li>Playlist. Allows you to enqueue several files to be played one after<br />
each other. Autorepeat and shuffle supported too.</li>
<li>Preferences dialog. You can easily configure every option of SMPlayer<br />
by using a nice preferences dialog.</li>
<li>Translations: currently SMPlayer is translated into more than 20<br />
languages, including Spanish, German, French, Italian, Russian, Chinese,<br />
Japanese&#8230;.</li>
<li>It&#8217;s multiplatform. Binaries available for Windows and Linux.</li>
<li>SMPlayer is under the <strong>GPL</strong> license.</li>
</ul>
<p><strong><em>Source:</em></strong> <a title="SMPlayer Official Site" href="http://smplayer.sourceforge.net/en/index.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/smplayer.sourceforge.net/en/index.php?referer=');">SMPlayer Official Site</a></p></blockquote>
<p align="justify">SMPlayer is available for both Windows and Linux; after trying it for both platform, I must say that I’m impressed by it’s features and performance, even though I&#8217;m only managed to try and test it for a short time (got something else to do.. :-p). Go try it for yourself, it’s worth it I assure you.</p>
<p><a title="SMPlayer for Windows Main Page" href="http://smplayer.sourceforge.net/en/windows/index.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/smplayer.sourceforge.net/en/windows/index.php?referer=');">SMPlayer for Windows</a></p>
<p><a title="SMPlayer for Linux Main Page" href="http://smplayer.sourceforge.net/en/linux/index.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/smplayer.sourceforge.net/en/linux/index.php?referer=');">SMPlayer for Linux</a></p>
<p><a title="Packages maintained by Wesley S. Compiled for i386" href="http://wesley.debianbox.be/packages/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/wesley.debianbox.be/packages/?referer=');">SMPlayer for Ubuntu 6.06 Dapper Drake, 6.10 Edgy Eft, 7.04 Feisty Fawn  and Gutsy Gibbon</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amirhamzah.net/2007/09/smplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Files Integrity Check</title>
		<link>http://blog.amirhamzah.net/2007/09/files-integrity-check/</link>
		<comments>http://blog.amirhamzah.net/2007/09/files-integrity-check/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 18:41:15 +0000</pubDate>
		<dc:creator>Amir Hamzah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[Tips & Howto]]></category>
		<category><![CDATA[cksfv]]></category>
		<category><![CDATA[crc]]></category>
		<category><![CDATA[CRC32Finder]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[QuickSFV]]></category>
		<category><![CDATA[sha1]]></category>

		<guid isPermaLink="false">http://overlord666.wordpress.com/2007/09/21/files-integrity-check/</guid>
		<description><![CDATA[Okay, imagine a situation like this; you downloaded a files, in the end you notice that the file is corrupted and you have to redownload the files again. But there are certain scenarios that even though it&#8217;s corrupted, it&#8217;s still can be executed. For example video files. But due to the file corrupt problem, there [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Okay, imagine a situation like this; you downloaded a files, in the end you notice that the file is corrupted and you have to redownload the files again. But there are certain scenarios that even though  it&#8217;s corrupted, it&#8217;s still can be executed. For example video files. But due to the file corrupt problem, there are some glitches in the video. In some cases, it&#8217;s nice to know whether our downloaded files contains error or not as soon as possible. There are many ways or tools to use to check the files integrity. This kind of tools or techniques involved the usage of cryptographic hash functions (eg: SHA1, md5) and redundancy check functions (among others). Among the most popular method been used is Cyclic Redundancy Check (CRC).</p>
<p align="justify">All right, we&#8217;ll look into a practical part and for that purpose I&#8217;ll use &#8220;<span style="color: red;">[Shinsen-Subs]_Le_Chevalier_D&#8217;Eon_-_01_[6BD7BF33].avi</span>&#8221; filename as an example. On a side notes, the example file is a video files (an <a title="Anime @ Wikipedia" href="http://en.wikipedia.org/wiki/Anime" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Anime?referer=');">anime</a> to be exact) and as most <a title="Fansub @ Wkipedia" href="http://en.wikipedia.org/wiki/Fansub" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Fansub?referer=');">fansubbers</a>, they tend to include the CRC value at the end of their releases file name (the CRC value of that file is &#8217;6BD7BF33&#8242;). So basically, to check the file integrity, we will compute the CRC value of the file and compare it with the given CRC value. If it&#8217;s the same, safe to say that there are nothing wrong with the file and vice versa. For a little of howto demonstration, I will classify it into two different platform; Linux and Windows.<span id="more-47"></span></p>
<p align="justify"><strong>Linux (Using Ubuntu Feisty Fawn 7.04)</strong></p>
<p align="justify">Don&#8217;t panic if you have other distro (Fedora, SuSe, etc), it&#8217;s still the same method either way. Ok, using the terminal, change the directory into the folder where the target files to be check resides (example below).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">overlord666<span style="color: #000000; font-weight: bold;">@</span>overlord666-altar:~$ <span style="color: #7a0874; font-weight: bold;">cd</span> Le<span style="color: #000000; font-weight: bold;">*</span>
overlord666<span style="color: #000000; font-weight: bold;">@</span>overlord666-altar:~<span style="color: #000000; font-weight: bold;">/</span>Le Chevalier d<span style="color: #ff0000;">'Eon$</span></pre></td></tr></table></div>

<p align="justify">After that, type the command <strong>crc32 &#8220;your_filename&#8221; </strong>as shown below and press enter:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">crc32 <span style="color: #ff0000;">&quot;[Shinsen-Subs]_Le_Chevalier_D'Eon_-_01_[6BD7BF33].avi&quot;</span></pre></div></div>

<p align="justify">The command above will print the CRC value and you can compare it with the given value. If you want to compute CRC value for all files in the particular folder just replace the filename (including the double quote sign) with * (asterisk sign). Simple isn&#8217;t it? Now if you encounter an error such as crc32 not found or install, try to install it first. Usually it will tell you what kind of package that you don&#8217;t have to run crc32. In my case, initially I didn&#8217;t install the tools so there&#8217;s an error and a reminder that asked me to install the needed package and I just follow the reminder (as shown below).</p>
<blockquote><p>The program &#8216;crc32&#8242; is currently not installed.  You can install it by typing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libarchive-zip-perl</pre></div></div>

</blockquote>
<p align="justify">Other than CRC value, usually in case of batch download (more than one files downloaded), the files creator tend to send an extra files so you can use it to verify all the files integrity. The usual extra files used were <a title="Simple File Verification" href="http://en.wikipedia.org/wiki/Sfv" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Sfv?referer=');">SFV</a> and <a title="Message Digest Alghorithm 5" href="http://en.wikipedia.org/wiki/Md5" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Md5?referer=');">MD5</a> files. SFV is just a file format for storing CRC32 checksums of files. To verify using sfv file, I&#8217;m using a simple program called <a title="Check SFV" href="http://zakalwe.fi/~shd/foss/cksfv/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/zakalwe.fi/_shd/foss/cksfv/?referer=');">cksfv</a>. Just open terminal and type &#8220;cksfv -f mysfvfile.sfv&#8221; (example below). The output will verify the integrity of your files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cksfv <span style="color: #660033;">-f</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Shinsen-Subs<span style="color: #7a0874; font-weight: bold;">&#93;</span>.sfv</pre></div></div>

<p align="justify">While md5 verification is not much different from sfv. The general syntax is &#8220;md5sum -c mymd5file.md5&#8243; (example below). The output will also verify your files integrity:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">md5sum <span style="color: #660033;">-c</span> sums.md5</pre></div></div>

<p align="justify"><strong>Microsoft Windows XP</strong></p>
<p align="justify">I do feel that I don&#8217;t need to elaborate in details about files integrity checking in Windows. Why? Because honestly, there are many freeware tools for Windows user to check their crc or sfv. And most of them comes with user interface and it shouldn&#8217;t take long to know how to use it (mostly support drag and drop features). One of my favorite tools in this department is <a title="QuickSFV Official Site" href="http://quicksfv.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/quicksfv.org/?referer=');">QuickSFV</a>. It contains all the basic features that needed to verify file&#8217;s integrity namely a quick verifications and creating sfv files. If you prefer just a simple checker, you can also try <a title="CRC32Finder Download" href="http://mason.gmu.edu/~bchan/CRC32Finder.exe" target="_blank" onclick="pageTracker._trackPageview('/outgoing/mason.gmu.edu/_bchan/CRC32Finder.exe?referer=');">CRC32Finder</a>. Or if you kind of greedy, try <a title="HashCalc Page" href="http://www.slavasoft.com/hashcalc/index.htm" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.slavasoft.com/hashcalc/index.htm?referer=');">HashCalc</a>; it can verify a choice of 13 of the most popular hash and checksum algorithms for calculations.</p>
<p align="justify"><strong>Conclusion</strong></p>
<p align="justify">A corrupted files can be very frustrated if it being discovered on the last minute (<span style="color: #ff0000;">watching video files and suddenly the audio lost!!??</span>). So, verify the integrity first to avoid such frustration. Actually it&#8217;s not limited to video files only, it covers all types of files (providing you know the real or original CRC/md5/sha1 value that is). Real example is when I downloaded a Fedora iso files; before burn it into a blank DVD, I check the integrity by using sha1. The general syntax is sha1sum  [<em>OPTION</em>] [<em>FILE</em>]. Example of sha1sum&#8217;s content (below):</p>
<blockquote>
<p align="justify">&#8212;&#8211;BEGIN PGP SIGNED MESSAGE&#8212;&#8211;<br />
Hash: SHA1</p>
<p>96b13dbbc9f3bc569ddad9745f64b9cdb43ea9ae  F-7-i386-DVD.iso<br />
fc2e7ab25550afb78608c7f432d0af6c6a7b2105  F-7-i386-rescuecd.iso<br />
&#8212;&#8211;BEGIN PGP SIGNATURE&#8212;&#8211;<br />
Version: GnuPG v1.4.7 (GNU/Linux)</p>
<p>iD8DBQFGWfrHtEJp0E8qb9IRAlKbAJ4lFgv2g1t2HHkx9qBR+MICRTjEZACeKW1G<br />
PARJf/frcaGIB27Lw8R3Nng=<br />
=GQMy<br />
&#8212;&#8211;END PGP SIGNATURE&#8212;&#8211;</p></blockquote>
<p align="justify">Type the command in terminal (<span style="color: #0000ff;"><em>sha1sum -c SHA1SUM</em></span>). The <em>SHA1SUM</em> is the name of the sha1 files and &#8220;<em>-c</em>&#8221; option indicate that we intend to check SHA1 sums against the given list (<em>SHA1SUM</em>). I just make sure the <em>SHA1SUM</em> is in the same folder with the iso files that I want to check. And that&#8217;s all for now and I do hope my post will bring any benefit to you. See ya&#8217;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amirhamzah.net/2007/09/files-integrity-check/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

