CloudLinux

Enable PHP extensions and change PHP options in CloudLinux PHP Selector

Turn PHP extensions such as imagick, intl and ionCube on or off and change memory_limit, upload_max_filesize and max_execution_time with CloudLinux PHP Selector.

IntermediatecPanel hosting with CloudLinux2 min read

Many errors such as "upload exceeds the maximum size" or "requires the intl extension" are fixed in seconds with CloudLinux PHP Selector. It lets you switch individual PHP extensions on or off and change common PHP settings for your account, without editing php.ini files.

Before you start

  • cPanel access.
  • A numbered PHP version selected, such as 8.2 (extensions cannot be changed on native). See changing the PHP version.

Enable or disable extensions

  1. Go to cPanel → Software → Select PHP Version.
  2. Open the Extensions tab (on some versions the list is directly below the version drop-down).
  3. Tick the extensions you need, for example imagick, intl, zip, soap, redis or ioncube_loader.
  4. Untick extensions you do not use. Fewer extensions mean slightly less memory per request.
  5. Changes save automatically; a confirmation appears at the top of the page.

Tip: Click Reset to default to return to the server's recommended extension set if something goes wrong.

Change PHP options

  1. In Select PHP Version, click the Options tab.
  2. Click a value to change it, then click outside or press Enter to save.
OptionWhat it controlsTypical WordPress value
memory_limitMaximum memory one PHP request may use256M–512M
upload_max_filesizeLargest single file you can upload64M–256M
post_max_sizeLargest form submission; must be at least upload_max_filesize64M–256M
max_execution_timeSeconds a script may run120–300
max_input_varsNumber of form fields accepted; menus and page builders need more3000–5000
display_errorsShow errors on the pageOff on live sites

Note: The account's CloudLinux memory limit is still in force. Setting memory_limit higher than the account's physical memory limit does not give you more memory; requests fail at the LVE limit instead.

Check that the change worked

Create a file named info.php in public_html with the line below, open it in your browser, check the values, then delete it.

<?php phpinfo();

In WordPress you can also check Tools → Site Health → Info → Server.

Troubleshooting

Changes have no effect

A php.ini, .user.ini or php_value line in .htaccess may override the selector. Remove old overrides, or use the selector only.

An extension is missing from the list

Not every extension is compiled for every version. Try another PHP version or ask support.

"Allowed memory size exhausted"

Raise memory_limit as above. More causes are in fixing memory size exhausted errors and increasing WordPress PHP limits.

Frequently asked questions

Do I need to restart anything?

No. New requests pick up the new settings within a few seconds.

Are settings shared between PHP versions?

No. Each version has its own extensions and options. After switching version, check the Options tab again.

Which extensions does WordPress need?

WordPress recommends curl, dom, exif, fileinfo, hash, imagick, intl, json, mbstring, mysqli, openssl, pcre, xml and zip. Most are enabled by default.

Can I set options that are not in the list?

Only the options shown are editable in the selector. For others, ask support whether they can be added.

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.