[Resolved] PHP 5.3.3 + APC 3.1.4 = Error 503

Discussion in 'PHP' started by art182, Aug 16, 2010.

  1. art182

    art182 New Member

    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: Aug 17, 2010
  2. NiteWave

    NiteWave Administrator

    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. art182

    art182 New Member

    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 ?
  4. NiteWave

    NiteWave Administrator

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

    from phpinfo, your current "Configure Command":
    while mine is quite simple
    try simplest one to see if it still have problem.
  5. art182

    art182 New Member

    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 ;) )

Share This Page