Is there a way to set a location for apache to read custom php.inis from? Currently it says "Scan this dir for additional .ini files
" as "(none)
"
The environment is CentoOS 6, Apache 2, and PHP running via DSO
Is there a way to set a location for apache to read custom php.inis from? Currently it says "Scan this dir for additional .ini files
" as "(none)
"
The environment is CentoOS 6, Apache 2, and PHP running via DSO
Scan directories for .ini
files is configured at compiled time via --with-config-file-scan-dir
option.
However for later versions of PHP from v5.2.0
you can overwrite it at run time by setting PHP_INI_SCAN_DIR
environment variable.
You can employ SetEnv directive within context of a server config, virtual host, directory or .htaccess
file to update this value.
SetEnv PHP_INI_SCAN_DIR /usr/local/opt/php-extras