Install and enable APC cache on Mac OS X 10.7.3 (default php)

After switching to a new Mac at work, I tried to install APC the way I need it on some of my projects.

I tried using the PECL setup, everything seemed fine, I included it in my php.ini.

After that I tried to use the APC function, but it doesn't matter where this APC was enabled by looking at my phpinfo ().

Then I decided to extract the latest apc source and build them myself.

The problem seems to be the same, APC is said to be enabled in my phpinfo, but not actually resolved (getting errors when calling apc functions in my code).

Does anyone have any ideas about this issue?

Thank,

Lodovico.

EDIT: It seems to work in the CLI, but not through apache ...

Here is my apache config for APC:

; Enable APC
extension=apc.so
apc.enabled = 1
apc.enable_cli = 1

      

+3


source to share


1 answer


EDIT: It seems to work in the CLI, but not through apache ...

This probably means that you have two different files php.ini

. One for the CLI and one for Apache.



Have you changed the value listed in phpinfo()

?

0


source







All Articles