Windows 2003 64-bit system PHP runs an error: 1% is not a valid Win32 application

Source: Internet
Author: User
Tags php error win32
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.

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.