Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2514D187F2 for ; Mon, 26 Oct 2015 02:33:24 +0000 (UTC) Received: (qmail 33354 invoked by uid 500); 26 Oct 2015 02:33:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 33313 invoked by uid 500); 26 Oct 2015 02:33:20 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 33303 invoked by uid 99); 26 Oct 2015 02:33:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 02:33:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 768DAC0960 for ; Mon, 26 Oct 2015 02:33:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.091 X-Spam-Level: *** X-Spam-Status: No, score=3.091 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=neutral reason="invalid (public key: missing p= tag)" header.d=ymkatz.net Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qrmPPn14EwwN for ; Mon, 26 Oct 2015 02:33:13 +0000 (UTC) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0C46D42B94 for ; Mon, 26 Oct 2015 02:33:13 +0000 (UTC) Received: by wicfx6 with SMTP id fx6so94705951wic.1 for ; Sun, 25 Oct 2015 19:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymkatz.net; s=g; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=vSMl1P8vSsJNf7iHJYLLJSR5rAchMnTPuULMY3WrGuk=; b=d6ATPA8BDnG/wr7Vb4n534qiqWBZuLtd+ny5rQn/6bEo+aWHblJsJJG6p6SJYGLqTo uxuw+pW/qszaHJrGvFKIhI5Fdpu/iSt9om2SP6g7F9ojfRBEaPgHj38JwgRledLvl0DE nNVt92/AoZDoB8/mte/3Rv0zR37eR7i40/16I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=vSMl1P8vSsJNf7iHJYLLJSR5rAchMnTPuULMY3WrGuk=; b=lapb5a3sklaHsqPnMVuWVszou/g++bBH1x6uhcghZisLcXQVyfks3D5L6Jmi6Uwiwy 5Q27EL6jGbbm7Vo3W8w5rxbmf6oafv3x3LW/mwfmoF/6yRV7MBO5exPOIVNvyAaV77Kg 4FkRZdlA4Fe3HwZE7S6MVvBGlNStRjZBN+7twitWZTw4sytnfXfPkerwKh8eJo7f3yZf zZdDhWlWvR5QpIMzxNnN6u+w3FOjKB9+1UtCrNdqxgWCj4h7+UToaJJ57HXoTJoz+NFL hw6cBtDJo2b9C/pLZ26Xxb8JOYwJ1ERjyUuOSEXgVHU/QuNpQyhr8dCwwF8EJh7msEef 50Kw== X-Gm-Message-State: ALoCoQl0/ZQC7KEqnulAkV+jCcGRzKAs7Lhqr6KyfLLk4FnVCAG1NBiQkI7tx0xiR0WV256Yt3Xd X-Received: by 10.194.71.46 with SMTP id r14mr17834921wju.11.1445826786583; Sun, 25 Oct 2015 19:33:06 -0700 (PDT) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com. [209.85.212.182]) by smtp.gmail.com with ESMTPSA id pi5sm12082443wic.3.2015.10.25.19.33.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Oct 2015 19:33:05 -0700 (PDT) Received: by wikq8 with SMTP id q8so144739819wik.1 for ; Sun, 25 Oct 2015 19:33:05 -0700 (PDT) X-Received: by 10.180.93.193 with SMTP id cw1mr16085187wib.37.1445826785294; Sun, 25 Oct 2015 19:33:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.236.137 with HTTP; Sun, 25 Oct 2015 19:32:45 -0700 (PDT) In-Reply-To: References: From: Yehuda Katz Date: Sun, 25 Oct 2015 22:32:45 -0400 Message-ID: To: "users@httpd.apache.org" Content-Type: multipart/alternative; boundary=f46d043bdedef1c10b0522f8c740 Subject: Re: [users@httpd] Running Apache in Single Process Mode for Docker Container? --f46d043bdedef1c10b0522f8c740 Content-Type: text/plain; charset=UTF-8 You could try starting the service and run "ps auxf | grep apache". This doesn't always give you all the information, but it could help. - Y On Sun, Oct 25, 2015 at 10:26 PM, David Aronchick wrote: > Thank you, this is very helpful! Is there any way to get an output of all > the items on the command line ultimately used by apachectl? For example, > when I do the following, it fails - I assume I'm missing something. > > $ source /etc/apache2/envvars > $ /usr/sbin/apache2 -f /etc/apache2/sites-available/rails.conf -DFOREGROUND -DNO_DETACH > AH00534: apache2: Configuration error: No MPM loaded. > > > On Sun, Oct 25, 2015 at 5:03 PM, Kurtis Rader > wrote: > >> On Sun, Oct 25, 2015 at 3:55 PM, David Aronchick >> wrote: >> >>> Is it possible (or inadvisable) to run apache using the /usr/sbin/apache >>> binary directly? Is there any significant production issues that might >>> arise? >>> >> >> Run the binary directly as opposed to what? If you mean via apachectl or >> a /etc/init.d script all they do is invoke the httpd binary directly the >> the appropriate arguments (e.g., converting "configtest" into "-k"). On >> UNIX systems there really isn't any difference as far as the kernel is >> concerned whether you're running a script or a binary. If you choose to >> invoke the httpd binary directly without the aid of a wrapper script it >> simply becomes your responsibility to pass all necessary and appropriate >> arguments; e.g., -f to specify where the config file can be found. >> >> -- >> Kurtis Rader >> Caretaker of the exceptional canines Junior and Hank >> > > --f46d043bdedef1c10b0522f8c740 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You could try starting the service and run "ps auxf |= grep apache".
This doesn't always give you all the informatio= n, but it could help.

- Y

On Sun, Oct 25, 2015 at 10:26 = PM, David Aronchick <aronchick@gmail.com> wrote:
Thank you, this is very helpful! = Is there any way to get an output of all the items on the command line ulti= mately used by apachectl? For example, when I do the following, it fails - = I assume I'm missing something.

$ source =
/etc/apache2/envvars
$ /usr/sbin/apache2 -f /etc/apache2/sites-available/rails.conf  -DFOREGROUN=
D -DNO_DETACH=20
AH00534: apache2: Configuration error: No MPM loaded.

On Sun, Oct 25= , 2015 at 5:03 PM, Kurtis Rader <krader@skepticism.us> wr= ote:
On Sun, Oct 25, 2015 at 3:55 PM, D= avid Aronchick <aronchick@gmail.com> wrote:
Is it possible (or inadvisable) to run= apache using the /usr/sbin/apache binary directly? Is there any significan= t production issues that might arise?

Run the binary directly as opposed to what? If you mean via apachec= tl or a /etc/init.d script all they do is invoke the httpd binary directly = the the appropriate arguments (e.g., converting "configtest" into= "-k"). On UNIX systems there really isn't any difference as = far as the kernel is concerned whether you're running a script or a bin= ary. If you choose to invoke the httpd binary directly without the aid of a= wrapper script it simply becomes your responsibility to pass all necessary= and appropriate arguments; e.g., -f to specify where the config file can b= e found.

--
Kurtis Rader
Caretaker of the= exceptional canines Junior and Hank


--f46d043bdedef1c10b0522f8c740--