Problem One: PHP Run Error: 1% is not a valid Win32 application
PHP environment after the configuration, run HTML success, but run PHP error, errors are "1% is not a valid Win32 application", English report%1 is not a valid Win32 Application. For the first time encountered such a problem, after searching and testing, the problem was finally resolved.
Error: Due to the default configuration in 64-bit operating systems, IIS works in 64-bit mode, which makes many 32-bit applications not working properly.
Workaround:
1 Enter command prompt: Start-> run cmd
2 Execute script:
cscript%systemdrive%inetpubadminscriptsadsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
Description;%systemdrive% represents the system disk. For example, if your system disk is C, then the above statement should read:
cscript c:inetpubadminscriptsadsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
Question two: Visit webpage error: Service unavailable
After the operation, thought it was done, but it is not. Visit the website unexpectedly again error: Service unavailable.
The workaround is as follows:
1 Enter command prompt: Start-> run cmd
2 Execute script:
%systemroot%microsoft.netframeworkv1.1.4322aspnet_regiis.exe-i
Description:%systemroot% represents the system directory, is 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, or execution is unsuccessful.