1

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

4

1 回答 1

2

phpinfo()会告诉你它正在使用哪些 .ini 文件。然后确保 .so 文件实际上位于适当的扩展目录中。您不能只是将它们放在服务器上的任何位置并期望 php 去寻找它们。当然,在进行任何 .ini 更改后重新启动服务器

于 2013-09-06T18:57:52.977 回答