AW: How to detect multiple instance of apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx] 
Gesendet: Dienstag, 8. April 2008 09:02
An: users@xxxxxxxxxxxxxxxx
Betreff: RE:  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@xxxxxxx [mailto:christian.folini@xxxxxxx]
Sent: Tuesday, April 08, 2008 12:26 PM
To: users@xxxxxxxxxxxxxxxx
Subject: AW:  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@xxxxxxxxxx]
Gesendet: Dienstag, 8. April 2008 08:50
An: users@xxxxxxxxxxxxxxxx
Betreff:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux