How to Reset the PHP Version to the Default Version, Using cPanel? (Video)

Resetting the PHP version to the default version for your domain using cPanel is a straightforward process. This can be helpful if custom PHP settings cause issues, or you want to revert to your hosting provider's default PHP version.


Step 1: Log in to cPanel

  1. Open your web browser and navigate to your cPanel login page (e.g., https://yourdomain.com:2083).
  2. Enter your username and password, then click Log in.

Step 2: Locate the PHP Selector Tool

  1. In the cPanel dashboard, scroll down to the Software section.
  2. Click on MultiPHP Manager or Select PHP Version, depending on your hosting provider.

Step 3: Identify the Domain

  1. In the MultiPHP Manager interface, you’ll see a list of domains and subdomains associated with your hosting account.
  2. Find the domain or subdomain for which you want to reset the PHP version.

Step 4: Reset to Default PHP Version

  1. For MultiPHP Manager:

    • In the PHP Version column, select the option labeled Inherit or System Default from the dropdown menu next to your domain.
    • This will reset the PHP version to the default version defined by your hosting provider.
  2. For Select PHP Version:

    • Click on the domain or subdomain where you want to reset the PHP version.
    • Select Default from the PHP version dropdown.
  3. Click Apply or Save to confirm the changes.


Step 5: Verify the Change

  1. To ensure the PHP version has been reset, create a phpinfo.php file in the root directory of your domain:
    • Go to File Manager in cPanel.
    • Create a file named phpinfo.php in the public_html folder.
    • Add the following code to the file:

                    <?php

                      phpinfo();

                     ?>

    • Save the file and visit https://yourdomain.com/phpinfo.php in your browser.

    2. Look for the PHP version to confirm it matches the default version set by your hosting provider.

    3. Delete the phpinfo.php file after verification to prevent exposing sensitive server information.


Tips for Resetting PHP Versions

  • Check Compatibility: Ensure your website and scripts work with the default PHP version.
  • Backup Your Website: Always back up your website before making changes to avoid data loss.
  • Contact Hosting Support: If you're unsure what the default version is or encounter issues, contact your hosting provider.

Resetting the PHP version to the default ensures stability and compatibility with your hosting environment, especially if custom configurations are causing problems.

 

 

 

 

    •  
  • 122 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

如何使用 cPanel 下载备份?(视频)

使用cPanel下载备份是一个简单的过程。以下是帮助您安全下载网站备份的逐步指南: 第一步:登录cPanel 打开您的网页浏览器。...

如何生成Sapna备份并发送到FTP服务器? (视频)

生成cPanel备份并将其发送到FTP服务器是一个简单的过程。以下是具体步骤: 第1步:登录cPanel...

如何在 cPanel 中恢复备份?(视频)

在 cPanel 中恢复备份是一个简单的过程,可以高效地恢复您的网站数据。以下是恢复备份的分步指南: 第一步:登录 cPanel 打开您的网页浏览器,访问...

如何在 cPanel 中更改账户密码?(视频)

在cPanel中更改账户密码非常简单,只需几个步骤即可完成。请按照以下说明操作。 第一步:登录cPanel...

How to update your contact information in cPanel? (Video)

Updating your contact information in cPanel is important to ensure you receive critical...