PHP模块未在网站上显示但安装在服务器上。

I have tried to install APC on my VPS and when I do php -m the APC entry appears in that list. OS is centos

However, when I try this

print_r(get_loaded_extensions());

It is not listed in there. I have added

extensions=apc.so

in the php.ini in the root folder of the web app and in these two files

/usr/lib/php.ini
/usr/local/lib/php.ini

It is also not showing in the phpinfo page.

Any help is appreciated. I am

phpinfo() will tell you exactly what .ini files it's using. Then make sure that the .so files are actually in the appropriate extensions directory. You can't just drop them anywhere on your server and expect php to go looking for them. And of course, restart your server after you make any .ini changes