How to Install CyberPanel Control Panel on CentOS 7

CyberPanel is a free and open-source web hosting control panel that uses OpenLiteSpeed web server. It is available in two versions the free and enterprise versions. Free version uses OpenLiteSpeed web server while the enterprise version uses LSWS. CyberPanel comes with a rich set of features including, Docker support, AutoSSL, Backup and Restore, CSF Firewall, Git, Multiple PHP and many more.

In this tutorial, we will learn how to install CyberPanel on CentOS 7 VPS.

Requirements

  • A fresh CentOS 7 server with minimum 2 GB RAM.
  • A valid domain name is pointed with your VPS IP address.
  • A root password is set up on your VPS.

Getting Started

First, you will need to disable Selinux on your server. You can do this by editing /etc/selinux/config file:

nano /etc/selinux/config

Change the file as shown below:

SELINUX=disabled
SELINUXTYPE=targeted

Save and close the file. Then, restart your server to apply the changes.

Next, you will need to set the hostname of your server. In this case, we will set a fully qualified domain name (FQDN) in /etc/hosts before we go further. You can set it by editing /etc/hosts file:

nano /etc/hosts

Add the following line at the end of file:

your-server-ip test.linuxbuz.com test

Save and close the file. Then, run the following command to apply the configuration changes:

# hostname -f

Install CyberPanel

First, you will need to download CyberPanel auto-installer script from their official website.

wget https://cyberpanel.net/install.sh

Once downloaded, start the installation using the following command:

# bash install.sh

You should see the following output:

Checking and installing curl and wget
No argument detected...
Checking root privileges...
You are runing on root...
Checking OS...
Detecting CentOS 7.X...


Pre-flight check completed...
Process check completed...

CyberPanel Installer v2.0
  1. Install CyberPanel.
  2. Install Addons.
  3. Exit.

Please enter the number[1-3]: 1

Select 1 and hit enter to install CyberPanel. You should see the following output:

CyberPanel Installer v2.0
RAM check : 60/1831MB (3.28%)
Disk check : 1/20GB (8%) (Minimal 10GB free space)
    1. Install CyberPanel with OpenLiteSpeed.
    1. Install Cyberpanel with LiteSpeed Enterprise.
    1. Exit.

Please enter the number[1-3]: 1

Select 1 and hit enter to install CyberPanel with OpenLiteSpeed. You should see the following output:

Please choose to use default admin password 1234567, randomly generate one (recommended) or specify the admin password?
Choose [d]fault, [r]andom or [s]et password: [d/r/s] d

Admin password will be set as 1234567

Type d and hit enter to use the default admin password. You should see the following output:

Replace JS/CSS files to JS Delivr?
This may improve panel loading speed in Asia Pacific region...
Please select [y/N]: y

Install Memcached extension for PHP?
Please select [y/N]: y

Install LiteSpeed Memcached?
Please select [y/N]: y

Install Redis extension for PHP?
Please select [y/N]: y

Install Redis?
Please select [y/N]: y

Next, type y for all other options. Once the installation has been completed successfully, you should see the following output:

###################################################################

CyberPanel Successfully Installed

Current Disk usage : 4/20GB (22%)

Current RAM  usage : 264/1831MB (14.42%)

Installation time  : 0 hrs 15 min 2 sec


Visit: https://38.143.68.108:8090
Panel username: admin
Panel password: 1234567

Please change your default admin password
If you need to reset your panel password, please run:
adminPass YOUR_NEW_PASSWORD

If you change mysql password, please  modify file in
/etc/cyberpanel/mysqlPassword with new password as well


Website : https://www.cyberpanel.net
Forums  : https://forums.cyberpanel.net
Wikipage: https://docs.cyberpanel.net

Enjoy your accelerated Internet by

CyberPanel & OpenLiteSpeed

###################################################################

If your provider has a network-level firewall
Please make sure you have opened following port for both in/out:
TCP: 8090 for CyberPanel
TCP: 80, TCP: 443 and UDP: 443 for webserver
TCP: 21 and TCP: 40110-40210 for FTP
TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service
TCP: 53 and UDP: 53 for DNS service

Access CyberPanel

Now, open your web browser and type the URL  https://your-ip-address:8090. You will be redirected to the following page:

Provide your default admin username and password then click on the Sign in button. You should see the CyberPanel dashboard in the following screen:

Now, click on the WEBSITE button to create your first website. You should see the following screen:

Click on the CREATE WEBSITE button to create a new website. You should see the following screen:

Provide all the required information like, Owner, website name, email, PHP version and click on the CREATE WEBSITE button. Once the website created successfully, you should see the following screen:

Next, click on the List Websites in the left pane to see your website as shown below:

Next, open your web browser and type the URL http://test.linuxbuz.com. You should see your newly created website in the following screen:

Conclusion

Congratulations! you have successfully installed and configured CyberPanel hosting control panel on CentOS 7 VPS. You can now host unlimited number of websites using CyberPanel.

To write a comment on this article, fill out the form below. Fields marked with an asterisk (*) are required.