A
A
Alexey2018-02-08 17:10:20
PHP
Alexey, 2018-02-08 17:10:20

Why doesn't php -v work on Jino VPS?

Folks...who faced such nonsense:
Jino VPS has PHP 5.6 by default. With the standard installation procedure via yum, nothing works from the Remi repository!
#rpm -Uvh rpms.famillecollet.com/enterprise/remi-release-7.rpm
#vi /etc/yum.repos.d/remi-php71.repo
[remi-php71] enable=1
#yum makecache
#yum update php
#systemctl restart httpd.service

In the console php -v gives "command not found"
Through index.php - phpinfo() shows that on the server 5.6

Answer the question

In order to leave comments, you need to log in

6 answer(s)
P
Puma Thailand, 2018-02-08
@opium

Firstly, it is probably not called php there.
Secondly, you did not install php cli for the console
. Thirdly, you did not install php as an apache model.

D
Dmitry Bay, 2018-02-08
@kawabanga

Write the full path to php in the command.
And yes, there is an analogue path for Windows, in order to use the program by its short name.

O
OKyJIucT, 2018-02-08
@OKyJIucT

Perhaps PHP is not installed at all, usually there is no PHP and MySQL on the VPS.

D
doublench21, 2018-02-08
@doublench21

Offtopic. Why Jinno?? Why not DigitalOcean, Heroku, Aws???

H
Host-Eiweb, 2018-02-09
@Host-Eiweb

First of all, you need to ask questions to the technical support service of your hosting.

O
Orbb, 2018-05-06
@humiliation

put a symlink, they have it not in the standard path
ln -s /usr/local/zend/bin/php /usr/bin/php
+
they have a faq for updating:
https://www.jino.ru/help/ faq/vps/php centos/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question