Introduction
Many websites host multiple domains or subdomains under the same cPanel account. Each domain may require a different version of PHP depending on the CMS, plugins, or custom scripts it uses. With Tublat hosting, you can set the PHP version per domain using cPanel’s MultiPHP Manager or equivalent interface. This flexibility ensures compatibility, performance, and security across different parts of your web presence.
Why You Should Set PHP Version on a Per-Domain Basis
-
Compatibility: Some sites need older PHP for legacy plugins, while others require newer versions for modern code.
-
Isolation: Change PHP version for one domain without affecting others under the same account.
-
Optimized performance: Use the latest stable PHP on domains that support it, and match older domains to their requirements.
-
Better management: Avoid conflicts between different sites’ requirements by segregating PHP configurations.
Step-by-Step: Configure PHP Version per Domain in cPanel
-
Log in to cPanel on Tublat
Access your account viayourdomain.com/cpanelor through the Tublat dashboard using your credentials. -
Open MultiPHP Manager or PHP Selector
In cPanel, navigate to the Software section and click MultiPHP Manager (or Select PHP Version if your interface uses that). -
View domains/subdomains list
You’ll see a list of all domains and subdomains associated with your cPanel account, and the current PHP version assigned to each. -
Select the domain(s) to configure
Check the checkbox next to the domain(s) for which you wish to change the PHP version. -
Choose the desired PHP version
From the dropdown menu, pick the PHP version you want to assign (for example, PHP 8.2, 8.3). Ensure it's supported by your site’s code and plugin requirements. -
Apply the change
Click Apply or Save to commit the setting. The PHP version for that particular domain will be updated immediately (or within seconds). -
Verify and test the domain
Visit the domain to ensure everything works correctly. Check for errors, plugin functionality, and site behavior under the new PHP environment.
Best Practices & Tips
-
Always backup your site and database before making changes.
-
Use staging environments when possible to test PHP version changes prior to applying on live domains.
-
Start with the latest stable PHP version for domains that support it.
-
If a site breaks after change, revert to the previous PHP version or look for incompatible plugins.
-
Monitor error logs and site behavior after switching.
-
Avoid making changes during peak traffic periods.
-
If possible, set different PHP versions based on each site’s needs instead of a one-size-fits-all setting.
Common Issues & Troubleshooting
-
Domain missing from the list:
Ensure the domain or subdomain is correctly added in cPanel and active. -
Apply button not available:
It may be restricted by your hosting plan. Contact Tublat support to enable per-domain PHP control. -
Site breaks after switching:
Revert version temporarily, check plugin compatibility, or adjust code to match the newer PHP syntax. -
Changes not taking effect:
Clear site cache, server cache, or wait a few minutes. Some hosting setups cache PHP configurations briefly. -
Custom
.htaccessoverrides:
If you enforced PHP version via.htaccessor configuration files, that may override cPanel settings—remove conflicting directives.
Why This Is Important for Tublat Users
For Tublat clients, being able to configure the PHP version per domain empowers you to tailor environments to individual site needs. This fine control helps avoid plugin conflicts, improve performance, and manage multiple projects from a single account without compromise. Since not all websites are built alike, this feature ensures your hosting adapts to the code rather than forcing all sites into a single PHP version.