# How to Install, Upgrade PHP Version & Customize PHP Settings With xCloud Hosting?

> Here you can learn how to upgrade PHP version with xCloud hosting.

Managing PHP versions and settings is an important part of maintaining a fast, secure, and compatible website. With xCloud Hosting, you have complete control over installing, upgrading, and customizing PHP to meet your website’s specific requirements. 

<iframe loading="lazy" title="How to Upgrade &amp; Customize PHP Version Of WordPress Sites Directly In xCloud" width="500" height="281" src="https://www.youtube.com/embed/DsZzkWYMDDM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>

Whether you need the latest PHP features, compatibility with older versions, or optimization for performance, xCloud allows a single interface to manage it all. Follow the steps to Install, Upgrade, & Customize PHP Settings with xCloud

## **PHP Configuration for Server**

If you want to keep default settings for your server so that all sites created under it use the same configuration, you can set a default PHP configuration for that server. When a site is created under that server, it will automatically use those settings.

## **Step 1: Install a PHP Version**

First, go to your Server from the xCloud dashboard. Then navigate to the **‘Management’** →**‘PHP Configuration’** to access all the available PHP versions and manage them easily.

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.25.27.png)

Under the **‘PHP Version Configurations’,** get access to all available PHP versions. Choose the **‘PHP Version’** and click on the **‘Install’** button beside the version that you want to install. 

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.26.39.png)

## **Step 2: Set a Default PHP Version**

Next, to keep your installed PHP version default, simply click on the **‘Set As Default’** button and the preferred version will be set as default. 

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.32.52.png)

## **Step 3: Configure PHP Settings**

You can now easily customize your PHP as well. Just click on the three dot icon beside the version you have installed or set as default or want to configure. The following options can be modified:

1.  **Max Execution Time**
2.  **Max Input Time**
3.  **Memory Limit**
4.  **Max File Upload Size**
5.  **Max Input Vars**
6.  **Post Max Size**
7.  **Session GC Maxlifetime**

Customize the options according to your preferences and click on the ‘Save Changes’ button.

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.36.16.png)

## **Step 4: Enable OPCache**

Enabling OPcache can significantly improve the efficiency of your PHP applications. To enable OPCache, just go to the **‘OPCache’** column from the dashboard and toggle the button to enable OPCache with just one click. 

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.37.45.png)

_Note: In PHP 8.5, OPcache is enabled automatically and cannot be enabled or disabled from the xCloud dashboard._

## **PHP Configuration for Sites**

With xCloud, you can also manage your site’s PHP settings separately. Just go to your site, navigate to the **‘Site Settings’** option in the sidebar. You can manage your PHP settings for these sites easily. 

![](/_landing/docs/how-to-upgrade-php-version-with-xcloud-hosting-screen-shot-2026-03-18-at-12.20.55.png)

👉 To learn more about PHP settings for your site**,** read this [**documentation**](/docs/how-to-configure-php-settings/)

## **Currently Supported PHP Version in xCloud Hosting**

With xCloud Hosting, you can select from a wide range of PHP versions to match your website’s specific needs, whether you require compatibility with older versions or want to leverage the latest features.

Available PHP versions depend on your server's stack, Ubuntu version and CPU. See the [PHP version compatibility table](/docs/php-versions-compatibility-in-xcloud/). New sites use PHP 8.3 by default.

You can now also add and connect freshly installed Ubuntu 20.04, 22.04, 24.04 or 26.04 LTS x64 servers from any provider to xCloud, with full support for both NGINX and OLS stacks. This ensures broad compatibility and flexibility across various server setups.

If you encounter any difficulties, feel free to reach out to our support team for assistance.
