MESSAGE
DATE | 2021-01-06 |
FROM | Eric Covener
|
SUBJECT | Re: [Hangout - NYLXS] [users@httpd] Apache shows PHP code instead
|
From hangout-bounces-at-nylxs.com Wed Jan 6 20:56:01 2021 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 65311163FBB; Wed, 6 Jan 2021 20:56:01 -0500 (EST) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id 296B0163FB8 for ; Wed, 6 Jan 2021 20:55:46 -0500 (EST) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4DB8TF2Kmyz1lL7 for ; Wed, 6 Jan 2021 20:55:45 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 20529) id 4DB8TF290Pz1ZVd; Wed, 6 Jan 2021 20:55:45 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Wed, 6 Jan 2021 20:55:45 -0500 Resent-Message-ID: <20210107015545.GA16120-at-panix.com> Resent-To: hangout-at-nylxs.com X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on mailcrunch1.panix.com X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.3 X-Spam-Relay-Country: US US IN ** IN XX X-Original-To: mrbrklyn-at-panix.com Delivered-To: mrbrklyn-at-panix.com Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mailbackend.panix.com (Postfix) with ESMTP id 4DB8GN0CCwz1kx0 for ; Wed, 6 Jan 2021 20:46:20 -0500 (EST) Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail1.panix.com (Postfix) with ESMTPS id 4DB8GM6wKQzjFk for ; Wed, 6 Jan 2021 20:46:19 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 6925C441B4 for ; Thu, 7 Jan 2021 01:46:13 +0000 (UTC) Received: (qmail 38624 invoked by uid 500); 7 Jan 2021 01:46:09 -0000 Mailing-List: contact users-help-at-httpd.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list users-at-httpd.apache.org Received: (qmail 38578 invoked by uid 99); 7 Jan 2021 01:46:08 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2021 01:46:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id F091E1FF3A1 for ; Thu, 7 Jan 2021 01:46:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id nk_EtgZnqhM9 for ; Thu, 7 Jan 2021 01:46:07 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::529; helo=mail-ed1-x529.google.com; envelope-from=covener-at-gmail.com; receiver= Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 7270A7FBDE for ; Thu, 7 Jan 2021 01:46:07 +0000 (UTC) Received: by mail-ed1-x529.google.com with SMTP id g24so6174202edw.9 for ; Wed, 06 Jan 2021 17:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YVX8ZeybRBaLyHKT0XvpRQV7aa50oPL3mwybzbeBbhQ=; b=kP7JmBNKzWfLXGxr8oMR3THNg8FDXiPQnoNXy4LR5z+FC7xJs4VsQL4flFiwdof9xw Ccq3+W3d0mmoW0OuLyxC5Pm0CJ1TmXEg2aNyeebfaeUWJatYLScP6JmiKt8y3L65jyIP fSz4RzIJApYG7Uc+v5RBJeiEyvA+1GV2/nOZNHdVJrECnYeHoqgznexbV2moZjgVMr7J IvAJGnFKin2rohEaA8d70y2waYBfTkxMJBm5LUS/jdSDIAHi3lU+yR7Kw/W8lC/PWMUB eyVWYKNvrHewld4wmM1jseQ3c7wRx0XsXAs6pVED97z+b3sMW0JYXFtOYJU2Y9NeSEc6 /KdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YVX8ZeybRBaLyHKT0XvpRQV7aa50oPL3mwybzbeBbhQ=; b=oqKccCjE1dkpEK0Y+FAaINndRT/kwiF5W24YUrpMyicLeYE//nhFZ5wrG2KVmaaBxa lFJ/+7TxpH84bSnEBEfdY4ykwOvVAqD+0kfrFCg7WzKJtxDd7l039MxA5KuZpsydYeuw yWLm2GkHvETP0l7TAasqjV38yjrZ09nKXMSM08x4Vthwy3CqqTxn/miFj551QRsM8YzH cQ+lyqHs8YTBJBcdc0IUuebvr2K9b1VYXtbP5T1bXRpNUKKzaIZDpxH6S0R8epEIhMev 2DDFxNmIOYzUNHnTG1Zm+153odKWiAU2mGwUAKxZBmpnkoqdXnfX08TbohlmEtyVxSJS Q1CA== X-Gm-Message-State: AOAM533GqjYc058nDOcomP6kBv+CShbpC89WXws6PH/4F88bY5r/aihT nRBH1QSw7RAw/4nQ6uItX2iLrAOkCox9EFW2oOQkUD44TYo= X-Google-Smtp-Source: ABdhPJz+VxxZbPmEDsgdcnq+ZWefegH9wFTyUy95PgkqB7P4dNlDkrdvP271gYf1nRakQSPm1+K/lDzAH/dg4YXoZ+M= X-Received: by 2002:a50:d553:: with SMTP id f19mr5651514edj.323.1609983961179; Wed, 06 Jan 2021 17:46:01 -0800 (PST) MIME-Version: 1.0 References: <3f6a0a26-21a8-2bf7-94c7-a8e85d2ee372-at-panix.com> <243c937309de0b10b83d228c732f9aa3-at-tuxweb.it> <6df206d4-9f58-f203-add9-e46dd4412117-at-panix.com> In-Reply-To: <6df206d4-9f58-f203-add9-e46dd4412117-at-panix.com> From: Eric Covener Date: Wed, 6 Jan 2021 20:45:50 -0500 Message-ID: To: users-at-httpd.apache.org Subject: Re: [Hangout - NYLXS] [users-at-httpd] Apache shows PHP code instead of executing it X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: users-at-httpd.apache.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
On Wed, Jan 6, 2021 at 6:31 PM Ruben Safir wrote: > > On 1/6/21 4:01 PM, dino-at-tuxweb.it wrote: > > > > This is because you did not tell apache to forward incoming HTTP > > requests to the PHP Engine. > > You can integrate Apache httpd with PHP in different ways, generally > > they are PHP-FPM (through fastcgi), mod_php (apache SAPI module) and CGI > > (discouraged because is very slow and does not scale well). > > Umm - use mod_php. I know that the PHP website docs suggest otherwise, > but they are wrong. It is the only way to integrate PHP into apache. > It might use more memory. That is fine. Memory is cheap. > > if you use Linux there is no problems and frankly threads and processes > both share light weight processes > > http://httpd.apache.org/docs/current/mpm.html > https://tldp.org/FAQ/Threads-FAQ/Types.html > https://www.kernel.org/doc/ols/2002/ols2002-pages-330-337.pdf > https://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 > https://www.php.net/manual/en/install.unix.apache2.php > > > Packing the PHP instance in a threaded fastcgi process is exactly what > you don't want. Integrating it into the Apache runtime prevents needing > to create an entire clone call and all subsequent fork() calls,
Caveat: The above is not the conventional wisdom at all and misrepresents the tradeoffs.
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe-at-httpd.apache.org For additional commands, e-mail: users-help-at-httpd.apache.org
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|