Re: Re: php-fpm and apache
| From: | Curtis Maurand | Date: | Thu, 28 Dec 2017 11:13:18 +0000 |
| Subject: | Re: Re: php-fpm and apache | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326300@lists.php.net to get a copy of this message | ||
I set up a host using ispconfig which does it this way. It solves a whole bunch of security and
file permission problems that I'd been having with cms engines and such because it runs
everything under the site owner rather than www-data. It really works pretty well. If you were
running tomcat or mono, they're also done as a proxy.
On December 27, 2017 11:15:22 AM EST, "@lbutlr" <kremels@kreme.com> wrote:
>Hi, I hate to repost, but I did not receive this message back from the
>list, so I am unsure it got posted. So it's not a complete repeat, I've
>added a little information.
>
>I have php working within Apache 2.4 by adding the Proxy method to the
>virtual host, but am holding off on doing this for all the virtual
>hosts if I can avoid it.
>
> DocumentRoot /usr/local/www/roundcube/
>ProxyPassMatch ^/(.*\.php)$
>fcgi://127.0.0.1:9000/usr/local/www/roundcube/$1
>
>I suppose I could write a quick script to automate this.
>
>On 26 Dec 2017, at 15:31, @lbutlr <kremels@kreme.com> wrote:
>> I'm reading a bunch of writre-ups on using php in apache 2.4 and
>everything is coming down very much against using mod_php as I've been
>doing for… well, ages. But the configuration at setup for using php-fpm
>seems unnecessarily convoluted.
>>
>> As I understand it, you setup a proxy and then send php files via
>that proxy, which means adjusting every vhost on the server.
>>
>> Is there a way to setup php-amp so that it basically works the way
>mod-php did, in that all .php files are processed simply based on their
>extension?
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.