【问题标题】:PHP Settings Error when trying to install Composer on Windows 7 machine尝试在 Windows 7 机器上安装 Composer 时出现 PHP 设置错误
【发布时间】:2020-01-08 05:08:41
【问题描述】:

我在下载“Composer-Setup.exe”时收到以下错误,双击该文件并运行 PHP 设置检查。

php.ini 文件中是否有几行需要修复?我正在尝试在我的命令提示符中运行与在我的 Xampp 服务器上安装 Laravel 相关的 composer 命令('C:/Xampp/htdocs')。

The PHP exe file you specified did not run correctly:
C:\Program Files (x86)\iis express\PHP\v7.0\php.exe

The php.ini used by your command-line PHP is: C:\Program Files (x86)\iis express\PHP\v7.0\php.ini

A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.

Program Output:
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_sqlsrv_72_ts.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_mysql.dll' - The specified module could not be found.
 in Unknown on line 0

【问题讨论】:

  • 我们可以提供php.ini,以便我们可以帮助您吗?尤其是提到的entension_dir 部分。
  • 很清楚,php找不到要加载的文件。
  • SQLServer 数据库扩展 php_sqlsrv_72_ts.dll 不附带 PHP 的默认安装。您必须单独安装它以及其他一些软件才能使其正常工作

标签: php laravel composer-php


【解决方案1】:

我认为问题出在你的php版本,尝试将你的php版本升级到7++

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-30
    • 2014-07-17
    • 1970-01-01
    • 2017-05-30
    • 2015-09-13
    • 2014-05-30
    • 2021-07-01
    • 2015-12-26
    相关资源
    最近更新 更多