homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
mmap failed: No space left on device
Problem using PECL APC via shell
guarriman

10+ Year Member



 
Msg#: 3309182 posted 9:24 am on Apr 12, 2007 (gmt 0)

Hi.

Using PHP 4 on Linux, I installed PECL APC:
[pecl.php.net...]

It works ok if you access PHP scripts via web, but it won't work if you execute them via shell:
[]# php foo.php
[]# [Wed Apr 11 19:07:52 2007] [apc-error] apc_mmap: mmap failed: No space left on device

I've set this parameters within 'php.ini':
--------
extension="apc.so"
apc.shm_size = 48
--------

Does anybody have experience with this issue? Thank you very much

 

guarriman

10+ Year Member



 
Msg#: 3309182 posted 9:28 am on Apr 12, 2007 (gmt 0)

I also tried with 'php -q' but it won't work either :(

guarriman

10+ Year Member



 
Msg#: 3309182 posted 9:41 am on Apr 12, 2007 (gmt 0)

PHP version: 4.4.3

guarriman

10+ Year Member



 
Msg#: 3309182 posted 10:43 am on Apr 12, 2007 (gmt 0)

Fixed with this 'php.ini' configuration:
-------
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=64
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.#*$!#*$!
apc.enable_cli=1
-----------

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3309182 posted 10:46 am on Apr 12, 2007 (gmt 0)

Glad you got everything sorted, guarriman! :) Thanks for sharing your solution

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved