Php5 won't load extensions via apache, but all modules are displayed using php -m?
I am trying to install PHP5-APC ( http://uk.php.net/apc/
). I've used macports to get this far.
When I run php -m I get a list of many modules including apc, but the apache error log is:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' - (null) in Unknown on line 0
and there are no modules loaded in phpinfo ()
Please, help! I am totally confused about this.
Thanks,
Dan
a source to share
php-cli
and mod_php
- completely different battery life. You can easily install a different version and they usually read from different php.ini
files.
In this case, the problem is with the apc extension. Try commenting it out from your file php.ini
(the one that Apache uses). apc is the cache, so if you only use your development machine (in my opinion you don't have hosting on a Mac) you don't really need that.
a source to share