Question: How to Check Php Version Linux?
Contents Open a Bash Shell Terminal and Use the Command “Php –Version” or “Php -V” to Get the Version of Php Installed on the System. as You Can See from Both...
Open a bash shell terminal and use the command “php –version” or “php -v” to get the version of PHP installed on the system.
As you can see from both the command output above, the system has PHP 5.4.16 installed.
2.
You can also check for the package versions installed on the system to get the PHP version.
How can I check my PHP version?
You can check the version by running a simple PHP file on your webs server. You can also check what version is installed on your local computer using the Command Prompt or Terminal.
How do I run Phpinfo?
Running phpinfo() diagnostics. The phpinfo() function can be used to output a large amount of information about your PHP installation and can be used to identify installation and configuration problems. To run the function, just create a new file called test.php and place it into the root directory of your web server.