Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

[email protected] (Matijn Woudt)
Newsgroups php.general
Message-ID <CAC_gtuPjYR+kwxvxcj9HvEdKPPAH-Zck8jf+PjkQpPTYn+G=iA@mail.gmail.com>
On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile <[email protected]> wrote:

> Hi,
>
> In Apache 2.2 <http://httpd.apache.org/docs/2.2/> forward all request that
> point to phisical .php file to PHP-FPM <http://php-fpm.org/> is as follow:
>
> LoadModule fastcgi_module <http://www.fastcgi.com/> modules/mod_fastcgi.so
>
> FastCGIExternalServer /usr/sbin/php-fpm -socket
> /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
> .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
> /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
>
>  But in Apache 2.4 <http://httpd.apache.org/docs/2.4/> is different, I'm
> following the tutorial in Apache Wiki
> <http://wiki.apache.org/httpd/PHP-FPM> but
> I don't understand as enable PHP for all virtual host, not each one.
>
> I search in PHP documentation, there is not mention about install on Apache
> 2.4:
>
>    - Install PHP on Apache 2.x on Unix
> systems<http://www.php.net/manual/en/install.unix.apache2.php>
>    - PHP-FPM Install <http://www.php.net/manual/en/install.fpm.install.php
> >
>    - PHP-FPM Documentation <http://php-fpm.org/wiki/Documentation>
>
> This question was initially posted on stackoverflow:
>
>
> http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
>
> Thank you for your help.
>
> Saludos,
> José Nobile
>


Hi,

You should follow the instructions on the Apache site, and just place all
settings outside of the virtualhost (eg. in httpd.conf).

- Matijn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.