per host php.ini

mike mike503 at gmail.com
Tue Jul 1 22:10:13 MSD 2008


you could manage your instances using php-fpm, and it allows for
certain php.ini directives to be overridden in the conf. heck, it
might even allow (or maybe ask andrei nicely) to use a completely
different .ini for each worker pool.

this .user.ini thing i have not heard of yet - i need to go look that
up myself, that sounds interesting!

On 7/1/08, Marcos Neves <marcos.neves at gmail.com> wrote:
> I was afraid you said that. :(
> I´ll try the new PHP 5.3 .user.ini to see if it works with fastcgi.
>
> On Tue, Jul 1, 2008 at 2:08 PM, Igor Clark <igor at pokelondon.com> wrote:
> > You can run php-cgi instances as FastCGI servers with different
> > configurations (using -c flag to point to different .ini files) on different
> > ports, then refer to them specifically inside server {} contexts in nginx
> > config. e.g.
> >
> >> server {
> >>        server_name     server1;
> >>        location ~ \.php$ {
> >>                fastcgi_pass    192.168.0.1:10001;
> >>        }
> >>        # other stuff ...
> >> }
> >>
> >> server {
> >>        server_name     server2;
> >>        location ~ \.php$ {
> >>                fastcgi_pass    192.168.0.1:10002;
> >>        }
> >>        # other stuff ...
> >>
> >> }
> >
> >
> >
> > On 1 Jul 2008, at 17:49, Marcos Neves wrote:
> >
> >> is it possible to have diferent php.ini configurations for each
> >> virtualhost,
> >> like .htaccess while using mod_php with apache?
> >> If not, there´s any workround?
> >>
> >> --
> >> Marcos Neves
> >> +55 44 3263-8132
> >> +55 44 9918-8488
> >>
> >
> > --
> > Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355 •
> > www.pokelondon.com
> >
> >
> >
> >
> >
>
>
>
> --
> Marcos Neves
> +55 44 3263-8132
> +55 44 9918-8488
>
>


More information about the nginx mailing list