|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: d dot khalil at brainsware dot org
New email:
PHP Version: OS:


 [2009-02-10 05:03 UTC] d dot khalil at brainsware dot org
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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-16 18:49 UTC]
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 17:01:27 2024 UTC