Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains extension=curl.so.

Looking at phpinfo(), it doesn't show that any files in the conf.d directory are being loaded. The php.ini path shows up as /etc/php5/embed/php.ini, so everything seems to be in the right place.

What is the mechanism behind which php-embed loads extensions?

share|improve this question
    
Do you see the following anywhere in your phpinfo() output: Scan this dir for additional .ini files => /etc/php5/embed/conf.d? –  datUser Jul 6 at 20:05
    
no, that just says (none). I've tried setting the environment variable PHP_INI_SCAN_DIR to /etc/php5/embed/conf.d, but that doesn't seem to change anything. –  Ben Davis Jul 6 at 20:10
    
Is the variable extension_dir set to anything in your php.ini file? You might try setting that. –  datUser Jul 6 at 20:16
    
Interesting, in phpinfo() it has extension_dir set to /usr/lib/php5/20121212 (though it's not set to that anywhere explicitly). Here's my full phpinfo(). –  Ben Davis Jul 6 at 20:24
    
Have you tried to explicitly set extension_dir to ./ or /etc/php5/embed/? That should force php to load all your extensions. –  datUser Jul 6 at 20:31

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.