Command to find current PHP handler on the cpanel server

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
chris ben
Posts: 0
Joined: Fri Sep 16, 2016 10:09 am

Command to find current PHP handler on the cpanel server

Post 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?



stark
Posts: 0
Joined: Fri Sep 16, 2016 10:00 am

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

Post 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



chris ben
Posts: 0
Joined: Fri Sep 16, 2016 10:09 am

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

Post 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



Brandon N
Posts: 0
Joined: Thu Apr 05, 2018 11:19 pm

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

Post 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



Post Reply