[prev in list] [next in list] [prev in thread] [next in thread]
List: cherokee
Subject: Re: [Cherokee] custom PHP variables
From: Serg Smirnoff <sergey.a.smirnov () gmail ! com>
Date: 2010-02-23 12:38:25
Message-ID: d85efea31002230438o4d2116f0h7bebc7cf071b0135 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks for the tips!
2010/2/23 Juan J. <reidrac@usebox.net>
> El mar, 23-02-2010 a las 14:13 +0300, Serg Smirnoff escribió:
> > Oh, yeah!
> > I'll create a dedicated Information Sources for each virtual host,
> > then modify php-fpm config to work with a custom php.ini which I can
> > put in to the customer home directory so hi can change anything hi
> > want there!
> >
> > Great deal, thanks!
>
> You can use the same wrapper for all the sources:
>
> #!/bin/sh
>
> export PHP_FCGI_MAX_REQUESTS=250
> export PHP_FCGI_CHILDREN=4
>
> exec /usr/local/bin/php-cgi $@
>
> # EOF
>
> It just calls the real php-cgi with the ENV variables to customize the
> fcgi behavior, passing the parameters along.
>
> So you can use the same wrapper, just with different -c path/php.ini
> option.
>
> Regards,
>
> Juanjo
>
> --
> jjm's home: http://www.usebox.net/jjm/
> blackshell: http://blackshell.usebox.net/
> ramble on: http://rambleon.usebox.net/
>
>
--
Serg Smirnov
email/xmpp: Sergey.A.Smirnov@Gmail.com
Charles de Gaulle<http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html>
- "The better I get to know men, the more I find myself loving dogs."
[Attachment #5 (text/html)]
Thanks for the tips!<br><br><div class="gmail_quote">2010/2/23 Juan J. <span \
dir="ltr"><<a href="mailto:reidrac@usebox.net">reidrac@usebox.net</a>></span><br><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;">
El mar, 23-02-2010 a las 14:13 +0300, Serg Smirnoff escribió:<br>
<div class="im">> Oh, yeah!<br>
> I'll create a dedicated Information Sources for each virtual host,<br>
> then modify php-fpm config to work with a custom php.ini which I can<br>
> put in to the customer home directory so hi can change anything hi<br>
> want there!<br>
><br>
> Great deal, thanks!<br>
<br>
</div>You can use the same wrapper for all the sources:<br>
<br>
#!/bin/sh<br>
<br>
export PHP_FCGI_MAX_REQUESTS=250<br>
export PHP_FCGI_CHILDREN=4<br>
<br>
exec /usr/local/bin/php-cgi $@<br>
<br>
# EOF<br>
<br>
It just calls the real php-cgi with the ENV variables to customize the<br>
fcgi behavior, passing the parameters along.<br>
<br>
So you can use the same wrapper, just with different -c path/php.ini<br>
option.<br>
<br>
Regards,<br>
<div><div></div><div class="h5"><br>
Juanjo<br>
<br>
--<br>
jjm's home: <a href="http://www.usebox.net/jjm/" \
target="_blank">http://www.usebox.net/jjm/</a><br>
blackshell: <a href="http://blackshell.usebox.net/" \
target="_blank">http://blackshell.usebox.net/</a><br> ramble on: <a \
href="http://rambleon.usebox.net/" \
target="_blank">http://rambleon.usebox.net/</a><br> <br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Serg \
Smirnov<br>email/xmpp: Sergey.A.Smirnov@Gmail.com<br><br><a \
href="http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html" \
target="_blank">Charles de Gaulle</a> - "The better I get to know men, the \
more I find myself loving dogs."
_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic