#43086 [NEW]: FastCGI Broken due to session file

From: Date: Tue, 23 Oct 2007 15:37:41 +0000
Subject: #43086 [NEW]: FastCGI Broken due to session file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118878@lists.php.net to get a copy of this message
From: davidb at chelsea dot net Operating system: Solaris 2.8 PHP version: 5.2.4 PHP Bug Type: CGI related Bug description: FastCGI Broken due to session file Description: ------------ PHP 5.2.1 and forward (I think) breaks under the FastCGI/apache proc manager. When the parent is launched, it fails to open the socket due to trying to open the socket in a directory that doesn't allow it. If I compare two traces of an older version (5.2.0) and the newer version (running 5.2.4): Working: /var/tmp/fastcgi.out:1786: unlink("session_mm_cgi-fcgi3357.sem") = 0 /var/tmp/fastcgi.out:1786: open("session_mm_cgi-fcgi3357.sem", O_RDWR|O_CREAT, 0600) = 3 Broken: /var/tmp/fastcgi1.out:1648: unlink("/session_mm_cli4416.sem") Err#2 ENOENT /var/tmp/fastcgi1.out:1648: open("/session_mm_cli4416.sem", O_RDWR|O_CREAT, 0600) Err#13 EACCES Note that this puts the "/" in place, which is a bad assumption. Is it possible this is related to bug 42815 in some way? It's more severe, in that php won't even run, though. Reproduce code: --------------- PHP fails to start. Expected result: ---------------- I think that this should be hard-coded to a /tmp directory, or else somewhere else that the php process will have the ability to write to. Unless there's a way to fix this behavior with a correct php.ini setup. We're running with vhosts and suexec, so the owner of the php process manager won't be able to write to the ServerRoot or the root filesystem (nor do we want it to!) -- Edit bug report at http://bugs.php.net/?id=43086&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43086&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43086&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43086&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43086&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43086&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43086&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43086&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43086&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43086&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43086&r=support Expected behavior: http://bugs.php.net/fix.php?id=43086&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43086&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43086&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43086&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43086&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43086&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43086&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43086&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43086&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43086&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43086&r=mysqlcfg

« previous php.bugs (#118878) next »