Install and Configure CyberPanel on Ubuntu
CyberPanel is a free and open-source web hosting control panel powered by OpenLiteSpeed. CyberPanel uses the LiteSpeed web server and is specially designed for speed, security, and reliability. CyberPanel comes with a rich set of features, including, Different levels of user access, Auto SSL, Email server, Light-weight DNS Server, Firewall, Backup and Restore, SpamAssassin, FileManager, PHP Manager and many more.
This tutorial will explain how to install CyberPanel control panel on Ubuntu 18.04 server.
Requirements
- A server running Ubuntu 18.04 with a minimum of 2 GB RAM.
- A static IP address is configured.
- A root password is set up on your server.
Getting Started
Let's start with updating the server's package repository to the latest version:
apt-get update -y
apt-get upgrade -y
Once all the packages are updated, restart your system to apply the configuration changes.
Install CyberPanel
CyberPanel provides auto-installation script to install all the required components required for CyberPanel. You can download it with the following command:
wget https://cyberpanel.net/install.sh
Once the script is downloaded, start the CyberPanel installation with the following command:
bash install.sh
Once all the pre-flight check completed successfully, you should see the following output:
Process check completed... CyberPanel Installer v2.0 1. Install CyberPanel. 2. Install Addons. 3. Exit. Please enter the number[1-3]: 1
Select option 1 and hit Enter button. You should see the following output:
CyberPanel Installer v2.0 RAM check : 75/257845MB (0.03%) Disk check : 697/47GB (2%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. Please enter the number[1-3]: 1
Select 1 to Install CyberPanel with OpenLiteSpeed and hit Enter. 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 to use the default admin password and hit Enter. 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
Select y for other options and hit Enter to start the installation. Once the CyberPanel has been installed successfully, you should see the following output:
################################################################### CyberPanel Successfully Installed Current Disk usage : 4/30GB (16%) Current RAM usage : 279/3935MB (7.09%) Installation time : 0 hrs 16 min 0 sec Visit: https://38.143.68.97: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
You can also check the CyberPanel service status with the following command:
systemctl status lscpd
You should get the following output:
? lscpd.service - LSCPD Daemon Loaded: loaded (/etc/systemd/system/lscpd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2019-08-28 08:43:28 UTC; 11min ago Process: 1608 ExecStop=/usr/local/lscp/bin/lscpdctrl stop (code=exited, status=0/SUCCESS) Process: 1620 ExecStart=/usr/local/lscp/bin/lscpdctrl start (code=exited, status=0/SUCCESS) CGroup: /system.slice/lscpd.service ??1638 lscpd (lscpd - main) ??1639 lscpd (lscpd - #01) ??1645 lscpd (lscgid) ??1650 /usr/local/CyberCP/bin/lswsgi -m /usr/local/CyberCP/CyberCP/wsgi.py ??1653 /usr/local/CyberCP/bin/lswsgi -m /usr/local/CyberCP/CyberCP/wsgi.py ??2656 lscpd (lscgid) Aug 28 08:43:25 cyberpanel systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies. Aug 28 08:43:25 cyberpanel systemd[1]: Starting LSCPD Daemon... Aug 28 08:43:25 cyberpanel lscpdctrl[2630]: Cgid: Child process with pid: 2663 was killed by signal: 9, core dump: 0 Aug 28 08:43:26 cyberpanel lscpdctrl[1620]: [OK] lscpd: pid=1638. Aug 28 08:43:28 cyberpanel systemd[1]: Started LSCPD Daemon.
Access CyberPanel Web Interface
Now, open your web browser and type the URL https://your-server-ip:8090. You will be redirected to the CyberPanel log in page:
Provide admin for the username and 1234567 for the password, select your preferred language and click on the Sign In button. You should see the CyberPanel dashboard in the following page:
Create Your First Website
CyberPanel is installed and configured. It's time to create your first website with CyberPanel.
On the CyberPanel dashboard, click on the WEBSITES. You should see the following page:
Click on the CREATE WEBSITE. You should see the following page:
Now, select the owner of the website, domain name, email, PHP version and click on the Create Website button. Once the Website is created successfully, you should see the following page:
Now, click on the Websites>List Websites on the left pane to list your created website. You should see the following page:
Now, click on the Manage button to manage your website. You should see the following page:
You can also access your newly created website by typing the URL http://your-domain-name. You should see the following page:
Conclusion
Congratulations! you have successfully installed and configured CyberPanel on Ubuntu 18.04 server. You can now host any number of websites using CyberPanel. You should spend some time exploring the features, options and settings of your CyberPanel Web Panel.