Re: ssl enabled apache = NO php sessions: FIXED??!
| From: | Roberto Cespa | Date: | Mon, 03 Jul 2000 11:13:26 +0000 |
| Subject: | Re: ssl enabled apache = NO php sessions: FIXED??! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4472@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
> On Sun, 2 Jul 2000, Roberto Cespa wrote:
>
> > "Brett M. Delia" wrote:
> >
> > > SUBJECT: ssl enabled apache = NO php sessions: FIXED??!
> > >
> > > Well, after a ton of testing, it turns out that the problem actually
> > > centers around $APACHEHOME/bin/rotatelogs. For some $@$#@$#$ reason, if you
> > > start apache with SSL enabled and you use rotatelogs to have Apache
> > > automatically rotate your logs, you get zero length php session files in
> > > /tmp. Things run fine if you start Apache in non-ssl mode. Of course, the
> > > reason my first server worked fine was because it is our developement
> > > server and those guys don't want their logs rotated -- they do it
> > > themselves.
> > >
> > > So, I'm not sure why Apache logs affect PHP session file length when Apache
> > > is running with SSL enabled, but it did. Also, I'm not convinced this is
> > > the only way to fix the problem, but this way definately works.
>
> There is a strange interaction between Apache using more than a couple of
> fds and the session module. The net result is what you describe: Apache
> closes the fd pointing to the open session file, so that the session data
> are not written to the file.
>
> Are you seeing this on another platform than FreeBSD?
>
> > Can anyone help?
>
> Yes, you just need to get us an useable bug report. The best bug
> report is a short script (< 10 lines) with predictable results.
>
> - Sascha
>
Well, it seems that patch level 2 fixed this problem (at least after upgrading
I've no more the problem).
Thanks a lot for the fast answer.
Best regards,
Roberto
--
Colombo2000
http://www.colombo2000.it
Il tuo prossimo viaggio comincia qui