Windows 2003 64-bit system PHP operation error: 1% is not a valid Win32 application
? ? ?? Issue One: PHP operation error: 1% is not a valid Win32 application
????? After the configuration of the PHP environment, run the HTML is successful, but run PHP error, errors are "1% not a valid Win32 application", the English newspaper%1 is not a valid WIN32 application. The first time you encounter such a problem, after searching and experimenting, the problem is finally solved.
????? Cause of error: Due to the default configuration of the 64-bit operating system, IIS works in 64-bit mode, which causes many 32-bit applications to not work correctly.
????? Workaround:
????? 1) go to command prompt: Start and run cmd
????? 2) Execute script:
????? cscript%systemdrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
????? %systemdrive% represents a system disk. For example, if your system disk is C, then the above statement should read:
????? cscript c:\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
?????? question two: access to the webpage error: Service unavailable
????? After the above operation, thought it was done, not actually. Visit the website unexpectedly again error: Service unavailable.
????? Here's how to fix it:
????? 1) go to command prompt: Start and run cmd
????? 2) Execute script:
????? %systemroot%\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe-i
????? Description:%systemroot%\ represents the system directory, generally "C:\WINDOWS\", v1.1.4322 is the default. NET version, you can also change to "v2.0.50727" and other versions, the key is not to write the wrong path name, otherwise the execution is unsuccessful.