MultiPHP Manager in cPanel lets you control the PHP version for each of your domains independently. You can select from any installed PHP version, enable PHP-FPM for better performance, and switch versions anytime without affecting other domains on your account.
This tool is especially useful when you run multiple websites with different PHP requirements. For example, an older WordPress site might need PHP 7.4, while a newer application requires PHP 8.1.
What is MultiPHP Manager?
MultiPHP Manager is a cPanel interface that allows you to manage PHP versions and settings for your hosting account. Instead of applying one PHP version to your entire account, you can assign different versions to different domains.
The key features include:
- Per-domain PHP versions: Each domain, subdomain, and addon domain can run its own PHP version
- PHP-FPM support: Enable PHP FastCGI Process Manager for improved performance on high-traffic sites
- Inheritance options: Domains can inherit the system default PHP version or use a custom version
- Easy switching: Change PHP versions instantly without technical knowledge
Understanding PHP Versions and Inheritance
When you view your domains in MultiPHP Manager, you will see the current PHP version for each domain. Some domains may show an Inherited label, which means they are using the system default PHP version set by your hosting provider.
The system PHP version acts as the global default for all accounts on the server. Only server administrators can change this system default. When you set a domain to Inherit, it automatically uses whatever the system PHP version is. This can be useful if you want your domain to automatically update when your hosting provider upgrades the default PHP version.
However, if you need a specific PHP version for compatibility reasons, you can override the inherited setting and select a particular version for that domain.
What is PHP-FPM?
PHP FastCGI Process Manager (PHP-FPM) is an alternative PHP handler that improves website performance under heavy traffic. Instead of processing PHP requests one at a time, PHP-FPM maintains pools of worker processes that can handle multiple requests simultaneously.
Benefits of PHP-FPM include:
- Better resource management for busy websites
- Improved response times during traffic spikes
- More efficient memory usage
- Reduced server load
When you view your domains in MultiPHP Manager, you will see an indicator showing whether PHP-FPM is enabled or disabled for each domain. Your system administrator controls whether PHP-FPM is available as an option through the server configuration.
How to Change PHP Version for a Domain
Changing the PHP version for your domain is straightforward. Here is the step-by-step process:
- Log in to your cPanel account
- Locate the Software section and click on MultiPHP Manager
- You will see a list of all your domains with their current PHP versions
- Check the box next to the domain you want to modify
- Select your desired PHP version from the PHP Version dropdown menu
- To use the system default, select inherit instead
- Click the Apply button to save your changes
The change takes effect immediately. Your website will start using the new PHP version right away.
Understanding the Domain List
The MultiPHP Manager interface displays a table with all your domains. Here is what each column shows:
- Domain name: The full domain or subdomain name
- PHP version: The currently active PHP version for that domain
- Inherited label: Appears if the domain uses the system default PHP version
- PHP-FPM status: A checkmark indicates PHP-FPM is enabled; an X means it is disabled
Note that parked domains (domain aliases) do not appear in this list separately because they automatically use the same settings as their parent domain.
You can use the search box at the top to filter domains by name or account, which is helpful if you manage many domains.
Choosing the Right PHP Version
Selecting the appropriate PHP version depends on your website's requirements. Here are some guidelines:
Check your application requirements: Content management systems like WordPress, Joomla, or Drupal specify minimum PHP versions. Always check the documentation for your platform before changing versions.
Consider security: Older PHP versions may have known security vulnerabilities. Unless you have a specific compatibility requirement, use the newest PHP version your application supports.
Test before production: If possible, test your website with the new PHP version on a staging site or subdomain before applying the change to your live site.
Watch for deprecation warnings: When you upgrade PHP versions, your error logs may show deprecation notices. These indicate code that will stop working in future PHP versions and should be addressed.
Common PHP Version Scenarios
Different situations call for different PHP version strategies:
Running legacy applications: If you have an older website that has not been updated, you may need to keep it on an older PHP version like 7.4 until you can modernize the code.
Testing new versions: Create a subdomain copy of your site and assign it a newer PHP version to test compatibility before upgrading your main domain.
Multiple sites with different needs: If you host several websites on one account, you can give each domain the exact PHP version it requires without affecting the others.
Automatic updates: By leaving domains set to inherit, they will automatically benefit from system PHP upgrades when your hosting provider updates the default version.
Troubleshooting PHP Version Changes
If your website stops working correctly after changing PHP versions, here are common issues and solutions:
White screen or 500 errors: This often indicates PHP code incompatibility. Check your error logs in cPanel to identify the specific problem. You may need to revert to the previous PHP version temporarily.
Missing features: Some PHP extensions may not be available in all PHP versions. If your site requires specific extensions, verify they are installed for your chosen PHP version.
Performance issues: If your site becomes slower after a PHP version change, try enabling PHP-FPM if it is available. You can also review your PHP settings to ensure appropriate memory limits and execution times.
Plugin or theme conflicts: If you use WordPress or similar platforms, outdated plugins or themes may not work with newer PHP versions. Update all components before changing PHP versions.
FAQ: Common Questions About MultiPHP Manager
Can I use different PHP versions for different domains on the same account?
Yes, that is exactly what MultiPHP Manager allows. Each domain, subdomain, and addon domain can have its own PHP version. This flexibility is one of the main advantages of using MultiPHP Manager.
What happens if I select a PHP version that is not compatible with my website?
Your website may display errors or stop working correctly. If this happens, log back into cPanel, go to MultiPHP Manager, and change the domain back to its previous PHP version. Always create a backup before making changes, and test on a staging site when possible.
How do I know which PHP version my website needs?
Check your application's documentation or system requirements. For WordPress, check the dashboard (Tools > Site Health) or the WordPress.org requirements page. For custom applications, consult your developer or review the code documentation. When in doubt, contact your application's support team for guidance.
Does changing PHP version affect my website's files or database?
No, changing the PHP version only affects how PHP code is processed. Your files, database, email accounts, and other hosting features remain unchanged. However, different PHP versions may interpret the same code differently, which can cause compatibility issues if your code was written for a specific PHP version.
The OBHost support team is available 24/7 to help with MultiPHP Manager and any PHP version questions. If you need assistance, visit our contact page or email support@obhost.org anytime.