Experience ease of use - Sign up for a free trial
Cyberpanel is a free web hosting control panel and a great cPanel alternative that works on top of the OpenLiteSpeed server. You can deploy several web applications with CyberPanel such as WordPress, Magento, Prestashop, and Opencart to name a few.
Furthermore, on CyberPanel you can also manage SSL certificates, use a user-friendly file manager, and configure the web application firewall. With a ton of features and a powerful server stack, CyberPanel is the control panel loved by modern developers.
In this tutorial, we will install the CyberPanel with OpenLiteSpeed server on a simple cloud server running Ubuntu 20.04 or 18.04.
Go ahead and deploy a new UpCloud server with Ubuntu 20.04 or 18.04 by logging in to your UpCloud Control Panel and clicking Deploy server. If you are new to UpCloud, you can get started with the free trial by signing up.
The deployment page shows a number of options for customizing a new Cloud Server.
You can find more detailed instructions on server deployment at the UpCloud newcomer’s tutorials.
Once you’ve deployed your server, connect to your cloud server using your preferred SSH client.
When logging into a fresh deployment for the first time, it’s always recommended to make sure you are running the latest software and security patches. Update and upgrade the packages list on the server with the following command.
sudo apt-get update && sudo apt-get upgrade -y
Next, to install CyberPanel you’ll need to download the installation script. You can do this for example in the /tmp folder which is cleaned up automatically at each reboot. Change into the directory then use wget to down the install script with the commands below.
wget -O installer.sh https://cyberpanel.net/install.sh
The installation script needs to be made executable. Change the file permissions of the script we just downloaded using chmod as shown underneath.
chmod +x installer.sh
Then run the installer using the next command.
Once you run the script, the shell will take you through the installation and ask to input preferences. You can do that as below.
~~~~~~~~~~ Github URL: github.com/usmannasir/cyberpanel Github Content URL: raw.githubusercontent.com/usmannasir/cyberpanel Github Branch: v2.0.3 ~~~~~~~~~~ Initializing... Valid IP detected... Checking server... Checking OS... Detecting Ubuntu 20.04 ... Checking virtualization type... Checking root privileges... You are runing as root... CyberPanel Installer v2.03 1. Install CyberPanel. 2. Addons and Miscellaneous 3. Exit. Please enter the number[1-3]: 1
Type 1 and press enter to select to Install CyberPanel.
CyberPanel Installer v2.03 RAM check : 152/981MB (15.49%) Disk check : 2/25GB (10%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. Please enter the number[1-3]: 1
To install CyberPanel with OpenLiteSpeed (free version), choose 1. In case you have a license of the LiteSpeed Enterprise server, feel free to choose 2 instead.
If you’re not sure which one you should select, simply choose 1 and fill up the license later.
Afterwards, answer the remaining questions as shown below.
Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd. Full installation [Y/n]: Y
Type Y and press enter to install full-service CyberPanel that will include DNS Manager, File Manager, Database manager, and Email server as well.
Do you want to setup Remote MySQL? (This will skip installation of local MySQL) (Default = No) Remote MySQL [y/N]: N
Remote MySQL is used very rarely. In most cases, you have the database server on the same machine called the localhost. To choose localhost for your database, Type N and press enter.
Press Enter key to continue with the latest version or Enter a specific version such as: 1.9.4 , 2.0.1 , 2.0.2 ...etc.
When asked to select the installed version, simply press enter to use the latest version.
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] : S
Setting a unique password is recommended for better security. Type S, press enter. You’ll be prompted to enter a password twice.
Do you wish to install Memcached extension and backend? Please select [Y/n]: y Do you wish to install Redis extension and backend? Please select [Y/n]: y Would you like to set up a WatchDog (beta) for Web service and Database service? The watchdog script will be automatically started up after installation and server reboot If you want to kill the watchdog, run watchdog kill Please type Yes or no (with capital Y, default Yes): Yes
After you answer all the questions in the installation wizard the script will take care of the rest. Hold tight for 5-10 minutes as the installer will install and set up CyberPanel for you. Once the installation finishes, you’ll see an output similar to the example below.
CyberPanel Successfully Installed Current Disk usage : 7/25GB (33%) Current RAM usage : 288/981MB (29.36%) Installation time : 0 hrs 7 min 16 sec Visit: https://18.104.22.168:8090 Panel username: admin Panel password: ***** WebAdmin console username: admin WebAdmin console password: mSlj3t7lzFIJKwx7
Right after the completion output, the shell asks you to restart the server or continue without restarting the server.
Simply type N and press enter to continue without a restart.
Would you like to restart your server now? [y/N]: N
At this point, you have installed all the required packages and their extensions to host a website with the OpenLiteSpeed server.
CyberPanel is managed through their easy-to-use but powerful web dashboard. By default, the admin dashboard is accessible via the port 8090. You can visit your admin panel by entering your server IP address in your browser followed by the port number.
Replace 22.214.171.124 with your server’s public IP address.
The administrator dashboard gives you access to manage everything on the server. You can even use the inbuilt terminal to execute your SSH commands.
Feel free to have a look around the dashboard before continuing with the next steps.
At this stage, you can access the admin panel using your server’s IP address followed by the port number. However, when you log in to your administrator panel, you will see the unsecured page warning due to the self-signed SSL certificates installed by default.
We can fix this by obtaining SSL certificates from a trusted certificate authority such as Let’s Encrypt. To do so will require an FQDN, fully qualified domain name. You’ll need to have a registered domain name and set up an A record that points the domain to the public IP address of your Cloud Server.
Step 1. Add an A record in your domain’s DNS zone.
Step 2. Create a subdomain, e.g. “server” and set the server’s public IP address as the destination.
This can generally be done at your domain registrar’s service. Read more about DNS and how to configure DNS records.
Step 3. Login to your Admin dashboard and use the main menu on the left to go to:
Websites > Create Website
Step 4. In the website details, choose the default Package and admin as the owner. Add your domain or subdomain that you configured above, e.g. server.example.com then select the PHP version and click on Create Website.
Step 5. Once the site is created, install the hostname SSL to enable the secure HTTPS on your CyberPanel dashboard. Go to:
SSL > Hostname SSL
Step 6. Choose the Website you want to use as the dashboard URL and click on Issue SSL.
CyberPanel will then use Let’s Encrypt to obtain free certificates for your dashboard domain.
At this point, you can access the CyberPanel dashboard on your very own domain name securely.
Type the domain name followed by the port number 8090 in your browser and the login screen should open now.
Remember to replace example.com with your domain name.
CyberPanel with OpenLiteSpeed server is the best way to host multiple websites on a cloud server. It all starts with your first website.
Note that you’ll need to create another A record which can be done at your domain registrars service. Read more about DNS and how to configure DNS records.
Once your domain name is all set, create a new website just like when adding the hostname site. Go to:
Websites > Create Website
Again, choose the default Package, select admin as the owner and type your domain name. Type your email address and select the PHP version – PHP 7.4 (recommended)
Check all the additional features and click the Create Website button.
You should now be able to visit CyberPanel’s default page when you visit your domain name in the browser.
If you are seeing the page like above, your new website is ready to start hosting actual content. Continue below with steps on how to install WordPress on CyberPanel.
The best thing about CyberPanel is that you do not need to mess with the database shell and the SSH console much. It comes packed with an auto-installer that you can use to install any script.
Not just WordPress, you can also install Joomla, Prestashop or Magento. Go to the following section:
Websites > List Websites
Next, select your domain name for which you want to install the WordPress site.
Then scroll down to the list of installable applications and start the configuration by clicking the WP + LSCache icon.
You’ll then be presented with the WordPress installation wizard. Fill up the form as follows:
Once all set, click the Install Now button and wait for a few seconds as it installs the WordPress CMS and LiteSpeed Cache plugin.
Congratulations! You should now be able to visit your brand new WordPress site in your browser.
If you see the WordPress default page, your installation was successful and you can get started customising your page.
WordPress runs lightning quick on the top of the OpenLiteSpeed web server with little left to be desired.
You might want to begin configuring your new site by using the following menus.
Thanks for this tutorial. Is there a tutorial on how to transfer websites WP from cPanel to CyberPanel?
Hi Omer, thanks for the suggestion. Although we don’t have a tutorial on this just yet, Cyberpanel has some help in the form of an import tool you might find useful.
Thanks for sharing such a wonderful tutorial. It worked without any issue. :)
How close subdomain with CP from indexing? What’s say about cybersecurity?
Hi Vitaly, thanks for the question. While CyberPanel doesn’t appear to have options to stop indexing by itself, you can always create a robots.txt in the root of your subdomain sites and disallow all crawlers.
i dont tasted yet, this panel support nginx ? its stable ?
Hi there, thanks for the question. CyberPanel by default uses OpenLiteSpeed web server which runs stable and generally performs better than Nginx.
Hi Janne and thanks for your tutorial!
What about if I need (as I do need) to install CyberPanel on CentOS?
Can I adapt anything you shown for Ubuntu or shall I look for somewer else?
THX A LOT!
Hi Andrea, thanks for the question. Cyberpanel works well with CentOS and the install method is practically the same. Just download the install script and run it. The script will detect your OS and install the correct packages.
I will try it.
Very good tutorial. Honestly, I am not a fan of CyberPanel, I like aaPanel (aapanel.com) …. simple, light and faster
I want to install cyberpanel on $5 server. Should I go with centos or Ubuntu.
Hi Suraj, thanks for the question. CyberPanel will work just fine on either OS but due to the discontinuation of CentOS, Ubuntu might be a safer choice.
Thank you so much NH. Surely, I will check that panel too and see what works best. Have a good day
Following this guide I want to deploy 2 websites based on Magento 2.4.2 using its multisite feature. I can do all the configuration required in magento backend following docs like adding website, stores, views.
I have 4 questions, I request you to please reply in detail
1. How I can create vhosts using cyberpanel ?
2. What will be required configutation in vhosts ?
3. I want to permanently redirect(302), https://www.example.com/ to https://example.com/ (bare www)
4. In such case, how to set values for MAGE_RUN_TYPE and MAGE_RUN_CODE ?
This is what magento said in case of apache server
Hi Raeen, thanks for the question. CyberPanel can easily handle multiple Magento sites on a single server. You can follow the tutorial above to create a new website for each of your Magento sites. Then in the next step, choose Magento instead of the WP install option and fill in the required details.
Hi, I have installed cyberpanel but it did not finish installing. when i try to install again, it says cyberpanel has been installed. when i go to my ip address, it doesnt open.
Hi Joey, thanks for the question. CyberPanel doesn’t support reinstall or uninstall but you could try using their upgrade script to repair the install.
Yes… Also, you can use ordinary ‘chmod’ commabd for edit access rights of root directory of CP subdomain… But, in my opinion, need change standart 8090 port and export to Cloudflare. Its best decision, i think.
Orlando Fernando Marconi
How can I install a website and then install wordpress configured with LScache in a Command Line?
Hi Orlando, thanks for the question. Cyberpanel does have a command line client but cannot confirm if it includes an option to install apps like WordPress or LScache.