faqts : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Microsoft Internet Information Server (IIS)

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 5 people (40%) answered Yes
Recently 2 of 5 people (40%) answered Yes

Entry

PHP: Version: Web server: How see version of currently running PHP via your Microsoft IIS webserver?

Feb 12th, 2005 10:44
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2004 - 03:00 pm -------------------

PHP: Version: Web server: How see version of currently running PHP via 
your Microsoft IIS webserver?

---

Method: run the PHP command phpinfo();

---

 1. -Make sure PHP is enabled on your web server

     1. Install Microsoft Internet Information Server (IIS), if
        applicable

     2. Make sure Microsoft Internet Information Server (IIS) runs

        1. from the command line:

        -- or --

        2. as a service

           1. -right click on the 'Default Web Site' in your Microsoft 
Internet Information Server (IIS)
              administration window (via control panel, administrative 
tools)

           2. -select from list 'start'

 2. -Test if the web server is indeed active

     1. Open your browser

     2. Type the url:

         http://localhost

     3. This should show the index page for your web server
        in your browser

        If it does not show,

        1. recheck the installation of Microsoft Internet Information 
Server (IIS)

        2. make sure Microsoft Internet Information Server (IIS) runs

 3. -Enable PHP in your Microsoft Internet Information Server (IIS) 
web server

 4. -Create a php test file:

     1. Create in your favorite text editor a file containing the text:

          <?php phpinfo(); ?>

     2. Save this with the extension .php
        in the home directory:

        e.g.

         c:\inetpub\wwwroot\<your filename>.php

        for example:

         c:\inetpub\wwwroot\ddd.php

       (adapt this path to the conditions on your computer,
        though this is the default path)

 5. -Now test your test page, which will show the version

     1. Open your browser

     2. Type the url:

         http://localhost/<your filename>.php

        e.g.

         http://localhost/ddd.php

     3. You should then see in the HTML page the version
        of the currently PHP mentioned, say on the top
        of the html page, e.g.

         PHP Version 4.0.5

        -- or --

         PHP Version 4.3.4

        -- or --

         PHP Version 5.x

        and so on.

        If you do not see anything or get a page not found
        message in your browser check if PHP is
        enabled in your Apache web server.

---
---

Internet: see also:

---

Internet: Web server: How install Microsoft Information Server (IIS) 
on Windows2000/XP Professional?
http://www.faqts.com/knowledge_base/view.phtml/aid/12558

---

Internet: Web Server: Microsoft Information Server: IIS: How 
start/stop IIS from MSDOS command line?
http://www.faqts.com/knowledge_base/view.phtml/aid/27413/fid/935

---

PHP: Install: How to install PHP on Microsoft Internet Information 
Server (IIS)?
http://www.faqts.com/knowledge_base/view.phtml/aid/28265/fid/51

---

PHP: Version: Web server: How see version of currently running PHP via 
your Apache webserver?
http://www.faqts.com/knowledge_base/view.phtml/aid/28831/fid/31

---

Operating system: Microsoft Windows: WAMP: Link: Overview: Can you 
give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/33803/fid/772

----------------------------------------------------------------------