更改本地服务器

时间:2018-02-05 11:29:42

标签: php windows mamp

从XAMPP更改为MAMP后,加载的配置文件不会在命令行中加载。

Runnung php --ini..
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File:         (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

从localhost加载phpinfo();时,php.ini工作正常。

由于没有php.ini,因此在运行composer命令时会收到以下消息。

  [Composer\Exception\NoSslException]
  The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex
  tension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.

编辑:我知道启用extension = php_openssl.dll将解决php.ini中的NoSslException,但问题是如何在命令行中加载正确的php.ini?

0 个答案:

没有答案
相关问题