Support > General Support

Server 2003 x64, IIS 6 + PHP + MYSQL Problem

(1/2) > >>

ShawnJF007:
Hello everyone,
  I'm a new VPS user and I can't seem to get PHP and MYSQL running with IIS on my x64 server. I have followed the steps outlined on the http://www.iisadmin.co.uk/?p=4 site, as well as a few of the videos on http://videotutorialzone.com, but I'm just not having any good luck.

At first most of my issues were cause by a lack of permissions on key php/mysql folders, but now im facing a "%1 is not a valid Win32 application" error message when i try to visit any .php page.

I have also tried using PHPx64 from http://www.fusionxlan.com/PHPx64.php.

Could someone help me out here?

Thanks

Alex:
Hello,

Please try to set IIS to run in 32bit mode by running :

cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true


from the command line on the VPS . You have to change directory to the Inetpub\..\adminscripts folder for the above to work.

Also after this you can try to set PHP to use the ISAPI filter if not already configured that way .


ShawnJF007:
Thanks Alex,
  I have tried running that script before. I still get the same error message.

In summary: my PHP folder is C:\PHP
-Added ";C:\PHP" to the end of the Path variable
-In IIS, "PHP ASAPI" is added as a web service extension. (C:\PHP\PHP5ISAPI.dll)
-In IIS, under www.mywebsite.com:
---In Home Directory/Configuration (mappings), I have .php set for GET,POST,HEAD; pointing to C:\PHP\PHP5ISAPI.dll
---Under the "ISAPI Filters" tab, i see "ASP.NET_2.0.50727.0" with a green arrow to its left. Clicking edit shows that it points to "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll". (Changed Framework64 to Framework a few days ago).
-The command you recommended came back as true.

Error message still reads "%1 is not a valid Win32 application" when I try to run index2.php which only contains "<?php phpinfo(); ?>"

ShawnJF007:
Ok, I changed "SET W3SVC/AppPools/Enable32bitAppOnWin64" back to "0 or False", and I also changed the ASP.NET filter from "framework" back to "framework64" and ran "ASPNET_REGIIS.exe -i" from the framework64 folder. 

That fixed the ASP.Net installation, but in "ISAPI Filters", my PHP filter still would not load without any errors in the event viewer.

It seems that in my troubleshooting, I set the AppPool's Identity in IIS to "NETWORK SERVICE". After switching it back to "Configurable", the PHPx64 filter loaded successfully. All of the permissions I set referred to the "IIS_WPG" group and not "NETWORK SERVICE".

[Update:] Make sure that "Run WWW service in IIS 5.0 isolation mode" is checked in the "Isolation mode" section of the "Service" tab under "Web sites Properties"!

Now to get PHP working with MySQL!

ShawnJF007:
Awesome! MySQL worked right away :)

Thanks again Alex for pointing me towards the ISAPI Filters.

Navigation

[0] Message Index

[#] Next page

Go to full version