- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] apache / php4
- From: Geoffrey Robertson <geoffrey@xxxxxxxxxx>
- Date: Fri, 16 May 2003 08:24:17 +1000
- Reply-to: geoffrey@xxxxxxxxxx
- User-agent: Mutt/1.4i
sparkle:/proc/sys/kernel# cat shmmax
16777216
sparkle:/var/www# bugger
bash: bugger: inpolite suggestion
sparkle:/proc/sys/kernel# echo "33554432" > /proc/sys/kernel/shmmax
sparkle:/proc/sys/kernel# apachectl configtest
Syntax OK
sparkle:/var/www# 'cool bananas'
bash: 'cool bananas': your welcome :)
Thanks Mike, I would not have found that on my own. I get too
used to "apt-get and it just works". And thanks Peter and Oscar
for getting me on track with the mime types.
Geoffrey
On Thu, May 15, 2003 at 10:58:48PM +1000, Michael Lake wrote:
> Geoffrey Robertson wrote:
> >New problem:
> >sparkle:~/# apachectl configtest
> >PHP Fatal error: Unable to start session mm module in Unknown on line 0
> >mm what does this indicate?
>
> Hi Geoff,
> I had the same problem on my Alpha running Debian. This might be the
> same prob for you - maybe not though. This is a copy of what I wrote
> down when I got that problem.
>
> Problem:
>
> A tail of the /var/log/apache-perl/error.log file showed...
> PHP Fatal error: Unable to start session mm module in Unknown on line 0
>
> and one can't actually start the httpd either:
> martel:/etc/apache-perl# apache-perl-ctl start
> /usr/sbin/apache-perl-ctl start: httpd could not be started
>
> Solution:
>
> Read the file /usr/share/doc/php4/README.Debian.gz
> It says:
>
> * Problem with module and php4-cgi
> PHP Fatal error: Unable to start session mm module in Unknown on line 0
> 1) Remove /tmp/session_mm.sem or give access permission to the
> user running php4.
> 2) increase the limit on shared memmory
> (echo "33554432" > /proc/sys/kernel/shmmax).
> This is mainly needed on non-i386 archs. The default is 8MB, but
> that seems too low.
>
> In my case there was no /tmp/session_mm.sem file but shmax was < 8MB
> martel:/etc/apache-perl# cat /proc/sys/kernel/shmmax
> 4169728
>
> Make it bigger as the doc says above:
> martel:/etc/apache-perl# echo "33554432" > /proc/sys/kernel/shmmax
>
> Now PHP4 runs fine.
>
> --
> Mike Lake
> Caver, Linux enthusiast and interested in anything technical.
>
>
> --
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
>