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.... |
Through Virtual Machine is one possibility.
|
I never tried this, but my first approaches were to put each in its own chroot or to use virtualization.
|
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 Code:
/opt/lampp/htdocs Now they will never be overlapped. |
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? ;) |
You can install different versions and simply let them listen on different ports. They can even share the same document root.
|
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. |
All times are GMT -5. The time now is 11:37 PM. |