D
D
Denis Dormadekhin2018-02-08 11:10:32
PHP
Denis Dormadekhin, 2018-02-08 11:10:32

How to change php version for command line?

I have a VPS with ISPmanager, installed an alternative version of php, 7.1 to be exact, installed it for the domain and for the user. The site opens using php 7.1, but the console still uses php 7.0
How can I change the php version for the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gleb Starkov, 2018-02-08
@dormadekhin

sudo update-alternatives --config php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question