You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Vinay Purohit <Vi...@trianz.com> on 2008/04/08 08:49:58 UTC

[users@httpd] How to detect multiple instance of apache

 Hi,

I have installed apache 2.2.8 and created multiple instance of it (using
IP based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my
machine?" 

Please let me know hot to find out if multiple instance of apache is
running on the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


AW: [users@httpd] How to detect multiple instance of apache

Posted by ch...@post.ch.
I suggest you launch apache with the config file as a parameter
and retrieve the filename it via ps afterwards.

Alternatively you can also start out with a clear architecture and put the
config files in a predefined location, defined by the URL.
Like /etc/apache/.../httpd.conf_www.example.com 

Then you run over all these files, extract the PIDfile, extract the PID
from the file and see wether there are running processes at this PID.

Be really careful when updating running apaches automatically.
But I guess you know what you are doing.

regs,

Christian


-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:Vinay.Purohit@trianz.com] 
Gesendet: Dienstag, 8. April 2008 09:02
An: users@httpd.apache.org
Betreff: RE: [users@httpd] How to detect multiple instance of apache 


Thanks !! 
Actually , I would like to know the location of their httpd.conf respectively as my application want to add certain entries in the httpd.conf

----Original Message-----
From: christian.folini@post.ch [mailto:christian.folini@post.ch]
Sent: Tuesday, April 08, 2008 12:26 PM
To: users@httpd.apache.org
Subject: AW: [users@httpd] How to detect multiple instance of apache 

ps auwwx | grep -v grep | grep root | grep apache  (?)
 

-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Gesendet: Dienstag, 8. April 2008 08:50
An: users@httpd.apache.org
Betreff: [users@httpd] How to detect multiple instance of apache 


 Hi,

I have installed apache 2.2.8 and created multiple instance of it (using IP based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my machine?" 

Please let me know hot to find out if multiple instance of apache is running on the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] How to detect multiple instance of apache

Posted by Vinay Purohit <Vi...@trianz.com>.
Thanks !! 
Actually , I would like to know the location of their httpd.conf respectively as my application want to add certain entries in the httpd.conf

----Original Message-----
From: christian.folini@post.ch [mailto:christian.folini@post.ch] 
Sent: Tuesday, April 08, 2008 12:26 PM
To: users@httpd.apache.org
Subject: AW: [users@httpd] How to detect multiple instance of apache 

ps auwwx | grep -v grep | grep root | grep apache  (?)
 

-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Gesendet: Dienstag, 8. April 2008 08:50
An: users@httpd.apache.org
Betreff: [users@httpd] How to detect multiple instance of apache 


 Hi,

I have installed apache 2.2.8 and created multiple instance of it (using IP based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my machine?" 

Please let me know hot to find out if multiple instance of apache is running on the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


AW: [users@httpd] How to detect multiple instance of apache

Posted by ch...@post.ch.
ps auwwx | grep -v grep | grep root | grep apache  (?)
 

-----Ursprüngliche Nachricht-----
Von: Vinay Purohit [mailto:Vinay.Purohit@trianz.com] 
Gesendet: Dienstag, 8. April 2008 08:50
An: users@httpd.apache.org
Betreff: [users@httpd] How to detect multiple instance of apache 


 Hi,

I have installed apache 2.2.8 and created multiple instance of it (using IP based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my machine?" 

Please let me know hot to find out if multiple instance of apache is running on the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to detect multiple instance of apache

Posted by namdar tariq <nt...@yahoo.com>.
hi,
 i took ur address from httpd achieve,
 i have a problem kindly help me out if u can, actually i want to run my server code in c++ on apache, for this i changed extension of c++ file to cgi and copy it in a cgi-bin folder. but its nt working.
 
 
 waiting for ur reply.
 
 thanx.

Vinay Purohit <Vi...@trianz.com> wrote:  Hi,

I have installed apache 2.2.8 and created multiple instance of it (using
IP based multiple daemon). I would like to write an application 

Which required to know "how many instance of apache server running on my
machine?" 

Please let me know hot to find out if multiple instance of apache is
running on the machine? If Yes what are those instances ?

\Vinay

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.