Welcome! Log In Create A New Profile

Advanced

fastcgi_param PHP_ADMIN_VALUE

Posted by Stageline 
Stageline
fastcgi_param PHP_ADMIN_VALUE
July 05, 2010 05:26PM
Hello!

Does anybody have any idea how to activate the option open_basedir /
domain?

This:

location ~ \.php$
{
...
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
domain.hu/";
}

not work for me.

nginx version: nginx/0.7.67
PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun 4 2010 15:42:40)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Jérôme Loyet
Re: fastcgi_param PHP_ADMIN_VALUE
July 05, 2010 06:00PM
2010/7/5 Stageline <stageline@gmail.com>:
> Hello!
>
> Does anybody have any idea how to activate the option open_basedir /
> domain?
>
> This:
>
> location ~ \.php$
> {
>     ...
>     fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
> domain.hu/";
> }
>
> not work for me.

See http://bugs.php.net/bug.php?id=51595 for examples.

I can see you're using suhosin. Can you try to set another PHP value like:

fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";

open_basedir is a special case. If you can try without suhosin it
would be great also.

Thx
++ jerome

>
> nginx version: nginx/0.7.67
> PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>
Illó Gábor
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 03:58AM
2010/7/5 Jérôme Loyet <ml@fatbsd.com>

> 2010/7/5 Stageline <stageline@gmail.com>:
> > Hello!
> >
> > Does anybody have any idea how to activate the option open_basedir /
> > domain?
> >
> > This:
> >
> > location ~ \.php$
> > {
> > ...
> > fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
> > domain.hu/";
> > }
> >
> > not work for me.
>
> See http://bugs.php.net/bug.php?id=51595 for examples.
>
> I can see you're using suhosin. Can you try to set another PHP value like:
>
> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>
> open_basedir is a special case. If you can try without suhosin it
> would be great also.
>
> Thx
> ++ jerome
>
> >
> > nginx version: nginx/0.7.67
> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun 4 2010 15:42:40)
> > Copyright (c) 1997-2009 The PHP Group
> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >
>

Still not work without suhosin patch

PHP 5.3.2 (cli) (built: Jul 6 2010 09:18:22)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/data/mouseoleum.hu
$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
include fastcgi_params;
}

[cgi.fix_pathinfo] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 4
)
Jérôme Loyet
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 03:58AM
2010/7/6 Illó Gábor <stageline@gmail.com>:
> 2010/7/5 Jérôme Loyet <ml@fatbsd.com>
>>
>> 2010/7/5 Stageline <stageline@gmail.com>:
>> > Hello!
>> >
>> > Does anybody have any idea how to activate the option open_basedir /
>> > domain?
>> >
>> > This:
>> >
>> > location ~ \.php$
>> > {
>> >     ...
>> >     fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
>> > domain.hu/";
>> > }
>> >
>> > not work for me.
>>
>> See http://bugs.php.net/bug.php?id=51595 for examples.
>>
>> I can see you're using suhosin. Can you try to set another PHP value like:
>>
>> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>>
>> open_basedir is a special case. If you can try without suhosin it
>> would be great also.
>>
>> Thx
>> ++ jerome
>>
>> >
>> > nginx version: nginx/0.7.67
>> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
>> > Copyright (c) 1997-2009 The PHP Group
>> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>> >
>
> Still not work without suhosin patch

how did you compile 5.3.2 with FPM support ? Which SVN revision did you use ?

>
> PHP 5.3.2 (cli) (built: Jul  6 2010 09:18:22)
> Copyright (c) 1997-2010 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>
>         location ~ \.php$
>         {
>             fastcgi_pass 127.0.0.1:9000;
>             fastcgi_index index.php;
>             fastcgi_param SCRIPT_FILENAME
> /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
>             fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
>             include fastcgi_params;
>         }
>
> [cgi.fix_pathinfo] => Array
> (
>          [global_value] => 1
>          [local_value] => 1
>          [access] => 4
> )
>
>
>
Antony Dovgal
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 04:04AM
On 07/06/2010 11:46 AM, Illó Gábor wrote:
> location ~ \.php$
> {
> fastcgi_pass 127.0.0.1:9000 http://127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /usr/local/www/data/mouseoleum.hu
> http://mouseoleum.hu$fastcgi_script_name;
> fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
> include fastcgi_params;
> }

You're declaring _environment variable_ called "PHP_ADMIN_VALUE", no wonder it doesn't work.

Use FPM config for that:
php_admin_value[open_basedir] = ...

for old-style XML config you can do this:
<value name="php_defines">
<value name="open_basedir">...</value>
</value>
--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Illó Gábor
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 04:12AM
2010/7/6 Jérôme Loyet <ml@fatbsd.com>

> 2010/7/6 Illó Gábor <stageline@gmail.com>:
> > 2010/7/5 Jérôme Loyet <ml@fatbsd.com>
> >>
> >> 2010/7/5 Stageline <stageline@gmail.com>:
> >> > Hello!
> >> >
> >> > Does anybody have any idea how to activate the option open_basedir /
> >> > domain?
> >> >
> >> > This:
> >> >
> >> > location ~ \.php$
> >> > {
> >> > ...
> >> > fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
> >> > domain.hu/";
> >> > }
> >> >
> >> > not work for me.
> >>
> >> See http://bugs.php.net/bug.php?id=51595 for examples.
> >>
> >> I can see you're using suhosin. Can you try to set another PHP value
> like:
> >>
> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
> >>
> >> open_basedir is a special case. If you can try without suhosin it
> >> would be great also.
> >>
> >> Thx
> >> ++ jerome
> >>
> >> >
> >> > nginx version: nginx/0.7.67
> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun 4 2010 15:42:40)
> >> > Copyright (c) 1997-2009 The PHP Group
> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >> >
> >
> > Still not work without suhosin patch
>
> how did you compile 5.3.2 with FPM support ? Which SVN revision did you use
> ?
>
> >
> > PHP 5.3.2 (cli) (built: Jul 6 2010 09:18:22)
> > Copyright (c) 1997-2010 The PHP Group
> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >
> > location ~ \.php$
> > {
> > fastcgi_pass 127.0.0.1:9000;
> > fastcgi_index index.php;
> > fastcgi_param SCRIPT_FILENAME
> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> > fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
> > include fastcgi_params;
> > }
> >
> > [cgi.fix_pathinfo] => Array
> > (
> > [global_value] => 1
> > [local_value] => 1
> > [access] => 4
> > )
> >
> >
> >
>

Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
available for php 5.3.2!

--
Best Regards
Gábor Illó
Jérôme Loyet
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 04:54AM
2010/7/6 Illó Gábor <stageline@gmail.com>:
> 2010/7/6 Jérôme Loyet <ml@fatbsd.com>
>>
>> 2010/7/6 Illó Gábor <stageline@gmail.com>:
>> > 2010/7/5 Jérôme Loyet <ml@fatbsd.com>
>> >>
>> >> 2010/7/5 Stageline <stageline@gmail.com>:
>> >> > Hello!
>> >> >
>> >> > Does anybody have any idea how to activate the option open_basedir /
>> >> > domain?
>> >> >
>> >> > This:
>> >> >
>> >> > location ~ \.php$
>> >> > {
>> >> >     ...
>> >> >     fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
>> >> > domain.hu/";
>> >> > }
>> >> >
>> >> > not work for me.
>> >>
>> >> See http://bugs.php.net/bug.php?id=51595 for examples.
>> >>
>> >> I can see you're using suhosin. Can you try to set another PHP value
>> >> like:
>> >>
>> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>> >>
>> >> open_basedir is a special case. If you can try without suhosin it
>> >> would be great also.
>> >>
>> >> Thx
>> >> ++ jerome
>> >>
>> >> >
>> >> > nginx version: nginx/0.7.67
>> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
>> >> > Copyright (c) 1997-2009 The PHP Group
>> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>> >> >
>> >
>> > Still not work without suhosin patch
>>
>> how did you compile 5.3.2 with FPM support ? Which SVN revision did you
>> use ?
>>
>> >
>> > PHP 5.3.2 (cli) (built: Jul  6 2010 09:18:22)
>> > Copyright (c) 1997-2010 The PHP Group
>> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>> >
>> >         location ~ \.php$
>> >         {
>> >             fastcgi_pass 127.0.0.1:9000;
>> >             fastcgi_index index.php;
>> >             fastcgi_param SCRIPT_FILENAME
>> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
>> >             fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
>> >             include fastcgi_params;
>> >         }
>> >
>> > [cgi.fix_pathinfo] => Array
>> > (
>> >          [global_value] => 1
>> >          [local_value] => 1
>> >          [access] => 4
>> > )
>> >
>> >
>> >
>
> Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
> available for php 5.3.2!

so that's normal behaviour. This feature is only available on FPM.

>
> --
> Best Regards
> Gábor Illó
>
Re: fastcgi_param PHP_ADMIN_VALUE
July 06, 2010 11:28AM
Using fastcgi you can do something similar to this: /usr/bin/spawn-
fcgi -a 127.0.0.1 -p 9001 -u someuser -g somegroup -- /usr/bin/php5-
cgi -d open_basedir=/path/to/directory

On Jul 6, 11:14 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/7/6 Illó Gábor <stagel...@gmail.com>:
>
>
>
>
>
> > 2010/7/6 Jérôme Loyet <m...@fatbsd.com>
>
> >> 2010/7/6 Illó Gábor <stagel...@gmail.com>:
> >> > 2010/7/5 Jérôme Loyet <m...@fatbsd.com>
>
> >> >> 2010/7/5 Stageline <stagel...@gmail.com>:
> >> >> > Hello!
>
> >> >> > Does anybody have any idea how to activate the option open_basedir /
> >> >> > domain?
>
> >> >> > This:
>
> >> >> > location ~ \.php$
> >> >> > {
> >> >> >     ...
> >> >> >     fastcgi_param PHP_ADMIN_VALUE "open_basedir=/usr/local/www/data/
> >> >> > domain.hu/";
> >> >> > }
>
> >> >> > not work for me.
>
> >> >> Seehttp://bugs.php.net/bug.php?id=51595for examples.
>
> >> >> I can see you're using suhosin. Can you try to set another PHP value
> >> >> like:
>
> >> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>
> >> >> open_basedir is a special case. If you can try without suhosin it
> >> >> would be great also.
>
> >> >> Thx
> >> >> ++ jerome
>
> >> >> > nginx version: nginx/0.7.67
> >> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
> >> >> > Copyright (c) 1997-2009 The PHP Group
> >> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>
> >> > Still not work without suhosin patch
>
> >> how did you compile 5.3.2 with FPM support ? Which SVN revision did you
> >> use ?
>
> >> > PHP 5.3.2 (cli) (built: Jul  6 2010 09:18:22)
> >> > Copyright (c) 1997-2010 The PHP Group
> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>
> >> >         location ~ \.php$
> >> >         {
> >> >             fastcgi_pass 127.0.0.1:9000;
> >> >             fastcgi_index index.php;
> >> >             fastcgi_param SCRIPT_FILENAME
> >> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> >> >             fastcgi_param PHP_ADMIN_VALUE "cgi..fix_pathinfo=0";
> >> >             include fastcgi_params;
> >> >         }
>
> >> > [cgi.fix_pathinfo] => Array
> >> > (
> >> >          [global_value] => 1
> >> >          [local_value] => 1
> >> >          [access] => 4
> >> > )
>
> > Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
> > available for php 5.3.2!
>
> so that's normal behaviour. This feature is only available on FPM.
>
>
>
>
>
> > --
> > Best Regards
> > Gábor Illó
Illó Gábor
Re: fastcgi_param PHP_ADMIN_VALUE
July 08, 2010 05:36AM
This example is use Fix directory. I hosted many site, so i think is don't
solve my problem.

2010/7/6 GM <gm@gm.lv>

> Using fastcgi you can do something similar to this: /usr/bin/spawn-
> fcgi -a 127.0.0.1 -p 9001 -u someuser -g somegroup -- /usr/bin/php5-
> cgi -d open_basedir=/path/to/directory
>
> On Jul 6, 11:14 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> > 2010/7/6 Illó Gábor <stagel...@gmail.com>:
> >
> >
> >
> >
> >
> > > 2010/7/6 Jérôme Loyet <m...@fatbsd.com>
> >
> > >> 2010/7/6 Illó Gábor <stagel...@gmail.com>:
> > >> > 2010/7/5 Jérôme Loyet <m...@fatbsd.com>
> >
> > >> >> 2010/7/5 Stageline <stagel...@gmail.com>:
> > >> >> > Hello!
> >
> > >> >> > Does anybody have any idea how to activate the option
> open_basedir /
> > >> >> > domain?
> >
> > >> >> > This:
> >
> > >> >> > location ~ \.php$
> > >> >> > {
> > >> >> > ...
> > >> >> > fastcgi_param PHP_ADMIN_VALUE
> "open_basedir=/usr/local/www/data/
> > >> >> > domain.hu/";
> > >> >> > }
> >
> > >> >> > not work for me.
> >
> > >> >> Seehttp://bugs.php.net/bug.php?id=51595for examples.
> >
> > >> >> I can see you're using suhosin. Can you try to set another PHP
> value
> > >> >> like:
> >
> > >> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
> >
> > >> >> open_basedir is a special case. If you can try without suhosin it
> > >> >> would be great also.
> >
> > >> >> Thx
> > >> >> ++ jerome
> >
> > >> >> > nginx version: nginx/0.7.67
> > >> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun 4 2010 15:42:40)
> > >> >> > Copyright (c) 1997-2009 The PHP Group
> > >> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >
> > >> > Still not work without suhosin patch
> >
> > >> how did you compile 5.3.2 with FPM support ? Which SVN revision did
> you
> > >> use ?
> >
> > >> > PHP 5.3.2 (cli) (built: Jul 6 2010 09:18:22)
> > >> > Copyright (c) 1997-2010 The PHP Group
> > >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >
> > >> > location ~ \.php$
> > >> > {
> > >> > fastcgi_pass 127.0.0.1:9000;
> > >> > fastcgi_index index.php;
> > >> > fastcgi_param SCRIPT_FILENAME
> > >> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> > >> > fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
> > >> > include fastcgi_params;
> > >> > }
> >
> > >> > [cgi.fix_pathinfo] => Array
> > >> > (
> > >> > [global_value] => 1
> > >> > [local_value] => 1
> > >> > [access] => 4
> > >> > )
> >
> > > Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
> > > available for php 5.3.2!
> >
> > so that's normal behaviour. This feature is only available on FPM.
> >
> >
> >
> >
> >
> > > --
> > > Best Regards
> > > Gábor Illó
>



--
Best Regards
Gábor Illó
Re: fastcgi_param PHP_ADMIN_VALUE
July 09, 2010 07:14AM
Then php-fpm wont solve them either, because it is the same thing. I
mean you will have to create new instance for every basedir wou want.

On Jul 8, 12:35 pm, Illó Gábor <stagel...@gmail.com> wrote:
> This example is use Fix directory. I hosted many site, so i think is don't
> solve my problem.
>
> 2010/7/6 GM <g...@gm.lv>
>
>
>
>
>
> > Using fastcgi you can do something similar to this: /usr/bin/spawn-
> > fcgi -a 127.0.0.1 -p 9001 -u someuser -g somegroup -- /usr/bin/php5-
> > cgi -d open_basedir=/path/to/directory
>
> > On Jul 6, 11:14 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> > > 2010/7/6 Illó Gábor <stagel...@gmail.com>:
>
> > > > 2010/7/6 Jérôme Loyet <m...@fatbsd.com>
>
> > > >> 2010/7/6 Illó Gábor <stagel...@gmail.com>:
> > > >> > 2010/7/5 Jérôme Loyet <m...@fatbsd.com>
>
> > > >> >> 2010/7/5 Stageline <stagel...@gmail.com>:
> > > >> >> > Hello!
>
> > > >> >> > Does anybody have any idea how to activate the option
> > open_basedir /
> > > >> >> > domain?
>
> > > >> >> > This:
>
> > > >> >> > location ~ \.php$
> > > >> >> > {
> > > >> >> >     ...
> > > >> >> >     fastcgi_param PHP_ADMIN_VALUE
> > "open_basedir=/usr/local/www/data/
> > > >> >> > domain.hu/";
> > > >> >> > }
>
> > > >> >> > not work for me.
>
> > > >> >> Seehttp://bugs.php.net/bug.php?id=51595forexamples.
>
> > > >> >> I can see you're using suhosin. Can you try to set another PHP
> > value
> > > >> >> like:
>
> > > >> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>
> > > >> >> open_basedir is a special case. If you can try without suhosin it
> > > >> >> would be great also.
>
> > > >> >> Thx
> > > >> >> ++ jerome
>
> > > >> >> > nginx version: nginx/0.7.67
> > > >> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
> > > >> >> > Copyright (c)1997-2009The PHP Group
> > > >> >> > Zend Engine v2.3.0, Copyright (c)1998-2010Zend Technologies
>
> > > >> > Still not work without suhosin patch
>
> > > >> how did you compile 5.3.2 with FPM support ? Which SVN revision did
> > you
> > > >> use ?
>
> > > >> > PHP 5.3.2 (cli) (built: Jul  6 2010 09:18:22)
> > > >> > Copyright (c)1997-2010The PHP Group
> > > >> > Zend Engine v2.3.0, Copyright (c)1998-2010Zend Technologies
>
> > > >> >         location ~ \.php$
> > > >> >         {
> > > >> >             fastcgi_pass 127.0.0.1:9000;
> > > >> >             fastcgi_index index.php;
> > > >> >             fastcgi_param SCRIPT_FILENAME
> > > >> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> > > >> >             fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
> > > >> >             include fastcgi_params;
> > > >> >         }
>
> > > >> > [cgi.fix_pathinfo] => Array
> > > >> > (
> > > >> >          [global_value] => 1
> > > >> >          [local_value] => 1
> > > >> >          [access] => 4
> > > >> > )
>
> > > > Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
> > > > available for php 5.3.2!
>
> > > so that's normal behaviour. This feature is only available on FPM.
>
> > > > --
> > > > Best Regards
> > > > Gábor Illó
>
> --
> Best Regards
> Gábor Illó
Antony Dovgal
Re: fastcgi_param PHP_ADMIN_VALUE
July 09, 2010 07:18AM
On 07/09/2010 03:12 PM, GM wrote:
> Then php-fpm wont solve them either, because it is the same thing. I
> mean you will have to create new instance for every basedir wou want.

FPM does solve it, because you can create several FPM pools running under different
configuration and serving different web-sites.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
grigori
Re: fastcgi_param PHP_ADMIN_VALUE
July 10, 2010 07:24AM
I would try /etc/php.d/site.conf files autoincluded in php.ini
and have a section
[HOST=site.com]
open_basedir = /home/site.com/http_root
in them

On 9 июл, 14:12, GM <g...@gm.lv> wrote:
> Then php-fpm wont solve them either, because it is the same thing. I
> mean you will have to create new instance for every basedir wou want.
>
> On Jul 8, 12:35 pm, Illó Gábor <stagel...@gmail.com> wrote:
>
>
>
> > This example is use Fix directory. I hosted many site, so i think is don't
> > solve my problem.
>
> > 2010/7/6 GM <g...@gm.lv>
>
> > > Using fastcgi you can do something similar to this: /usr/bin/spawn-
> > > fcgi -a 127.0.0.1 -p 9001 -u someuser -g somegroup -- /usr/bin/php5-
> > > cgi -d open_basedir=/path/to/directory
>
> > > On Jul 6, 11:14 am, Jérôme Loyet <m...@fatbsd.com> wrote:
> > > > 2010/7/6 Illó Gábor <stagel...@gmail.com>:
>
> > > > > 2010/7/6 Jérôme Loyet <m...@fatbsd.com>
>
> > > > >> 2010/7/6 Illó Gábor <stagel...@gmail.com>:
> > > > >> > 2010/7/5 Jérôme Loyet <m...@fatbsd.com>
>
> > > > >> >> 2010/7/5 Stageline <stagel...@gmail.com>:
> > > > >> >> > Hello!
>
> > > > >> >> > Does anybody have any idea how to activate the option
> > > open_basedir /
> > > > >> >> > domain?
>
> > > > >> >> > This:
>
> > > > >> >> > location ~ \.php$
> > > > >> >> > {
> > > > >> >> >     ...
> > > > >> >> >     fastcgi_param PHP_ADMIN_VALUE
> > > "open_basedir=/usr/local/www/data/
> > > > >> >> > domain.hu/";
> > > > >> >> > }
>
> > > > >> >> > not work for me.
>
> > > > >> >> Seehttp://bugs.php.net/bug.php?id=51595forexamples.
>
> > > > >> >> I can see you're using suhosin. Can you try to set another PHP
> > > value
> > > > >> >> like:
>
> > > > >> >> fastcgi_param PHP_ADMIN_VALUE "pcre.backtrack_limit=424242";
>
> > > > >> >> open_basedir is a special case. If you can try without suhosin it
> > > > >> >> would be great also.
>
> > > > >> >> Thx
> > > > >> >> ++ jerome
>
> > > > >> >> > nginx version: nginx/0.7.67
> > > > >> >> > PHP 5.3.2 with Suhosin-Patch (cli) (built: Jun  4 2010 15:42:40)
> > > > >> >> > Copyright (c)1997-2009The PHP Group
> > > > >> >> > Zend Engine v2.3.0, Copyright (c)1998-2010Zend Technologies
>
> > > > >> > Still not work without suhosin patch
>
> > > > >> how did you compile 5.3.2 with FPM support ? Which SVN revision did
> > > you
> > > > >> use ?
>
> > > > >> > PHP 5.3.2 (cli) (built: Jul  6 2010 09:18:22)
> > > > >> > Copyright (c)1997-2010The PHP Group
> > > > >> > Zend Engine v2.3.0, Copyright (c)1998-2010Zend Technologies
>
> > > > >> >         location ~ \.php$
> > > > >> >         {
> > > > >> >             fastcgi_pass 127.0.0..1:9000;
> > > > >> >             fastcgi_index index.php;
> > > > >> >             fastcgi_param SCRIPT_FILENAME
> > > > >> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> > > > >> >             fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
> > > > >> >             include fastcgi_params;
> > > > >> >         }
>
> > > > >> > [cgi.fix_pathinfo] => Array
> > > > >> > (
> > > > >> >          [global_value] => 1
> > > > >> >          [local_value] => 1
> > > > >> >          [access] => 4
> > > > >> > )
>
> > > > > Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
> > > > > available for php 5.3.2!
>
> > > > so that's normal behaviour. This feature is only available on FPM.
>
> > > > > --
> > > > > Best Regards
> > > > > Gábor Illó
>
> > --
> > Best Regards
> > Gábor Illó
Re: fastcgi_param PHP_ADMIN_VALUE
July 10, 2010 07:32AM
I guess you can do the same using fastcgi aproach. Just run more than
one instance with different settings and on different port. I like to
use fpm because of nice configuration and better proccessing, but in
general you can do the same with fastcgi as fpm.

One thing I haven't discovered yet is it possible to restart one
specific pool not all of them.


On Jul 9, 2:16 pm, Antony Dovgal <t...@daylessday.org> wrote:
> On 07/09/2010 03:12 PM, GM wrote:
>
> > Then php-fpm wont solve them either, because it is the same thing. I
> > mean you will have to create new instance for every basedir wou want.
>
> FPM does solve it, because you can create several FPM pools running under different
> configuration and serving different web-sites.
>
> --
> Wbr,
> Antony Dovgal
> ---http://pinba.org- realtime statistics for PHP
Re: fastcgi_param PHP_ADMIN_VALUE
July 13, 2010 03:41AM
>> how did you compile 5.3.2 with FPM support ? Which SVN revision did you
>> use ?
>>
>> >
>> > PHP 5.3.2 (cli) (built: Jul 6 2010 09:18:22)
>> > Copyright (c) 1997-2010 The PHP Group
>> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>> >
>> > location ~ \.php$
>> > {
>> > fastcgi_pass 127.0.0.1:9000;
>> > fastcgi_index index.php;
>> > fastcgi_param SCRIPT_FILENAME
>> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
>> > fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
_____________________________________________________________________________

[url=http://www.stow-group.com/EN/products/palletised-goods/conventional-pallet-racking-2511.aspx] Pallet Racking[/url] | [url=http://www.shoe-envy.co.uk/Fitflop_Boots]Fitflop Boots[/url]
Illó Gábor
Re: fastcgi_param PHP_ADMIN_VALUE
July 13, 2010 08:44AM
Oh. I don't use php-fpm, i use spawn-fcgi, because freebsd fpm port not
available for php 5.3.2!

2010/7/13 infotechproximity8 <nginx-forum@nginx.us>

> >> how did you compile 5.3.2 with FPM support ? Which SVN revision did
> you
> >> use ?
> >>
> >> >
> >> > PHP 5.3.2 (cli) (built: Jul 6 2010 09:18:22)
> >> > Copyright (c) 1997-2010 The PHP Group
> >> > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> >> >
> >> > location ~ \.php$
> >> > {
> >> > fastcgi_pass 127.0.0.1:9000;
> >> > fastcgi_index index.php;
> >> > fastcgi_param SCRIPT_FILENAME
> >> > /usr/local/www/data/mouseoleum.hu$fastcgi_script_name;
> >> > fastcgi_param PHP_ADMIN_VALUE "cgi.fix_pathinfo=0";
>
> _____________________________________________________________________________
>
> [url=
> http://www.stow-group.com/EN/products/palletised-goods/conventional-pallet-racking-2511.aspx
> ]
> Pallet Racking[/url] |
> [url=http://www.shoe-envy.co.uk/Fitflop_Boots]Fitflop Boots[/url]
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?3,105656,108198#msg-108198
>
>


--
Best Regards
Gábor Illó
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
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