php

How to Set PHP Version Recommendations


Last modified: December 17, 2020

Overview

This document explains how to set PHP version recommendations that appear in cPanel’s MultiPHP Manager interface (cPanel » Home » Software » MultiPHP Manager).

Configuration file

The cPanel & WHM server stores PHP version recommendations in the /etc/cpanel/ea4/recommendations/custom_php_recommendation.json JSON-formatted file. The file’s contents will resemble the following example:

{"versions":[ "php54", "php72", "php74" ]}

The versions key is an array that contains strings that represent each recommended version. The example file recommends PHP 5.4, PHP 7.2, and PHP 7.4.

Additional Documentation