Welcome to the Windows community forum and interact with 3 million technical staff. Question 1: php running error: 1% is not a valid win32 application. After the php environment is configured, html runs successfully, however, an error is reported when you run php. The error message is that 1% is not a valid win32 application. % 1isnotavalidWin32application is reported in English.
Welcome to the Windows community forum and interact with 3 million technical staff> go to question 1: php running error: 1% is not a valid win32 application. After the php environment is configured, html runs successfully, however, an error is returned when you run php. The error message is "1% is not a valid win32 application". % 1 is not a valid Win32 application is reported in English.
Welcome to the Windows community forum and interact with 3 million technicians>
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 % \ inetpub \ adminscripts \ adsutil. 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: \ inetpub \ adminscripts \ adsutil. 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. NET \ Framework \ v1.1.4322 \ aspnet_regiis.exe-I
Note: % SYSTEMROOT % \ indicates the system directory, which is generally "C: \ WINDOWS \"; v1.1.4322 is the default. . 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.