Return EasyApache 4 recommendations

This function returns any recommendations attached to your installed EasyApache 4 packages. For more information about the recommendation system, read our EasyApache 4 Recommendations documentation.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/ea4_recommendations
Request samples
whmapi1 --output=jsonpretty \
  ea4_recommendations
Response samples
application/json
{
  • "data": {
    • "ea-php55-php": [
      • {
        • "desc": "PHP DSO runs as the user by default. In a shared hosting environment, this is a security issue.",
        • "level": "danger",
        • "name": "PHP DSO",
        • "on": "add",
        • "options": [
          • {
            • "items": [
              • "ruid2",
              • "mpm-itk"
              ],
            • "level": "success",
            • "recommended": true,
            • "text": "We strongly recommend that you install one of the following packages unless this is a single-user system:"
            },
          • {
            • "level": "warning",
            • "recommended": false,
            • "text": "If you use suPHP, you will add some security, but may experience performance issues on your server."
            }
          ],
        }
      ]
    },
  • "metadata": {
    • "command": "ea4_recommendations",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}