- Log on as Administrator Go to Start / ControlPanel / AdministrativeTools and double_click on Internet Information Service
- IIS Manager window opens(see Fig 4)On the left pane click on whatever your computer name is ,and in the midle double-click on Isapi Filters.
- On the right pane,under Action click on add.
- In the Executable type C\:PHP\php5isapi.dll , where c:\PHP is the directory where you have installed PHP and in theFilter name type PHP and press OK .
Fig 6 - With the blue arrow on the top-left corner go back to the same page as for Fig 4 ,and this time double-click on Handler Mapping,on the new window(Fig 7) click on Add Script Map on the right pane under Action.
- On the next dialog Box ( Fig 8)in the Request Path Type *.php (don't forget the star at the beginning) and in the Executabletype C:\PHP\php5isapi.dll , where c:\Php is the directory where you have installed PHP and in the Name type PHP,and then click OK.
- When you finish you should get a prompt like the one below( Fig 9).Click OK and close all the windows and restart your computer to reload the new configurations including the new system variables we have done in the first part.
- When Vista has restarted log on as Administrator , navigate to the website root,by default C:\InetPub and right-click on the folder wwwroot choose properties and security tab and grant all permissions to IISUser and to anyone who has to save files to that folder and close all windows.
Fig 4
Fig 5
Fig 7
Fig 8
Fig 9
Now you ready for the test.,open a new file with notepad and type: Save it in your website root directory that should be C:\Inetpub\wwwroot as phpTest.php not as text file but all files or it wont work.if you find problems saving in the website root folder,check the security permissionsOpen your web browser and type in the address bar http:/localhost/phptest.php and ,if a page with all the php info appears ,it means that you have php succesfully installed and running.
source by : http://www.maniacomputer.com
0 comments:
Post a Comment