Sunday, January 2, 2011

How to configure PHP on IIS server


  1. Install IIS (Required Windows CD to install IIS server).
  2. Go to Control Panel > add/Remove programs windows components > select IIS
  3. Go to Start > control panel > performance & maintenance > Internet Information Services > websites > default websites ---right click--->Select stop
  4. Download PHP from PHP website
  5. Extract the downloaded zip folder (for example php5)and then  see the directory structure.
  6. Copy php5\dev\php5ts.dll  to C:\windows\system32\
  7. Copy php5\php.int-dist to c:\windows\ and rename it as php.ini
  8. Copy all files from php5\ext\ to c:\windows\sysem32\ or change the path variable to php5\ext\
  9. Open the file php.ini from c:\windows\ and make  changes like  extension-dir=c:\php5\ext
  10. Remove the semicolon which is prefixed from the line extensions=php_gd2.dll
  11. As point 9, we can enable the extensions as per our requirements. Above extensions will enable GD library.
  12. Save the modified php.ini file and close it.
  13. Go to Start > control Panel > performance & maintenance > administrative tool  > IIS > website > Default website ---right click---> properties ---click--->SAPI filter tab ---click--->Add button ----create a new filter [filter name PHP] [Extension: c:\php5\php5isabpi.dll] > OK
  14. Home directory tab > configuration button ---click on add button > Executable ---click on Browse button to select the file (c:\php5\php5isapi.dll)
  15. Provide .php as extension > ok >ok
  16. Go to Start > control Panel > performance & maintenance > administrative tool  > IIS > website > default website ---right click--->start
Beginning PHP 5.3 (Wrox Programmer to Programmer)

Q. What is Path environment variable?
A: A path environment variable contains a list of directories paths in which windows will look for things. To set the path variable,
Go to start > control panel > system > advanced > environment variables
Add your new path and click on save

    No comments:

    Post a Comment

    Thanks for your valuable comments.

    Important queries based formulas to watch performance of a MySQL based application

    (1) Session Vs global status variables value select G.variable_name,G.variable_value GlobalValue,S.variable_value SessionValue from (selec...