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?
|
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 |
You can take a look at he output of:
Code:
httpd -V |
I keep getting an error any time I type the httpd command with either L or V flags:
Code:
server:~# httpd -V |
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. |