S
S
Sergey Tyrtyshnikov2015-08-01 16:29:15
PHP
Sergey Tyrtyshnikov, 2015-08-01 16:29:15

How do I change the version of PHP I'm using when working through SSH?

Hello, there was a need to change the PHP version when working through the console.
I use hosting from reg.ru. There is a corresponding section in the provider's FAQ:
31283094676b4fd99a0bf95832911d61.jpg
Please explain the phrase:

When working in the console, use the following paths to PHP handlers to run scripts under different versions:

What exactly do I need to do to change the path and use the correct version of PHP?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
srach, 2015-08-06
@qn0361

Try for PHP 5.2, for example:
/opt/php/5.2/bin/php-cgi <path to your php script> - run the script under version 5.2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question