Answer the question
In order to leave comments, you need to log in
Why doesn't Openserver change PHP versions?
Initially I have PHP 7.0.0, I need to install 5.6 because of this error "Cannot use 'String' as class name as it is reserved
" in laravel 5.1. I change to openserver modules, put 5.6 instead of php 7.0.0, then I enter PHPstorm in the terminal php -version
and it gives me what the php 7.0.0 module costs
. What is my mistake? Where did I do wrong?
Answer the question
In order to leave comments, you need to log in
so you change in the open server, and look in the storm console. openserver does not change the global PHP version. and the storm uses the global just. that is, if you had not installed 7.0 yourself, then in the storm you would not have had PHP at all.
to change the global you need to register the path to it in PATH.
or to use the PHP version selected in the openserver (without changing PATH) - open the console built into it (openserver in the tray -> advanced -> console) and your 5.6 will be there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question