First of all you need to install PHP to your computer. You can download PHP from http://www.php.net/downloads.php. PHP installation is pretty straight forward. I believe you can manage it.
Next you need to ensure whether the IIS server installed in your computer. Regular windows installation won’t install IIS server. So, to test whether it is there or not, right click on My Computer icon and select Manage. Then expand the Services and Application node.
If you don’t see Internet information Service, that means that you should install IIS server manually. It’s pretty simple.
Go to Control Panel and select Classic View in the left pane. Then double click on the Programs and Features icon. Now you’ll have a list of option in your right pane. Select Turn Windows features on or off.
Click the Internet Information Server check box and expand the node.
Again expand the World Wide Web Services , Application Development Features and click the ISAPI Extensions. Then click OK. It will take several minutes to installation.
Now you can check whether the server working properly. Open up your internet browser and type http://localhost/ . You’ll get a page as follows
Now you need to configure the server for PHP. Go to the Computer Management window again (Right click on My Computer and select Manage) and expand the Services and Applications node and click the Internet Information Services link. Then in the connection area select Default Web Site.
Click on Handler Mappings.
On the right side of the window, click on “Add Script Map…”
Once you clicked a pop up window will appear. Fill up the fields with following values.
Click OK. Then a Dialog box will appear. Say Yes! to that. Thats it!
Now you need to check whether the server working with PHP. Open up your favorite text editor and type1
Code: Select all
<?php
phpinfo();
?>
Then open up your browser and navigate to http://localhost/phpinfo.php
If you get following page.., you are done..!