Select Page

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

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'

Related Articles

Last Updated On March 22, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.