[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apache + php + mm problem
Hi all,
I've attempted to figure this one out myself. I have installed the php4
port, updated todday from -current, with the following flavor:
"imap gettext no_x11 mm mysql"
I then ran php4-enable, and added the appropriate lines to httpd.conf for
php. However, whenever I try to start httpd, I get the following in
error_log:
PHP Fatal error: Unable to start session mm module in Unknown on line 0
After reading through a lot of usenet, it appears that this was a recent
problem on Debian systems, and the solution had to do with increasing
shared memory, and/or deleting the /tmp/session_mm.sem file. I first
tried to fix the problem bu adding these lines to my kernel config,
re-compiling and rebooting:
option SEMMNI=256
option SEMMNS=2048
option SHMMAXPGS=8192
However, I still got the same error. I then built a debugging httpd, and
got the following ktrace (which I can't decipher):
7838 httpd CALL getpid
7838 httpd RET getpid 7838/0x1e9e
7838 httpd CALL __sysctl(0xdfbfd8bc,0x2,0xdfbfd8b4,0xdfbfd8b8,0,0)
7838 httpd RET __sysctl 0
7838 httpd CALL mmap(0,0x4000000,0x3,0x1001,0xffffffff,0,0,0)
7838 httpd RET mmap -1 errno 12 Cannot allocate memory
7838 httpd CALL issetugid
7838 httpd RET issetugid 0
7838 httpd CALL open(0xdfbfcc60,0,0)
7838 httpd NAMI "/usr/share/nls/C/libc.cat"
7838 httpd RET open 3
7838 httpd CALL fstat(0x3,0xdfbfcbc0)
7838 httpd RET fstat 0
7838 httpd CALL mmap(0,0xe5a,0x1,0x1,0x3,0,0,0)
7838 httpd RET mmap 1081335808/0x4073e000
7838 httpd CALL close(0x3)
7838 httpd RET close 0
7838 httpd CALL munmap(0x4073e000,0xe5a)
7838 httpd RET munmap 0
7838 httpd CALL close(0)
7838 httpd RET close 0
7838 httpd CALL unlink(0xdfbfd540)
7838 httpd NAMI "/tmp/session_mm.sem"
7838 httpd RET unlink 0
7838 httpd CALL write(0x2,0xdfbfc918,0x48)
7838 httpd GIO fd 2 wrote 72 bytes
"PHP Fatal error: Unable to start session mm module in Unknown on line 0"
7838 httpd RET write 72/0x48
7838 httpd CALL write(0x2,0xdfbfc908,0x1)
7838 httpd GIO fd 2 wrote 1 bytes
7838 httpd RET write 1
7838 httpd CALL exit(0xfffffffe)
If anyone has any suggestions, or requests for more info, I'd be glad to
supply it!
Thanks!
Luke Bakken