Author |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Wed 05 Nov '14 19:28 Post subject: Multiple Apache servers on on single Linux box redhat |
|
|
Hi
I need to configure multiple Apache Web Servers on redhat server.
I have copied and extracted Apache 2.2 into redhat server and extracted but not able to install because I don't understand setting prefix. Please let me explain about prefix configuration and how to set it. At the same time I would like to know is it possible to setup 4 Apache Web Servers on same machine if possible then how to.
Can we set up different versions of Apache HTTP Servers?
Thanks
Srinivasula Reddy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 06 Nov '14 0:09 Post subject: |
|
|
Why you need different servers? Can't you use vhosts?
If you have to use different webservers, you can't do that out of the box, you have to compile apache yourself. |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Thu 06 Nov '14 1:41 Post subject: |
|
|
I need to install because I am setting cluster environment on same machine like two dispatchers for aem and two Web Servers for Weblogic.
Could you let me know how it can be done, I mean any doc or link |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 06 Nov '14 12:58 Post subject: |
|
|
I don't know aem, but for weblogic you can use two vhosts to different backends. |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Thu 06 Nov '14 13:27 Post subject: |
|
|
Could you tell me how multiple apache instances are installed on Redhat enterprise linux |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Fri 07 Nov '14 14:03 Post subject: |
|
|
Could you let me know what what paths you are talking about in the post and do i need to make any other changes to start two servers and at the same time does it work for redhat.
Thanks
Srinu Reddy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 07 Nov '14 15:18 Post subject: |
|
|
I talk about --prefix=/opt/apache2 the install path |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Mon 10 Nov '14 8:04 Post subject: |
|
|
I have compiled and installed the Apache2.4.10 in /opt/apache21 and tried starting the severer using apachectl -k start.
below is the error:
>>Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:82
httpd (pid 20028) already running
httpd out of the box i have installed, is that causing the problem?
Please let me know should i remove out of the box installation. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 10 Nov '14 12:10 Post subject: |
|
|
for apachectl just use
apachectl start
or use
httpd -k start
Remove the line 82 it is no longer needed. |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Tue 11 Nov '14 8:13 Post subject: |
|
|
The following is the error
AH00534: httpd: Configuration error: More than one MPM loaded. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 11 Nov '14 11:50 Post subject: |
|
|
Please post your config at http://apaste.info/ So I can have a look at it. |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 12 Nov '14 16:14 Post subject: |
|
|
Hm, you changed the config at lot.
However I can't see the module you try to load because of
Include conf.modules.d/*.conf
So I think you load there multiple MPMs. Since it is possible to load different MPMs in 2.4 |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Wed 12 Nov '14 16:28 Post subject: |
|
|
What is the problem.
I Have installed Apache using out of the box (yum install httpd) and then compiled and installed.
The second one I am not able to start because it says httpd is already running. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 15 Nov '14 11:03 Post subject: |
|
|
Do you use the same port and or the same IP? |
|
Back to top |
|
srinureddy.etta@gmail.com
Joined: 05 Nov 2014 Posts: 12
|
Posted: Sat 15 Nov '14 11:14 Post subject: |
|
|
Hi
I am using the same ip but different port. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 17 Nov '14 11:35 Post subject: |
|
|
if you don't mind, but the acutal error message would help a lot Just copy it from the shell. |
|
Back to top |
|