gpt4 book ai didi

php - 我在哪里可以找到 PHPIniDir 指令及其在 Windows 10 操作系统上的 XAMPP 安装设置中的值?

转载 作者:可可西里 更新时间:2023-11-01 11:23:44 25 4
gpt4 key购买 nike

我使用的是Windows 10 单一语言家庭版,这是一个64 位操作系统

我已经在这台机器上使用最新的 XAMPP 副本安装了 Apache、PHP、MySQL。

我在 PHP Manual 中读到以下句子:

php.ini is searched for in these locations (in order):

  • SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD)

一切都已正确安装在我的机器上。我在浏览器中检查了 phpinfo(); 的输出,但在其中的任何地方都找不到 PHPIndir 指令及其值。

那么,请告诉我在哪里可以找到 PHPIniDir 指令及其值?

最佳答案

它在 httpd-xampp.conf 中(Apache配置文件),例如:

PHPIniDir "C:/php" 

httpd-xampp.conf文件在您的 apache 中安装文件夹,如果使用 xampp:xampp\apache\conf\extra .

更新:

正如 OP 指出的那样,xampp 包含它:

In C:\xampp\apache\conf\extra\httpd-xampp.conf file from line no. 39 to 41:

<IfModule php7_module> PHPINIDir "C:/xampp/php" </IfModule>

关于php - 我在哪里可以找到 PHPIniDir 指令及其在 Windows 10 操作系统上的 XAMPP 安装设置中的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50589130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com