[英]Apache - CentOS - “Scan this dir for additional .ini files”
Is there a way to set a location for apache to read custom php.inis from?有没有办法为apache设置一个位置来读取自定义php.inis? Currently it says "
Scan this dir for additional .ini files
" as " (none)
"目前它说“
Scan this dir for additional .ini files
”为“ (none)
”
The environment is CentoOS 6, Apache 2, and PHP running via DSO环境为 CentoOS 6、Apache 2 和通过 DSO 运行的 PHP
Scan directories for .ini
files is configured at compiled time via --with-config-file-scan-dir
option. .ini
文件的扫描目录在编译时通过--with-config-file-scan-dir
选项配置。
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.但是,对于
v5.2.0
以后的 PHP 版本,您可以在运行时通过设置PHP_INI_SCAN_DIR
环境变量来覆盖它。
You can employ SetEnv directive within context of a server config, virtual host, directory or .htaccess
file to update this value.您可以在服务器配置、虚拟主机、目录或
.htaccess
文件的上下文中使用SetEnv 指令来更新此值。
SetEnv PHP_INI_SCAN_DIR /usr/local/opt/php-extras
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.