Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    php
  » WIMP - Windows IIS MySQL PHP Installed on 2000/XP
      by Mike Milano
 Page 4 of 8 
< Previous     Next >

(Login to remove green text ads)
Download and Install PHP
Like MySQL, PHP also has an installer, but in order to demonstrate exactly how PHP integrates with IIS, we will be installing PHP manually.

1. Download the latest stable Windows Binaries from: http://www.php.net/downloads.php Download both the PHP 5.x.x zip package and Collection of PECL modules for PHP 5.x.x.


2. Extract the PHP zip package (not the PECL) to: C:\PHP .


3. Extract the PECL modules to: C:\PHP\ext . It is not necessary to even use the PECL modules, but it is nice to have in case you want to use or play with these.


4. Define the PHP directory in the registry.

If you've ever had to copy your php.ini or PHP libraries to your Windows directory, then you will really appreciate this step. The PHP executable needs to know where PHP is installed to find the php.ini file and dependant libraries. By defining the PHP path in the registry, we can keep ALL PHP related files in the PHP directory.

Create a registry key: HKEY_LOCAL_MACHINE\SOFTWARE\PHP

Add a new string name: IniFilePath
The value will be the path: C:\PHP

If you do not know how to use regedit or just want an easy way to do this, copy the following code into a text editor and save it as php.reg. Then you can double click it to install the registry key.
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
"IniFilePath"="C:\\PHP"





 
 Page 4 of 8 
< Previous     Next >

Rate This Article
1 2 3 4 5 6 7 8 9 10





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting