Page 1 of 1

"2 servers on pc?"

Posted: Thu Mar 02, 2006 5:22 am
by heerajee
Assalamo Aliekum,

I have installed easy php on pc with apache, i want to know that how can we run 2 servers on one mashine i.e; iis & apache.
I am very thankful for your consideration and response.


Thanks.

Posted: Thu Mar 02, 2006 5:44 am
by Roja
You can indeed do so. Disable the first server, install the second, and when the install is complete and working, change the port that it binds to to a different number. (81 and 8080 are common alternatives to the default port 80). Then re-enable the first server.

That way, IIS can be on port 80, and Apache can be on port 81.

Posted: Thu Mar 02, 2006 5:51 am
by heerajee
Some information is required.
1- after installing the 2nd server(IIS) which property we will use to chang the ports of these servers.
2- After installing both, how will we run the files on these servers.
3- Is it possible to run 2 server at the same time.





Thanks.
Asif Arif

Posted: Thu Mar 02, 2006 6:35 am
by Roja
heerajee wrote:Some information is required.
1- after installing the 2nd server(IIS) which property we will use to chang the ports of these servers.
The config file for the server itself. For apache, it is set in the httpd.conf file. For IIS, I am not certain.
heerajee wrote:2- After installing both, how will we run the files on these servers.
You setup each server to serve up the files you want, and then access them:

http://www.example.com (port 80, apache perhaps)
http://www.example.com:81 (port 81, IIS perhaps)
heerajee wrote:3- Is it possible to run 2 server at the same time.
Yes, as long as they are on seperate ports.

Posted: Thu Mar 02, 2006 7:07 pm
by a94060
u change the port in iis by right clicking the site and selecting properties. then i think it is port or soemthing(my win server down rite now,yay linux:).

Posted: Thu Mar 02, 2006 9:22 pm
by josh
In apache you can also setup a virtualhost, this may be of interest. You can have one instance of apache serving two websites based on the IP, port, domain name, or any combination of these used for the HTTP request.