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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.