DevHeads.net

apachectl fullstatus for multiple instance of httpd

Hi

My System : CentOS Linux release 7.2.1511 (Core)
My Apache version : Apache/2.4.6 (CentOS)

I have configure two httpd instance.

I'm looking for a way to use "apachectl fullstatus" command for the
second instance.

Is this possible?

cordialy,

Comments

Re: apachectl fullstatus for multiple instance of

By Bremser, Kurt (... at 12/05/2016 - 08:08

The second instance uses its own httpd.conf file. apachectl accepts this file via the -f parameter.

HTH,
Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

My System : CentOS Linux release 7.2.1511 (Core)
My Apache version : Apache/2.4.6 (CentOS)

I have configure two httpd instance.

I'm looking for a way to use "apachectl fullstatus" command for the second instance.

Is this possible?

cordialy,

Re: apachectl fullstatus for multiple instance of

By Bertrand Lods at 12/05/2016 - 11:06

Hi

thanks for answer.

But when I try this :

I get this :

I've looking for information but find nothing to use fullstatus on a
second instance.

cordialy

Le 05/12/2016 à 13:08, Bremser, Kurt (AMOS Austria GmbH) a écrit :

Re: **SPAM?** Re: [users@httpd] apachectl fullstat

By Bremser, Kurt (... at 12/05/2016 - 11:12

Then I'd look in apachectl what the fullstatus does and do it from my own script directly with httpd (because THAT accepts the -f).

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

thanks for answer.

But when I try this :

apachectl fullstatus -f /etc/httpd-FusionAccesWeb/conf/httpd.conf

I get this :

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.

I've looking for information but find nothing to use fullstatus on a second instance.

cordialy

Le 05/12/2016 à 13:08, Bremser, Kurt (AMOS Austria GmbH) a écrit :

The second instance uses its own httpd.conf file. apachectl accepts this file via the -f parameter.

HTH,
Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

My System : CentOS Linux release 7.2.1511 (Core)
My Apache version : Apache/2.4.6 (CentOS)

I have configure two httpd instance.

I'm looking for a way to use "apachectl fullstatus" command for the second instance.

Is this possible?

cordialy,

Re: Re: **SPAM?** Re: [users@httpd] apachectl full

By Bertrand Lods at 12/05/2016 - 11:54

Hi

can you give me detail about how you did it?

cordialy,

Le 05/12/2016 à 16:12, Bremser, Kurt (AMOS Austria GmbH) a écrit :

Re: apachectl fullstatus for multiple instance of

By Bremser, Kurt (... at 12/05/2016 - 11:57

Just checked what fullstatus does. Here (2.4.9 on AIX) it just calls lynx -dump with URL <a href="http://localhost:80/server-status" title="http://localhost:80/server-status">http://localhost:80/server-status</a>.

So you just have to change to the listen port number of your second instance.

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

do it from my own script directly with httpd (because THAT accepts the -f).

can you give me detail about how you did it?

cordialy,

Le 05/12/2016 à 16:12, Bremser, Kurt (AMOS Austria GmbH) a écrit :

Then I'd look in apachectl what the fullstatus does and do it from my own script directly with httpd (because THAT accepts the -f).

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

thanks for answer.

But when I try this :

apachectl fullstatus -f /etc/httpd-FusionAccesWeb/conf/httpd.conf

I get this :

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.

I've looking for information but find nothing to use fullstatus on a second instance.

cordialy

Le 05/12/2016 à 13:08, Bremser, Kurt (AMOS Austria GmbH) a écrit :

The second instance uses its own httpd.conf file. apachectl accepts this file via the -f parameter.

HTH,
Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
Hi

My System : CentOS Linux release 7.2.1511 (Core)
My Apache version : Apache/2.4.6 (CentOS)

I have configure two httpd instance.

I'm looking for a way to use "apachectl fullstatus" command for the second instance.

Is this possible?

cordialy,

Re: apachectl fullstatus for multiple instance of

By Bertrand Lods at 12/06/2016 - 05:54

Hi

and thanks for you help.

On Centos I look in :
vi /usr/sbin/apachectl

I see this

LYNX="/usr/bin/links -dump"
and
STATUSURL="http://localhost:80/server-status"
then
fullstatus)
checklynx
$LYNX $STATUSURL
;;
*)

So the command is :
/usr/bin/links -dump <a href="http://localhost:80/server-status" title="http://localhost:80/server-status">http://localhost:80/server-status</a>

I activated mod_status for my 10080 instance of httpd. And then the
command is :
/usr/bin/links -dump <a href="http://localhost:10080/server-status" title="http://localhost:10080/server-status">http://localhost:10080/server-status</a>

thank for your help again.

cordialy

Le 05/12/2016 à 16:57, Bremser, Kurt (AMOS Austria GmbH) a écrit :

RE: apachectl fullstatus for multiple instance of

By Alexandru Duzsardi at 12/05/2016 - 07:47

What do you mean by two httpd instance ?

Hi

My System : CentOS Linux release 7.2.1511 (Core)
My Apache version : Apache/2.4.6 (CentOS)

I have configure two httpd instance.

I'm looking for a way to use "apachectl fullstatus" command for the second instance.

Is this possible?

cordialy,