PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #14507 sessions and mm produce an error on starting apache
Submitted:14 Dec 2001 4:44am UTC Modified: 17 Feb 2002 6:25pm UTC
From:adrieder at sbox dot tugraz dot at Assigned to:yohgaki
Status:Closed Category:Session related
Version:4.1.1 OS:Sparc/Solaris 8
View/Vote Developer Edit Submission

[14 Dec 2001 4:44am UTC] adrieder at sbox dot tugraz dot at
I have a problem with sessions and mm on sparc/Solaris 8. When starting
the apache I get the error:

PHP Fatal error:  Cannot find save handler mm in Unknown on line 0

in php_config.h:
/* Whether you have libmm */
#define HAVE_LIBMM 1
[14 Dec 2001 4:47am UTC] derick@php.net
Duplicate of #14496
[14 Dec 2001 5:27am UTC] mfischer@php.net
More notes from user:

File /tmp/session_mm.sem has root:other 600 owner/perms; delting it will
re-create it upon startup, error still there.
[14 Dec 2001 6:05am UTC] sas@php.net
Please try a `make cleanŽ and reinstall PHP. I'd appreciate it, if you
could let us know whether that fixes your problem. Thanks
[14 Dec 2001 7:38am UTC] adrieder at sbox dot tugraz dot at
I did a "make distclean" and a rebuild with the following options:

       ./configure\
        --with-mysql=/usr/local/mysql\
        --with-db3 \
        --enable-sysvsem\
        --enable-sysvshm\
        --with-mm=/usr/local\
        --with-openssl \
        --enable-track-vars\
        --enable-trans-sid\
        --enable-shmop\
        --with-gd \
        --with-jpeg-dir=/usr/local/lib \
        --with-png-dir=/usr/local/lib \
        --enable-inline-optimization \
        --enable-bcmath \
        --with-gettext \
        --with-mcrypt \
        --with-zlib \
        --disable-debug \
        --with-apxs=/usr/local/apache/bin/apxs

All this didn't solve the problem, I'm still getting:
PHP Fatal error:  Cannot find save handler mm in Unknown on line 0

[19 Dec 2001 11:02pm UTC] yohgaki@php.net
I created new report for this bug which explains why this happens.
Duplicate #14612

--
Yasuo Ohgaki
[31 Dec 2001 11:06am UTC] adrieder at sbox dot tugraz dot at
The Problem still exists in PHP Version 4.1.1
any hints/solutions?
[2 Jan 2002 5:14pm UTC] yohgaki@php.net
4.1.x disply error.... I'm working on it now. It may be fixed in 4.1.2,
if other develpers do not object my fix.

For now, set save handler to "files" and set handler to "mm" in your
script using session_module_name() if you don't like to error message.
(It does not harm any, you can ignore error message)
[24 Jan 2002 11:46pm UTC] yohgaki@php.net
Fixed in CVS.
[17 Feb 2002 2:26pm UTC] rider at altlinux dot ru
bug on Linux with apache-1.3.23 and mod_php 4.1.1 (with last patches
from cvs branch PHP_4_0_7):

[root@riderbook root]# ls -al /tmp/session_mm.sem
ls: /tmp/session_mm.sem: No such file or directory
[root@riderbook root]# service httpd start
Starting httpd:                                                         
                                                                        
           [  OK  ]
[root@riderbook root]# ls -al /tmp/session_mm.sem
-rw-------    1 root     root            0 Feb 18 01:25
/tmp/session_mm.sem

and from user:
[rider@riderbook rider]$ php
Content-type: text/html

PHP Fatal error:  Unable to start session mm module in Unknown on line 0
[17 Feb 2002 6:25pm UTC] yohgaki@php.net
You have different problem. 
The fix will be commited when Sascha agrees with my patch.

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC