APC installed from PEAR not showing in phpinfo()

simonb

Verified User
Joined
Feb 15, 2006
Messages
7
apc.so installed from PEAR in weird directory

I just installed APC using the command.
pear install apc

It reported it installed OK and shows up if I type
pear list

After an httpd restart I can't see APC in the phpinfo() page.


The extension apc.so file is in a weird directory. As far as I can tell in the php.ini file all the extensions have to be in one directory.
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/apc.so
Do I really need to set the extensions directory to this? Will other extensions also be compiled into this directory?

If I set extension_dir to this directory then it appears in phpinfo() but I am concerned that this is such a "far_out" path name that the slightest update could break it.
 
Last edited:
i had the same problem an easy way to find the problem is to do the following

/usr/local/bin/php -i | grep 'APC'

There you will be see the error message if everything is alright just reload httpd(apache) and everything will be fine.

if you need to find the location of apc.so just do this
updatedb
locate apc.so
 
Back
Top