How to install php 5.2 using IIS (Internet Information Service)

There are following steps which are to be followed to install php5.2

1) Download php5.2 from site www.php.net/downloads.php

2) Extract the folder in ur c directory and rename the folder as c:/php

3) There are ext directory in php folder which contains php.exe and phpapache5.dll

4) copy all dll files to ur c:/WINDOWS/system32

5) Then there is php-ini.dist and php-ini.recommended files in php folder.

6) Choose php-ini.dist if just want for development purpose.

7) Rename it to php.ini and put it in c:/WINDOWS

8) Configure the setting in ur php.ini . There are four important things :

a) extension_dir = c:/php/ext

b) doc_root = c:/Inetpub/wwwroot // if you r using IIS

c) Then find commented options ;extensions and uncomment some of the followings having mysql, curl

9) You are all set now just to configure IIS

10) If IIS is installed just follow

control panel-> adminstrative services -> internet information services -> click on tree structure until you get Default website -> right click on it-> choose properties -> choose ->configuration ->click on ADD

Click on browse and u will have to give path of

c:/php/php5ts.dll

then in text box write .php

select search engine checked

say ok

11) All you need now to retart the IIS just right click and say stop and then start again

12) Check it if it is working or not by , making test.php in wwwroot folder

i.e c:/Inetpub/wwwroot/test.php

13) Test.php contains any php code.

Explore posts in the same categories: PHP

Comment: