Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

TIPS AND TRICKS

How to install PHP on IIS

- In 5 easy steps

By: Adrian Placinta, Web News Editor

Today we'll learn how to install PHP for IIS in Windows XP Pro. First we need to download PHP and install IIS.

To install IIS, you need the Windows XP installation CD. Go to Control Panel-> Add/Remove Programs and click on Add/Remove Windows Components. Check Internet Information Services (IIS) and insert the CD with Windows Xp. After that, press Next and wait until IIS is installed.
Next, extract the file from php archive to c:/php/. Copy php5ts.dll to the web server's directory (C:/inetpub/wwwroot) and Windows system directory (C:/windows/system32).

The second step is to set up the config file for PHP, php.ini. Rename php.ini-dist to php.ini and copy the file to windows folder: C:/Windows. PHP stores in php.ini all the configurations and if you want to install, for example, an extension, you will need to modify this file. Edit php.ini in wordpad and replace doc_root= with doc_root = "C:/inetpub/wwwroot/" and also check if cgi.force_redirect = 0

The third step is to add c:/php to environment variables PATH. For that, right-click on My Computer and choose Properties. Go to Advanced Tab and click the Environment Variables button. In system variables find the variable PATH. There, go to the end of the line and add an ";" and type C:/php. Click OK here and for the Environment Variables. We need to reboot the computer to activate the changes.

The fourth step is to configure IIS to work with PHP. Go to Control Panel -> Administrative Tools -> Internet Services Manager and start IIS. Right click on Default Server and choose Properties. Go to Home directory, set "Execute Permissions" to "Scripts Only" and click Configuration. Click Add, choose Executable C:/PHP/php5isapi.dll and set Extension to .php. After that, go to Isapi Filters, click Add and set Filter Name to PHP and Executable to C:/PHP/php5isapi.dll. Click Apply and then OK. Restart IIS and we’re done.

To test the installation, create a new document in wordpad, paste this text and save it as phpinfo.php. Copy the file to C:/inetpub/wwwroot. Open your browser and type http://localhost/phpinfo.php

MORE RELATED ARTICLES: New Income for Website Hosting Providers Microsoft Finally A Winner, Beats The Vulnerable Apache Microsoft Grows by 2.6 Million Websites in Just 1 Month Manually Configure PHP5 and Apache2
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:


17th August 2007, 14:35 GMT | Copyright (c) 2007 Softpedia | Contact:
Read by 4,765 user(s) | Rating: | 8 vote(s) so far | Cast your vote:
How to install PHP on IIS - USER OPINIONS

Comment #1 by Aaron on 2008-05-18, 19:58 GMT reply to this comment 
Very good. Just remember to change the backslashes to forward slashes


go to top


SHARE YOUR OPINION ABOUT How to install PHP on IIS

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive