Welcome! Log In Create A New Profile

Advanced

Re: Run time php variable change

September 15, 2016 03:50AM
Great. Thank you.

On Thu, Sep 15, 2016 at 4:45 PM, basti <black.fledermaus@arcor.de> wrote:

> It should work per location. I have nothing found in the docs at the
> moment.
> But be warned if you use more than one value here you must do something
> like
>
> fastcgi_param PHP_VALUE "register_globals=0
> display_errors=0";
>
> or
>
> fastcgi_param PHP_VALUE "register_globals=0\ndisplay_errors=0";
>
> On 15.09.2016 09:26, Tseveendorj Ochirlantuu wrote:
> > Hello,
> >
> > Basti thank you for help.
> >
> > Does this override system wide or it applied to /foo location ?
> >
> > Best regards,
> > Tseveen
> >
> > On Thu, Sep 15, 2016 at 4:20 PM, basti <black.fledermaus@arcor.de
> > <mailto:black.fledermaus@arcor.de>> wrote:
> >
> > Hello,
> >
> > you can use "fastcgi_param PHP_VALUE" to change PHP values.
> >
> > For example:
> >
> > location /foo {
> >
> > location ~ ^(.*.\.php)(.*)$ {
> > fastcgi_buffers 4 256k;
> > fastcgi_buffer_size 128k;
> > fastcgi_param PHP_VALUE "max_execution_time = 60";
> > }
> > }
> >
> > Best Regards,
> > Basti
> >
> >
> > On 15.09.2016 02:41, Tseveendorj Ochirlantuu wrote:
> > > Hello,
> > >
> > > I try to explain what I want to do. I have website which is needed
> php
> > > max_execution_time should be different on action.
> > >
> > > default max_execution_time = 30 seconds
> > >
> > > but I need to increase execution time 60 seconds on some location
> > or action
> > >
> > > http://example.com/request
> > >
> > > Is it possible to do that on nginx to php-fpm ?
> > >
> > > Regards
> > >
> > >
> > > _______________________________________________
> > > nginx mailing list
> > > nginx@nginx.org <mailto:nginx@nginx.org>
> > > http://mailman.nginx.org/mailman/listinfo/nginx
> > http://mailman.nginx.org/mailman/listinfo/nginx
> > >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org <mailto:nginx@nginx.org>
> > http://mailman.nginx.org/mailman/listinfo/nginx
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
> >
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Run time php variable change

Eberx September 14, 2016 08:44PM

Re: Run time php variable change

basti September 15, 2016 03:22AM

Re: Run time php variable change

Eberx September 15, 2016 03:28AM

Re: Run time php variable change

Eberx September 15, 2016 03:50AM

Re: Run time php variable change

basti September 15, 2016 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready