Low Orbit Flux Logo 2 F

How to Install CPanel on Ubuntu and CentOS

How to Install CPanel on Ubuntu and Centos

CPanel is a hosting control panel. It is extremely popular. For hosting related tasks it makes normal systems administration incredibly easy. It is a very popular tool. If you have ever bought a shared hosting account, you have probably used it. I would think of it as an industry standard. Personally, I don’t use it as I just run my own NGINX and Apache servers on private droplets. If you are looking to run a hosting company or provide hosting to other people, this is probably the way to go.

WARNING - There is no uninstall script. The “uninstall method” is to reformat the server.

CPanel Ports

It is worth knowing what ports CPanel runs on. You will see different ports for cPanel and WHM. You will also see different ports for HTTPS ( SSL ) and regular HTTP. This results in 4 ports. This is just for basic CPanel stuff. Other services that end up being installed will have different ports for example if you add FTP, mail, and other things, these will all use different ports.

2082 cPanel
2083 cPanel - SSL
2086 WHM
2087 WHM - SSL

How To Install CPanel on CentOS

Before you get started, make sure that you have everything you need.

Installation is pretty easy. You just have to run a script. You can actually download and run this script in one command.


curl -o latest -L http://httpupdate.cpanel.net/latest && sh latest

Web UI Setup Steps

Assuming your server has an IP like 192.168.3.22 you can access cPanel/WHM by going to either of these in your browser:

http://192.168.3.22:2086

OR

https://192.168.3.22:2087

Use your root user and password to login. Once logged in it will lead you through the process.

From here on it is a pretty wild ride so get ready….

This is just the license agreement. Just accept and click next.

How To Install CPanel on Ubuntu

OK, so you want to install CPanel on Ubuntu? Unfortunately it isn’t supported on Ubuntu. CPanel only supports CentOS, CloudLinux, RHEL, or an older version of Amazon Linux. That doesn’t mean that it can’t be done though. People report having done this and having success.

References