PHP runs the Setup method under 64-bit Win2003 and IIS _win server
Source: Internet
Author: User
PHP runs under 64-bit Windows2003 and IIS
First modify IIS from 64-bit mode to 32-bit mode, as long as one command:
cscript%systemdrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
Revert to 64-bit mode command:
cscript%SystemDrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 0
The installation of PHP is the same as in 32-bit mode.
The asp.net of IIS needs to be registered again to use
32-bit:
cscript%systemdrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
64-bit:
cscript%SystemDrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 0
If you follow the above steps to complete the configuration, here are some questions that do not install the above steps to add:
After you configure PHP, you will receive an error message:
%1 is not a valid WIN32 application
Say this is not an effective Win32 program.
Because the system is 64-bit. You have to change IIS to a 32-bit working mode.
So I found this command, for details, see Microsoft's official Help document.
Configuring IIS to Run 32-bit applications on 64-bit Windows (IIS 6.0):
cscript.exe adsutil.vbs set W3svc/apppools/enable32bitapponwin64 "true"
Or
cscript%SystemDrive%\inetpub\adminscripts\adsutil.vbs
SET W3svc/apppools/enable32bitapponwin64 1//This is a one-line command. Do not execute AS 2 statements
The above command modifies IIS from 64-bit mode to 32-bit mode.
After you change the mode and then follow the 32-bit system configuration PHP
If you want to change from 32-bit to 64-bit. And only one command is required.
cscript%SystemDrive%\inetpub\adminscripts\adsutil.vbs
SET W3svc/apppools/enable32bitapponwin64 0//This is a one-line command. Do not execute AS 2 statements
Of course, after the change, PHP is not able to run,. NET run, you need to re-register once
32 digits:%systemroot%\microsoft.net\framework\v2.0.40607\aspnet_regiis.exe-i
64 digits:%systemroot%\microsoft.net\framework64\v2.0.40607\aspnet_regiis.exe-i
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