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.

A row of modern server racks in a data center, with one central rack highlighted by overhead lighting.

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.

A desktop monitor displaying an abstract settings interface with a small potted plant on the desk.

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.

We use cookies so you can have a great experience on our website. View more
Cookies settings
Accept
Decline
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://zadic.net.

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where your data is sent

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings