H
H
HeartOfProgrammer2016-02-19 20:55:25
PHP
HeartOfProgrammer, 2016-02-19 20:55:25

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
3a49f9e2da71491d81aae100cd7eb3f7.png
. What is my mistake? Where did I do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-02-19
@HeartOfProgrammer

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 question

Ask a Question

731 491 924 answers to any question