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.
Add application extension mapping, at executable field input c:\php\php5isapi.dll, at extension field input.php
3. Add web service extension as picture below.
Insert extension name and required files.
Check “set extension status to allowed check box”.
Allowing index.php files to run as a directory default.
Add windows path c:\php\ext (right click on my computer > advanced > environment variables > system variables)
Check by running phpInfo function (tes.php) and see whether configuration and library is loaded normally.
TROUBLESHOOT
1. Error open folder for session.
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.
MSSQL refuse connection of the application.
Right click on SQL Server > properties > tab Security > Authentification, SQL Server and Windows.
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