LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how can i tell if apache 2 is prefork or worker? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-tell-if-apache-2-is-prefork-or-worker-584742/)

sneakyimp 09-14-2007 07:14 PM

how can i tell if apache 2 is prefork or worker?
 
I need to find out if my apache 2 MPM is in prefork mode or in worker mode on Debian Sarge, Fedora Core 1, and CentOS. How does one do that?

choogendyk 09-14-2007 09:41 PM

Not real clear what you are asking.

Perhaps what you are looking for is:

./httpd -l

which will list all the modules apache was compiled with, including the mpm.

See: http://httpd.apache.org/docs/2.0/mpm.html

bathory 09-15-2007 08:24 AM

You can take a look at he output of:
Code:

httpd -V

sneakyimp 09-15-2007 01:34 PM

I keep getting an error any time I type the httpd command with either L or V flags:
Code:

server:~# httpd -V
-bash: httpd: command not found

I have tried to locate the folder where httpd might exist and can't seem to find it.

choogendyk 09-15-2007 02:15 PM

It's not in your path. That would be typical. That's why my original suggestion was `./httpd -l` -- assuming that you knew where it was and would cd there.

Is it running? If it is, you can look at the output of ps and see, e.g.:

http 8418 16083 0 14:59:08 ? 0:04 /usr/local/apache2/bin/httpd -k start -DSSL

which tells you what the path is.

If it is not running, you could check out the init script. I'm most familiar with Solaris and would look at /etc/init.d/apache. You could try `man apache` and see if that tells you where it expects its directories to be. Or you could do something like `find / -type f -name httpd`. That would take a while, but should work.


All times are GMT -5. The time now is 03:09 AM.