Answer the question
In order to leave comments, you need to log in
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
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.
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.
Perhaps PHP is not installed at all, usually there is no PHP and MySQL on the VPS.
First of all, you need to ask questions to the technical support service of your hosting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question