Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Welcome to the TechnoWorldInc! Community!
Recent Updates
[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[February 14, 2024, 02:00:39 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   MegaPixelShop
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » PHP
 Tutorial - Installing PHP on IIS 5.1 (Windows XP Pro)
Pages: [1]   Go Down
  Print  
Author Topic: Tutorial - Installing PHP on IIS 5.1 (Windows XP Pro)  (Read 1009 times)
Daniel Franklin
TWI Hero
**********


Karma: 3
Offline Offline

Posts: 16647


View Profile Email
Tutorial - Installing PHP on IIS 5.1 (Windows XP Pro)
« Posted: September 26, 2007, 11:00:30 AM »


hoose a different location, although it is not recommended. The path must NOT have spaces, for example, you cannot use C:\Program

Files\PHP. Some web servers may not be able to handle the path name and will fault.

PHP 5 includes a CGI executable, a CLI executable as well as the server modules. The DLLs needed for these executables can be found in the

root of the PHP folder (C:\PHP). php5ts.dll needs to be available to the web server. To do this, you have 3 options:

1. Copy php5ts.dll to the web server's directory (C:\inetpub\wwwroot). 2. Copy php5ts.dll to the Windows system directory (C:\windows\system32). 3. Add the PHP directory path to the environment variables PATH.

We will go with option 3, because we would like to keep all of our PHP install files in the same location, for easier cleanup later, if

needed. Let's proceed...

Instructions on how to put C:\php in env variables PATH.

First we want to open System Properties. There are two ways to get to System Properties. Either way will work.

1. Right-Click on My computer and choose "properties". 2. Go to Control Panel, and select "System".

Once here, we want to select the Advanced tab. In the Advanced tab, click the "Environment Variables" button. There are two sections in the

Environment Variables window, User Variable and System Variables. We will be using System Variables. Scroll down in System Variables until

you find the variable PATH. Highlight that line and the select Edit below the System Variables window. We will only be adding to the

Variable Value. BE CAREFUL HERE. You do not want to delete anything on this line. Simply find the end of the line and add a semi-colon ( ;

) if there is not one already. After the semi-colon, type: C:\PHP and then hit OK. Now click OK on the Environment Variables window.

Finally click OK on the System Properties window and we are done with this part.

Now we must restart the computer to make the Environment Variables changes come into play. We cannot simply log off and log on, you must

restart.

The next step is to set up a config file for PHP, php.ini. In C:\PHP you will find two files named php.ini-dist and php.ini-recommended. We

will use php.ini-recommended for this install, and all you need to do is rename it from php.ini-recommended to php.ini.

1. doc_root = C:\inetpub\wwwroot 2. cgi.force_redirect = 0

Now PHP is installed, lets move on to preparing our IIS to use PHP.

Configure IIS to use PHP.

1. Open IIS

2. Under Home Directory: Set "Execute Permissions" to "Scripts Only"

3. Click on configuration.. a. Click Add b. Set "executable" to C:\PHP\php5isapi.dll c. Set "extension" to .php (don't forget to include the . ) d. Click OK e. Click Apply, then OK.

Under ISAPI Filters

a. Click "Add" b. Set Filter Name to PHP c. Set Executable to C:\PHP\php5isapi.dll d. Click OK. e. Click Apply, then OK. Restart the Web Server

Now we want to test PHP on our system. To do this, we will create a file called phpinfo.php and it will be used to display all of the PHP

info from our system in our web browser.

1. Open Notepad and type: <?php echo phpinfo(); ?> 2. Save the file as phpinfo.php and select the file type 'All Files' (Important: do not save the file as .txt, as it will not work).

3. Move the file into C:\inetpub\wwwroot

4. Open your web browser and type: http://localhost/phpnfo.php

5. Your browser should display a lot of PHP information.

Congratulations! PHP is now installed and configured on your machine. You can now start building dynamic web pages. For more tutorials visit http://www.StudioThreeHundred.com

Articles Source - Free Articles

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.089 seconds with 24 queries.