Documentation

CPS Reseller

image

AlmaLinux 9 , Rocky Linux 9 and Ubuntu 22.04 are now supported !

Supported OS for cPanel license

all CentOS versions all CloudLinux versions EL** 8/AlmaLinux 8/RockyLinux 8 EL** 9/AlmaLinux 9/RockyLinux 9 Ubuntu 20.04 Ubuntu 22.04

Supported OS for LiteSpeed license

all CentOS versions all CloudLinux versions EL** 8/AlmaLinux 8/RockyLinux 8 EL** 9/AlmaLinux 9/RockyLinux 9 Ubuntu 20.04 Ubuntu 22.04

Supported OS for other licenses

Ubuntu: 18.04 or higher CloudLinux any version Centos 6 or higher Debian: 9 or higher FreeBSD: 12.04 or higher EL** 8/AlmaLinux 8/RockyLinux 8 EL** 9/AlmaLinux 9/RockyLinux 9

If your OS is not listed here, please contact support to be added in our system’s supported OS.

It’s your first time installing cPanel on Almalinux 8/RockyLinux 8 ?
Make sure to enable network manager before rebooting cPanel server for the first time : Read article

Short Commands

You must need to install the mother commands before running short commands

If you have renewed late and seeing your licenses are not active then run the table commands

# License Name Short Commands
1 cPanel For Dedicated/VPS Run: lic_cpanel
2 Plesk For Dedicated/VPS Run: lic_plesk
3 LiteSpeed For Dedicated/VPS Run: lic_litespeed
4 Jetbackup For Dedicated/VPS Run: lic_jetbackup
5 Softaculous For Dedicated/VPS Run: lic_softaculous
6 imunify360 For Dedicated/VPS Run: lic_im360
7 kernelcare For Dedicated/VPS Run: lic_kernelcare
8 WHM Reseller For Dedicated/VPS Run: lic_whmreseller
9 CXS For Dedicated/VPS Run: lic_cxs
10 OSM For Dedicated/VPS Run: lic_osm
11 SitePad For Dedicated/VPS Run: lic_sitepad
12 Cloudlinux For Dedicated/VPS Run: lic_cln
13 Webuzo For Dedicated/VPS Run: lic_webuzo
14 Virtualizor For Dedicated Run: lic_virtualizor
15 FleetSSL Install command For Dedicated/VPS Run: lic_cpanel -fleetssl

Install Or Renew Hostname SSL

cPanel hostname SSL Install/Renew:

After Every 3months your server's hostname's SSL will stop working on your hostname run those following commands to renew the ssl of your hostname

NoteFor VPS run this command


lic_cpanel -ssl_services

NoteFor Dedicated Server run this command


lic_cpanel -ssl_services

Bonus Commands

 cPanel Installation Command (Official)

You can use the following commands for installing cPanel & WHM:


cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Verify LiteSpeed license core/worker number

Core number

to determine what litespeed core you can run the followin command :

ps aux | grep litespeed

The number of LiteSpeed processes showing is your litespeed license core number.

for example if output is :

root      5344  0.0  1.0 21474956380 41452 ?   S    16:00   0:00 litespeed (lshttpd - main)
nobody    5347  0.2  4.3 21474999300 167916 ?  Sl   16:00   0:02 litespeed (lshttpd - #01)
nobody    5348  0.2  4.3 21475018528 167764 ?  Sl   16:00   0:02 litespeed (lshttpd - #02)
nobody    5354  0.2  4.3 21475017464 169564 ?  Sl   16:00   0:02 litespeed (lshttpd - #03)
nobody    5361  0.2  4.1 21474999752 161328 ?  Sl   16:00   0:02 litespeed (lshttpd - #04)
nobody    5366  0.2  4.3 21475015736 168296 ?  Sl   16:00   0:02 litespeed (lshttpd - #05)
nobody    5372  0.2  4.3 21475015324 169664 ?  Sl   16:00   0:02 litespeed (lshttpd - #06)
nobody    5378  0.2  4.8 21475021156 188424 ?  Sl   16:00   0:02 litespeed (lshttpd - #07)
nobody    5384  0.2  4.0 21475000400 158732 ?  Sl   16:00   0:02 litespeed (lshttpd - #08)

Means you have 8 core license installed. If a wrong number is showing please contact support so we check it.

Whats my license commands as a reseller ?

The structure of license commands is :

bash <( curl https://license.MYWEBSITEURL/pre.sh ) PRODUCT_NAME

For example if your URL is example.com and you want to install cPanel your command will be :

bash <( curl https://license.example.com/pre.sh ) cpanel

To update your license just run :

lic_cpanel

The command is fully whitelabel and there is no URL from us and our identity is hidden.

You can install CSF firewall to protect your network

You can use the following commands for install CSF firewall:


cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
To install LetsEncrypt AutoSSL

You can use the following commands for installing LetsEncrypt AutoSSL run :


/usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider
FleetSSL Install command

You can use the following commands for installing FleetSSL:


lic_cpanel -fleetssl
PostGreSQL Install command

You can use the following commands for installing PostgreSQL:


  /usr/local/cpanel/scripts/installpostgres

Login to cPanel and WHM safely

Make sure to login to cPanel and WHM with a valid SSL installed domain name or host name. never login with IP address. for example if your domain name is example.com always login to cPanel with :

https://example.com:2083

and for WHM :

https://example.com:2087

To login without SSL (Not recommeded) you can use :

cPanel :

http://example.com:2082

WHM :

http://example.com:2086

Port number SSL non-SSL
2083 YES NO
2082 NO YES
2087 YES NO
2086 NO YES

Another way to login to cPanel is to use auto cPanel login tool.

To access cPanel with your domain name (as example.com) :

https://example.com/cpanel

for WHM :

https://example.com/whm

Firewall

You can install CSF firewall to protect your network, Installation commands :

cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

To test CSF required modules :

perl /usr/local/csf/bin/csftest.pl

Don’t worry if you cannot run all the features, so long as the script doesn’t report any FATAL errors

Full installation manual : https://www.configserver.com/cp/csf.html

Secure SSH

Try not to use port 22 for SSH login. change it from /etc/ssh/sshd_config file to another number for example : 1527 and save it. Open the port number in your firewall rules and run :

service sshd restart