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
- Open your web browser and navigate to your cPanel login page (e.g.,
https://yourdomain.com:2083
). - Enter your username and password, then click Log in.
Step 2: Locate the PHP Selector Tool
- In the cPanel dashboard, scroll down to the Software section.
- Click on MultiPHP Manager or Select PHP Version, depending on your hosting provider.
Step 3: Identify the Domain
- In the MultiPHP Manager interface, you’ll see a list of domains and subdomains associated with your hosting account.
- Find the domain or subdomain for which you want to reset the PHP version.
Step 4: Reset to Default PHP Version
-
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.
-
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.
-
Click Apply or Save to confirm the changes.
Step 5: Verify the Change
- 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 thepublic_html
folder. - Add the following code to the file:
phpinfo();
-
- Save the file and visit
https://yourdomain.com/phpinfo.php
in your browser.
- Save the file and visit
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.