LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > [Resolved] PHP 5.3.3 + APC 3.1.4 = Error 503

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2010, 06:11 AM
art182 art182 is offline
Member
 
Join Date: Oct 2006
Posts: 15
Default [Resolved] PHP 5.3.3 + APC 3.1.4 = Error 503

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 NiteWave; 08-17-2010 at 07:51 AM..
Reply With Quote
  #2  
Old 08-16-2010, 09:59 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #3  
Old 08-17-2010, 01:20 AM
art182 art182 is offline
Member
 
Join Date: Oct 2006
Posts: 15
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 ?
Reply With Quote
  #4  
Old 08-17-2010, 04:30 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
not sure add
apc.mmap_file_mask=/tmp/apc.XXXXXX
to php.ini to have any difference.

from phpinfo, your current "Configure Command":
Quote:
'./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
Quote:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-litespeed' '--enable-suhosin'
try simplest one to see if it still have problem.
Reply With Quote
  #5  
Old 08-17-2010, 06:38 AM
art182 art182 is offline
Member
 
Join Date: Oct 2006
Posts: 15
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 )
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:36 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.