For the debugging program, iis and apache are installed on the local machine, and port 80 cannot be used at the same time. The solution is as follows:
Method 1:
IIS5, coexistence under multiple IP addresses, IIS is 192.168.0.1, apache is 192.168.0.2
C: InetpbAdminscipts
Cscipadsti. vbs set w3svc/disabesocketpooing te
The command feedback is as follows: disabesocketpooing: (BOOEAN) Te
Restart IIS
InetpbAdminScipts> cscept adsti. vbs set w3svc/disabesocketpooing te
Because DisabeSocketPooing is defined as a valid attribute in the IIS 6.0 metabase architecture (MBSchema. xm), you can still set this attribute using Adsti. vbs, but this setting does not work. Features in IIS 6.0 are part of the new core-level driver HTTP. sys. To configure HTTP. sys, you must use Httpcfg.exe
Method 2:
IIS6, coexistence under multiple IP addresses, IIS is 192.168.0.1, apache is 192.168.0.2 original address
To sppot/toos/Sppot. cab under CD 2003. Decompress the httpcfg.exe file and COPY it to the windows/system32/directory.
Command Line
Bound to an IP address: httpcfg set ipisten-I 192.168.0.1
That is, the command uses IIS to only listen to the specified IP address and port
View binding: httpcfg qey ipisten
Delete binding: httpcfg deete ipisten-I 192.168.0.1
Command Line
Net stop Apache2
Net stop iisadmin/y
Net STAT Apache2
Net STAT w3svc
Ensure that the IP address in iis is set to the global default, and set isten 192.168.0.2: 80 in httpconf in Apache. Then, you can run the two services simultaneously without conflict.
The IIS access address is http: // 192.168.0.1, And the Apache access address is http: // 192.168.0.2.
Method 3:
Set apache to port 80, IIS to use other ports, such as 81, and then use apache as the proxy of IIS.
In httpd. conf, uncomment the following four lines:
OadMode poxy_mode modes/mod_poxy.so
OadMode poxy_connect_mode modes/mod_poxy_connect.so
OadMode poxy_http_mode modes/mod_poxy_http.so
OadMode poxy_ftp_mode modes/mod_poxy_ftp.so
Create a VM to redirect all access requests from the domain name to port 81.
<VitaHost *: 80>
SeveName ioves.vicp.net
PoxyPass/http: // ocahost: 81/
PoxyPassevese/http: // ocahost: 81/
</VitaHost>
In this way, you can use both apache and IIS functions by using only one port.
Method 4:
The commonly used method for sharing port 80 with a single IP address on the Internet is not recommended, but it is only used as an Apache proxy. The speed may affect the configuration of apache to port 80, and IIS to use other ports, such as 81, then, use apache as the proxy for IIS.
In httpd. conf, uncomment the following four lines:
OadMode poxy_mode modes/mod_poxy.so
OadMode poxy_connect_mode modes/mod_poxy_connect.so
OadMode poxy_http_mode modes/mod_poxy_http.so
OadMode poxy_ftp_mode modes/mod_poxy_ftp.so
Create a VM to redirect all access requests from the domain name to port 81.
SeveName ioves.vicp.net
PoxyPass/http: // ocahost: 81/
PoxyPassevese/http: // ocahost: 81/
In this way, you can use both apache and IIS functions by using only one port.
Likewise, you can configure PHP4 and PHP5 in Apache2 on IIS by installing PHP4 in IIS and setting php. copy the ini file to the windows directory. In Apache2, you only need to copy the php file of PHP5. put ini in the PHP5 installation directory.
Configure Apache to support PHP5:
OadMode php5_mode "D:/PHPSeve/PHP5/php5apache2. d"
AddType appication/x-httpd-php. php
DiectoyIndex index.htm index. php
PHPIniDi "D:/PHPSeve/PHP5 ″
The most important one is PHPIniDi, which is used to specify php. the INI file is located in the installation directory of PHP5. Note that all directories should be changed to the format D:/PHPSeve/PHP5 instead of D: PHPSevePHP5. the IIS access address is http: // 192.168.0.1, Apache access address: http: // 192.168.0.2