You can change a PHP version or adjust PHP directives for one domain in cPanel without changing the settings for every site on your account. The key is choosing the right tool and selecting the correct domain before you save.
PHP settings in cPanel can help resolve upload errors, script timeouts, and compatibility issues. We'll walk through the domain-level controls, show how to choose sensible values, and explain what to do when an option is locked.
Key Takeaways
- Use MultiPHP Manager to assign a PHP version to one domain.
- Use MultiPHP INI Editor to adjust PHP directives, such as upload size or execution time.
- Select the domain itself, not Home Directory, when you want a change to affect only one site.
- Change one setting at a time, then test the task that prompted the adjustment.
- A value shown in cPanel is still subject to the limits set for your hosting account.
What PHP settings per domain actually control
A cPanel account can manage several domains, and those sites may not have identical needs. One might run WordPress, another a PHP application, and a third a staging copy. Assigning settings per domain lets you match the PHP environment to each site rather than applying one blanket configuration.
There are two related but separate tasks. You can select the PHP version that runs a domain, or change PHP directives that control how PHP behaves. MultiPHP Manager handles the first task. MultiPHP INI Editor handles the second.

Change the PHP version for one domain
Use MultiPHP Manager when a site needs a different PHP version for compatibility or maintenance. The exact versions available depend on what your hosting environment provides.
Select the domain in MultiPHP Manager
Sign in to cPanel and open Software → MultiPHP Manager. Find the domain you want to update, then select the checkbox beside that domain only. Take a moment to distinguish the live site from a staging domain or subdomain. Those can have separate settings.
Choose a version from the PHP Version menu, then click Apply. cPanel's MultiPHP Manager instructions follow this domain-selection workflow. If the domain uses PHP-FPM, changing its PHP version also updates its PHP-FPM version.
Pick a version your site supports
Before switching, consider the application, theme, and plugins running on the domain. A site may rely on older code that hasn't been updated, while a newer version may be required for another application. Check the requirements for the software you run and use a supported version offered in the menu.
If the version you need isn't available, the hosting account may not have access to it. cPanel's guide to locating a PHP version or extension describes the server-side availability process. In shared hosting, the hosting provider manages that layer.
Adjust PHP directives for one domain
PHP directives set limits and behaviors for scripts. Common examples include memory_limit, max_execution_time, max_input_vars, upload_max_filesize, and post_max_size.
Open Software → MultiPHP INI Editor in cPanel. Choose the domain by its name before changing anything. The editor's cPanel documentation explains how it applies directives through supported configuration files.

Use Basic Mode for common adjustments
Basic Mode presents supported settings in editable fields. Find the directive you need, enter the new value, and save. This is the easiest route for common changes because you work with named fields instead of editing configuration text directly.
For example, if a WordPress menu loses saved items, the site may be hitting its max_input_vars limit. Select the domain that runs WordPress, adjust the directive if the field is available, and test the same menu again. Our guide to changing max input vars in cPanel covers that specific issue.
Use Editor Mode only when you need it
Editor Mode lets you edit configuration text directly. It can help when you need a directive that Basic Mode doesn't show, but a typo or unsupported instruction can stop PHP scripts from working correctly.
Use the domain-specific editor rather than applying values to Home Directory. That option affects all websites managed by the account. If you're unsure which setting or file applies, avoid copying generic code into .htaccess or a random php.ini file. The active configuration depends on the server setup.
Choose PHP values that fit the task
Set the smallest limit that solves the problem. Raising every value "just in case" can hide the real cause, and it doesn't add memory or processing power to the hosting account.
Upload limits work together. upload_max_filesize caps an individual file, while post_max_size caps the full request, including form data. For a 64 MB upload target, one example is 64M for the file limit, 72M for the request, 128M for memory, and 300 seconds for execution time. Those are example values, not universal requirements.
| PHP setting | What it controls | Example for a 64 MB upload |
|---|---|---|
upload_max_filesize |
Maximum size of one uploaded file | 64M |
post_max_size |
Maximum size of the complete request | 72M |
memory_limit |
Memory available to a PHP script | 128M |
max_execution_time |
Maximum runtime for a script | 300 |
Keep post_max_size above upload_max_filesize, since the request also includes overhead. A larger memory limit can help with image processing or imports, but it won't fix a broken plugin or an inefficient task. For other upload cases, see our guide to increasing PHP upload limits for WordPress.
Test the change and troubleshoot common issues
A saved setting is only useful if the site is using it. Test the exact feature that failed, such as uploading a file, saving a long settings page, or completing an import.
Change one value at a time
If the issue involves a timeout, adjust max_execution_time rather than changing several unrelated limits together. Then repeat the task and note whether the result changed. A larger time limit gives a valid script more time to finish, but it won't make slow code or a failing external service run faster.
For a WordPress timeout, our guide to changing the maximum execution time in cPanel walks through the setting and follow-up checks. WordPress Site Health can also show server details that help identify the PHP environment in use.
If the new value doesn't take effect
First, make sure you edited the correct domain and the PHP version assigned to it. A directive may be associated with a different version or directory than the site uses. Some PHP handlers also take a short time to read updated configuration.
If the value remains unchanged, cPanel may be showing a limit controlled by the hosting provider. Don't keep adding duplicate directives to different files. The issue may be an account-level cap, or the setting may not be available for that plan.
When cPanel won't let you change a setting
Shared hosting providers can lock PHP directives to protect server stability and keep resource use within plan limits. If a field is unavailable or the value won't save, that control may belong to the hosting provider. Contact support with the domain, directive name, current behavior, and the specific task you're trying to complete.
If you're setting up a custom project, our guide to hosting a PHP application with cPanel covers the surrounding setup. For hosting with cPanel controls, ZADiC's cPanel hosting plans range from $4.99 to $18.99 per month. Explore ZADiC hosting at zadic.net or ZADiC hosting at zadic.com to find a plan that fits your site.
Frequently asked questions
Does changing a PHP version affect every domain?
No. In MultiPHP Manager, select the checkbox beside the domain you want to change, choose a version, and apply it. Avoid selecting additional domains unless you intend to update them too.
What's the difference between MultiPHP Manager and MultiPHP INI Editor?
MultiPHP Manager assigns a PHP version to a domain. MultiPHP INI Editor changes PHP directives, such as upload limits, memory, or execution time. Use the tool that matches the setting you want to update.
Should I select Home Directory in MultiPHP INI Editor?
Only if you want the configuration to apply across the websites managed by the account. For one site, select its domain by name instead.
Can a PHP setting override my hosting plan's limits?
No. A domain-level value can't exceed a hard limit imposed by the hosting environment. If the control is locked or the saved value doesn't take effect, the provider manages that limit.
Keep each domain's PHP setup focused
The cleanest configuration starts with two choices: the right PHP version for the site, and only the directives needed for its workload. Select the domain carefully, make one change at a time, and test the result.
That keeps PHP settings in cPanel easier to manage, whether you're supporting one WordPress site or several domains with different needs.





