Installing PHP with Web PI

1. Open the Web PI application from the following location on your filesystem.

C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe

Note: If the Web PI application is not currently installed it can be downloaded.

2. Search for PHP.

3. Select Add next to the version of PHP you wish to install and click Install.

Note: At the time of writing this is 5.3.19 and 5.4.9

php_webpi

4. When prompted to Accept the License terms, review and click I Accept.

php_dependecies

5. Click Finish once the installation is finalized. The PHP runtime environment will be stored on your local file system at the following location:

C:\Program Files (x86)\PHP\%version

Testing PHP

Once you have successfully installed PHP you can test its functionality with a few simple steps.

1. Create a file using a texteditor and insert the following code snippit.

 

2. This code, when run, presents detailed information about the current PHP configuration of the local system. Save the file as ‘info.php’ in the IIS root directory.

Note: The default directory is C:\inetpub\wwwroot

3. Open a Web browser and go to the following URL:

http://localhost/info.php

With PHP successfully installed a screen will be presented detailing the PHP configuration.

Note: This information can harmful in the wrong hands so please delete or move the info.php file once the installation is successfully tested.

Leave a Reply

Your email address will not be published. Required fields are marked *