Choose a plan

The PHP version and PHP settings

How to change a site's PHP version (8.2, 8.3 or 8.4) in Enhance and how to edit memory_limit, upload_max_filesize and other PHP settings.

  • Updated
guide · databases and php
Steps
19
Reading time
5min
Sections
5
Start the guide

What you get

  • The right PHP version for each site in your account.
  • Higher PHP limits when an application needs them: larger file uploads, more memory for WordPress, more time for imports.

PHP 8.2, 8.3 and 8.4 are available on all web hosting and WordPress plans; the default is 8.3.

Before you start

  • You can choose between PHP 8.2, PHP 8.3 and PHP 8.4. A new site starts on PHP 8.3. PHP 7 is not available: a site that requires PHP 7 must be updated.
  • The version is set per site: the domains and subdomains added to the same site use the same version.
  • Check which version your application, theme and plugins require.
  • Before the change, back up the site from its “Backups” tab: “Create backup” (in “English (US)” the button is called “Backup now”), then “Backup now” in the window that opens.
  • The names in this guide are the ones from the English Enhance interface. If Enhance opens in another language, you can switch it to English from the top right: your photo or initials » “My account” » “Language”.
  • The values each site starts with, for reference:
SettingDefault value
memory_limit256M
upload_max_filesize1000M
post_max_size1000M
max_execution_time30 (seconds)
max_input_vars1000
allow_url_fopenOn
display_errorsOff

Steps — change the PHP version

  1. Log in to Enhance at https://server.nbt-host.com. In the left-hand menu, click “Websites”, then your website.
  2. Open the “Developer tools” tab. If you don't see it in the row of tabs, it's in the “Advanced” menu, at the end of the row.
  3. Under “PHP”, below “Change the PHP version for your website”, choose 8.4, 8.3 or 8.2 from the list.
  4. In the “Update PHP version” window, click “Update”.
  5. Open the site and check the important pages.

Steps — change the PHP settings

  1. On the same page, “Developer tools”, go to “php.ini editor”. At first it says “No php.ini directives”: the site uses the default values from the table above.
  2. Click “Add directive”.
  3. Under “Directive”, enter the name of the setting, for example memory_limit. Under “Value”, leave the type as “Text” and enter the value, for example 512M. For on/off settings, choose the “Boolean” type and “Enable” or “Disable”.
  4. Click “Create”. The setting appears in the list.
  5. The most frequently requested:
    • memory_limit: the memory available to a script. WordPress with many plugins, a page builder or WooCommerce may need, for example, 512M.
    • upload_max_filesize and post_max_size: the largest file you can upload through the site. post_max_size must be at least as large as upload_max_filesize.
    • max_execution_time: how many seconds a script can run, for example during large imports.
    • max_input_vars: if a large menu or the theme settings do not save completely, raise it to 5000.
    • allow_url_fopen: it is on; turn it off only if you know your application does not need it.
    • display_errors: leave it off on a public site. Turn it on only while you are looking for an error.
    • allow_url_include: do not turn it on, it is a security risk.
  6. To change a setting you have added, click it in the list, change the value and click “Save”. “Delete” removes it, and the site goes back to the default value.
  7. Check. In WordPress, the PHP version and limits are shown in the dashboard, under Tools » Site Health » Info » Server. If the new value does not appear, click “Restart” next to the “PHP” heading and confirm in the “Restart PHP container” window. The site is down for a few seconds while PHP restarts.

Do not copy here all the settings from a php.ini file brought over from another host. Add only what you need.

If something doesn't work

  • After changing the version, the site shows a 500 error or a blank page. Switch back to the previous version, with the same steps. You can usually find the cause in the error log: on the “PHP” card in “Developer tools”, under php-error.log. Update the theme and plugins and try again.
  • The new setting does not take effect. Check that you spelled the setting’s name correctly. Restart PHP with “Restart” next to the “PHP” heading, and clear the cache if you use a caching plugin.
  • “The uploaded file exceeds the upload_max_filesize directive” (or the equivalent message in WordPress). Raise upload_max_filesize and post_max_size to the same value.
  • “Allowed memory size of … bytes exhausted”. Raise memory_limit. In WordPress, also check whether a lower value is set for WP_MEMORY_LIMIT in wp-config.php.
  • You are looking for “MultiPHP Manager” or “Select PHP Version”, as at your previous host. They do not exist in Enhance: you change the version from “Developer tools”, under “PHP”, and the settings from “php.ini editor”, on the same page.
Support

Stuck? We'll do it together.

Tell us which step isn't working and, if you can, send a screenshot. We reply during business hours.

Phone and WhatsApp+40 775 396 021
HoursMonday–Friday, 9:00–18:00 Romanian time (EET/EEST)

Never send us your password on WhatsApp or by email. What information helps us solve it on the first try: how to ask for help.