Identify cPanel & WHM or WP Squared from the terminal

Last modified: November 15, 2024


Overview

This document explains how you can use the /usr/local/cpanel/server.type file to determine if a server runs cPanel & WHM or WP Squared.

Determine server type

To determine the server type from the terminal, use the readlink command:

Note:

For more information about accessing the terminal, read our How to access the Command Line documentation.

readlink /usr/local/cpanel/server.type

The output on a cPanel & WHM server resembles the following:

cpanel

The output on a WP Squared server resembles the following:

wp2

Additional Documentation