PHP unable to start if "apc.shm_size" has "M" or "G" unit

Posted by apasajja on Server Fault See other posts from Server Fault or by apasajja
Published on 2012-06-11T02:01:18Z Indexed on 2012/06/11 4:41 UTC
Read the original article Hit count: 551

Filed under:
|

Using: Ubuntu 10.04, PHP 5.3.10, apc 3.1.3

PHP and APC installed using below repo:

deb http://ppa.launchpad.net/brianmercer/php5/ubuntu lucid main
deb-src http://ppa.launchpad.net/brianmercer/php5/ubuntu lucid main

If I put apc.shm_size=3G or apc.shm_size=3000M in /etc/php5/fpm/conf.d/apc.ini, PHP unable to start.

However, if I put only number without M or G unit, it will start and run.

By default, if put only number, what unit is it means? It I put 3000 does it means 3000 MB?

© Server Fault or respective owner

Related posts about php

Related posts about php-apc