What version of PHP is my site using?

The PHP version for each site is displayed on the (Panel > 'Domains' > 'Manage Domains') page.

There, you’ll see a setting which lists the current PHP version for the domain (under the ‘Web Hosting’ column):

01 Domains Control Panel.fw.png

PHP also has a special function that can retrieve information about a particular installation of itself, and the environment in which it has been installed. To retrieve this information, all you have to do is save the following in a text file with a .php extension, upload the file to a web server, and then view it with a conventional web browser.

For example, you can create a file called phpinfo.php with the following content and then view it at example.com/phpinfo.php:

<?php
phpinfo();
?>

Once you visit the page, the following results appear:

  • information about PHP compilation options and extensions
  • the PHP version
  • server information and environment (if compiled as a module)
  • the PHP environment
  • OS version information
  • paths
  • master and local values of configuration options
  • HTTP headers, and
  • the PHP License.

See also

Did this article answer your questions?

Article last updated .