64-bit system php running error. Problem 1: php running error: 1% is not a valid win32 application. after the php environment is configured, html runs successfully, but an error is reported when php is run, error message: 1% is not a valid win32 application Problem 1: php running error: 1% is not a valid win32 application
After the php environment is configured, html runs successfully, but an error is reported when php is run. the error message is "1% is not a valid win32 application". % 1 is not a valid Win32 application is reported in English. the first time I encountered such a problem, after searching and testing, the problem was finally solved.
Cause of error: because IIS works in 64-bit mode in the default configuration in the 64-bit operating system, many 32-bit applications cannot work normally.
Solution:
1) enter the command prompt: Start-> run cmd
2) execute the script:
Cscript % SYSTEMDRIVE % inetpubadminscriptsadsutil. vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
Description; % SYSTEMDRIVE % indicates the system disk. For example, if your system disk is C, the preceding statement is changed:
Cscript c: inetpubadminscriptsadsutil. vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
Problem 2: The error "Service Unavailable" is returned when you access the webpage.
After the above operations, I thought it was a success, but it was not. When you access the website, the following error occurs: Service Unavailable.
The solution is as follows:
1) enter the command prompt: Start-> run cmd
2) execute the script:
%Systemroot=microsoft.netframeworkv1.1.4322aspnet_regiis.exe-I
Note: % SYSTEMROOT % indicates the system directory, which is generally "C: WINDOWS"; v1.1.4322 indicates the default directory. . Net version. you can also change it to "v2.0.50727" or another version. The key is not to write the wrong path name. Otherwise, the execution fails.
The runtime is not a valid win32 application. after the php environment is configured, html runs successfully, but an error is reported when php is run. the error message is that 1% is not a valid win32 application...