Page 1 of 1

Command to find current PHP handler on the cpanel server

Posted: Thu Jun 07, 2018 9:49 am
by chris ben
Hi,

My cPanel license is expired and don't want to renew as my work is completed. The problem now I am facing is that is there any way to know the current PHP handler on the server by command line?

Re: Command to find current PHP handler on the cpanel server

Posted: Sat Jun 16, 2018 3:23 pm
by stark
Hi,

You can execute below command from command line to find current PHP handler on the cpanel server


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

Re: Command to find current PHP handler on the cpanel server

Posted: Sat Jun 16, 2018 3:24 pm
by chris ben
Hi Stark,

I tried the same, but shows No such file or directory

root@king [~]# usr/local/cpanel/bin/rebuild_phpconf --current
-bash: usr/local/cpanel/bin/rebuild_phpconf: No such file or directory

Re: Command to find current PHP handler on the cpanel server

Posted: Sat Jun 16, 2018 3:26 pm
by Brandon N
Hi Chris.

Use these command, you missed / when you tried the command.

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

root@server [~]# /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

Brandon N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree