PHP 5.2.10 has some serious problems with the suhosin extension. The only know fix at this point is adding the following to your php.ini:
suhosin.session.encrypt = off On the same note, 5.2.10 also has problems with User defined sessions. All these issues are only found in FastCGI, so that's why the Apache mod_php isn't having the same problem. It's also possible that APC is affecting things as well, so you can try this: suhosin.apc_bug_workaround = on though this is less likely since that workaround shouldn't be needed for recent versions of APC. Jaime > -----Original Message----- > From: [email protected] [mailto:cherokee- > [email protected]] On Behalf Of Alejandro Barrera > Sent: Wednesday, August 12, 2009 3:33 PM > To: [email protected] > Cc: Cherokee Mailing List; ray horn > Subject: Re: [Cherokee] How can I get rid of my Gateway Timeouts when > using PHP 5.2.10 with CHerokee 0.99.22 ? > > On Wednesday 12 August 2009 22:21:20 Antonio Pérez wrote: > > On Wed, Aug 12, 2009 at 3:22 PM, ray horn<[email protected]> > wrote: > > > I don't see the "Inherit Environment" checkbox in the Information > Sources > > > at-all. > > > What am I missing ? > > > > You are right, sorry! "Inherit Environment" was implemented on the > Aug > > 9 and Cherokee 0.99.22 was released on the Aug 7. > > Ok, here are my issues. I've had to default back to Apache temporarily > until > this gets fixed. > > I'm having extreame problems with Cherokee + php-cgi > > I'm not entirely sure it's Cherokee's fault. Since some versions ago > I've been > experiencing 504 gateway timeouts too. I though it was casue my disk IO > is > really high (plus some nifty things Ajo and I have implemented on the > server > :P), but now I'm starting to think there is some real problem. > > Now, today I updated Cherokee to 0.99.22 and I'm experiencing internal > errors > (500), even with no IO bottlenecks... So I can only guess there's > something > wrong with either Cherokee or php-cgi. > > Cause I updated the whole machine (thank you Wordpress for your lame > bug!), > I'm not sure it's an isolated problem with Cherokee. I fired up Apache > just to > be sure it wasn't more IO problems and everything runs fine there > (although > it's true it's using mod_php, not php-cgi). > > This are my versions boys: > ii cherokee 0.99.22-1 Very > fast, > flexible and easy to configure we > ii libcherokee-base0 0.99.22-1 Cherokee > web > server - Base libraries > ii libcherokee-client0 0.99.22-1 Cherokee > web > server - Client libraries > ii libcherokee-config0 0.99.22-1 Cherokee > web > server - Configuration librarie > ii libcherokee-mod-admin 0.99.22-1 Cherokee > web > server - Administrative plugin > ii libcherokee-mod-libssl 0.99.22-1 Cherokee > web > server - SSL crypto functions p > ii libcherokee-mod-server-info 0.99.22-1 Cherokee > web > server - Server information plu > ii libcherokee-server0 0.99.22-1 Cherokee > web > server - Server libraries > ii libapache2-mod-php5 5.2.10.dfsg.1-2 server- > side, > HTML-embedded scripting languag > ii libphp-adodb 5.07-1 The ADOdb > database abstraction layer for PHP > ii libphp-phpmailer 2.1-1 full > featured > email transfer class for PHP > ii libphp-snoopy 1.2.4-1 Snoopy is > a PHP > class that simulates a web b > ii php-apc 3.0.19-2 APC > (Alternative > PHP Cache) module for PHP 5 > ii php-pear 5.2.10.dfsg.1-2 PEAR - > PHP > Extension and Application Reposit > ii php5-cgi 5.2.10.dfsg.1-2 server- > side, > HTML-embedded scripting languag > ii php5-cli 5.2.10.dfsg.1-2 command- > line > interpreter for the php5 script > ii php5-common 5.2.10.dfsg.1-2 Common > files for > packages built from the php > ii php5-curl 5.2.10.dfsg.1-2 CURL > module for > php5 > ii php5-gd 5.2.10.dfsg.1-2 GD module > for > php5 > ii php5-mcrypt 5.2.10.dfsg.1-2 MCrypt > module > for php5 > ii php5-memcache 3.0.4-2 memcache > extension module for PHP5 > ii php5-mhash 5.2.10.dfsg.1-2 MHASH > module for > php5 > ii php5-mysql 5.2.10.dfsg.1-2 MySQL > module for > php5 > ii php5-snmp 5.2.10.dfsg.1-2 SNMP > module for > php5 > ii php5-suhosin 0.9.27-1 advanced > protection module for php5 > ii php5-xmlrpc 5.2.10.dfsg.1-2 XML-RPC > module > for php5 > > If I had to pinpoint something it would be the suhosin module for php, > but I'm > not sure. Right now I have it running in simulation mode and I'm still > getting > error 500 in 3 out of 4 requests. > > Anyone has seen the same behaviour? Someone else experiencing error 500 > with > those versions? > > PS: It's a Debian (unstable) btw. > > -- > http://www.neurosecurity.com > > "We must be the change we wish to see in the world" > Mahatma Gandhi > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
