|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-08 05:46 UTC] plafundum at yahoo dot com
Hello there, Every time I when I upgrade my Debian-install I get errors with php4-cgi. When it is invoked, php4-cgi says "PHP Fatal error: Unable to start session mm module in Unknown on line 0". I posted a message, and Peter Cech helped me out: rm /etc/session_mm.sem did the job. Cheers y'all pla. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 15:00:01 2025 UTC |
Thanks to mfischer@php.net, I found the problem using strace. I had 'session.save_path' set to '/dev/null'. Why does 4.1.2 not handle this gracefully like 4.0.5, and is there any way to get a more helpful error message in this case? In case you're interested in the exact errors, I've included the errors from the strace below: unlink("/dev/null/session_mm_apache0.sem") = -1 ENOTDIR (Not a directory) open("/dev/null/session_mm_apache0.sem", O_RDWR|O_CREAT, 0600) = -1 ENOTDIR (Not a directory) unlink("/dev/null/session_mm_apache0.sem") = -1 ENOTDIR (Not a directory)I get fstat64(3, {st_mode=S_IFREG|0644, st_size=1748, ...}) = 0 unlink("/tmp/session_mm_apache0.sem") = -1 ENOENT (No such file or directory) before it dies, any idea? (using debian linux)So, following this thread, I'm still not having any luck. I'm running debian-woodie, and upgraded to the 4.2.1 package for it. I checked my php.ini for weird paths, checked /tmp and (because someone mentioned it) /etc for session_mm files, and the problem still persists. Here's what I get out of strace: open("/usr/lib/apache/1.3/libphp4.so", O_RDONLY) = 4 [...] open("/usr/lib/libmm.so.11", O_RDONLY) = 4 [...] open("./php.ini", O_RDONLY|O_LARGEFILE) = 5 getcwd("/etc/php4/apache", 4096) = 17 lstat("/etc/php4/apache/php.ini", {st_mode=S_IFREG|0644, st_size=26777, ...}) = 0 open("/etc/ld.so.cache", O_RDONLY) = 5 open("/lib/libnss_db.so.2", O_RDONLY) = 5 open("/lib/libnss_files.so.2", O_RDONLY) = 5 open("/usr/lib/libdb3.so.3", O_RDONLY) = 5 open("/var/lib/misc/protocols.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/var/lib/misc/protocols.db", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/etc/protocols", O_RDONLY) = 5 open("/var/lib/misc/protocols.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/var/lib/misc/protocols.db", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/etc/protocols", O_RDONLY) = 5 unlink("/tmp/session_mm_apache0.sem") = -1 ENOENT (No such file or directory) I left in some cruft, because I have no idea what's going on. If anyone has any thoughts... -j