Can we have 2 'extension_dir' in php.ini?
Solution 1:
Because it is the default location when installing via
pecl install
, while if you compile PHP from source, the extension path should be/usr/local/lib/php/extensions/no-debug-non-zts-20090626
.As far as I know, PHP doesn't support multiple
extension_dir
, it only pick the last one. Just typephp -i | grep eaccelerator
to see what happens.
The workaround is copy the extensions to the right path.