How to Check PHP & XAMPP version & location Info in Terminal
1 views
Jul 6, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you how to
0:04
check the PHP installed versions inside
0:07
your system directly in the terminal. So
0:10
the command is very simple. You simply
0:12
write PHP dash version and then it will
0:16
exactly tell you which version of PHP is
0:18
installed on your system. So as you can
0:21
see in my case it is 4.2.4
0:26
sorry PHP 8.2.4 4 this is the version
0:30
right here and if you also want to see
0:33
where it is installed so you can execute
0:35
this command where php
0:38
so as you can see this command returns
0:40
the full address where it is located
0:42
inside your computer so you can simply
0:45
open this or I know it is installed
0:49
through examp. So typically in the C
0:52
directory we have this folder of XAMP
0:54
and inside this we have this folder of
0:57
PHP
1:00
and then we have all these executables
1:03
out there for PHP. As you can see this
1:05
is the PHP executable which executes the
1:08
PHP code and if you still doesn't have
1:11
PHP installed it comes with the XAMP
1:15
Apache server. So you can download
1:18
example here which is a crossplatform
1:20
solution for Windows, Mac and Linux as
1:22
well. Simply select the bit. So
1:28
there is this download button. So once
1:30
XAMP is installed, you can launch XAMP
1:32
like this.
1:35
So this comes with its own control panel
1:38
which comes with Apache server MySQL
1:41
database as well. So you can start your
1:44
Apache server MySQL database like this.
1:47
So now the Apache server is running. So
1:49
you can open local host on the browser
1:52
and this is your Apache
1:55
welcome page which will open directly in
1:57
the browser. So in this easy way you can
1:58
check the PHP version and in the
2:02
terminal.
2:04
So also check out my website
2:07
freemediattools.com
2:09
uh which contains thousands of tools.