"2 servers on pc?"

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
heerajee
Forum Newbie
Posts: 18
Joined: Sat Feb 25, 2006 12:33 am

"2 servers on pc?"

Post 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.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
heerajee
Forum Newbie
Posts: 18
Joined: Sat Feb 25, 2006 12:33 am

Post 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
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post 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:).
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post 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.
Post Reply