PHP

How to check which version of PHP you are running on Linux

Written by Ian Carnaghan · 9 sec read >

NOTE: Tested on Centos 4 & 5 and Ubuntu 9.04

  • In the command line type in the following command to get all PHP information and configurations
    php -i
  • To get the Version number use the following command
    php -v
  • Or this command:
    php -i | grep 'PHP Version'

Last Updated On March 22, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of