IIS配置PHP出现1%不是有效WIN3...
配置一个windows 2003 下的php环境。其系统是64位
IIS配置PHP出现1%不是有效WIN32应用程序
%1 is not a valid Win32 application
PHP程序在64位系统下跑时,需要执行
cscript "c:\InetPub\AdminScripts\adsutil.vbs" set w3svc/AppPools/Enable32bitAppOnWin64 1
查看iis运行状态是否支持32位程序。
cscript "c:\InetPub\AdminScripts\adsutil.vbs" get w3svc/AppPools/Enable32bitAppOnWin64
操作后又出现Service Unavailable 同时应用程序池挂掉。应该是其有调用了64位的isapi 在网站属性中,检查是否有其他的isapi去除即可。
Event Type: Error
Event Source: W3SVC-WP
Event Category: None
Event ID: 2274
Date: 2011-11-7
Time: 9:08:45
User: N/A
Computer: 407650A
Description:
ISAPI
Filter
'c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\aspnet_filter.dll'
could not be loaded due to a configuration problem. The current
configuration only supports loading images built for a x86 processor
architecture. The data field contains the error number. To learn more
about this issue, including how to troubleshooting this kind of
processor architecture mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: c1 00 00 00 Á...
C:\>cscript "c:\InetPub\AdminScripts\adsutil.vbs" set w3svc/AppPools/Enable32bit
AppOnWin64 1
Microsoft (R) Windows Script Host Version 5.6
版权所有(C) Microsoft Corporation 1996-2001。保留所有权利。
Enable32bitAppOnWin64 : (BOOLEAN) True
C:\>cscript "c:\InetPub\AdminScripts\adsutil.vbs" get w3svc/AppPools/Enable32bit
AppOnWin64
Microsoft (R) Windows Script Host Version 5.6
版权所有(C) Microsoft Corporation 1996-2001。保留所有权利。
Enable32bitAppOnWin64 : (BOOLEAN) True
C:\>