64-bit php running error: 1% is not a valid win32 application solution

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.