Install phpMyAdmin in IIS 5.1

Yosh! Now we're already done setting up PHP 5.3 to IIS 5.1 and MySQL Server 5.0, now this guide is for Installing phpMyAdmin in IIS 5.1 and PHP 5.3. If you need some assistance in setting up PHP in IIS 5.1 or MySQL Server 5.0, do check the following links:
Next is to download the latest version of phpMyAdmin at http://www.phpmyadmin.net/home_page/downloads.php and extract the files to the appropriate directory inside your IIS web root (C:\Inetpub\wwwroot\) so that IIS is able to access it. You may wish to create a separate website for your phpMyAdmin installation, or simply add it as a sub directory or virtual directory under an existing website. Either way you'll need to make sure that the user account used by IIS to access your files has at least NTFS read permissions to all of your files once they are in place.In this guide we'll place the phpMyAdmin files in a directory called "pma" under the root directory of a website "localhost". With all this in mind, then to access the phpMyAdmin installation used in this guide you would type the following into the address bar of your web browser "http://localhost/pma".

PHP Settings

phpMyAdmin uses several PHP extensions to perform its various functions. The extensions you'll need for phpMyAdmin are:
  • MySQL (to connect to the MySQL server)
  • MCrypt (highly recommended for performance when using the cookie authentication method, and actually required for 64-bit environments)
  • MBString (used for multi-byte character support)
  • GD2 (image creation and manipulation library)
To enable these extensions open you php.ini file and navigate to the list of extensions and find these extension names, simply remove the semi-colon (;) from that start, save the file and restart IIS to reload your PHP environment.
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mysql.dll
These extensions should now be loaded into your PHP environment, and can be verified using the phpinfo function.

Creating you phpMyAdmin config file

Next  is to create your config file for the phpMyAdmin. To do this the easiest way is to copy the config.sample.inc.php file in you phpMyAdmin root directory and rename it to config.inc.php. Using this sample config file as a base means there are literally only a handful of settings that need to be added or altered so that you have a working configuration. Make sure you add/edit in the following: 
$cfg['blowfish_secret'] = '<typeinanywordinhere>';

/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '<yourMySQLUsername>';
$cfg['Servers'][$i]['password']  = '
<yourMySQLPassword>';

/* Select mysqli if your server has it */
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* User for advanced features */

$cfg['docSQLDir'] = 'docsql';
$cfg['ShowPhpInfo'] = true;
$cfg['ShowChgPassword'] = true;
$cfg['AllowArbitraryServer'] = false;
$cfg['LoginCookieRecall'] = 'something';
$cfg['LoginCookieValidity'] = 1800;
$cfg['AllowAnywhereRecoding'] = true;
$cfg['DefaultCharset'] = 'iso-8859-1';
$cfg['RecodingEngine'] = 'iconv';
$cfg['IconvExtraParams'] = '//TRANSLIT';
$cfg['GD2Available'] = 'yes';
$cfg['CheckConfigurationPermissions'] = FALSE;
$cfg['Servers'][$i]['hide_db'] = '(information_schema|phpmyadmin|mysql)';

From here you should actually be able to log into your new phpMyAdmin installation by typing http://localhost/pma to your web browser. phpMyAdmin won't be asking for your MySQL Username and Password since you already stored it in $cfg['Servers'][$i]['user'] and $cfg['Servers'][$i]['password'].


Now we need to configure the privileges for the Username you used in accessing MySQL Server 5.0. Open MySQL Command Line Client by clicking Start > All Programs > MySQL > MySQL Command Line Client. Enter your password and type in the following SQL Statements:

GRANT USAGE ON mysql.* TO 'yourMySQLUsername'@'localhost' IDENTIFIED BY 'yourMySQLPassword';
GRANT SELECT (
    Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
    Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
    File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
    Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
    Execute_priv, Repl_slave_priv, Repl_client_priv
    ) ON mysql.user TO 'yourMySQLUsername'@'localhost';
GRANT SELECT ON mysql.db TO 'yourMySQLUsername'@'localhost';
GRANT SELECT ON mysql.host TO 'yourMySQLUsername'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
    ON mysql.tables_priv TO 'yourMySQLUsername'@'localhost';
GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO
   'yourMySQLUsername'@localhost;

What we did was we enabled all access to the Username you used in MySQL Server and hurray! Your phpMyAdmin is now working properly! You may now access phpMyAdmin in http://localhost/pma to your browser with no problems.

If you have any comments, questions about the installation and suggestions please feel free to post here. Thanks again for sticking around! ^_^

Monster Hunter Portable 3rd for PSP = Hurray!

Hurray for Capcom! Why you asked? B'coz...


And I'm so happy that Capcom haven't forgot the PSP Community! It was announced yesterday at Japan about this very beautiful game and it will be release this year together with the other PSP game "Monster Hunter Diary Poka Poka Airu Village". I can't wait to test both games!

Here's the updates in the Monster Hunter Portable 3rd:
  • Felyne fighter combat/AI has been revised.
  • More emphasis on graphics and sound quality.
  • A better communication system is added (probably making use of a keyboard/PS3/microphone on PSP).
  • Infrastructure support added.
  • No underwater combat, it is to remain exclusive to MH3.
  • The game is situated in Yukumo, an oriental village. The mayor of this village is a woman.
  • Felyne fighter armor/weapon can be customized/upgraded adding more depth and attention for them.
  • There will be less content (quest wise, which should reflect upon the amount of armors/weapons created) than MHP2G (currently holding the content title, if you exclude Frontier).
  • Info on 3 new monster species: Jinouga, Gavu, Aoashira 
  • 12 different kinds of weapons: Great Sword, Long Sword, Hammer, Hunting Horn/Flute, Sword & Shield, Dual Swords, Lance, Gun Lance, Slash Axe, Light Bowgun, Heavy Bowgun, Bow 
  • A new "Bathing/Spa Facility" feature to replace the Felyne Kitchen
Anyways, here's the trailer for Monster Hunter Portable 3rd:


And here's the trailer for Monster Hunter Diary Poka Poka Airu Village! Super kawaii!


I can't wait!! Nyah! Meow! Nyah! ^_^

References:

Monster Hunter Freedom Unite CWCheat Codes

Yes, I'm addicted to Monster Hunter Freedom Unite for PSP. I'm current HR6 and trying to beat the Akantor by my self is still impossible, playing some of the High-Rank Guild Quest without other "hunters" to accompany me is a pain in the ass. But I like it, I like the game play and specially how cute the Felyne Chefs cooks your meal inside the kitchen while saying "Nyah, meow, nyah!". I wish Felynes are for real so they can cook dinner for me. ^_^;;

Anyways...

Here are just some of the useful CWCheat Codes for the Monster Hunter Freedom Unite. You can use the "HP Hack" and "Reveal Map & Boss" for slaying, while for hunting, specially for Treasure Hunting, you can use the "Fast Infinite Carves" and "Time Fix".  :
_S ULES-01213
_G Monster Hunter Freedom Unite (EU)
_C1 HPD Hack 1.0 [1/4] (Loader)
_L 0x217F8060 0x24050000
_L 0x217F80A8 0x2A020003
_L 0xD03206DC 0x00000101
_L 0x20041DB4 0x0A7FE000
_L 0xD03206DC 0x00000201
_L 0x20041DB4 0x0E2099B3
_C1 HPD Hack 1.0 [2/4]
_L 0x217F7DFC 0x3C0208A6
_L 0x217F7E00 0x8C4431A8
_L 0x217F7E04 0xA4850120
_L 0x217F7E08 0xA4860122
_L 0x217F7E0C 0x01002821
_L 0x217F7E10 0x01203021
_L 0x217F7E14 0x01403821
_L 0x217F7E18 0x01604021
_L 0x217F7E1C 0x0A2244D3
_L 0x217F7E20 0x00000000
_L 0x217F7E24 0x03E00008
_L 0x217F7E28 0x00000000
_L 0x217F7E98 0x3C03089A
_L 0x217F7E9C 0x3463C710
_L 0x217F7EA0 0x00061040
_L 0x217F7EA4 0x00621821
_L 0x217F7EA8 0x94620000
_L 0x217F7EAC 0x10400002
_L 0x217F7EB0 0x24C60067
_L 0x217F7EB4 0x00403021
_L 0x217F7EB8 0x3C02089C
_L 0x217F7EBC 0x3442C4A4
_L 0x217F7EC0 0x00063080
_L 0x217F7EC4 0x00461821
_L 0x217F7EC8 0x8C630000
_L 0x217F7ECC 0x03E00008
_L 0x217F7ED0 0x00433021
_L 0x217F7F50 0x253A7325
_L 0x217F7F54 0x64252F64
_L 0x217F7F58 0x00000000
_C1 HPD Hack 1.0 [3/4]
_L 0x217F8000 0x0E2099B3
_L 0x217F8004 0x00000000
_L 0x217F8008 0x3C0209FF
_L 0x217F800C 0xAC557FFC
_L 0x217F8010 0xAC547FF8
_L 0x217F8014 0xAC537FF4
_L 0x217F8018 0xAC527FF0
_L 0x217F801C 0xAC517FEC
_L 0x217F8020 0xAC507FE8
_L 0x217F8024 0x00000000
_L 0x217F8028 0x00000000
_L 0x217F802C 0x00000000
_L 0x217F8030 0x34100000
_L 0x217F8034 0x34110000
_L 0x217F8038 0x3C0209C1
_L 0x217F803C 0x34522140
_L 0x217F8040 0x00000000
_L 0x217F8044 0x00000000
_L 0x217F8048 0x3C0208A6
_L 0x217F804C 0x8C4431A8
_L 0x217F8050 0x2405000C
_L 0x217F8054 0x0E22437A
_L 0x217F8058 0x2406000E
_L 0x217F805C 0x0E22438E
_L 0x217F8064 0x00101080
_L 0x217F8068 0x02421021
_L 0x217F806C 0x8C530000
_L 0x217F8070 0x1260000D
_L 0x217F8074 0x00000000
_L 0x217F8078 0x0E7FDFA6
_C1 HPD Hack 1.0 [4/4]
_L 0x217F807C 0x826601E8
_L 0x217F8080 0x00C04821
_L 0x217F8084 0x866A02E4
_L 0x217F8088 0x866B041E
_L 0x217F808C 0x3C0209FF
_L 0x217F8090 0x34487F50
_L 0x217F8094 0x24060090
_L 0x217F8098 0x20050005
_L 0x217F809C 0x0E7FDF7F
_L 0x217F80A0 0x00D13021
_L 0x217F80A4 0x26310010
_L 0x217F80AC 0x1440FFE6
_L 0x217F80B0 0x26100001
_L 0x217F80B4 0x00000000
_L 0x217F80B8 0x00000000
_L 0x217F80BC 0x3C0209FF
_L 0x217F80C0 0x8C557FFC
_L 0x217F80C4 0x8C547FF8
_L 0x217F80C8 0x8C537FF4
_L 0x217F80CC 0x8C527FF0
_L 0x217F80D0 0x8C517FEC
_L 0x217F80D4 0x0A210780

_S ULUS-10391
_G Monster Hunter Freedom Unite(USA)
_C0 HP Display Hack (1/4)
_L 0x217F8060 0x24050000
_L 0x217F80A8 0x2A020003
_L 0xD0000005 0x10000101
_L 0xE10600FF 0x017F7F60
_L 0xE10200B3 0x00041DB4
_L 0x20041DB4 0x0A7FE000
_L 0x017F7F60 0x00000000
_L 0xE10200FF 0x017F7F60
_L 0x20041DB4 0x0E2099B3
_L 0x017F7F60 0x00000000
_L 0xD0000001 0x30000101
_L 0xE1010000 0x017F7F60
_L 0x017F7F60 0x000000FF
_C0 HP Display Hack (2/4)
_L 0x217F7DFC 0x3C0208A6
_L 0x217F7E00 0x8C4432C8
_L 0x217F7E04 0xA4850120
_L 0x217F7E08 0xA4860122
_L 0x217F7E0C 0x01002821
_L 0x217F7E10 0x01203021
_L 0x217F7E14 0x01403821
_L 0x217F7E18 0x01604021
_L 0x217F7E1C 0x0A2244D3
_L 0x217F7E20 0x00000000
_L 0x217F7E24 0x03E00008
_L 0x217F7E28 0x00000000
_L 0x217F7E98 0x3C03089A
_L 0x217F7E9C 0x3463C830
_L 0x217F7EA0 0x00061040
_L 0x217F7EA4 0x00621821
_L 0x217F7EA8 0x94620000
_L 0x217F7EAC 0x10400002
_L 0x217F7EB0 0x24C60067
_L 0x217F7EB4 0x00403021
_L 0x217F7EB8 0x3C02089C
_L 0x217F7EBC 0x3442C5C4
_L 0x217F7EC0 0x00063080
_L 0x217F7EC4 0x00461821
_L 0x217F7EC8 0x8C630000
_L 0x217F7ECC 0x03E00008
_L 0x217F7ED0 0x00433021
_L 0x217F7F50 0x253A7325
_L 0x217F7F54 0x64252F64
_L 0x217F7F58 0x00000000
_C0 HP Display Hack (3/4)
_L 0x217F8000 0x0E2099B3
_L 0x217F8004 0x00000000
_L 0x217F8008 0x3C0209FF
_L 0x217F800C 0xAC557FFC
_L 0x217F8010 0xAC547FF8
_L 0x217F8014 0xAC537FF4
_L 0x217F8018 0xAC527FF0
_L 0x217F801C 0xAC517FEC
_L 0x217F8020 0xAC507FE8
_L 0x217F8024 0x00000000
_L 0x217F8028 0x00000000
_L 0x217F802C 0x00000000
_L 0x217F8030 0x34100000
_L 0x217F8034 0x34110000
_L 0x217F8038 0x3C0209C1
_L 0x217F803C 0x34522240
_L 0x217F8040 0x00000000
_L 0x217F8044 0x00000000
_L 0x217F8048 0x3C0208A6
_L 0x217F804C 0x8C4432C8
_L 0x217F8050 0x2405000C
_L 0x217F8054 0x0E22437A
_L 0x217F8058 0x2406000E
_L 0x217F805C 0x0E22438E
_L 0x217F8064 0x00101080
_L 0x217F8068 0x02421021
_L 0x217F806C 0x8C530000
_L 0x217F8070 0x1260000D
_L 0x217F8074 0x00000000
_L 0x217F8078 0x0E7FDFA6
_C0 HP Display Hack (4/4)
_L 0x217F807C 0x826601E8
_L 0x217F8080 0x00C04821
_L 0x217F8084 0x866A02E4
_L 0x217F8088 0x866B041E
_L 0x217F808C 0x3C0209FF
_L 0x217F8090 0x34487F50
_L 0x217F8094 0x24060090
_L 0x217F8098 0x20050005
_L 0x217F809C 0x0E7FDF7F
_L 0x217F80A0 0x00D13021
_L 0x217F80A4 0x26310010
_L 0x217F80AC 0x1440FFE6
_L 0x217F80B0 0x26100001
_L 0x217F80B4 0x00000000
_L 0x217F80B8 0x00000000
_L 0x217F80BC 0x3C0209FF
_L 0x217F80C0 0x8C557FFC
_L 0x217F80C4 0x8C547FF8
_L 0x217F80C8 0x8C537FF4
_L 0x217F80CC 0x8C527FF0
_L 0x217F80D0 0x8C517FEC
_L 0x217F80D4 0x0A210780
_L 0x217F80D8 0x8C507FE8

_C1 Reveal Map & Boss
_L 0x200444CC 0x34030096
_L 0x20044668 0x34020085

_C0 Fast Infinite Carves
_L 0x81244C86 0x00140020
_L 0x00000005 0x00000000
_L 0xE00600FF 0x012A0DEC
_L 0x212A0DEC 0x34040001
_L 0x212A0E7C 0x34040001
_L 0x212A0EEC 0x34040001
_L 0x212A0F48 0x34040001
_L 0x212A1484 0x34040001
_L 0x212A1610 0x34040001

_C0 Unlimited Time 1
_L 0x2025B96C 0x00015F90
_L 0x21205F10 0x00013C68
_C0 Unlimited Time 2
_L 0x21205F10 0x00015F90

Install MySQL Server 5.0 in IIS 5.1 and PHP 5.3


Yay! We're already done setting up PHP 5.3 to IIS 5.1, now this guide is for Installing MySQL Server 5.0 in  IIS 5.1 and PHP 5.3. I'm assuming you have IIS 5.1 already installed in your system and if you still need to setup PHP 5.3 then please check the Installing PHP 5.3 in IIS 5.1 guide. Now for installing MySQL Server 5.1 you will need to download latest stable release version here: http://dev.mysql.com/downloads/mysql/5.1.html. In this tutorial I am going to be using the Windows Essentials (x86) version which has all the core functionality you need to run a MySQL database server. Launch the mysql-essential-5.0.26-win32.msi installer file to start the MySQL Setup Wizard.


Click Next and then choose a custom installation as this will allow us to specify an installation directory of our own choosing. In this example I will be using installing MySQL into the "C:\MySQL" folder.

 

 On the Custom setup dialog box click Change to specify the preferred installation directory.

 


 Select the directory you want to use and then click OK to go back to the Custom setup dialog box.

 

Click next. MySQL is now ready to be installed. Click Install to begin the installation.



At the MySQL.com Sign Up screen click Skip Sign-Up and then click Next.


On the next dialog box ensure that ‘Configure the MySQL Server now’ tick box is checked and click Finish, then this will open the Server Instance Configuration Wizard. Click Next to begin configuring your MySQL server.



Choose Detailed Configuration and click Next.

 

In this example I am installing MySQL on the same machine as my IIS web server so I opt for the Server Machine option. Choose a server type which is appropriate for your requirements and click Next.

 

Choose the type of database which best suits your needs and click Next.

 

Leave the default setting of the MySQL installation path for the InnoDB Tablespace settings (unless you wish to change it) and click Next.


Select the appropriate number of concurrent connections you want to allow and click Next.


Leave the default networking options settings (unless you have reason to change them) and click Next.

 

Choose the appropriate character set for your requirements and click Next.

 

On the Windows options dialog box ensure that both ‘Install As Windows Service’ and ‘Include Bin Directory in Windows Path’ tick boxes are selected and click Next.


In the security options dialog box ensure that ‘Modify Security Settings’ is ticked and type in your new root password. Decide whether or not you wish to allow root access from remote machines or create an anonymous account and click Next.
 

If you are happy with the choices you have made click Execute to begin configuring your server.

Once the Configuration Wizard has finished click Finish to begin using your new MySQL server.
Now that we have got MySQL installed we need to create a test user account which we will use later in this walkthrough to test connectivity to MySQL from a PHP script. Start by opening the MySQL Command Line Client. When prompted enter your root password and hit enter. Type the following SQL command and hit enter :
CREATE USER ‘phptest’@'localhost’ IDENTIFIED BY ‘phptest’;
Then type this SQL command and hit enter :
FLUSH PRIVILEGES;
Now type this SQL command and hit enter :
SELECT Host, User, Password FROM mysql.user;
 

As you can see we have now created a new MySQL user account called ‘phptest’ with a password of ‘phptest’. This user account can log in to MySQL but has not been granted any permissions on any of the existing schema or databases.

Configure PHP for MySQL Connectivity

Now that we have got both PHP and MySQL installed on the server we can move on to the job of getting PHP connected to MySQL. The first thing we need to do is enable the MySQL extensions for PHP to use. To do this locate the Dynamic Extensions section of your ‘php.ini’ file and either uncomment or add the following lines to the top of the existing list of extensions :

extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll

You may find that the line referencing php_mysqli.dll is not in your php.ini file - if not you will need to add it to the list. Once you have done this save the changes in the ‘php.ini’file and then either recycle your PHP web site’s application pool or perform an IISReset for the changes to take effect. If you now browse the http://localhost/index.php file we created in the first article you should see that support for MySQL is now enabled.


We are now ready to go ahead with a simple test script to ensure everything is setup correctly. Start by creating a new text file in Notepad in the root of your PHP test web site and then type in the codes and save it as 'dbtest.php'.
<?php
// Establish a connection and select a database
$link = mysql_connect('localhost', 'phptest', 'phptest') or die('Could not connect to the MySQL Server: ' . mysql_error());
mysql_select_db('mysql') or die('Could not Select the Database.<br><br>The error returned by MySQL was: <br>' . mysql_error());
// Close the connection
mysql_close($link);
?>
Browse to http://localhost/dbtest.php on your server. You should see the error message shown below.

 

his indicates two things. First, that we have successfully connected to MySQL from our test PHP script and second, that the user account we specified in our connection string does not have sufficient privileges to access the ‘mysql’ system database. So you should now have a working installation of PHP and MySQL running on your IIS 5.1 server. In the final article in this series I will demonstrate how to install phpMyAdmin in IIS 5.1 and PHP 5.3. Thanks again for sticking around! If you have any comments, questions about the installation and suggestions please feel free to post here.

Web Design Inspirations

Just want to share some of the best sites that I've found:

Minimal Exhibit is a gallery that exists to showcase the best websites that feature a minimalist design style. Minimalism can bring great elegance, beauty, and usability to a website, so we hope that you enjoy the collection of sites found here.


Folio Focus is a web design gallery that exists to showcase excellent portfolio sites. Here you will find the best collection of portfolio sites from web and graphic designers, photographers, and other professionals that use a portfolio site.



CartFrenzy is a web design gallery that showcases the most well-design e-commerce and shopping websites. While there are many general web design galleries out there, CartFrenzy exists for a specific purpose, to provide design inspiration for those who are creating e-commerce sites.



Blog Design Heroes is a web design gallery that focuses on showcasing the best blog designs. Our gallery includes blogs of all kinds, using all different blogging platforms.

Installing PHP 5.3 in IIS 5.1

This guide is for Installing PHP 5.3 (Thread Safe) in IIS 5.1. I'm assuming you have IIS 5.1 already installed in your system and you will need to download the following files:

Install and Configure PHP 5.3

Extract the contents of the PHP 5.3 Non Thread Safe Zip package for Windows to "C:\PHP". This will be your PHP installation directory. Go to "C:\PHP" and create a folder named "temp".

Configure the php.ini File
    Inside C:\PHP, copy the "php.ini-development" file and rename it to "php.ini" and edit the file to Notepad. You need to configure the "php.ini" file by uncommenting by removing the semi-colon (;) and changing the values of the following:
      cgi.fix_pathinfo = 1
      cgi.force_redirect = 0
      fastcgi.impersonate = 1
      fastcgi.logging = 0

      extension_dir = "C:\PHP\ext"
      session.save_path = "C:\PHP\temp\"
      upload_tmp_dir = "C:\PHP\temp\"

      display_errors = On
      display_startup_errors = On
      log_errors = On
      error_log = "C:\PHP\temp\phperror.txt"

      extension = php_mysql.dll
      extension = php_mysqli.dll
      extension = php_curl.dll
      extension = php_gd2.dll
      extension=php_mbstring.dll

      Configure the Path Variable

      For PHP and its extensions to work properly, they need to access the DLLs present inside C:\PHP. The recommended method is to add "C:\PHP" to the Path Environment Variable. To do this Right-click on My Computer, click Properties and on the Advanced tab click Environment Variables. In the Environment Variables dialog box, under System variables highlight the Path variable and click Edit.




      Add ";C:\PHP" (be sure to include the semi-colon separator) as shown here and click OK. You need to re-boot the server for this change to take effect.



      Install and Configure FastCGI Extension

      Run the FastCGI Extension for IIS 6.0 and 5.1 Installer (fcgisetup_1.5_rtw_x86.msi) to copy the necessary files to your machine. The FastCGI Extension can be configured by editing the "fcgiext.ini" file which is located in "C:\WINDOWS\system32\inetsrv\" directory. Edit this file to Notepad and add the following:
      [Types]
      php=PHP

      [PHP]
      ExePath=C:\PHP\php-cgi.exe
      Arguments=-c C:\PHP\php.ini

      Install Microsoft Visual C++ 2008 Redistributable Package (x86)

      Run the Microsoft Visual C++ 2008 Redistributable Package (x86) (vcredist_x86.exe) to copy the necessary files to your machine.


      Configure IIS 5.1

      To route requests for PHP files to the FastCGI handler, you must associate .php files with the FastCGI Extension in IIS. This is done via Application Extension Mapping (also known as Script Mapping). Script maps associate file extensions with a script handler that executes when that file type is requested.
      1. Launch Internet Information Services (run inetmgr.exe).
      2. Expand the nodes in the left hand pane and locate Web Sites, right click on it and select Properties.
      3. On the Web Sites Properties windows choose Home Directory tab and click the Configuration... button.
      4. Make sure that the Application Mappings list does NOTcontain .php extension. Click the Add... button. Enter the following without the double quotes ("). Enter "C:\WINDOWS\system32\inetsrv\fcgiext.dll" as the Executable, enter ".php" as the Extension, limit the Verbs to "GET,HEAD,POST", and check the Script engine and Verify that file exists check-boxes.
      For your PHP applications to work smoothly, you should add "index.php", the default application document for most PHP applications, to the list of Default Documents. To do this here are the steps:
      1. Launch Internet Information Services (run inetmgr.exe).
      2. Expand the nodes in the left hand pane and locate Web Sites, right click on it and select Properties.
      3. On the Web Sites Properties windows choose Documents, and make sure that the Enable Default Document check-box is checked
      4. Click on Add... button, enter "index.php" (without the double quotes) as the Default Document Name and click OK.
      5. Close all dialog boxes by clicking OK.
      Before testing, restart IIS to make sure all configuration changes are applied. To do this click Start, click Run, type "cmd", and then click OK. At the command prompt, type "net stop iisadmin /y".


      Run phpInfo.php for testing

      Create "phpInfo.php" under "C:\Inetpub\wwwroot\" directory. Open the file at Notepad and type the following:
      <?php
      phpinfo();
      ?>

      Now open "http://localhost/phpInfo.php" in your browser to view the result. If all goes well, the phpinfo page should appear and you have successfully install PHP 5.3 in IIS 5.1! If you have any comments, questions about the installation and suggestions please feel free to post here.

      Installing Windows XP in HP-Compaq Presario CQ40-338TU via Slipstreaming

      Gaah!!

      Yup, installing Windows XP in HP-Compaq Presario CQ40-338TU gives me a headacheĆ¢€¦ I like the hardware specification but reinstalling Windows XP is quite a nuisance since the available version of the drivers from the official site for this laptop model is for Vista and Windows 7 only even thought the original OS that came with it is Windows XP. It took me about 2-3 days to figure out how to install Windows XP and where to find the drivers since HP-Compaq release a lot of version of CQ40 laptops and thanks to Google I'm able to figure it out. So before I walk you thru the installation let me show you the specs of the HP-Compaq Presario CQ40-338TU so you could check if you're looking at the right CQ40 laptop.

      Platform: Intel ® Pentium ® Processor Technology
      Processor: Intel ® Pentium ® Dual - Core Processor T4200-2.0Hz (1MB Cache, 667MHz FSB)
      Chipset: Chipset Intel ® 40GL
      Hard Drive: 250GB SATA
      Optical Drive: DVD ± RW
      Display: 14.1 "WXGA
      Graphic: Intel ® Graphics Media Accelerator 4500MHD
      WiFi, Ethernet, Modem, Bluetooth, Web Camera, Audio : Integrated 
      Input Device: Standard Keyboard + Touchpad
      Card Reader: 5 in 1 Card Reader
      I / O Port: 3x USB, VGA, LAN, Audio
      Power: External AC adapter, Rechargeable Li-ion Battery

      As you can see the hard drive in CQ40-338TU is SATA which is a little problem. If you try to install Windows XP in it you'll encounter an 0x000007B blue screen error (trust me, you will) since the SATA drive will not be detected. In order to fix this is to create a customized Window XP CD with the SATA driver in it by Slipstreaming. How would you do that? We'll be using nLite to do the trick. nLite is a tool for pre-installation Windows configuration and component removal at your choice and it needs .NET Framework 2.0 in order to run. So you need your Windows XP installation CD, a blank CD and download the following files:



      Creating a Custom XP Installation CD
      1. Unzip f6flpy3286.zip at "C:\SATA", install the .NET Framework 2.0 then the nLite. Once it starts up, you’ll be prompted for your Windows installation, so you’ll want to click the Browse button.
      2. First you’ll be prompted for the “Windows installation”, which really means your XP install CD. Find it and select the root of the installation, and then click OK to go to the next dialog.
      3. Next you’ll be prompted on where you want to save the temporary files used during the slip-streaming process. I chose to create a new directory and called it XPISO, but you can put it wherever you’d like. I just recommend to use a new directory.
      4. nLite will copy all the necessary files off the XP installation and into the temporary folder. When it’s done, you’ll see all the information on which version it is.
      5. Hit the next button until you come to this screen, where you can select what options you want. Select “Drivers” and then “Bootable ISO”.
      6. Hit the next button until you get to the screen for selecting drivers. If you click the Insert button, you can choose between adding a single driver or adding a folder of drivers. Since we’ll just be loading a single driver, you can choose that option, but you might want to first read the section below about finding drivers for XP.
      7. Browse to the directory to "C:\SATA", and then select Open. Note that it doesn’t really matter which of the *.inf files you choose, because it will select all files in the folder anyway.
      8. nLite will prompt you to select your driver. Choose the last two options from the list ONLY! 
      9. Once you proceed to the next screen, now we can finally finish the process. You can choose to directly burn the cd here, or you can select Create Image to create an ISO file that you can burn to a CD using whatever burning tool you have. If you chose to create an ISO, make sure to use the “Make ISO” button before you click Next. 
      At this point you can burn the ISO image to a CD, and then you already have your customized Windows XP installation CD!


      Now I'm assuming that you're familiar or knowledgeable in the Windows XP Setup so I'll skip that step. Next would be the installing the hardware drivers for the  HP-Compaq Presario CQ40-338TU.

      Make sure you download the following drivers and install them according to order!

      And that's it! Congratulations, you're done with the Windows XP Installation in HP-Compaq Presario CQ40-338TU!! Hurray! Thanks for sticking in this article and please feel free to leave a comment if you need some help with instaling Windows XP to your HP-Compaq Presario CQ40-338TU.