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

Source: Internet
Author: User
Tags php error
Windows 2003 64-bit system PHP operation error: 1% is not a valid Win32 application

? ? ?? Issue One: PHP operation error: 1% is not a valid Win32 application

????? After the configuration of the PHP environment, run the HTML is successful, but run PHP error, errors are "1% not a valid Win32 application", the English newspaper%1 is not a valid WIN32 application. The first time you encounter such a problem, after searching and experimenting, the problem is finally solved.

????? Cause of error: Due to the default configuration of the 64-bit operating system, IIS works in 64-bit mode, which causes many 32-bit applications to not work correctly.

????? Workaround:

????? 1) go to command prompt: Start and run cmd

????? 2) Execute script:

????? cscript%systemdrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1

????? %systemdrive% represents a 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: access to the webpage error: Service unavailable

????? After the above operation, thought it was done, not actually. Visit the website unexpectedly again error: Service unavailable.

????? Here's how to fix it:

????? 1) go to command prompt: Start and run cmd

????? 2) Execute script:

????? %systemroot%\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe-i

????? Description:%systemroot%\ represents the system directory, 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, otherwise the execution is unsuccessful.

  • Related Article

    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.