LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-10-2013, 12:02 AM   #1
yashfire007
Member
 
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, 01:45 AM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 502

Rep: Reputation: 137Reputation: 137
Through Virtual Machine is one possibility.
 
Old 04-10-2013, 01:45 AM   #3
lambo69
Member
 
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, 02:20 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
USE XAMPP...
Now you can have two apache with different versions , even with different versions of php.
The default project directory of one Apache will be
Code:
/var/www/html
& XAMPP's apache will be
Code:
/opt/lampp/htdocs
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, 02:21 AM   #5
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 502

Rep: Reputation: 137Reputation: 137
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, 02:46 AM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
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, 03:16 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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.
 
  


Reply


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 08:25 AM
multiple CVS server on single machine deep27ak Linux - Server 3 11-18-2011 01:07 PM
Single Server Running Apache on Two Lan's? carlosinfl Linux - Networking 1 06-23-2010 07:48 PM
How Can I test SSL with Single apache Server Machine? your_shadow03 Linux - Newbie 1 10-26-2009 07:40 PM
multiple ssl certs, single apache server? hank43 Linux - Software 0 01-26-2005 05:56 PM


All times are GMT -5. The time now is 06:59 PM.

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