You may know how to check the PHP Handler which is running in cPanel server via WHM(Login to WHM>>Configure PHP and suEXEC)
But you can also find the PHP Handler in your server via shell by running the below shown cPanel default script.
/usr/local/cpanel/bin/rebuild_phpconf --current
Eg:
Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed