Sponsored Content
Full Discussion: Map Apache PID to website
Top Forums Shell Programming and Scripting Map Apache PID to website Post 302640223 by kmaq7621 on Monday 14th of May 2012 09:33:50 AM
Old 05-14-2012
Map Apache PID to website

Hello,

I have multiple apache websites running on the same server. How can I tell which apache PID is mapped to which website?
Code:
www-data  5535 18638  0 08:46 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5538 18638  0 08:46 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5576 18638  0 08:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5581 18638  0 08:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5585 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5587 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5590 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5591 18638  0 08:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5594 18638  0 08:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5708 18638  0 09:02 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5709 18638  0 09:03 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5714 18638  0 09:06 ?        00:00:00 /usr/sbin/apache2 -k start


Last edited by Franklin52; 05-14-2012 at 10:45 AM.. Reason: Please use code tags
 

7 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

3. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

4. HP-UX

to stop the website hosted in apache ux server

Hi, we have some websites in ux servers and need to stop those websites i.e when users try to acess those websites they should not able to see those websites. we have to ideas one is .htaccess. from this we can redirect to existing 404page. and not sure if we rediredt to non- exixting page in... (1 Reply)
Discussion started by: kishan
1 Replies

5. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

6. Web Development

Ajaxterm in a website on apache

Hi All, I'm trying to get ajaxterm hosted on a website. The site is already running. I just want to add ajaxterm link to it with SSL of course. So far I've not been successful. I kinda got it running but with out SSL. Not good enough! Also, I already have configured SSL and I can access some... (0 Replies)
Discussion started by: nitin
0 Replies

7. Web Development

Apache website uri access

Hi i would like to grant access specific to one uri and rest of them should be denied. as follows: http://websitename/example user should be able to access htttp://websitename/other user should be denied (1 Reply)
Discussion started by: raghur77
1 Replies
PMDAAPACHE(1)						      General Commands Manual						     PMDAAPACHE(1)

NAME
pmdaapache - Apache2 web server performance metrics domain agent (PMDA) SYNOPSIS
$PCP_PMDAS_DIR/apache/pmdaapache [-d domain] [-l logfile] [-U username] [-S server] [-P port] [-L location] DESCRIPTION
pmdaapache is a Performance Metrics Domain Agent (PMDA) which extracts performance metrics describing the state of an Apache web server. The apache PMDA exports metrics that measure the request rate, cumulative request sizes, uptime and various connection states for active clients. This information is obtained by performing a HTTP request to the server status URL, which must be enabled in the httpd.conf configuration file. ExtendedStatus on <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from localhost </Location> A brief description of the pmdaapache command line options follows: -d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. -l Location of the log file. By default, a log file named apache.log is written in the current directory of pmcd(1) when pmdaapache is started, i.e. $PCP_LOG_DIR/pmcd . If the log file cannot be created or is not writable, output is written to the standard error instead. -S Query the Apache status information from the named server rather than the local host. -P Query the Apache status information from the given port rather than the default (80). -L Specify an alternative location for finding the server-status page. -U User account under which to run the agent. The default is the unprivileged "pcp" account in current versions of PCP, but in older versions the superuser account ("root") was used by default. INSTALLATION
If you want access to the names, help text and values for the apache performance metrics, do the following as root: # cd $PCP_PMDAS_DIR/apache # ./Install If you want to undo the installation, do the following as root: # cd $PCP_PMDAS_DIR/apache # ./Remove pmdaapache is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is installed or removed. FILES
$PCP_PMCDCONF_PATH command line options used to launch pmdaapache $PCP_PMDAS_DIR/apache/help default help text file for the apache metrics $PCP_PMDAS_DIR/apache/Install installation script for the pmdaapache agent $PCP_PMDAS_DIR/apache/Remove undo installation script for the pmdaapache agent $PCP_LOG_DIR/pmcd/apache.log default log file for error messages and other information from pmdaapache PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). SEE ALSO
PCPIntro(1), httpd(8), pmcd(1), pcp.conf(5) and pcp.env(5). Performance Co-Pilot PCP PMDAAPACHE(1)
All times are GMT -4. The time now is 12:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy