Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add a php extension to a custom php.ini file. The extension is installed locally, not in usr/lib. How do I make php "look for" the extension there?

share|improve this question
Specify it as an absolute path? – Garrett Nov 18 '11 at 16:57
Nope, didn't work. – Yitzchak Nov 18 '11 at 17:08
You should be able to override the extension_dir setting with the custom php.ini to point it at the directory which contains the extension. – Garrett Nov 18 '11 at 17:33
I'll keep trying then. Must be some setting. – Yitzchak Nov 20 '11 at 16:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.