Re: ssl enabled apache = NO php sessions: FIXED??!

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: ssl enabled apache = NO php sessions: FIXED??!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4415@lists.php.net to get a copy of this message
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

« previous php.general (#4415) next »