[uWSGI] uwsgi and PHP_INI_SCAN_DIR

Matteo Centonza matteo at metatype.it
Fri Apr 4 18:38:35 CEST 2014


Hello Jon, Roberto,


2014-04-04 17:31 GMT+02:00 Jon Chappell <jon at jchome.us>:

> This sounds like you need to export an environment variable that will be
> available, no?
>
>
> If so, including something like this in your uwsgi config might help:
>
> env = PHP_INI_SCAN_DIR=/var/path/to/stuff
>


this hint has indeed worked just fine and as verified via phpinfo(), php is
correctly
picking up ini files from that path.

The only side problem that i've experienced is that whenever i specify (as
i need to)
a php-ini directive (same using php-config or any other append variant) to
point to an
alternate php.ini file, php stops honoring the PHP_INI_SCAN_DIR. Don't know
if this is expected.

@Roberto: thanks for the hint to cycle on ini files.

A presto,

-m



>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20140404/b66bf04f/attachment-0001.html>


More information about the uWSGI mailing list