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 8D65A11A42 for ; Mon, 5 May 2014 01:03:44 +0000 (UTC) Received: (qmail 22791 invoked by uid 500); 5 May 2014 01:03:41 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 22720 invoked by uid 500); 5 May 2014 01:03:41 -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 22712 invoked by uid 99); 5 May 2014 01:03:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 01:03:40 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.149.197] (HELO na3sys009aog107.obsmtp.com) (74.125.149.197) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 01:03:36 +0000 Received: from mail-vc0-f177.google.com ([209.85.220.177]) (using TLSv1) by na3sys009aob107.postini.com ([74.125.148.12]) with SMTP ID DSNKU2bjU26tIjjsz4QZMvnoBWiIDlShtv32@postini.com; Sun, 04 May 2014 18:03:16 PDT Received: by mail-vc0-f177.google.com with SMTP id if11so7738562vcb.22 for ; Sun, 04 May 2014 18:03:15 -0700 (PDT) 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:date :message-id:subject:from:to:content-type; bh=fnzJvOd792sogAtTlso1g6iqUMF6hmPPbhPHtDMDhow=; b=aKTLOWaI6xlAdaBXKd9R3ShbQ1V/f4Qt1vtQ3zCpbdfTFJuX7aSH6AdH/qJe8bF4sA xBPZWA3BdUqbcwci//QV0/pVfb4r4v1IpTI/sQC+Pd77EgA4ZB1G2ghVOuWJ9csnJlTf c+yZofClS1Ia9UGBsN0/TFFxCh7H7TWbiOa7c075ajtFtMjZh1Pje9dkLODKzbetVNIX hz+vmY3Hh7xfATgzjErz7mIBbPED4fqGkVO8b06hxGKjC3/Qcgjow4ShQ+tixZ534oT2 HvpSwrLPeyHzomhYx5bB9gsTnqITvjeC+0AxhTi7CghI/vqiOSHxYU7xKTgoHSuoN2jI kh5Q== X-Gm-Message-State: ALoCoQmWEF4s9zY2wGyTZ8eEh5vAg4ieXd+TShNP99YyMoIqZMhEhX7KupKMBLXiFoSNR1XdR5nzKx/O17l6eVuXBtJmXMb4UkWKGTiXu/H8NgQRkTstygm+tO8wq6Nmrex0FxbzNkkt X-Received: by 10.52.189.193 with SMTP id gk1mr21250219vdc.12.1399251795065; Sun, 04 May 2014 18:03:15 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.52.189.193 with SMTP id gk1mr21250210vdc.12.1399251794796; Sun, 04 May 2014 18:03:14 -0700 (PDT) Received: by 10.221.14.5 with HTTP; Sun, 4 May 2014 18:03:14 -0700 (PDT) In-Reply-To: <20140505015544.FBU81.15005.root@viefep11> References: <20140505015544.FBU81.15005.root@viefep11> Date: Sun, 4 May 2014 21:03:14 -0400 Message-ID: From: Otis Dewitt - NOAA Affiliate To: users Content-Type: multipart/alternative; boundary=001a1133fd5c2e38ac04f89cb2bb X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] php fpm and ProxyPass --001a1133fd5c2e38ac04f89cb2bb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Greetings Lennsen, Something you should know about mod_proxy_fcgi is that currently it doesn= =E2=80=99t support UNIX sockets, so you must start your PHP-FPM process using a TCP port, which is default when you install it. Daniel Garajau wrote a interesting document on this subject: http://garajau.com.br/blog/2013/12/apache-2-4-and-php-fpm-using-mod_proxy_f= cgi/ Hope this helps. Thanks, Otis On Sun, May 4, 2014 at 7:55 PM, wrote: > I would like to set up php fpm and I am experiencing some difficulties > there. > > 1. is it possible to solve that issue described e.g. here? > http://forum.nginx.org/read.php?3,246804,246804 > > 2. assuming that the users executing scripts can not be trusted, how woul= d > one ensure that e.g. open_basedir is respected? > I know that this question is more related to php itself, but maybe you > happen to know the answer there as well. > This is because I do not know how to bind specific settings per-vhost > here, since the given example below does not specify custom arguments, su= ch > as configuration directives or own php.ini files. > > the configuration is e.g. > > > > ... > Options +Indexes > DirectoryIndex index.html index.php > > ProxyPassMatch ^/(.*\.php(/.*)?)$ > unix:/some/path/to/php-fpm.sock|fcgi://foobar/path/to/documentroot > ... > > > > httpd 2.4.9, php 5.5.12, all latest > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --001a1133fd5c2e38ac04f89cb2bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Greetings Lennsen,

Something you s= hould know about mod_proxy_fcgi is that currently it doesn=E2=80=99t suppor= t UNIX sockets,
so you must start your PHP-FPM process using a TC= P port, which is default when you install it.

Daniel Garajau wrote a interesting document on th= is subject:

Hope this helps.

<= div>Thanks,
Otis




On Sun, May 4, 2014 at 7:55 PM, <lenn= sen@chello.at> wrote:
I would like to set up php fpm and I am expe= riencing some difficulties there.

1. is it possible to solve that issue described e.g. here?
=C2=A0http://forum.nginx.org/read.php?3,246804,246804

2. assuming that the users executing scripts can not be trusted, how would = one ensure that e.g. open_basedir is respected?
=C2=A0I know that this question is more related to php itself, but maybe yo= u happen to know the answer there as well.
This is because I do not know how to bind specific settings per-vhost here,= since the given example below does not specify custom arguments, such as c= onfiguration directives or own php.ini files.

the configuration is e.g.


<VirtualHost *:80>
...
=C2=A0Options +Indexes
=C2=A0DirectoryIndex index.html index.php

=C2=A0ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/some/path/to/php-fpm.sock|fcg= i://foobar/path/to/documentroot
...
</VirtualHost>


httpd 2.4.9, php 5.5.12, all latest



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--001a1133fd5c2e38ac04f89cb2bb--