LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2007, 07:14 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
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?
 
Old 09-14-2007, 09:41 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
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
 
Old 09-15-2007, 08:24 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,158
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You can take a look at he output of:
Code:
httpd -V
 
Old 09-15-2007, 01:34 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
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.
 
Old 09-15-2007, 02:15 PM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache tuning question: prefork.c vs worker.c BrianK Linux - Networking 10 02-09-2012 01:42 PM
Apache - change to worker MPM rjcrews Linux - Software 2 03-22-2006 06:28 AM
Apache + Suse 9.3 + MPM worker Suinatsa Linux - Software 1 01-31-2006 02:22 PM
Apache2 worker works, prefork doesn't AlexH SUSE / openSUSE 1 10-18-2004 11:15 AM
what if I use worker and prefork on apache? gottin Linux - Software 1 10-15-2004 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration