100 detailed solutions for coexistence of IIS environment and WAMP environment !!

Source: Internet
Author: User
Tags fully qualified domain name
100 detailed solutions for coexistence of IIS environment and WAMP environment !! We use win2003 server. the boss hopes that IIS and WAMP can use port 80 together. do not stop IIS or change the port. you can access it through a normal URL. thank you !!!


When I am running in the IIS environment, apache can run independently (change to another port) and write LoadModule php5_module "e:/phpweb/php/php5apache2_2.dll" to stop running, it is said that enabling ServerName 127.0.0.1: 8080 is useless.


The log prompts this !!
[Tue Nov 05 10:17:47 2013] [warn] pid file E:/phpweb/apache/logs/httpd. pid overwritten -- Unclean shutdown of previous Apache run?
Httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 183.90.186.84 for ServerName
[Tue Nov 05 10:17:53 2013] [warn] pid file E:/phpweb/apache/logs/httpd. pid overwritten -- Unclean shutdown of previous Apache run?



Reply to discussion (solution)

Are you going to start the second apache service?

Are you going to start the second apache service? I uninstalled the last one, but I deleted the configuration file without restarting it.


Are you going to start the second apache service? I uninstalled the last one, but I deleted the configuration file without restarting it.
Now I want to comment out the LoadModule php5_module "e:/phpweb/php/php5apache2_2.dll" and change the port to access http: // 127.0.0.1:. release the LoadModule comment and start it again !!

Error message: apache and related services have been started
If you start another instance, an error is reported.

If you cannot restart the server, stop the apache service in system management-service.

Error message: apache and related services have been started
If you start another instance, an error is reported.

If you cannot restart the server, stop the apache service in system management-service.
There is only one Apache service on the host. it is not started and cannot be started.

There is a solution for sharing port 80 on the Internet, which is troublesome. I have also tried it, that is, apache directly uses port 80 and then forwards it to other ports in IIS.

There is a solution for sharing port 80 on the Internet, which is troublesome. I have also tried it, that is, apache directly uses port 80, and then forwards it to other ports in IIS for detailed tutorial, hurry up !!

The single IP address shares port 80, but it is not recommended to use the Apache Proxy. the speed may affect apache's use of port 80, and IIS's use of other ports, such as 81, then, use apache as the proxy for IIS.

In httpd. conf, uncomment the following four lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

Create a VM to redirect all access requests from the domain name to port 81.

ServerName www.abc.com
ProxyPass/http: // localhost: 81/
ProxyPassReverse/http: // localhost: 81/

Just like this
This is a single IP address, and it will be better if there are multiple IP addresses.

The single IP address shares port 80, but it is not recommended to use the Apache Proxy. the speed may affect apache's use of port 80, and IIS's use of other ports, such as 81, then, use apache as the proxy for IIS.

In httpd. conf, uncomment the following four lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

Create a VM to redirect all access requests from the domain name to port 81.

ServerName www.abc.com
ProxyPass/http: // localhost: 81/
ProxyPassReverse/http: // localhost: 81/

Just like this
This is a single IP address. if there are multiple IP addresses, it would be better to create one for this virtual host.


The single IP address shares port 80, but it is not recommended to use the Apache Proxy. the speed may affect apache's use of port 80, and IIS's use of other ports, such as 81, then, use apache as the proxy for IIS.

In httpd. conf, uncomment the following four lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

Create a VM to redirect all access requests from the domain name to port 81.

ServerName www.abc.com
ProxyPass/http: // localhost: 81/
ProxyPassReverse/http: // localhost: 81/

Just like this
This is a single IP address. if there are multiple IP addresses, it would be better to create one for this virtual host.

How many virtual machines are required for IIS sites?



The single IP address shares port 80, but it is not recommended to use the Apache Proxy. the speed may affect apache's use of port 80, and IIS's use of other ports, such as 81, then, use apache as the proxy for IIS.

In httpd. conf, uncomment the following four lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

Create a VM to redirect all access requests from the domain name to port 81.

ServerName www.abc.com
ProxyPass/http: // localhost: 81/
ProxyPassReverse/http: // localhost: 81/

Just like this
This is a single IP address. if there are multiple IP addresses, it would be better to create one for this virtual host.

How many virtual machines are required for IIS sites !!! I want to modify the IIS Port. just modify the default website port !!

It is useless to say more, but it is truth to do it first.

It's useless to say more. it's the truth. if you make a mistake, the website will be suspended on the server.


It's useless to say more. it's the truth. if you make a mistake, the website will be suspended on the server.
Don't you have other computers to test? Speechless



It's useless to say more. it's the truth. if you make a mistake, the website will be suspended on the server.
Don't you have other computers to test? Speechless

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.