Tuesday, November 9, 2010

PHP and IIS Preparation

Posted by Aries Wandari

PHP (ISAPI) and IIS Preparation
1. Copy php5ts.dll to C:\windows\system32
2. Tell php how to execute php files

On IIS, right click on web site > properties > click tab home directory > click configuration button.

image

image

Add application extension mapping, at executable field input c:\php\php5isapi.dll, at extension field input.php

image 
3. Add web service extension as picture below.

image
Insert extension name and required files.

image

Check “set extension status to allowed check box”.

image

Allowing index.php files to run as a directory default.

image
Add windows path c:\php\ext (right click on my computer > advanced > environment variables > system variables)

image
Check by running phpInfo function (tes.php) and see whether configuration and library is loaded normally.

 

TROUBLESHOOT

1. Error open folder for session.

clip_image002

adodb* is using tmp folder as session and cache store. We need to create the folder

Create tmp folder on E:\ (same drive of web application folder)

2. Error connect mssql.

clip_image004

MSSQL refuse connection of the application.

Right click on SQL Server > properties > tab Security > Authentification, SQL Server and Windows.

clip_image006

3. Configuration file php.ini located on c:\windows instead of its real location on c:\php

Its mean that system cant find config file and load default configuration. Need to add phprc system variables.

System variables:
Variable: PHPRC
Value: C:\php

0 comments:

Post a Comment