Install cPanel

Install screen


apt install screen

CentOS & Rocky

yum install screen

Run screen


Detach the screen out by pressing Ctrl+ a at the same time – release and then press d.:

ctrl+a - release then press d
[detached from 11115.pts-0.capnel]

This releases the screen and the task so you can do other things while the task runs in the background.

You’re returned to the terminal window from which you launched the screen session. A message tells you that a screen window labeled [detached from 11115.pts-0.capnel] has been detached.

To install cPanel & WHM on your server, run the following command:

cd /home && curl -o latest -L && sh latest

To manage screen.

You need the number from the start of the window name to reattach it. If you forget it, you can always use the -ls (list) option, as shown below, to get a list of the detached windows:

screen -ls
There is a screen on:
        11115.pts-0.capnel      (Detached)
1 Socket in /var/run/screen/S-root.

You can check on the task by typing this to resume the screen:

screen -r 11115

When the process ends, you can type exit to exit from the screen. Alternatively, you can press Ctrl+A, and then d to forcibly kill a window.

ctrl+a - release then press k
[detached from 11115.pts-0.capnel]

Leave a Comment