How to change the PHP version in cPanel: memory_limit, upload_max_filesize and max_execution_time
1. Why the PHP version and settings matter
PHP is the language that runs software such as WordPress. Newer versions are faster and more secure; old versions no longer receive security updates. On the other hand, a very old theme or plugin may break on a new version, so choose deliberately and check your site after the change.
PHP settings are the fix for most "file too large", "out of memory" and "timeout" errors. On Gyro hosting plans you change the PHP version and these settings yourself in cPanel.
Both tools are in the Software section of the cPanel home page.
2. Check your current PHP version
- Open MultiPHP Manager in the Software section.
- System PHP Version is the server default. Domains without their own version use it.
- In the Set PHP Version per Domain table, read the PHP Version column for each domain. A tick in the PHP-FPM column means the site runs with PHP-FPM; nothing to do there.
A Deprecation warning label next to a version means it no longer receives security updates. Plan a move to a newer version.
3. Change the PHP version
- Back up your site before the change (B36), or use Backup in Softaculous.
- In the MultiPHP Manager table, tick the box to the left of your domain.
- Choose the new version in the PHP Version list at the top right. For WordPress we recommend the newest version in the list (for example PHP 8.3); check in their descriptions that your theme and plugins support it.
- Click Apply. The change takes effect within seconds.
- Open the front end and the dashboard of your site. Test key pages (contact form, cart, checkout).
- If you see errors, switch back to the previous version the same way, update the failing plugin and try again.
Right after the change you may briefly (a few seconds) see an error when opening the site. Wait a minute and reload; if the problem continues, switch back.
4. Change PHP settings (MultiPHP INI Editor)
- Open MultiPHP INI Editor in the Software section.
- On the Basic Mode tab, choose your domain in the location list. The page lists the settings that apply to that domain with their current values.
- Type the new value in the Setting box of the rows you need. The most commonly changed settings:
| Setting | What it does | Typical value for WordPress |
|---|---|---|
memory_limit |
The most memory one PHP script may use | 256M |
upload_max_filesize |
The largest size of a single uploaded file | 64M |
post_max_size |
The total size of one form submission; must be at least upload_max_filesize |
64M |
max_execution_time |
The longest a script may run, in seconds | 120 |
max_input_vars |
The most fields in one form (large menus, page builders) | 3000 |
display_errors |
Shows errors to visitors; keep it off on a live site | Disabled |
- Click Apply at the very bottom of the page. The "You must click Apply" notice at the top right reminds you that you have unsaved changes.
Don't raise values more than you need. A very high memory_limit hides a broken plugin, and your plan's memory limit still applies. Pick the smallest value that solves the problem.
The Editor Mode tab edits the php.ini file directly. A wrong line can stop your site from loading; if you're unsure, stay in Basic Mode.
5. Check the change
- In the WordPress dashboard, open Site Health from the Tools menu and go to the Info tab.
- Expand the Server section and compare the PHP version, memory limit, maximum upload size and time limit with your new values.
- The maximum upload size shown under Media → Add New Media File should also reflect the new
upload_max_filesize.
6. What is "Select PHP Version"?
You may also see a Select PHP Version icon in the Software section. On some servers this tool selects the PHP version and PHP extensions. If it shows PHP Selector is not available, your plan manages PHP versions and settings with the MultiPHP tools; follow the steps in this guide.
If your site needs a PHP extension that is missing (for example one required by a payment module), open a support ticket with the extension name and the error message.
7. Common problems
| Symptom | Cause | Fix |
|---|---|---|
| "Critical error" or a white page after changing version | A theme or plugin isn't compatible | Switch back; update the plugin or use an alternative. |
| "The uploaded file exceeds the upload_max_filesize directive" | The upload limit is too small | Raise upload_max_filesize and post_max_size together. |
| "Allowed memory size of ... bytes exhausted" | Not enough memory | Raise memory_limit one step (e.g. 128M → 256M); if it continues, find the plugin causing it. |
| "Maximum execution time of 30 seconds exceeded" | A long task (import, backup) | Raise max_execution_time; split very long jobs into smaller parts. |
| The setting changed but WordPress shows the old value | Apply wasn't clicked or the wrong location was chosen | Select the right domain in INI Editor and click Apply; reload the page. |
8. FAQ
Which PHP versions can I choose?
The current list is in the PHP Version list in MultiPHP Manager. As stated on our hosting page, versions from PHP 7.2 to 8.3 can be selected per site.
Can each domain have a different PHP version?
Yes. Tick each domain separately in MultiPHP Manager and apply a different version. Trying a new version first on a test copy in a subdomain is a good approach (B37).
Does changing the PHP version affect my email or databases?
No. It only changes which version runs the PHP code on that domain. Files, databases and email accounts stay as they are.
Can I raise memory_limit as high as I like?
You can raise the setting, but your account's plan memory limit still applies. If you need more resources, consider upgrading your plan (A07).
Can I change settings with .htaccess or my own php.ini?
MultiPHP INI Editor writes those files correctly for you. Manual edits are error-prone, so we recommend the editor.
On Gyro hosting plans you choose the PHP version per site yourself, while server setup, updates and security patches are handled by us. If you need root access or want to install your own software, look at our virtual servers.
Next step
- B33: Speeding up your WordPress site
- B36: Exporting and importing databases with phpMyAdmin
- B37: Copying a WordPress site (staging and cloning)
Thanks for your feedback!
