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

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 11:58 PM, Jose Nobile  wrote:

> But we have two process manager, in Apache with mod_fastcgi and PHP-FPM?
>
>
> Saludos,
> José Nobile
>
>
>
I'm not that familiar with PHP-FPM, but how would that be different from
your Apache 2.2 setup?


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

2013-04-04 Thread Jose Nobile
But we have two process manager, in Apache with mod_fastcgi and PHP-FPM?


Saludos,
José Nobile


On Thu, Apr 4, 2013 at 4:27 PM, Matijn Woudt  wrote:

>
>
>
> On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile wrote:
>
>> How?
>>
>> If is required set the website path to PHP-FPM, from Apache Wiki:
>>
>> ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1
>>
>>
>>
>>
>> Saludos,
>> José Nobile
>>
>>
>>
> with mod_proxy_fcgi you indeed need this line in each vhost. If you don't
> want this, then you need to use something else, like mod_fastcgi or
> mod_cgid?
> mod_cgid should work out of the box, with mod_fastci you might to compile
> this version for Apache 2.4:
> https://github.com/ByteInternet/libapache-mod-fastcgi
>
> - Matijn
>


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

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile  wrote:

> How?
>
> If is required set the website path to PHP-FPM, from Apache Wiki:
>
> ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1
>
>
>
>
> Saludos,
> José Nobile
>
>
>
with mod_proxy_fcgi you indeed need this line in each vhost. If you don't
want this, then you need to use something else, like mod_fastcgi or
mod_cgid?
mod_cgid should work out of the box, with mod_fastci you might to compile
this version for Apache 2.4:
https://github.com/ByteInternet/libapache-mod-fastcgi

- Matijn


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

2013-04-04 Thread Jose Nobile
How?

If is required set the website path to PHP-FPM, from Apache Wiki:

ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1




Saludos,
José Nobile


On Thu, Apr 4, 2013 at 3:15 PM, Matijn Woudt  wrote:

> On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile 
> wrote:
>
> > Hi,
> >
> > In Apache 2.2  forward all request
> that
> > point to phisical .php file to PHP-FPM  is as
> follow:
> >
> > LoadModule fastcgi_module 
> 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  is different, I'm
> > following the tutorial in Apache Wiki
> >  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
> >- PHP-FPM Install <
> http://www.php.net/manual/en/install.fpm.install.php
> > >
> >- PHP-FPM 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
>


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

2013-04-04 Thread Matijn Woudt
On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile  wrote:

> Hi,
>
> In Apache 2.2  forward all request that
> point to phisical .php file to PHP-FPM  is as follow:
>
> LoadModule fastcgi_module  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  is different, I'm
> following the tutorial in Apache Wiki
>  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
>- PHP-FPM Install  >
>- PHP-FPM 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


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

2013-04-04 Thread Jose Nobile
Hello, I wrote the question differently:

How to redirect requests for .php files to PHP-FPM for all virtual hosts in
Apache 
2.4?<http://stackoverflow.com/questions/15773901/how-to-redirect-requests-for-php-files-to-php-fpm-for-all-virtual-hosts-in-apac>

Thank you for your help.


Saludos,
José Nobile


On Wed, Apr 3, 2013 at 6:50 PM, Jose Antonio Nobile Rendon <
jose.nob...@gmail.com> wrote:

> How to forward all request to files .php of any virtual host to
> PHP-FPM in Apache 2.4? Not each one.
>
> Saludos,
> Jose Nobile
> -Mensaje original-
> De: tamouse mailing lists
> Enviado:  03/04/2013, 6:35  PM
> Para: Jose Nobile
> Cc: php-general@lists.php.net
> Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all
> virtual host
>
>
> Sorry, in all of that, I don't see what the question is?
>
> On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile  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
>


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

2013-04-03 Thread Jose Antonio Nobile Rendon
How to forward all request to files .php of any virtual host to
PHP-FPM in Apache 2.4? Not each one.

Saludos,
Jose Nobile
-Mensaje original-
De: tamouse mailing lists
Enviado:  03/04/2013, 6:35  PM
Para: Jose Nobile
Cc: php-general@lists.php.net
Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all
virtual host


Sorry, in all of that, I don't see what the question is?

On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile  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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2013-04-03 Thread tamouse mailing lists
Sorry, in all of that, I don't see what the question is?

On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile  wrote:
> Hi,
>
> In Apache 2.2  forward all request that
> point to phisical .php file to PHP-FPM  is as follow:
>
> LoadModule fastcgi_module  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  is different, I'm
> following the tutorial in Apache Wiki
>  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
>- PHP-FPM Install 
>- PHP-FPM 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2013-04-03 Thread Jose Nobile
Hi,

In Apache 2.2  forward all request that
point to phisical .php file to PHP-FPM  is as follow:

LoadModule fastcgi_module  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  is different, I'm
following the tutorial in Apache Wiki
 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
   - PHP-FPM Install 
   - PHP-FPM 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