logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Multiple Apache servers on on single Linux box redhat
Author
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Wed 05 Nov '14 19:28    Post subject: Multiple Apache servers on on single Linux box redhat Reply with quote

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

PostPosted: Thu 06 Nov '14 0:09    Post subject: Reply with quote

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

PostPosted: Thu 06 Nov '14 1:41    Post subject: Reply with quote

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

PostPosted: Thu 06 Nov '14 12:58    Post subject: Reply with quote

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

PostPosted: Thu 06 Nov '14 13:27    Post subject: Reply with quote

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

PostPosted: Thu 06 Nov '14 15:25    Post subject: Reply with quote

As I said, you have to compile it yourself. http://mariobrandt.de/archives/apache/compling-apache-2-4-on-ubuntu-or-debian-519/

Only change the paths for each installation.
Back to top
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Fri 07 Nov '14 14:03    Post subject: Reply with quote

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

PostPosted: Fri 07 Nov '14 15:18    Post subject: Reply with quote

I talk about --prefix=/opt/apache2 the install path
Back to top
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Mon 10 Nov '14 8:04    Post subject: Reply with quote

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

PostPosted: Mon 10 Nov '14 12:10    Post subject: Reply with quote

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

PostPosted: Tue 11 Nov '14 8:13    Post subject: Reply with quote

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

PostPosted: Tue 11 Nov '14 11:50    Post subject: Reply with quote

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

PostPosted: Wed 12 Nov '14 5:53    Post subject: Reply with quote

I have submitted please look at it

http://apaste.info/sKR
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 12 Nov '14 16:14    Post subject: Reply with quote

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

PostPosted: Wed 12 Nov '14 16:28    Post subject: Reply with quote

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

PostPosted: Sat 15 Nov '14 11:03    Post subject: Reply with quote

Do you use the same port and or the same IP?
Back to top
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Sat 15 Nov '14 11:14    Post subject: Reply with quote

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

PostPosted: Mon 17 Nov '14 11:35    Post subject: Reply with quote

if you don't mind, but the acutal error message would help a lot Wink Just copy it from the shell.
Back to top


Reply to topic   Topic: Multiple Apache servers on on single Linux box redhat View previous topic :: View next topic
Post new topic   Forum Index -> Apache