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 4D14D18834 for ; Mon, 26 Oct 2015 02:41:11 +0000 (UTC) Received: (qmail 44256 invoked by uid 500); 26 Oct 2015 02:41:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44220 invoked by uid 500); 26 Oct 2015 02:41:08 -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 44209 invoked by uid 99); 26 Oct 2015 02:41:08 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 02:41:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 125201A2769 for ; Mon, 26 Oct 2015 02:41:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RgLY5L4VjmNm for ; Mon, 26 Oct 2015 02:40:57 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 917EB23067 for ; Mon, 26 Oct 2015 02:40:57 +0000 (UTC) Received: by igbni9 with SMTP id ni9so64706604igb.1 for ; Sun, 25 Oct 2015 19:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ObQrehhfJtDJuiaCuyeSDFL8CVBoI4fnpFrxMPPC/i8=; b=yR5LwEgJa2HfR05pC/egZy8qC9SWjAAsC/c4hW2q26E0AOYHOM1ZSTOqVTGOB26uSG wZ7LEaTLuUh9PR1Yq6gwbD00HyWU5WwM3W035cSnIL3bRT662ikOEKvP4j9orkan6yLP pNqveYL0lwrbY/VTGzjmuBik9C4ODxJEHXWW/aYkTiUHj/4+iIRNHcijcb9/CQJtEnbi vj3c1GmBnuMBspKESzVbuuQpROX9v7LSVU5MClkwru5LBA/LrOwt4adRsVURSJKVlMgB eaRLjMFlJDCM1dPJieO+dyxgDxJNHOxNf2PjaFCvpsN1WCCPLVklnjj9tc3Bod2SaLHz tSxw== X-Received: by 10.50.79.166 with SMTP id k6mr16125390igx.24.1445827257027; Sun, 25 Oct 2015 19:40:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.93.69 with HTTP; Sun, 25 Oct 2015 19:40:17 -0700 (PDT) In-Reply-To: References: From: David Aronchick Date: Sun, 25 Oct 2015 19:40:17 -0700 Message-ID: To: Users Content-Type: multipart/alternative; boundary=089e013a114e0fd3f90522f8e42d Subject: Re: [users@httpd] Running Apache in Single Process Mode for Docker Container? --089e013a114e0fd3f90522f8e42d Content-Type: text/plain; charset=UTF-8 Unfortunately, no joy (this is using apachectl, not /usr/sbin/apache) :( root 339 0.0 0.0 8868 904 ? S+ 02:38 0:00 \_ grep --color=auto apache root 1 0.0 0.0 4448 780 ? Ss Oct25 0:00 /bin/sh /usr/sbin/apache2ctl -DFOREGROUND -DNO_DETACH root 6 0.0 0.3 87116 7200 ? S Oct25 0:00 /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH www-data 282 0.0 0.3 374136 6556 ? Sl 02:35 0:00 \_ /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH www-data 283 0.0 0.3 374136 6556 ? Sl 02:35 0:00 \_ /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH On Sun, Oct 25, 2015 at 7:32 PM, Yehuda Katz wrote: > 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 >>> >> >> > --089e013a114e0fd3f90522f8e42d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Unfortunately, no joy (this is using apachectl,=C2=A0not /= usr/sbin/apache)=C2=A0:(=C2=A0

root =C2=A0 =C2=A0 =C2=A0 339 =C2=A00.0 =C2=A00.0 =C2=A0 88= 68 =C2=A0 904 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0S+ =C2=A0 02:38 =C2=A0 0:00 =C2= =A0\_ grep --color=3Dauto apache
root =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 =C2=A00.0 =C2=A00.0 =C2=A0 44= 48 =C2=A0 780 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0Ss =C2=A0 Oct25 =C2=A0 0:00 /bin= /sh /usr/sbin/apache2ctl -DFOREGROUND -DNO_DETACH
root =C2=A0 =C2=A0 =C2=A0 =C2=A0 6 =C2=A00.0 = =C2=A00.3 =C2=A087116 =C2=A07200 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0S =C2=A0 =C2= =A0Oct25 =C2=A0 0:00 /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH
www-data =C2=A0 282 =C2=A00.0 =C2= =A00.3 374136 =C2=A06556 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0Sl =C2=A0 02:35 =C2= =A0 0:00 =C2=A0\_ /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH
www-data =C2=A0 283 =C2=A00.0 =C2=A0= 0.3 374136 =C2=A06556 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0Sl =C2=A0 02:35 =C2=A0 0= :00 =C2=A0\_ /usr/sbin/apache2 -DFOREGROUND -DNO_DETACH
<= /div>

On Sun, Oct = 25, 2015 at 7:32 PM, Yehuda Katz <yehuda@ymkatz.net> wrote:<= br>
You could try starting t= he service and run "ps auxf | grep apache".
This doesn't = always give you all the information, but it could help.

- Y
<= br>
On Sun, Oct 25, 2015 at 10:26 PM, David Aronc= hick <aronchick@gmail.com> wrote:
Thank you, this is very helpful! Is there any wa= y 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/en=
vvars
$ /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.

-- <= br>
Kurtis Rader
Caretaker of the exceptional cani= nes Junior and Hank



--089e013a114e0fd3f90522f8e42d--