title: PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in Unknown on line 0
body: <p>I am trying to get APC up and running for PHP (magento) but i have this weird problem which is bothering me. I have done my apc installation through the below command</p>
  
  <p>pecl install apc
  pecl/apc is already installed and is the same as the released version 3.1.13</p>
  
  <p>and i have also added the configuration parameter in /etc/php.d/apc.ini as shown below </p>
  
  <pre><code>extension=apc.so
  apc.enabled=1
  apc.num_files_hint=10000
  apc.user_entries_hint=10000
  apc.max_file_size=100M
  apc.stat=0
  apc.optimization=0
  apc.shm_segments=1
  apc.enable_cli=1
  apc.cache_by_default=1
  apc.include_once_override=1
  apc.shm_size=4
  apc.mmap_file_mask = /tmp/apc.XXXXXX
  </code></pre>
  
  <p>Before i thought that maybe my configuration is messing up but when i removed every line in the apc.ini file but still i am getting the below error when executing php --ini</p>
  
  <blockquote>
    <p>PHP Fatal error:  PHP Startup: apc_mmap: mmap failed: in Unknown on line 0
    Segmentation fault (core dumped)</p>
  </blockquote>
  
  <p>Now i am really not sure what to do</p>
  
  <p>My PHP version is 5.4</p>