# Adding APC stats to Virtualmin menu

**URL:** <https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497>\
**Category:** Virtualmin\
**Created:** [December 23, 2012, 3:18am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497 "2012-12-23T03:18:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yngens](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/y/9de053/32.png) [@yngens](https://forum.virtualmin.com/u/yngens)\
**Post date:** [December 23, 2012, 3:18am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/1 "2012-12-23T03:18:47Z")

</div>

I will be using apc in my server and configured apc.php file to be put in every virtual server’s /stats/ folder and can access it through web. However, it would be great if I could view APC stats together with Awstat, Apache, Webalizer stats in Logs and Reports section for each virtual server. apc.php file generates static page, so it would be quite possible to see its stats within Virtualmin. I understand that not everybody installs APC, so should can’t be Virtualmin standard. But I wonder is it possible to do this kind of things in such individual cases like mine?

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [December 24, 2012, 3:42am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/2 "2012-12-24T03:42:32Z")

</div>

Howdy,

In Virtualmin Pro, it is indeed possible to create custom links that will show up on the nav bar. You could link to a page in your /stats/ directory if you wanted.

In Virtualmin GPL, you could do that, though it’s a bit more work 🙂 You could do it by creating a Virtualmin plugin (plugins work in both Virtualmin Pro and GPL).

A plugin would give you the ability to add a link to the bar on the left.

-Eric

---

<div class="post-metadata">

**Author:** ![yngens](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/y/9de053/32.png) [@yngens](https://forum.virtualmin.com/u/yngens)\
**Post date:** [December 24, 2012, 3:50am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/3 "2012-12-24T03:50:13Z")

</div>

Oh Eric, if only I knew how to make such plugins. Any initial instructions?

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [December 24, 2012, 4:26am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/4 "2012-12-24T04:26:48Z")

</div>

You need to know some Perl… there’s some details here on getting started:

[https://www.virtualmin.com/documentation/developer/plugins](https://www.virtualmin.com/documentation/developer/plugins)

Or you can use any of the existing plugins as a starting place.

-Eric

---

<div class="post-metadata">

**Author:** ![helpmin](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@helpmin](https://forum.virtualmin.com/u/helpmin)\
**Post date:** [December 27, 2012, 12:45pm UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/5 "2012-12-27T12:45:53Z")

</div>

unrelated question: What mode does your virtual server run? mod\_php or mod\_fcgid? If the latter, I was wondering whether you could share how you setup APC? (I never could get it to work reasonably, because “sharing APC” is not possible under fcgid).

---

<div class="post-metadata">

**Author:** ![yngens](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/y/9de053/32.png) [@yngens](https://forum.virtualmin.com/u/yngens)\
**Post date:** [December 27, 2012, 12:55pm UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/6 "2012-12-27T12:55:10Z")

</div>

Thanks Eric, I will take a look and maybe give a try.

Helpmin, some of the websites run on mod\_php, others - in fast-cgi, and I used quite standard methods to install APC, but I was under impression that APC works in both modes. At least I can see stats in both modes. Are you sure it doesn’t work in fast-cgi? I would love to hear Eric or some other Virtualmin developers/reps to confirm this.

---

<div class="post-metadata">

**Author:** ![helpmin](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@helpmin](https://forum.virtualmin.com/u/helpmin)\
**Post date:** [December 27, 2012, 1:21pm UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/7 "2012-12-27T13:21:57Z")

</div>

Correct, APC does not currently share its cache between multiple php-cgi workers running under fastcgi or fcgid (which I suppose would be the point of a “cache”).

[https://bugs.php.net/bug.php?id=57825](https://bugs.php.net/bug.php?id=57825)

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:56am UTC](https://forum.virtualmin.com/t/adding-apc-stats-to-virtualmin-menu/44497/8 "2020-04-30T05:56:46Z")

</div>

Closed on April 30, 2020, 5:56am UTC


