C
C
chelkaz2016-07-09 19:20:00
linux
chelkaz, 2016-07-09 19:20:00

After installation on CentOS 7 PHP 7 says php: command not found, why?

Installed PHP 7 on CentOS 7 like this:

# rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
# yum install php70u -y
Установка:
 mod_php70u
Установка зависимостей:
 apr          
 apr-util     
 centos-logos 
 httpd        
 httpd-tools  
 mailcap      
 php70u-common
Установлено:
  mod_php70u.x86_64 0:7.0.8-1.ius.centos7

If I look:
#whereis php
php: /usr/lib64/php /etc/php.ini /etc/php.d /usr/share/php

But when I check:
#php -v
-bash: php: команда не найдена

I do not understand anything, it was installed or not? How to make PHP work
If I check for a binary:
/usr/lib64/php -v
Then it says -bash: /usr/lib64/php: This is a directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
O Di, 2016-07-09
@chelkaz

yum install php70u-cli
?
It can be seen that there are no binaries (executable files).
For self-education - The structure of the Linux file system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question