Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-09-2013, 11:02 PM   #1
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 79

Rep: Reputation: Disabled
Question Installing two apache server in a single machine

Dear all,

Yesterday i have attended an interview. In that interview one of the questions is,
" I have installed an Apache server with version 2.4 and i want to install another Apache server with version 2.6 in the same machine. How can i install and use. While installing Apache 2.6 it should not overwite the Apache 2.4 installed files. And two daemons also should not collide".

Please let me know the answer for the above....
Old 04-10-2013, 12:45 AM   #2
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Through Virtual Machine is one possibility.
Old 04-10-2013, 12:45 AM   #3
Registered: Sep 2012
Distribution: Slackware, Debian, Slackarm, Raspbian
Posts: 50

Rep: Reputation: Disabled
I never tried this, but my first approaches were to put each in its own chroot or to use virtualization.
Old 04-10-2013, 01:20 AM   #4
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Now you can have two apache with different versions , even with different versions of php.
The default project directory of one Apache will be
& XAMPP's apache will be
Stop one & use other and vice versa. Because port is same for both i.e. 80
Now they will never be overlapped.
Old 04-10-2013, 01:21 AM   #5
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
i'm not apache expert, but simple google search brought many hits.

Multiple Apache Installations HOWTO
Multiple Versions of Apache on a Single System
Running Multiple Apache Instances

Have people lost faith in google?
Old 04-10-2013, 01:46 AM   #6
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 136Reputation: 136
You can install different versions and simply let them listen on different ports. They can even share the same document root.
Old 04-10-2013, 02:16 AM   #7
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,844

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
This could be a tricky question, as there is no apache-2.6 version
Other than that you can have multiple apache instances running as long as they are listening on different ports.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing two kernels in a single machine booting with lilo micflunu Linux - Newbie 17 01-16-2013 07:25 AM
multiple CVS server on single machine deep27ak Linux - Server 3 11-18-2011 12:07 PM
Single Server Running Apache on Two Lan's? carlosinfl Linux - Networking 1 06-23-2010 06:48 PM
How Can I test SSL with Single apache Server Machine? your_shadow03 Linux - Newbie 1 10-26-2009 06:40 PM
multiple ssl certs, single apache server? hank43 Linux - Software 0 01-26-2005 04:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration