significance
significance

Reputation: 5105

php5 won't load extensions through apache, but modules all show using php -m?

I've been trying to install PHP5-APC (http://uk.php.net/apc/). I used macports to get this far.

When i run php -m , i get a list of lots of modules including apc, but the apache error log gives out:

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's no modules at all loaded in phpinfo()

Please help! I'm completely confused by this.

Thanks,

Dan

Upvotes: 0

Views: 1021

Answers (1)

troelskn
troelskn

Reputation: 117567

php-cli and mod_php are completely different runtimes. You can easily have different version installed, and they usually read from different php.ini files.

In this case, the problem lies with the apc extension. Try to comments it out from your php.ini file (The one that Apache uses). apc is a cache, so if you only use your machine for development (You aren't hosting anything on a Mac, I presume), you don't really need it anyway.

Upvotes: 2

Related Questions