Link to home
Start Free TrialLog in
Avatar of mpaert
mpaert

asked on

How to find out PHP version in Linux SSH

How do I find out the version of PHP running on Linux via SSH?
Avatar of Roonaan
Roonaan
Flag of Netherlands image

you can run <?php phpinfo(); ?>

-r-
ASKER CERTIFIED SOLUTION
Avatar of xDamox
xDamox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
note that for XDamox solution to work, php must be in the system path, or else, you'll have to use php's absolute path /usr/lolcal/.../.../php --version