Hello Brian,

I'm running both with admin account and I've made sure that the
php.ini setting for sessions (i.e. session.save_path, etc.) are
the same. Cherokee works fine if PHP is set to use FastCGI, but
not CGI. On another machine, the PHP debug messages shows the
warning like this:

PHP Warning: Unknown: The session id contains illegal characters,
valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 PHP

Warning: Unknown: Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(C:\Internet\PHP5\sessiondata) in Unknown on line 0

One more difference in the two scenarios (one works, one doesn't):
the one with FastCGI is with the Cygwin version of PHP because
the Windows version of PHP just doesn't work with Cherokee (by using
cgi-fcgi to start PHP)

So, here's the matrix:
------------------------------------------------------
|      |        Windows PHP          |   Cygwin PHP  |
------------------------------------------------------
| CGI  |  works with session error   | does not work |
| FCGI |  does not work (cgi-fcgi)   |    works      |
------------------------------------------------------

Notes:
1. "Does not work" means PHP pages does not load
2. "Works with session error" means some PHP pages show ok
   but those involve sessions will get an error described above.

-- 
Best regards,
Jack

Tuesday, October 3, 2006, 7:49:12 AM, you wrote:

> On 2006-10-02 00:35:32 -0600, Jack L <[EMAIL PROTECTED]> said:

>> 
>> I'm using the Windows version 0.5.4, not sure if this problem also
>> exists on other platforms. PHP is set up with phpcgi handler (conf
>> file is shown below this email) PHP always fails to read session data.
>> I found this problem with a larger PHP project. I then wrote a simple
>> PHP script to demo this, see below.
>> 
>> Note that the same script works fine when PHP is used with fcgi handler
>> on Cherokee. It also works fine as CGI with other web servers I've
>> tested.

> You will want to make sure that the process that Cherokee is running
> under  is able to read and write to the directory that PHP stores its
> sessions to.  Check the php.ini file for that directory.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

Reply via email to