homepage Welcome to WebmasterWorld Guest from 54.205.241.107
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
two apache installation
rahulk98

5+ Year Member



 
Msg#: 3091256 posted 7:07 am on Sep 21, 2006 (gmt 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.

 

lammert

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3091256 posted 11:46 am on Sep 21, 2006 (gmt 0)

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.

coopster

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



 
Msg#: 3091256 posted 12:18 pm on Sep 21, 2006 (gmt 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 ;)

lammert

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3091256 posted 11:56 pm on Sep 22, 2006 (gmt 0)

I stand corrected, forgot the two IP option.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved