Bug #18382 Updated: php looking for session_mm.sem even though session set to files
| From: | nod at bouncing dot org | Date: | Thu, 18 Jul 2002 06:34:59 +0000 |
| Subject: | Bug #18382 Updated: php looking for session_mm.sem even though session set to files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14497@lists.php.net to get a copy of this message | ||
ID: 18382
Updated by: nod@bouncing.org
Reported By: nod@bouncing.org
-Status: Feedback
+Status: Closed
Bug Type: Session related
Operating System: suse linux 8
-PHP Version: 4.2.1
+PHP Version: 4.3
New Comment:
you're right, /usr/bin/php is version 4.1, 4.3 installs in
/usr/local/bin/php and works.
Previous Comments:
------------------------------------------------------------------------
[2002-07-17 20:07:29] sniper@php.net
I don't think you're trying with the correct PHP binary
now..if you would be using the snapshot (the url I posted)
the filenames would be something like these:
/tmp/session_mm_cgi0.sem
/tmp/session_mm_cgi501.sem
/tmp/session_mm_cli0.sem
/tmp/session_mm_cli501.sem
Each user id has own sem file. And each SAPI also.
Make sure you're REALLY using the correct binary,
by running 'php -v' which should show '4.3.0-dev' as version.
------------------------------------------------------------------------
[2002-07-17 15:05:35] nod@bouncing.org
very reproducible now, even with the latest snapshot.
first check the contents of /tmp and if it exists remove
/tmp/session_mm.sem as this is what happens on boot.
run /usr/bin/php -h as root
ls /tmp
and session_mm.sem will be there as read/ write only to root
as an unprivileged user run
/usr/bin/php -h
and it crashes. session.save_handler is set in /etc/php.ini as files.
My configure and exact error and file permission are listed below.
Surely each php session should be on a per user basis with each person
having their own .sem file ?
./configure --with-apxs --with-mysql --with-pgsql --with-mm
--enable-trans-id
-rw------- 1 root root 0 Jul 17 19:47 session_mm.sem
nod@shortnblue:/usr/src/php4-200207170900> /usr/bin/php -h
Content-type: text/html
PHP Fatal error: Unable to start session mm module in Unknown on line
0
------------------------------------------------------------------------
[2002-07-17 13:54:13] sniper@php.net
Can you please try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
I can't reproduce this with the latest 4.3.0-dev..
------------------------------------------------------------------------
[2002-07-17 13:08:13] nod@bouncing.org
opening again
------------------------------------------------------------------------
[2002-07-17 13:06:52] nod@bouncing.org
bug is still open with 4.2.1
if you run /usr/bin/php as root it puts a session_mm.sem in tmp with
read write only privileges to the root user, thereby disabling other
user's ability to run. session.save_handler is still set to files, but
is still calling mm.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18382
--
Edit this bug report at http://bugs.php.net/?id=18382&edit=1