J
J
Jedi2017-07-26 17:00:15
PHP
Jedi, 2017-07-26 17:00:15

How to change PHP path in composer?

I remember installing Composer on the 5.6th version of PHP (Open Server), now how can I change it to the 7th (7.1) version?
Please explain to me how this Composer works, I just feel like I'm thinking wrong about Composer.
Now I installed Laravel, I wanted to run it, but the error is (laravel\bootstrap/../vendor/autoload.php' (include_path='.;c:/openserver/modules/php/PHP-5.6;c:/openserver/modules/ php/PHP-5.6/PEAR/pear') in C:\Users\Ember\PhpstormProjects\laravel\boots
trap\autoload.php on line 17)
.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anastasia Sokolova, 2017-07-26
@PHPjedi

Computer -> System Properties -> Advanced Settings -> "Advanced : Environment Variable"
In system variables find "Path" and change the path to (for example): D:\OpenServer\modules\php\PHP-5.3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question