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", the English report%1 is not a valid WIN32 application. The first time we encounter such a problem, after searching and experimenting, the problem is finally solved.
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%\inetpub\adminscripts\adsutil.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:\inetpub\adminscripts\adsutil.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.net\framework\v1.1.4322\aspnet_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.