Hostinger Knowledgebase

How to Change the PHP Version on Hostinger

Learn how to check your current PHP version, update it through hPanel, verify WordPress compatibility, and troubleshoot common problems after changing PHP settings.

Updated for 2026 Beginner Friendly Step-by-Step Guide

PHP is the programming language used by WordPress and many other website platforms. Your hosting server uses PHP to process website requests, run plugins and themes, and generate pages for visitors.

Using a supported PHP version is important for website security, compatibility, and stability. If your website runs an outdated version, you may need to update it through your hosting control panel.

Hostinger allows you to change the PHP version through its hPanel dashboard. In this guide, you will learn how to check your current version, select another supported version, test your WordPress website, and resolve problems that may appear after an upgrade.

Before changing PHP: Create a backup of your website and database. Check that your WordPress core, active theme, and installed plugins support the PHP version you plan to use.

1. What Is PHP and Why Does Its Version Matter?

PHP is a server-side programming language used by WordPress and many other content management systems. When someone visits a WordPress page, PHP processes the website's code and works with the database to generate the content that appears in the browser.

PHP receives regular updates that introduce improvements, security fixes, and changes to language features. These changes can affect how your website's themes, plugins, and custom code work.

Why should you keep PHP updated?

Security updates

Supported PHP versions receive security fixes that help protect websites from known vulnerabilities. Using a version that no longer receives security updates can increase risk.

Compatibility

Newer WordPress versions, themes, and plugins may require a supported PHP version. Updating PHP can help your hosting environment meet those requirements.

Performance improvements

Newer PHP releases may include performance improvements. Actual website speed also depends on hosting resources, caching, database queries, plugins, and website code.

Long-term maintenance

Keeping PHP current helps reduce compatibility problems when updating WordPress and other website components.

2. Which PHP Versions Are Available on Hostinger?

Hostinger's PHP Configuration page provides a list of PHP versions available for your hosting plan. The available choices can change as older versions are deprecated and newer releases are introduced.

According to Hostinger's current documentation, the hPanel selector offers supported PHP versions from 8.2 through 8.5. PHP versions 8.1 and older are no longer available for new selection in the dashboard.

PHP Version Hostinger Dashboard Status Recommendation
PHP 8.5 Available in the documented selector Consider if your website components support it.
PHP 8.4 Available in the documented selector Use if compatible with your website.
PHP 8.3 Available; selected by default for new websites according to Hostinger documentation A supported option for compatible websites.
PHP 8.2 Available in the documented selector Check the PHP support lifecycle before choosing.
PHP 8.1 and older Deprecated and unavailable for new selection in hPanel Avoid for normal production use.

The list shown in your own hPanel is the authoritative source for the versions available to your account. Hostinger may update the selector as its supported PHP versions change.

Important: Do not select a PHP version only because it has the highest number. First check whether your WordPress installation, theme, plugins, and custom code support it.

3. What to Check Before Changing PHP on Hostinger

Changing PHP can affect how your website runs. Prepare your website before switching versions so that you can recover quickly if an incompatibility appears.

Create a website backup

Back up both website files and the database. A backup gives you a recovery option if the website stops working after the PHP update.

Check WordPress compatibility

Make sure your WordPress version, active theme, and installed plugins support the PHP version you want to use. Review the developers' compatibility information where available.

Update website components carefully

Install supported updates for WordPress, themes, and plugins. Do not update every component and change PHP simultaneously if you are already troubleshooting an issue. Make changes in a controlled sequence so you can identify the cause of a problem.

Check whether your website uses custom PHP code

If your website contains custom functions, snippets, or third-party integrations, review them for compatibility. Older PHP functions may have changed or been removed in newer releases.

Consider testing on staging

If your hosting plan includes a staging environment, test the PHP change there first. This is especially useful for business websites, stores, membership sites, and websites with custom functionality.

Recommended approach: Back up your website, check compatibility, change the PHP version, and test important pages and features immediately afterward.

4. How to Check Your Current PHP Version on Hostinger

Before changing PHP, find out which version your website currently uses. You can check this through the PHP Info section in Hostinger hPanel.

Method 1: Check PHP Info in hPanel

  1. Log in to your Hostinger hPanel account.
  2. Open the Websites section.
  3. Find the website you want to check and click Manage site.
  4. Search for PHP Info in the dashboard sidebar.
  5. Open PHP Info to view the active PHP version and configuration details.

The PHP Info page can also show PHP extensions, configuration options, and limits such as max_execution_time.

Method 2: Check through WordPress Site Health

You can also check the PHP version from your WordPress dashboard:

  1. Log in to WordPress Admin.
  2. Go to Tools → Site Health.
  3. Open the Info tab.
  4. Expand the Server section.
  5. Find the PHP version entry.

This is useful when you want to check the PHP version from inside WordPress without opening hPanel.

5. How to Change PHP Version in Hostinger hPanel

Hostinger provides a PHP Configuration section where you can select a supported PHP version for your hosting plan. Follow these steps to update it.

Step 1: Log in to Hostinger

Open the Hostinger hPanel login page and sign in to your account.

Step 2: Open the website dashboard

  1. Go to the Websites section.
  2. Find the website associated with the hosting plan you want to update.
  3. Click Manage site or Dashboard, depending on the interface displayed.
  4. Open the website management dashboard.

Step 3: Open PHP Configuration

Use the sidebar search to find PHP Configuration. Open the matching result to access the PHP settings.

Step 4: Select the PHP version

On the PHP Configuration page, open the PHP version section. You will see the versions currently available for your hosting plan.

Select the PHP version that is compatible with your WordPress installation, theme, and plugins.

Step 5: Click Update

After selecting the desired version, click the Update button to apply the change.

Step 6: Wait for the change to finish

Hostinger states that the selected PHP version is usually updated within a couple of minutes. Wait for the process to complete before checking your website.

Step 7: Test your website

Open your website and check the homepage, WordPress dashboard, important pages, forms, and other features. If you notice an error, use the troubleshooting steps later in this guide.

Important plan-level behavior: The PHP version selected in hPanel applies to all websites added to that hosting plan, except websites created using Hostinger AI Builder. It is not automatically an individual setting for just the website you used to open the dashboard.

6. How to Verify the PHP Version After Changing It

After updating PHP, confirm that the new version is active. Do not assume the change worked just because you clicked Update.

Check through PHP Info

  1. Open Hostinger hPanel.
  2. Go to Websites → Manage site.
  3. Open PHP Info from the dashboard sidebar.
  4. Check the PHP version displayed at the top of the page.
  5. Confirm that it matches the version you selected.

Check through WordPress Site Health

Open WordPress Admin and navigate to Tools → Site Health → Info → Server. Review the PHP version listed there.

Check website functionality

After confirming the version, test the website's important features:

  • Homepage and internal pages.
  • WordPress Admin and login.
  • Forms and contact pages.
  • WooCommerce products, cart, and checkout if applicable.
  • Theme features and page builders.
  • Plugins that connect to external services.

7. How to Manage PHP Extensions and Options on Hostinger

Changing the PHP version is not the only PHP setting available in hPanel. Hostinger also provides controls for PHP extensions and configuration options.

Open PHP Configuration

  1. Log in to Hostinger hPanel.
  2. Open Websites and select Manage site.
  3. Search for PHP Configuration in the sidebar.
  4. Open the PHP Extensions or PHP Options tab.

Manage PHP extensions

PHP extensions add functionality to PHP. Some applications and plugins require specific extensions to handle images, databases, encryption, XML, or other tasks.

In the PHP Extensions tab, you can review available extensions and enable or disable installed extensions that are configurable. Some built-in extensions cannot be disabled. The available extensions depend on the selected PHP version.

Manage PHP options

The PHP Options tab lets you adjust supported configuration settings. Depending on the hosting plan, available options may include:

  • PHP execution and resource limits.
  • Upload and input limits.
  • Disabled PHP functions.
  • Other supported PHP configuration parameters.

After changing an extension or option, click Save if the interface requests it. You can use PHP Info to confirm which settings are active.

Do not enable or disable extensions randomly. Change only the settings required by your application. Incorrect PHP configuration can cause plugins or website features to stop working.

8. How to Fix Errors After Changing PHP Version

Sometimes a website may display errors immediately after a PHP upgrade. This usually happens when a plugin, theme, or custom code is not compatible with the selected version.

Problem 1: WordPress displays a critical error

A critical error may indicate a fatal PHP error in a plugin, theme, or custom code. Check the WordPress recovery email and PHP error logs. If the error started after changing PHP, investigate components that do not support the new version.

Problem 2: A plugin stops working

Check whether the plugin supports the selected PHP version. Update it if a compatible release is available. If the problem continues, temporarily deactivate the plugin and check whether the website works again.

Problem 3: The website displays a blank page

A blank page can be caused by a PHP fatal error or incompatible code. Review the PHP error logs and WordPress debug log. If necessary, temporarily disable recently updated plugins or test with a default theme.

Problem 4: The website shows a 500 Internal Server Error

Check PHP error logs, plugin compatibility, theme code, and server configuration. If the error appeared immediately after the PHP change, investigate the compatibility of the affected website components first.

Problem 5: A required PHP extension is missing

Some WordPress plugins and applications require specific PHP extensions. Open PHP Configuration → PHP Extensions and check whether the required extension is available and enabled for your selected PHP version.

Problem 6: The website works, but some features are broken

Test forms, payment integrations, page builders, and other important functions. A website can load normally while a particular plugin or feature still has a compatibility problem.

Recommended troubleshooting process

  1. Check the exact error message and when it started.
  2. Review PHP error logs and WordPress debug logs.
  3. Check plugin and theme compatibility.
  4. Update incompatible components if supported updates are available.
  5. Test the affected feature again.
  6. Restore a backup or contact Hostinger support if the issue cannot be resolved safely.

For more help with WordPress problems, read our guide on fixing WordPress errors on Hostinger.

9. Can You Change PHP for One Website or Subdomain?

Hostinger's standard PHP Configuration setting applies to the websites on the hosting plan, with the exception of websites created using Hostinger AI Builder. This means changing the PHP version from one website's dashboard can affect other websites on the same plan.

Hostinger documents a separate method for applying a different PHP version to a specific domain, subdomain, or subfolder through an .htaccess handler rule.

Understand the limitations

  • The method requires editing the correct directory's .htaccess file.
  • It uses a PHP handler rule for the selected folder.
  • It does not automatically provide the same PHP extensions and options as the hosting plan's main PHP configuration.
  • It is intended for specific use cases, not as the normal way to maintain a production website.

Recommendation: Avoid manually forcing deprecated PHP versions through .htaccess for a live WordPress website. Use the supported hPanel version whenever possible. If a specific subdomain requires a different version, follow Hostinger's current instructions and confirm compatibility with support first.

Read Hostinger's instructions for changing PHP versions for subfolders and subdomains before attempting this advanced method.

10. Frequently Asked Questions

How do I change the PHP version on Hostinger?

Log in to hPanel, open Websites, select Manage site, and search for PHP Configuration. Choose an available PHP version and click Update. Wait for the change to complete, then verify it through PHP Info.

Does changing PHP version affect all websites on Hostinger?

Yes. The standard PHP Configuration selection applies to all websites added to that hosting plan, except websites created using Hostinger AI Builder. Consider this before changing the version if you host multiple websites on one plan.

Which PHP version should I use for WordPress on Hostinger?

Choose a supported PHP version that is compatible with your WordPress installation, active theme, and plugins. Hostinger's documented selector currently offers PHP 8.2 through 8.5. Check your website components before upgrading to a newer version.

How long does it take to change the PHP version?

Hostinger states that a PHP version change is usually applied within a couple of minutes. Verify the active version through PHP Info after the update.

How can I check my current PHP version on Hostinger?

Open hPanel, select your website, and navigate to PHP Info. The current PHP version is displayed on that page. You can also check it through WordPress Site Health under Tools → Site Health → Info → Server.

Can I downgrade PHP on Hostinger?

Hostinger's current documentation restricts selection of deprecated versions through hPanel. Existing websites may retain older versions, but the dashboard may not allow selecting a lower version after upgrading. Check the available options in your account before making a change.

Will changing PHP delete my WordPress website?

Changing the PHP version through hPanel is a hosting configuration change and is not intended to delete website files or database content. However, incompatible code may cause errors, so create a backup and test the website after switching.

Why does my website show an error after upgrading PHP?

The error may be caused by an outdated plugin, theme, or custom PHP code that does not support the selected version. Check PHP error logs, review compatibility information, and test the affected components.

Can I change PHP extensions on Hostinger?

Yes. Hostinger provides PHP Configuration settings for managing available PHP extensions and options. Some built-in extensions cannot be disabled, and available extensions depend on the selected PHP version.

Keep Your WordPress Website on a Supported PHP Version

Use Hostinger's PHP Configuration page to select a supported version, verify compatibility, and test your website after the change. If an error appears, review the PHP logs and investigate the affected plugin or theme before making further changes.

Open Hostinger hPanel

Editorial note: PHP versions and dashboard options can change as Hostinger updates its hosting environment. The versions listed in your hPanel account are the authoritative options for your plan. Always back up your website before changing PHP settings.