Mailing List Archive

PHP Custom Environment Variables
Hello *,
trying to install roundcube on a debian squeeze with cherokee 1.0.8.

judging from the .htaccess that comes with roundcube, i need to pass

php_flag display_errors Off
php_flag log_errors On
# php_value error_log logs/errors
php_value upload_max_filesize 5M
php_value post_max_size 6M
php_value memory_limit 64M
php_flag zlib.output_compression Off
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag zend.ze1_compatibility_mode Off
php_flag suhosin.session.encrypt Off
#php_value session.cookie_path /
php_flag session.auto_start Off
php_value session.gc_maxlifetime 21600
php_value session.gc_divisor 500
php_value session.gc_probability 1
# http://bugs.php.net/bug.php?id=30766
php_value mbstring.func_overload 0

to the PHP interpreter for this directory.

especially php_flag suhosin.session.encrypt Off
seems crucial.

I tried every possible combination of putting those variables in the fields
of the virtual server, but a phpinfo(); shows suhosin.session.encrypt on

What am i missing?

Cheers,
Oliver



--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: PHP Custom Environment Variables [ In reply to ]
On 01/30/13 16:10, chief_wrench wrote:
> What am i missing?

1) There is a more stable version of Cherokee in GitHub
2) You should use php.ini to set these variables for your php-fpm proces

Stefan

_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: PHP Custom Environment Variables [ In reply to ]
On 01/30/13 17:53, chief_wrench wrote:
>> 2) You should use php.ini to set these variables for your php-fpm proces
>
> but... but... these settings will apply to all virtual servers then.
> will the current version be able to handle this?

This is a PHP limitation, but nothing limits you to start a specific php
instance for that specific virtual server that uses your specific
php.ini file.

Stefan

_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: PHP Custom Environment Variables [ In reply to ]
> 1) There is a more stable version of Cherokee in GitHub

ok, will reinstall whole webserver. sigh. i hoped to get this working
with the stock squeeze-cherokee.

> 2) You should use php.ini to set these variables for your php-fpm proces

but... but... these settings will apply to all virtual servers then.
will the current version be able to handle this?



cheers,
oliver




--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706773.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
Re: PHP Custom Environment Variables [ In reply to ]
If you're using php-fpm you can create separate pools each with their own
separate php.ini settings.

More info: https://github.com/perusio/php-fpm-example-config

-Locke

On Wed, Jan 30, 2013 at 11:53 AM, Stefan de Konink <stefan@konink.de> wrote:

> On 01/30/13 17:53, chief_wrench wrote:
> >> 2) You should use php.ini to set these variables for your php-fpm proces
> >
> > but... but... these settings will apply to all virtual servers then.
> > will the current version be able to handle this?
>
> This is a PHP limitation, but nothing limits you to start a specific php
> instance for that specific virtual server that uses your specific
> php.ini file.
>
> Stefan
>
> _______________________________________________
> Cherokee mailing list
> Cherokee@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
Re: PHP Custom Environment Variables [ In reply to ]
hello everybody,
thanks for your support.
As i read through the mail archive, i learned that the ubuntu packages
are much more current.

I would rather use aptitude for my everyday housekeeping than gitting
and compiling, if you know what i mean.

would you guys consider it a good idea to switch from debian to ubuntu
for using cherokee and php5-fpm?

greetings,
oliver





--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706778.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
Re: PHP Custom Environment Variables [ In reply to ]
Well, Gunnar and Alvaro don't maintain the package anymore. I don't know about Leonel. (See maintainer at http://packages.ubuntu.com/precise/cherokee) Further, I think that the version in the Ubuntu repositories represents the cherokee package in Debian's unstable repository (that has been removed a while ago). So I believe trading Debian for Ubuntu is like trading a a dead and old chicken, for a dead (but not so old) chicken *g*

So, no, I don't think switching to Ubuntu for the sake of a newer version, is a good idea.

Also, that a lot of bugfixes happened and the current version is more stable! Really, go for compiling. If you follow my advise, I mailed you earlier, you'll be fine. It looks like a lot of work, but it actually _isn't_ once you did it one time and got comfy with it!

Stadtpirat



________________________________
Von: chief_wrench <oq@hirsa.de>
An: cherokee@lists.octality.com
Gesendet: 23:18 Donnerstag, 31.Januar 2013
Betreff: Re: [Cherokee] PHP Custom Environment Variables


hello everybody,
thanks for your support.
As i read through the mail archive, i learned that the ubuntu packages
are much more current.

I would rather use aptitude for my everyday housekeeping than gitting
and compiling, if you know what i mean.

would you guys consider it a good idea to switch from debian to ubuntu
for using cherokee and php5-fpm?

greetings,
oliver


________________________________
View this message in context: Re: [Cherokee] PHP Custom Environment Variables
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.

_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: PHP Custom Environment Variables [ In reply to ]
I just installed php5-fpm 5.3.10 and cherokee 1.2.101 in ubuntu precise
with a few commands and clicks. thats a far better experience than in
debian. i'll go with that.

The packages were, at least on release, considered stable enough for
production.

if they now are a bit outdateted, well, then we will have to talk about
automated .deb-packaging and maintaining own repositories. maybe in
another thread. i wonder how much work this would be...

So, if this is a dead chicken, it is still twitching amazingly fast!
feels like in the monty python sketch, just with reversed roles and
different birds. (naaah, its not dead, its just sleeping)

oliver



Am 01.02.13 01:11, schrieb - - [via Cherokee Web Server - General]:
> Well, Gunnar and Alvaro don't maintain the package anymore. I don't know
> about Leonel. (See maintainer at
> http://packages.ubuntu.com/precise/cherokee) Further, I think that the
> version in the Ubuntu repositories represents the cherokee package in
> Debian's unstable repository (that has been removed a while ago). So I
> believe trading Debian for Ubuntu is like trading a a dead and old
> chicken, for a dead (but not so old) chicken *g*
>
> So, no, I don't think switching to Ubuntu for the sake of a newer
> version, is a good idea.
>
> Also, that a lot of bugfixes happened and the current version is more
> stable! Really, go for compiling. If you follow my advise, I mailed you
> earlier, you'll be fine. It looks like a lot of work, but it actually
> _isn't_ once you did it one time and got comfy with it!
>
> Stadtpirat
>
> ------------------------------------------------------------------------
> *Von:* chief_wrench <[hidden email]
> </user/SendEmail.jtp?type=node&node=5706779&i=0>>
> *An:* [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=1>
> *Gesendet:* 23:18 Donnerstag, 31.Januar 2013
> *Betreff:* Re: [Cherokee] PHP Custom Environment Variables
>
> hello everybody,
> thanks for your support.
> As i read through the mail archive, i learned that the ubuntu packages
> are much more current.
>
> I would rather use aptitude for my everyday housekeeping than gitting
> and compiling, if you know what i mean.
>
> would you guys consider it a good idea to switch from debian to ubuntu
> for using cherokee and php5-fpm?
>
> greetings,
> oliver
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: [Cherokee] PHP Custom Environment
> Variables
> <http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706778.html>
> Sent from the Cherokee Web Server - General mailing list archive
> <http://cherokee-web-server-general.1049476.n5.nabble.com/> at
> Nabble.com <http://nabble.com/>.
>
> _______________________________________________
> Cherokee mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=2>
> http://lists.octality.com/listinfo/cherokee
>
>
>
> _______________________________________________
> Cherokee mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=3>
> http://lists.octality.com/listinfo/cherokee
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706779.html
>
> To unsubscribe from PHP Custom Environment Variables, click here
> <http://cherokee-web-server-general.1049476.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5706771&code=b3FAaGlyc2EuZGV8NTcwNjc3MXwxMDIzMTk3OTk4>.
> NAML
> <http://cherokee-web-server-general.1049476.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706780.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
Re: PHP Custom Environment Variables [ In reply to ]
>
> This is a PHP limitation

Not any more :). Since PHP 5.3, you can put host sections in the php.ini
file, which means you no longer need separate pools for different settings
per server. See
http://www.php.net/manual/en/ini.sections.php#ini.per-hostfor more
information

In this case, you could add something like this to the bottom of your
php.ini file:
[HOST=webmail.example.com]
suhosin.session.encrypt=Off
; And whatever else you need

Alternatively you can use a path instead of host:
[PATH=/var/www/webmail]
...etc...


On Thu, Jan 31, 2013 at 3:57 AM, Locke Bircher <locke@gigbureau.com> wrote:

> If you're using php-fpm you can create separate pools each with their own
> separate php.ini settings.
>
> More info: https://github.com/perusio/php-fpm-example-config
>
> -Locke
>
>
> On Wed, Jan 30, 2013 at 11:53 AM, Stefan de Konink <stefan@konink.de>wrote:
>
>> On 01/30/13 17:53, chief_wrench wrote:
>> >> 2) You should use php.ini to set these variables for your php-fpm
>> proces
>> >
>> > but... but... these settings will apply to all virtual servers then.
>> > will the current version be able to handle this?
>>
>> This is a PHP limitation, but nothing limits you to start a specific php
>> instance for that specific virtual server that uses your specific
>> php.ini file.
>>
>> Stefan
>>
>> _______________________________________________
>> Cherokee mailing list
>> Cherokee@lists.octality.com
>> http://lists.octality.com/listinfo/cherokee
>>
>
>
> _______________________________________________
> Cherokee mailing list
> Cherokee@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
>
Re: PHP Custom Environment Variables [ In reply to ]
Don't get me wrong. The Version ist running stable, or it wouldn't be in the Ubuntu repositories.

Some things that happened since October 18th, 2011 (v1.2.101) are:

- Fix SSL POST REQUESTS break on Chrome 15 (#1284 Google)
- Fix error when compiling with --with-ffmpeg (#39)
- Fix Disabling SSL Compression might prevent an SSL CRIME attack.


More here:

https://github.com/cherokee/webserver/commits/master?page=1


And since the last release of the packages is from October 26th, 2011, (and Debian stable is way older) I don't think anyone is currently maintaining the packages. Hence the "dead chicken". Cherokee itself, of course, is alive.

> if they now are a bit outdateted, well, then we will have to talk about
> automated .deb-packaging and maintaining own repositories. maybe in
> another thread. i wonder how much work this would be...

I peeked into some articles about becoming a maintainer, but it looked like much more work than I am willing to invest, plus I wasn't sure if I have the skills, so I dropped it. That's why I can't respond to that. If you like to give it a shot, this would be a starting point: http://mentors.debian.net/intro-maintainers

One of the discussions about packages:
http://lists.octality.com/pipermail/cherokee/2012-November/015664.html


Stadtpirat



________________________________
Von: chief_wrench <oq@hirsa.de>
An: cherokee@lists.octality.com
Gesendet: 8:30 Freitag, 1.Februar 2013
Betreff: Re: [Cherokee] PHP Custom Environment Variables


I just installed php5-fpm 5.3.10 and cherokee 1.2.101 in ubuntu precise
with a few commands and clicks. thats a far better experience than in
debian. i'll go with that.

The packages were, at least on release, considered stable enough for
production.

if they now are a bit outdateted, well, then we will have to talk about
automated .deb-packaging and maintaining own repositories. maybe in
another thread. i wonder how much work this would be...

So, if this is a dead chicken, it is still twitching amazingly fast!
feels like in the monty python sketch, just with reversed roles and
different birds. (naaah, its not dead, its just sleeping)

oliver



Am 01.02.13 01:11, schrieb - - [via Cherokee Web Server - General]:

> Well, Gunnar and Alvaro don't maintain the package anymore. I don't know
> about Leonel. (See maintainer at
> http://packages.ubuntu.com/precise/cherokee) Further, I think that the
> version in the Ubuntu repositories represents the cherokee package in
> Debian's unstable repository (that has been removed a while ago). So I
> believe trading Debian for Ubuntu is like trading a a dead and old
> chicken, for a dead (but not so old) chicken *g*
>
> So, no, I don't think switching to Ubuntu for the sake of a newer
> version, is a good idea.
>
> Also, that a lot of bugfixes happened and the current version is more
> stable! Really, go for compiling. If you follow my advise, I mailed you
> earlier, you'll be fine. It looks like a lot of work, but it actually
> _isn't_ once you did it one time and got comfy with it!
>
> Stadtpirat
>
> ------------------------------------------------------------------------
> *Von:* chief_wrench <[hidden email]
> </user/SendEmail.jtp?type=node&node=5706779&i=0>>
> *An:* [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=1>
> *Gesendet:* 23:18 Donnerstag, 31.Januar 2013
> *Betreff:* Re: [Cherokee] PHP Custom Environment Variables
>
> hello everybody,
> thanks for your support.
> As i read through the mail archive, i learned that the ubuntu packages
> are much more current.
>
> I would rather use aptitude for my everyday housekeeping than gitting
> and compiling, if you know what i mean.
>
> would you guys consider it a good idea to switch from debian to ubuntu
> for using cherokee and php5-fpm?
>
> greetings,
> oliver
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: [Cherokee] PHP Custom Environment
> Variables
> <http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706778.html>
> Sent from the Cherokee Web Server - General mailing list archive
> <http://cherokee-web-server-general.1049476.n5.nabble.com/> at
> Nabble.com <http://nabble.com/>.
>
> _______________________________________________
> Cherokee mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=2>
> http://lists.octality.com/listinfo/cherokee
>
>
>
> _______________________________________________
> Cherokee mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5706779&i=3>
> http://lists.octality.com/listinfo/cherokee
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://cherokee-web-server-general.1049476.n5.nabble.com/PHP-Custom-Environment-Variables-tp5706771p5706779.html
>
> To unsubscribe from PHP Custom Environment Variables, click here
> <
> NAML
> <http://cherokee-web-server-general.1049476.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>

________________________________
View this message in context: Re: [Cherokee] PHP Custom Environment Variables
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.

_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee