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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.