How can I change my hosting PHP configuration and check PHP configuration?

You are here:
  • Main
  • cPanel Tutorial
  • How can I change my hosting PHP configuration and check PHP configuration?
Table of Contents

Change PHP Configuration

You might need to change the PHP configuration for multiple reasons. Now you can modify your PHP configuration easily with cPanel’s MultiPHP INI Editor. A visual option to change the common PHP settings and changing from a text version is also available. To change your PHP settings:

  1. Log in to your cPanel account
  2. Click on the “MultiPHP INI Editor” icon from the Software section
  3. Now you have the basic mode and advanced mode for editing your PHP configuration. Advanced mode will allow you to edit the php.ini in text mode.
  4. From the Configure PHP INI basic dropdown menu, you can select the entire home directory or any specific domain that you want to work with.
    PHP INI Setup
  5. Now you can modify the PHP settings such as memory_limit, max_execution_time, upload_max_filesize etc.
  6. After you have changed the values, click on the “Apply” button to save the changes.

If you have selected the “Editor Mode”, you can also select the domain that you want to work with and enter the appropriate PHP configuration there.

It this few easy steps, you have successfully modified the PHP version of your website as you need.

How do I check PHP version and configuration?

You can check your PHP versions in a few ways, here, we will show you how you can check your PHP version and configurations with PHP configuration files. Where’s how to do that:

  1. Log in to your cPanel account, then go to File Manager.
  2. Open public_html folder and click on +File button at the top. Create the new file with filename phpinfo.php and click on “Create New File”
  3. Right-click on the newly created file and click on Edit button.
    Edit PHP INI File
  4. If you are shown Encoding Check, then click on the “Edit” button. You can also click on “Disable Encoding Check” to disable this message in future edits.
    Disable Encoding Check
  5. Paste the following code in the file:

    phpinfo();
    ?>

  6. Click on save changes to save the file changes on the server.
  7. Now you can visit your website url/phpinfo.php and you will see the PHP configurationPHP Info

On this page, you will find detailed information about PHP on your site. You can check which PHP version you are using and what extensions are enabled for your website. Once you are done with checking the configuration, remove the config file so that no one else can know your server status.

That’s it!

How can I change the PHP version of my website?

You can change PHP version for your websites from cPanel. To do that, follow the steps below:

  1. Log in to cPanel account.
  2. Go to MultiPHP Manager from the software section.MultiPHP Manager
  3. Select the domains that you want to change the PHP version of by ticking the checkbox.select Domain
  4. Select your PHP version from the left-hand side dropdown menu.select PHP Version
  5. Click the apply button to save the changes.Apply PHP Version

You can change PHP versions for your individual domains and subdomains in this way.

Was this article helpful?
How can we improve this article?