« Previous Next »

Answered Thread: New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

Last post 06-18-2009 7:52 PM by Iv00w. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-17-2009, 6:03 PM

    • Iv00w
    • Not Ranked
    • Joined on 06-17-2009, 5:50 PM
    • Posts 3

    New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

    Hello,

    Previously I had always been using Apache as server-side software, but a friend recommended IIS to me instead. So, I tried it a couple of times, never got it to work properly.

    However, today a new error that I haven't seen before came up:
    In FireFox 3.x, I will only get a blank page (in HTML, PHP or ASP), while in Internet Explorer I'll get a 404 error.

    At first I thought something went wrong with IIS as I was only using FireFox, only to find out that for some reason 127.0.0.1 or localhost both weren't found.

    As soon as I uninstalled IIS 127.0.0.1 was back to normal (as in giving a 404 in all browsers).
    As a sidenote, after installing Apache, to check if my system was OK, it's working as it should, so my bet is there's an error with IIS somewhere.

    If anyone knows the solution to this, thank you in advance.

  • 06-17-2009, 10:05 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,423

    Re: New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

    When you set up IIS 6 on this x64 XP machine, is there any other applications on it can listen to port 80?

    Also after installation of IIS, you need to check if all the services of IIS (such as www) are running correctly.

    Only if all above checks are passed, you can move on to check IIS settings.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-18-2009, 7:47 AM In reply to

    • Iv00w
    • Not Ranked
    • Joined on 06-17-2009, 5:50 PM
    • Posts 3

    Re: New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

    Okay, I tried it again today. Here are all of my exact steps:

    I cleaned my PC from PHP, IIS en Apache and anything similar.
    I then made sure that no other application was attempting to use port 80, but I'm not sure if I succeeded here. Either way, I couldn't find any.
    Installed IIS from the Windows CD now.
    Checked to made sure that both "IIS Admin Service" and "World Wide Web Publishing Service" were running. Both were on automatic and had started.

    At this point, HTML pages are working in both Internet Explorer and FireFox.

    I then proceeded to install PHP. Downloaded the package, extracted in to C:\php. Copied ini-recommended to C:\Windows\php.ini and 'php5ts.dll' to C:\Windows\System32.
    Then I added an ISAPI filter on my default website, namely 'php5isapi.dll', as '.php'.
    I restarted my website and noticed that it said 'Not Loaded'. Obviously, PHP wasn't working.
    I continued to following my guide and added 'php5isapi.dll' as '.php' under Home Directy > Configuration as well.
    Also, I added 'default.php' under Documents.

    HTML is still working in both browsers, PHP is producing a 404 (probably because of it not being loaded, still.)

     Finally I added 'php5isapi.dll' to Web Service Extensions, setting it to 'Allowed'.

    Now, HTML is still working, however, PHP is no longer producing a 404 error. It's still Not Loaded, however, I got the error message '%1 is not a valid Win32 application.'


    After googling, found the solution to be to add quotation marks around the service that produced the error.
    Unsure which service was producing the error, I checked the following and added quotation marks:
    - IISADMIN
    - World Wide Web Publishing Service

    Strangely, I couldn't find the 2nd one in my registry.
    I checked my Services again and found that both IIS Admin and WWWPS were both on automatic and currently running.

    Searching some more, I found this solution:
    Run the following commands in CMD, enabling ASP.NET 2.0 64-bit version
    cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
    %SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
    Then Allow ASP in IIS Web Service Extension list.

    This set my back to my first problem - the 404 error in my first post.

    I'm very confused now, hopefully this description of my steps sheds some light on the issue.

    Thanks again in advance!

  • 06-18-2009, 7:23 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,423

    Answered Re: New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

    Please roll back all changes you made yesterday. I don't think those changes are for this problem.

    Officially we provide FastCGI for PHP for IIS 6,

    http://www.iis.net/extensions/FastCGI

    So you can follow ITS GUIDE to enable PHP support on IIS. Please simply ignore other guides you found on the Internet if they don't provide you any support.

    Besides, we have a forum here dedicated to FastCGI questions, and I think you can get more help from it,

    http://forums.iis.net/1103.aspx

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-18-2009, 7:52 PM In reply to

    • Iv00w
    • Not Ranked
    • Joined on 06-17-2009, 5:50 PM
    • Posts 3

    Re: New Setup - IIS6 + XP Pro x64 - Blank pages in FF, 404 in IE

    I came back to the point where I had the error "%1 is not a win32 application". Luckily, a teacher at my school knew it to be an error caused by IIS running as 32bit, and PHP as 64bit.

    It was fixed quickly.

    Thanks for all your help!

Page 1 of 1 (5 items)
Microsoft Communities