改变作曲家的php位置

时间:2017-05-01 22:50:20

标签: php composer-php

如何更改作曲家使用的PHP的位置?

我尝试再次运行设置,但它继续使用旧设置。

The PHP exe file you specified did not run correctly:
D:\servers\php_5_5_37_x86\php.exe

The php.ini used by your command-line PHP is: D:\servers\php_5_5_37_x86\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:
Warning: PHP Startup: Unable to load dynamic library 'D:/Servers/php_5_4_39_x86/ext/php_curl.dll' - Não foi possível encontrar o módulo especificado.
 in Unknown on line 0

1 个答案:

答案 0 :(得分:1)

您需要修改“php”文件夹的路径'在' PATH'系统环境变量的变量。

检查一下: https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10