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?
phpinfo()
output:Scan this dir for additional .ini files => /etc/php5/embed/conf.d
? – datUser Jul 6 at 20:05PHP_INI_SCAN_DIR
to/etc/php5/embed/conf.d
, but that doesn't seem to change anything. – Ben Davis Jul 6 at 20:10extension_dir
set to anything in yourphp.ini
file? You might try setting that. – datUser Jul 6 at 20:16/usr/lib/php5/20121212
(though it's not set to that anywhere explicitly). Here's my full phpinfo(). – Ben Davis Jul 6 at 20:24extension_dir
to./
or/etc/php5/embed/
? That should force php to load all your extensions. – datUser Jul 6 at 20:31