How to fix php is not recognized as an internal and external Command Error in Terminal
208 views
Jun 7, 2025
Buy the full source code of application here:
View Video Transcript
0:00
uh hello guys welcome to this video so
0:03
in this video I'll show you if you are
0:05
getting this error message if you type
0:07
PHP and PHP is not recognized as an
0:11
internal or external command if you
0:12
can't access PHP from the terminal then
0:15
in this video I will show you how to fix
0:17
this error message so PHP comes with the
0:20
exam control panel if you haven't
0:22
installed this software definitely
0:24
install this it's a crossplatform
0:26
software it comes with PHP MySQL
0:29
database as well so I have already
0:32
installed this software but still I'm
0:34
getting this error message i can't
0:35
access PHP from the
0:37
terminal so if you already installed
0:42
it then you need to go to the C drive by
0:45
default exam is located in the C drive
0:48
it will create this
0:49
folder and then there is a folder called
0:52
as PHP if you search for the PHP folder
0:56
you will see this
0:58
folder open this folder and just right
1:01
click copy this location of this
1:04
folder and then just open your
1:06
environment
1:09
variable and then select the system
1:11
variable and which is your path right
1:14
here and just edit click on new and just
1:19
paste this path so after pasting this
1:22
path right here uh just restart the
1:24
terminal and execute the same
1:29
command PHP version so you will see the
1:32
PHP command will perfectly work right
1:35
here so in this easy way you can fix
1:38
this error message uh thank you very
1:40
much for watching this video and also
1:42
check out my
1:44
website
1:46
freemediatools.com which contains
1:48
thousands of tools regarding audio video
1:51
and image
#Programming