[Solved] PHP is not recognized as an internal and external command Error
Feb 5, 2025
Get the full source code of application here: Hi Join the official discord server to resolve doubts here: https://discord.gg/cRnjhk6nzW Visit my Online Free Media Tool Website https://freemediatools.com/ Buy Premium Scripts and Apps Here: https://procodestore.com/
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you how to fix
0:04
this error which comes in the terminal
0:07
which if you execute the PHP command
0:10
then it comes PHP it is not recognized
0:13
as an ex external or internal command so
0:17
this issue comes because you haven't
0:19
added the path inside your environment
0:21
variables you have installed
0:23
PHP I am assuming you should need to go
0:26
to exam if you are on Windows
0:31
for so if you haven't installed PHP
0:33
first of all go to this website and
0:36
install this ex exam control panel which
0:39
comes with it is available for Mac Linux
0:43
windows so depending upon your operating
0:46
system just install the CXC file Ive
0:49
already installed it so by default exam
0:52
is located inside your C directory and
0:56
then automatically it creates its folder
0:58
examp and inside this it contains a PHP
1:02
folder so if you just say this PHP
1:05
folder and this is actually the path
1:07
here which is C exam and PHP so you just
1:11
need to copy this path that this path we
1:13
need to add this in order to fix that
1:17
error so just copy this path and also if
1:21
you just type examp you will see this
1:24
exam control panel and this is your
1:27
Apache server which comes with PHP my
1:30
server as well so just go to your
1:32
environment variables just type
1:34
environment variables and this window
1:37
will open and go to this environment
1:40
variable section right here and then go
1:42
to your path here this is your Global
1:44
path variable click on edit and then
1:47
click on this new button right here to
1:50
add a new path and simply paste that
1:52
path here C exam
1:55
PHP so step by step process you need to
1:58
follow so just add this path in the pH
2:01
uh this path here click on
2:04
okay and then restart your
2:07
terminal just close it and restart once
2:10
again and type the same command PHP so
2:14
you'll now see the command will get
2:17
successful so now you will be able to
2:21
execute the PHP
2:26
command so you can see PHP D- version so
2:30
it will tell you the exact version which
2:31
is installed which is
2:34
4.2.4 sorry PHP
2:36
8.2.4 and it is
2:39
actually in this way so this command
2:42
will be fixed so in this way you can
2:45
access or fix that error message so
2:48
first of all just install the exam if
2:50
you haven't installed it it comes with
2:52
this exe file so depending upon the
2:54
operating system so if you are on
2:57
64bit simply click it and then it will
3:00
automatically your download will start
3:03
it's a simple exe file which
3:05
automatically downloads exam control
3:08
panel on your system so it will come
3:11
you'll see it's a exe file
3:22
144.5 step process you just need to
3:24
follow this and then the error will be
3:26
fixed so thank you very much guys for
3:29
watching this video video and also check
3:31
out my website as well free mediat
3:33
tools.com uh which contains thousands of
3:36
tools regarding audio video an image and
3:39
I will be seeing you guys in the next
3:41
video
#Internet & Telecom
#Programming