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.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.
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.
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:- Max Execution Time
- Max Input Time
- Memory Limit
- Max File Upload Size
- Max Input Vars
- Post Max Size
- Session GC Maxlifetime
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em 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.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.👉 To learn more about PHP settingsfor your site**,** read this documentation
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
