[Resolved] PHP 5.3.3 + APC 3.1.4 = Error 503

#1
hello.
i have problem with apc.. ( without apc everything working fine )

Code:
[STDERR] PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0
whats going on ? how can I fix it ?
 
Last edited by a moderator:

NiteWave

Administrator
#2
hmm... APC 3.1.4 is out this month:
3.1.4 beta 2010-08-05

I compiled php 5.3.3 and apc 3.1.4 using "Compile PHP" in admin console and was ok.

what's your APC settings in php.ini?

if you run lsws/fcgi-bin/lsphp-5.3.3 -i, it may give same error message.
 
#3
http://blink.kage.pl/phpinfo.php

( i try compile it with admin console and again error.. )

in php.ini i have only

Code:
; APC
extension_dir = /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626
extension = apc.so
;
( always works )


lsphp5 -i shows before
Code:
memory protection fault
or something

and now after compile in webgui
Code:
 [Tue Aug 17 10:13:44 2010] [apc-error] apc_mmap: mmap failed: No space left on device
what its means ?
 

NiteWave

Administrator
#4
not sure add
apc.mmap_file_mask=/tmp/apc.XXXXXX
to php.ini to have any difference.

from phpinfo, your current "Configure Command":
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--enable-memory-limit' '--with-litespeed' '--with-config-file-path=/usr/local/lsws/php' '--with-zlib' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-gd' '--with-mysql' '--enable-inline-optimization' '--disable-debug' '--without-sqlite' '--enable-trans-sid' '--enable-mbstring' '--with-openssl' '--enable-sockets' '--enable-track-vars' '--with-pear' '--with-regex=php' '--with-pcre-regex' '--enable-suhosin'
while mine is quite simple
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-litespeed' '--enable-suhosin'
try simplest one to see if it still have problem.
 
#5
very thanks...
when I add
Code:
apc.enabled = 1
apc.shm_size = 48
apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
everything works great
( i hope ;) )
 
Top