The cPanel Server Daemon (
cpsrvd) must know the path to the specific PHP binary that you wish to use to process PHP scripts (for example,
phpMyAdmin). There are several PHP binaries from which you may choose.
/var/cpanel/usecpphp file, when it exists, causes the
cpsrvd daemon to use a non-system PHP that cPanel, Inc. provides. You may wish to use this functionality if Apache's version of PHP does not include all of the features to run inside of the
cpsrvd daemon. This PHP binary contains all of the necessary options to run inside of the
The cPanel-provided PHP binary exists on the system as one of the following files:
The system prefers the
/var/cpanel/usecpphp does not exist, WHM uses the PHP binary
(/usr/local/cpanel/3rdparty/bin/php-cgi). You can modify the behavior in the
/var/cpanel/3rdparty/bin/php file. If the binary exists, is executable, and the
/var/cpanel/usecpphp file exists, then the
cpsrvd daemon will always use this binary.
Use the following flowchart to determine which PHP binary the
cpsrvd daemon uses:
cPanel & WHM PHP binary flowchart