PHP command not found in windows

Pada artikel ini kita akan membahas masalah PHP command not found in windows . apa itu PHP command not found in windows.. ?

jadi ketika kita ingin mengetikkan php -v pada cmd atau power shell windos kita maka yang mucul malah

C:\Users\admin>php -v
'php' is not recognized as an internal or external command,
operable program or batch file.

nah untuk mengatasi hal tersebut maka kita perlu menambahkan PHP kita ke path directory di windows kita.. baik langsung saja kita praktekkan

  1. Buka My Computer Properties
  2. Click on Advance System Setting
  3. Pilih Environment Variables
  4. Lihat atau pilih the ‘System Variables’ pane
  5. Click pada Path & Edit
  6. Click new & Add your PHP.exe path (e.g. C:\xampp\php\php.exe)

7. Langkah terakhir Restart komputer

Sumber 1 2 3 4

About hanif burhan

Check Also

cahsemarang.com

Belajar HTML dasar Part 6 : Formatting text Pada HTML

Formatting text adalah sebuah penegasan teks seperti cetak tebal, cetak miring, dan garis bawah . …

Leave a Reply

Your email address will not be published.