Page 1 of 1

How to check PHP handler in Cpanel/Whm?

Posted: Sun Sep 20, 2020 6:57 pm
by Jackk
Hello Tommy,

How to check PHP handler in Cpanel/WHM?

Re: How to check PHP handler in Cpanel/Whm?

Posted: Sun Sep 20, 2020 7:16 pm
by Tommy
Hello Jackk,

To list the active PHP handler through command line option

Login to server as root through SSH

1) To check currently used Apache PHP Handler

/usr/local/cpanel/bin/rebuild_phpconf --current

[root@server ~]# /usr/local/cpanel/bin/rebuild_phpconf --current
DEFAULT PHP: ea-php71
ea-php56 SAPI: suphp
ea-php70 SAPI: suphp
ea-php71 SAPI: suphp
ea-php72 SAPI: suphp
ea-php73 SAPI: suphp


2) Also, you can check the available PHP handler into the server

/usr/local/cpanel/bin/rebuild_phpconf --available

[root@server ~]# /usr/local/cpanel/bin/rebuild_phpconf --available
ea-php56: cgi none suphp
ea-php70: cgi none suphp
ea-php71: cgi none suphp
ea-php72: cgi none suphp
ea-php73: cgi none suphp