Check if Cpanel Server need reboot from command line

To check if Cpanel/WHM server need reboot from command line, run whmapi1 system_needs_reboot Example On a server with latest kernal [root@ns522466 ~]# whmapi1 system_needs_reboot — data: details: {} needs_reboot: 0 metadata: command: system_needs_reboot reason: OK result: 1 version: 1 [root@ns522466 ~]# On a server that need reboot [root@server22 ~]# whmapi1 system_needs_reboot — data: details: kernel: … Read more

Getting WHM Access from SSH on Cpanel Server

To get WHM access from SSH, run whmapi1 create_user_session user=root service=whostmgrd locale=en This is useful when you have SSH key access to server, but no root password. Open the URL you get in terminal in a browser, you have WHM root access with out password. For Cpanel, use whmapi1 create_user_session user=CPANEL-USERNAME service=cpaneld locale=en Check if … Read more