« Previous Next »

Thread: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

Last post 07-13-2009 10:53 AM by blackbear. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 07-01-2009, 9:44 PM

    • siiiv
    • Not Ranked
    • Joined on 07-02-2009, 1:33 AM
    • Posts 6

    Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

    • I have installed CGI ( CGI Role ).
    • I got PHP in "C:\Program Files (x86)\php"
    • In IIS manager, I go to "Handler Mappings"
    • I "Add module mapping"
    • Extension : *.PHP
    • Module : FastCgiModule
    • Executable : "C:\program Files (x86)\php\php-cgi.exe"
    • Name : "PHP Non Thread Safe"

    Then I hit "OK", and it asks about enabling it where I answer "YES".

    I also restart IIS just to make sure.

    When surfing into my php.php file, containing :
    <?
    phpinfo();
    ?>

    It shows up as text! :(

    What am I missing here?

    PLEASE HELP! I have been trying to get this thing work for 4 hours now. :/

  • 07-01-2009, 10:40 PM In reply to

    • siiiv
    • Not Ranked
    • Joined on 07-02-2009, 1:33 AM
    • Posts 6

    Re: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

    I also just noticed PHP 5.3.0 has no MSSQL support yet, no .dll comes with it! Back to 5.2.X. :D
  • 07-02-2009, 3:53 AM In reply to

    Re: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

    siiiv:

    When surfing into my php.php file, containing :
    <?
    phpinfo();
    ?>

    It shows up as text! :(

    You need to ensure you php files are tagged correctly, or enable short tags in php.ini. Change your code to;

    <?php
    phpinfo();
    ?>
      

     

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-02-2009, 6:50 AM In reply to

    • siiiv
    • Not Ranked
    • Joined on 07-02-2009, 1:33 AM
    • Posts 6

    Re: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

    Hi,

    Yes, thank you! Short_Tags variables in the PHP.INI was off :)... so I thought that it didn't work where in fact, it was working.

     However, I have still issues regarding mssql .dll file which is missing in the ext folder. I guess it is too early to migrate to 5.3.X yet?

  • 07-02-2009, 6:04 PM In reply to

    Re: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

    I think mssql.dll is now a seperate download, not sure though as I primarily use MySQL. I don't think it is too early to upgrade to 5.3, but you need to keep in mind that 5.3 is the biggest change for PHP on Windows/IIS in several years. It is not an abitrary upgrade, and you'll need to put some effort into testing to ensure it is going to work for you.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-13-2009, 10:53 AM In reply to

    Re: Installation issues on IIS7 x64 : PHP 5.3.0 : It won't run!

     yes, <?php, is very important

    i setup two server,

    1. windows 2008 enterprise x64 sp2 IIS7 + php 5.30 x64 + mysql 5.1.36 x64

    2. windows 2008 standard x86 sp2 IIS7 + php 5.30 x86 + mysql 5.1.36 x86

    it is run normal seemingly, parameters of php.ini changed below.

     

    date.timezone = UTC

    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
    ; extension_dir = "./"
    ; On windows:
    extension_dir = "ext"

    short_open_tag = On

    Windows Extensions
    extension=php_gd2.dll
    extension=php_mbstring.dll
    extension=php_mysql.dll
    extension=php_mysqli.dll

Page 1 of 1 (6 items)
Microsoft Communities