Welcome to WebmasterWorld Guest from 54.160.221.82

Forum Moderators: bakedjake

Message Too Old, No Replies

two apache installation

     
7:07 am on Sep 21, 2006 (gmt 0)

New User

5+ Year Member

joined:Sept 12, 2006
posts:1
votes: 0


Is it possible to install two different versions of apache on a single linux server and can both the apache versions run simultaneously on the server.

Thank you.

11:46 am on Sept 21, 2006 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts:2886
votes: 1


Rahulk98, First of all a warm welcome to WebmasterWorld! [webmasterworld.com]

We have a specific Apache forum here at [webmasterworld.com...]

Yes, you can have two different apache servers on one server, but they can't listen to the same port at the same time. Normally Apache listens to port 80 which is the default HTTP port. The second Apache version should listen to another port with the Listen option in httpd.conf, for example to port 81.

For testing a new Apache version before moving your sites from one version to another, this might be a good option. You just type www.example.com:81 in the browser window and you will be connected to the second Apache instance. I have done this a few weeks ago when I moved from Apache 2.0 to Apache 2.2.

If you want a semi-permanent installation of two Apache versions, consider using the first one as a reverse proxy for the second one, or put both Apache versions on a non-standard port (for example 81 and 82) and use proxy software like Squid to reroute HTTP requests to these two versions.

12:18 pm on Sept 21, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0



Yes, you can have two different apache servers on one server, but they can't listen to the same port at the same time.

True, but not entirely. I have run both Apache 2.0.x and Apache 1.3 on the same server listening on the same port, but different IP addresses. Technically I guess one could argue that might be recognized as a separate port ;)

11:56 pm on Sept 22, 2006 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts:2886
votes: 1


I stand corrected, forgot the two IP option.