How Can I Find Which PHP Version I Have?

by carolm
6 replies
  • SEO
  • |
Where and how do I find out what PHP version my site is using? I did a search at my cPanel but it said Nothing Found.

It would be appreciated if you could give me a non-geek answer - the contents of my cPanel's File Manager data-base is pretty much unexplored territory for me.

Thanks.
#find #php #version
  • Profile picture of the author Kingfish85
    Place the code below into a file called: info.php then browse to the file in your browser.

    <?php

    phpinfo();

    ?>
    Signature

    |~| VeeroTech Hosting - sales @ veerotech.net
    |~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
    |~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
    |~| Visit us @veerotech Facebook - Twitter - LinkedIn

    {{ DiscussionBoard.errors[8167407].message }}
  • Profile picture of the author paulgl
    Login to cpanel. Find phpmyadmin. Click on that.
    Find the database server, right side. Check out the php software version.
    Different cpanels may actually have server info to the left on the
    main page after logging in. The box will be labeled general server info.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[8167545].message }}
  • Profile picture of the author carolm
    Thanks for these replies: here is what I found at phpMyAdmin:

    MySQL
    • Server: Localhost via UNIX socket
    • Server version: 5.5.23-55
    • Protocol version: 10
    • MySQL charset: UTF-8 Unicode (utf8)
    phpMyAdmin
    • Version information: 3.4.11.1, latest stable version: 4.0.3
    Web server
    • cpsrvd 11.34.1.14
    • MySQL client version: 5.5.23
    • PHP extension: mysql: Documentation

    Does this mean my php version is: Server version: 5.5.23-55?

    Or maybe 'Version information: 3.4.11.1'?
    {{ DiscussionBoard.errors[8167647].message }}
    • Profile picture of the author Kingfish85
      Originally Posted by carolm View Post

      Thanks for these replies: here is what I found at phpMyAdmin:

      MySQL
      • Server: Localhost via UNIX socket
      • Server version: 5.5.23-55
      • Protocol version: 10
      • MySQL charset: UTF-8 Unicode (utf8)
      phpMyAdmin
      • Version information: 3.4.11.1, latest stable version: 4.0.3
      Web server
      • cpsrvd 11.34.1.14
      • MySQL client version: 5.5.23
      • PHP extension: mysql: Documentation

      Does this mean my php version is: Server version: 5.5.23-55?

      Or maybe 'Version information: 3.4.11.1'?
      No, the latest release is at 5.4.x Those are not for the core php anyhow, they are for mysql, phpmyadmin and the web server version. phpMyAdmin 3.4 is fairy outdated as well.

      If you follow the steps I gave in my first post, it will tell you the exact version..
      Signature

      |~| VeeroTech Hosting - sales @ veerotech.net
      |~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
      |~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
      |~| Visit us @veerotech Facebook - Twitter - LinkedIn

      {{ DiscussionBoard.errors[8167667].message }}
      • Profile picture of the author carolm
        Originally Posted by Kingfish85 View Post


        If you follow the steps I gave in my first post, it will tell you the exact version..
        Hi Kingfish, I didn't do that because I didn't understand what you meant.
        "Place the code below into a file called: info.php then browse to the file in your browser".
        Where is the file called info.php and how do I copy paste that code into it? I searched my database for info.php and got nothing relevant.
        Just
        /public_html/wp-admin/network/site-info.php

        which I opened and found 'about.php' which told me:
        <?php
        /**
        * Network About administration panel.
        *
        * @package WordPress
        * @subpackage Multisite
        * @since 3.4.0
        */
        /** Load WordPress Administration Bootstrap
        */ require_once( './admin.php' );
        if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) );
        require( '../about.php' );
        And " browse to the file (what file, where?) in your browser' - or did you really mean 'a file' as you wrote - if so, what sort of 'a' file?

        And by 'browser', do you mean Firefox? Surely not?

        It's confusing if you are not a geek!
        {{ DiscussionBoard.errors[8167777].message }}
        • Profile picture of the author Kingfish85
          Originally Posted by carolm View Post

          Hi Kingfish, I didn't do that because I didn't understand what you meant.
          "Place the code below into a file called: info.php then browse to the file in your browser".
          Where is the file called info.php and how do I copy paste that code into it? I searched my database for info.php and got nothing relevant.
          Just
          /public_html/wp-admin/network/site-info.php

          which I opened and found 'about.php' which told me:
          <?php
          /**
          * Network About administration panel.
          *
          * @package WordPress
          * @subpackage Multisite
          * @since 3.4.0
          */
          /** Load WordPress Administration Bootstrap
          */ require_once( './admin.php' );
          if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) );
          require( '../about.php' );
          And " browse to the file (what file, where?) in your browser' - or did you really mean 'a file' as you wrote - if so, what sort of 'a' file?

          And by 'browser', do you mean Firefox? Surely not?

          It's confusing if you are not a geek!
          You will need to create the info.php file and place the code I gave into the file, then save it. then go to yoursite.com/info.php

          Else, you can ask your web host what version is being used.
          Signature

          |~| VeeroTech Hosting - sales @ veerotech.net
          |~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
          |~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
          |~| Visit us @veerotech Facebook - Twitter - LinkedIn

          {{ DiscussionBoard.errors[8167784].message }}

Trending Topics