Our Help Portal

Troubleshooting Support Articles
Searchable Help Information Repository
Self-Service Resources How-Tos
Technical Customer Walkthroughs   Browse All Knowledge ! ....

Get Prices Learn More

Breaking

< All Topics
Print

How do I find my PHP version?

Finding the PHP version of your web hosting account is straightforward and can be done in a couple of ways. Here are two common methods:

1. Using a PHP Info Page:

  1. Create a new PHP file:
    • Use a text editor (like Notepad or any code editor) to create a new file.
    • Add the following line of code to the file:
      php
      <?php phpinfo(); ?>
  2. Save the file:
    • Save the file with a “.php” extension, for example, “phpinfo.php”.
  3. Upload the file to your server:
    • Use an FTP client or your hosting control panel’s file manager to upload the file to your web server.
  4. Access the file through a web browser:
    • Open your web browser and navigate to the file you just uploaded. For example, if your domain is “example.com” and you uploaded the file to the root directory, enter:
      http://example.com/phpinfo.php
  5. Find the PHP version:
    • The PHP Info page will display extensive information about your PHP configuration. Look for the “PHP Version” section to find your PHP version.

2. Using cPanel:

  1. Log in to cPanel:
    • Access your cPanel using the provided URL, username, and password.
  2. Navigate to “MultiPHP Manager” or “PHP Selector” (depending on your cPanel version):
    • Look for an option related to PHP version management. This is often found in the “Software” or “Software and Services” section.
  3. View the PHP version:
    • In the PHP version management section, you should see the current PHP version for your account.

Keep in mind that the exact steps might vary depending on your hosting provider and the version of cPanel they are using. If you are unsure or if you encounter any difficulties, you can contact your hosting provider’s support for assistance. Additionally, always ensure that you are using a supported and secure version of PHP for your web applications.

Categories