php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58546 shm_size no effect when set in httpd.conf
Submitted: 2009-02-10 05:03 UTC Modified: 2009-02-16 18:49 UTC
From: d dot khalil at brainsware dot org Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.5 OS: Debian
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-02-10 05:03 UTC] d dot khalil at brainsware dot org
Description:
------------
I'm setting the shm_size in the httpd.conf with the following line:
php_admin_value apc.shm_size 100
Having set a different value in the php.ini (as a new default), APC seems to be ignoring the value I set in the httpd.conf - it does show the new value as set to 100MB but the shared memory segment still only 48MB in size. (No change either when not setting the shm_size in the php.ini)
If apc wouldn't show the value set correctly to 100MB I'd say this was a documentation bug, but this seems to be more than just that..

By the way: you should update the PHP version list in your bugtracker. 5.2.5 isn't the newest version available (we're running 5.2.6)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-16 18:49 UTC] shire@php.net
This is a bit of a loophole that you can change this option via Apache.  Because APC has already been initialized via the php.ini values, it means Apache's settings are effectively ignored as they occur too late in the startup process.  You simply can't change these type of settings from Apache.  The info displayed in phpinfo() is a side-affect of this, unfortunately.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 02:01:23 2020 UTC