A
A
Arthur2016-01-15 22:30:55
PHP
Arthur, 2016-01-15 22:30:55

Why does php -v show the old version?

I set PHP 5.6 in the OpenServer settings. Going into PHPInfo gives out 5.6.3. There is an error like this when using Laravel 5

Problem 1
    - This package requires php >=5.5.9 but your PHP version (5.4.35) does not satisfy that requirement.

Registered in the console php -v . Issued version 5.4.35, although in the settings and PHPInfo is 5.6.3! Help, half a day is destroyed ..

Answer the question

In order to leave comments, you need to log in

4 answer(s)
W
wol_fi, 2016-01-15
@r3st1k25

PATH

D
Dmitry Skogorev, 2016-01-15
@EnterSandman

whereis php
matches path in phpinfo?

S
seriogja, 2016-01-15
@seriogja

It looks like you have 2 versions of php. in detail

M
Make Now, 2017-01-17
@makenow

It also happens that you have Composer installed, and during installation it requires you to specify which version of php to associate it with, and accordingly makes this version global. Those. when changing the php version, you should also reinstall composer.. (this was the case for me. windows 10 + openserver)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question