PHP Command Not Found Di Linux Centos

Masalah terjadi ketika saya akan melihat versi php yang terinstall setelah menjalankan syntak dibawah ini :

php -v

Respon dari syntak di atas keluar output seperti ini 

-bash: php: command not found

Solusi yang bisa dilakukan adalah dengan menginstall module php-cli dengan menjalankan syntak dibawah ini :

yum install php71w-cli

Progress penginstallan module php-cli

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.axarva.id
 * epel: mirror.nes.co.id
 * extras: mirror.axarva.id
 * updates: mirror.axarva.id
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php71w-cli.x86_64 0:7.1.11-1.w7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                  Arch                                 Version                                     Repository                              Size
========================================================================================================================================================================
Installing:
 php71w-cli                               x86_64                               7.1.11-1.w7                                 webtatic                               3.0 M

Transaction Summary
========================================================================================================================================================================
Install  1 Package

Total download size: 3.0 M
Installed size: 9.3 M
Is this ok [y/d/N]: y
Downloading packages:
php71w-cli-7.1.11-1.w7.x86_64.rpm                                                                                                                | 3.0 MB  00:00:57
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php71w-cli-7.1.11-1.w7.x86_64                                                                                                                        1/1
  Verifying  : php71w-cli-7.1.11-1.w7.x86_64                                                                                                                        1/1

Installed:
  php71w-cli.x86_64 0:7.1.11-1.w7

Complete!

 

Related Articles

Comments