How to view your website’s PHP version?

The easiest way to create your phpinfo.php file is to use File Manager on cPanel. To do this, simply follow these steps:

  1. Log in to cPanel and navigate to the Files section.
  2. Click on File Manager and navigate to the root folder of the domain name you want to create the file on. For your primary domain name, this will be the public_html folder.
  3. Click on + File from the top menu and call the new file phpinfo.php and click Create New File.
  4. Either right-click on the file and select Edit or you can click on the file and select Edit from the top menu.
  5. Add the code below and click Save.
<?php 
 phpinfo(); 
?>

Now, when you visit yourdomain.com/phpinfo.php you will see all the necessary PHP information.

  • php, version
  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How to add an addon domain in cPanel?

An addon domain in cPanel is where you can add a new domain name for an additional website to use...

How to log in to cPanel?

Logging in to your cPanel account is very easy. Choose from the following options: Option 1 -...

What is the PHP memory limit?

The default PHP memory limit is 128MB on all cPanel accounts. This can be increased by using the...

How do I change PHP version on cPanel?

To change the PHP version on cPanel, you need to navigate to Select PHP Version and choose the...

How do I turn on PHP error messages on cPanel?

If you have ever come across an error on your website you will likely have been left scratching...