php.ini 丢失/帮助安装 php

php.ini is missing/ help to install php

我是初学者,实际上我正在尝试安装 php 因为我必须 运行 .php

中的文件

我在此处安装了可用的 ZIP 文件:https://windows.php.net/download#php-7.4 我在 Windows 10

上安装了 8.0.9 版本

然后当我 运行 文件时,有一个错误是:

Environment check

[*] The "json" PHP extension is installed.   

[*] The "phar" PHP extension is installed.

[*] Git is installed.

[X] The openssl PHP extension is required.

The extension already exists at: C:\Users\fabie\Downloads\php-8.0.9-nts-Win32-vs16-x64\ext\php_openssl.dll

To enable it, edit your php.ini configuration file and add the line: extension=C:\Users\fabie\Downloads\php-8.0.9-nts-Win32-vs16-x64\ext\php_openssl.dll

所以我检查了php目录中是否有'php.ini'(即C:\Users\fabie\Downloads\php-8.0.09-nts-Win32-vs16-x64)

只有php.ini-发展和php-ini.production.

我的问题是:如何解决这个问题?我必须以不同的方式安装 php 吗?我必须创建一个 php.ini 文件吗?我必须在 -developement 和 -production 文件上写吗?

谢谢

复制 php.ini-development 并将其重命名为 php.ini(或者选择 php.ini-production,如果适合您的需要)。这些是您可以基于自己的配置的示例配置文件。之后根据自己的喜好进行编辑。