> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oriv.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Install, Upgrade PHP Version &amp; Customize PHP Settings With ORIV Hosting?

> Follow this guide to upgrade PHP version with ORIV.

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

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

## **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 ORIV dashboard. Then navigate to the **‘Management’** →\*\*‘PHP Configuration’\*\* to access all the available PHP versions and manage them easily.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

## **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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

*Note: In PHP 8.5, OPcache is enabled automatically and cannot be enabled or disabled from the ORIV dashboard.*

## **PHP Configuration for Sites**

With ORIV, 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.

> \[!NOTE]
> Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em **[support@oriv.cloud](mailto:support@oriv.cloud)**.

👉 To learn more about PHP settingsfor your site\*\*,\*\* read this [**documentation**](https://oriv.cloud/docs/how-to-configure-php-settings/)

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

With ORIV 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. Here’s an overview of the supported PHP versions based on the server stack and configuration:

### **PHP Versions for NGINX Servers:**

* Ubuntu 22.04.5 LTS: PHP 5.6 to PHP 8.5
* Ubuntu 24.04 LTS: PHP 8.1, PHP 8.2, and PHP 8.5

### **PHP Versions for OpenLiteSpeed (OLS) Servers:**

* Ubuntu 22.04.5 LTS: PHP 7.4 to PHP 8.2
* Ubuntu 24.04 LTS: PHP 8.1, PHP 8.2, PHP 8.3 and 8.4

### **ARM Servers:**

* Ubuntu 24.04 LTS (OLS stack): PHP 8.3

You can now also add and connect freshly installed Ubuntu 24.04 LTS x64 servers from any provider to ORIV, 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.
