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

  • Question

  • User-984834553 posted
    • 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. :/

    Wednesday, July 1, 2009 9:44 PM

Answers

  • User2093557029 posted

    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();
    ?>
      

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, July 2, 2009 3:53 AM

All replies

  • User-984834553 posted
    I also just noticed PHP 5.3.0 has no MSSQL support yet, no .dll comes with it! Back to 5.2.X. :D
    Wednesday, July 1, 2009 10:40 PM
  • User2093557029 posted

    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();
    ?>
      

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, July 2, 2009 3:53 AM
  • User-984834553 posted

    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?

    Thursday, July 2, 2009 6:50 AM
  • User2093557029 posted

    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.

    Thursday, July 2, 2009 6:04 PM
  • User1371875564 posted

     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

    Monday, July 13, 2009 10:53 AM