environment windows server 2003 r2 with iis6 installed
1. download and extract php5.2.5.zip from php.net to c:\php\
2. move php.ini-recommended to php.ini
edit php.ini
set the extension_dir to c:\php\ext
set cgi.force_redirect = 0
uncomment extension=php_oci8.dll
comment doc_root=
3. Add "C:\PHP" to the PATH environment variable. Right click my computer>properties>advanced>Environment Variables
4. Add to the registry HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\PHP
or run this .reg script
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
"IniFilePath"="C:\\PHP"
5. install oracle 10.0.1g, if in the installation (copying database) error occured then start the service from services in administrative tools and continue installation.
6. download and extract oracle instantclient basic lite from http://www.oracle.com/technology/tech/oci/instantclient/index.html to x directory
7. copy all files from x directory to c:\php\, c:\php\ext, c:\windows and c:\windows\system32
8. download and extract pecl4win from http://pecl4win.php.net/ext.php/php_oci8.dll php_oci8.dll php-5.2.1 (5_2). copy php_oci8.dll to c:\php, c:\php\ext, c:\windows and c:\windows\system32 folder
9. from start menu > run, type inetmgr and enter. right click the web site that you want to set up php, and choose properties.
in the Home Directory tab click Configuration, and in the Mappings tab click Add
set the Executable to C:\php\php5isapi.dll and the extension to .php
10. still in IIS Manager click Web Service Extensions and click Add a new Web service extension...
enter PHP as Extension Name, click Add and browse to php5isapi.dll file in C:\php.
Check the Set extension status to Allowed checkbox and click OK
11. Still in IIS Manager, right click the web site that you want to set up php, and choose properties. In the Home Directory change the Execute permissions dropdown to Scripts only.
12. run iisreset or reboot your computer
Hope this works:D
Installing PHP 5 with Oracle 10 in IIS 6 on Windows Server 2003
Posted by
Mantaf Gan
Monday, December 8, 2008
at
10:28 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment