« Previous Next »

Thread: PHP 5.2.9 Install issue on XP Pro IIS 5.1 - phpinfo( ) results incorrect

Last post 05-18-2009 1:45 PM by fromtheranks. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 05-13-2009, 4:27 PM

    PHP 5.2.9 Install issue on XP Pro IIS 5.1 - phpinfo( ) results incorrect

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} I've been in IT for years but I’m a newbie at setting up a blog site.  
     
    Background:
     
    Right now I’m in the middle of manually installing PHP 5.2.9 (rather than using the .MSI) on XP Pro SP3 using IIS 5.1.  I’ve verified IIS 5.1 and MMC 3.0 and already installed MySQL 5.1, and FileZilla.  I'm using ISAPI instead of CGI, by the way.  
     
    This is a dev machine, the final web site will get pushed to a host but I want to do the development/learning locally.  The reason I’m sticking with IIS is that my host does not support Apache, so WAMP / Xampp is out.
     
    Issue:
     
    No matter what I do I can't get phpinfo() to properly report the location of the “Configuration File Path”.  It seems "glued to" C:\WINDOWS.  I’ve researched this until my fingers are nubs (starting with but not limited to the PHP site) but I’m not coming up with anything that works.  Here’s what I’ve done:
     
    I've:
    1. Included PHP in the Windows PATH (before MySQL’s) as ";E\PHP;"
    2. Added the PHPRC system variable pointing to my install location as "E:\PHP"
    3. Modified PHP.INI's extension_dir to point to "e:\php\ext"
    4. Modified the Registry to include:  HKEY_LOCAL_MACHINE\SOFTWARE\PHP  IniFilePath E:\PHP
    5.  Though it may not be relevant, I've set up the ISAPI module in IIS Properties for all "Web Sites" as follows:
    5a.  Added to the ISAPI Filters list:  PHP pointing at e:\php\php5isapi.dll
    5b.  Set the Home Directory:  Execute for Scripts Only
    5c.  Mapped the .php extension, having it point at the same location as above and setting verbs to:  GET,POST,HEAD
    6.  Set the Documents, adding “index.php” and moving it to the top of the list
    7.  I then stopped and restarted IIS using net stop and net start  (and completely rebooted my workstation too)
     
    No matter how many times I've checked my entries, when I run phpinfo( ) -- as test.php -- the "Loaded Configuration File" data is correct (E:\PHP\php.ini), but the "Configuration File Path for php.ini is not; it still points to "C:\WINDOWS".
     
    I'm not sure how serious this is, yet.  The simple tests I've run so far seem to work okay but I'm concerned that having the Configuration File Path wrong, will "get me" sooner or later -- and I've learned over the years not to drive passed issues that aren't solved or resolved.
     
    Any help would be appreciated.
     
    Thanks in advance.

  • 05-17-2009, 8:44 AM In reply to

    • vijayam
    • Not Ranked
    • Joined on 09-29-2008, 12:04 PM
    • Gurramkonda
    • Posts 6

    Re: PHP 5.2.9 Install issue on XP Pro IIS 5.1 - phpinfo( ) results incorrect

    Hi,

         Please install the PHP and configuration of the Windows path location you flowing the

    this link http://php5configuration.blogspot.com/

    Regards,
    vijaybhaskar.M
  • 05-17-2009, 8:51 AM In reply to

    Re: PHP 5.2.9 Install issue on XP Pro IIS 5.1 - phpinfo( ) results incorrect

     Loaded configuration file is the only value you need be concerned with. If this is correct, then PHP is picking up your php.ini file.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 05-18-2009, 1:45 PM In reply to

    Re: PHP 5.2.9 Install issue on XP Pro IIS 5.1 - phpinfo( ) results incorrect

    Thanks for all of your replies.  I appreciate it.  I've come to the same conclusion, that "Loaded Configuration File" is reporting correctly but "Configuration File (php.ini) Path" is not.  I posted my findings on PHP.com under Windows Install:  http://us3.php.net/manual/en/install.windows.php.

     

Page 1 of 1 (4 items)
Microsoft Communities