Quantcast
Channel: Linux Server | cPanel | WebHosting
Viewing all articles
Browse latest Browse all 16

List Current PHP handler on a cPanel Server via Command Line and in WHM

$
0
0

To list the current PHP handler in WHM, navigate to:

WHM >> Home >> Service Configuration >> Configure PHP and suExec

To list the current PHP handler via Command line run the following:

#/usr/local/cpanel/bin/rebuild_phpconf –current

Sample output:

# /usr/local/cpanel/bin/rebuild_phpconf –current Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: not installed

The above output shows you that currently SuPHP handler is enabled.

 

The third option to list the PHP hander is to check what is in /usr/local/apache/conf/php.conf :

#cat /usr/local/apache/conf/php.conf

That’s it! :)


Viewing all articles
Browse latest Browse all 16

Trending Articles