【发布时间】: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