Today, we’re going to walk you through the process of installing CyberPanel on your shiny new Ubuntu 24.04 server, all from the comfort of your SSH terminal. Let’s dive in!
Getting Ready: Your Server’s Checklist
Before we start typing commands, let’s make sure your server is prepped and ready. Think of this as laying the foundation before building a house!
- Fresh Ubuntu 24.04: Seriously, this is a big one. While you can try to install CyberPanel on an existing server with other services, it often leads to conflicts. A fresh install ensures a smooth ride.
- Root Access (or
sudopower): You’ll need to be logged in as the root user or a user withsudoprivileges to run all the necessary commands. - Minimum Server Specs:
- RAM: Aim for at least 1 GB, but 2 GB or more is highly recommended for better performance, especially if you plan on hosting multiple sites.
- Disk Space: 10 GB is the bare minimum, but 20 GB gives you much more breathing room.
- Processor: A single core will do, but two cores will definitely make things snappier.
- Your Favorite SSH Client: Whether it’s PuTTY on Windows or the built-in Terminal on Linux/macOS, have it ready to connect to your server.
Step-by-Step Installation: Let’s Get Our Hands Dirty!
Here’s where the magic happens. Grab a cup of coffee, connect to your server, and let’s go!
1. Hook Up with SSH
First things first, open your terminal and connect to your server. Just swap out your_server_ip with your actual server’s IP address and username with your SSH login (often root):
ssh username@your_server_ip
If you’re using a password, type it in when prompted. If you’re a pro with SSH keys, your connection should be seamless.
2. Update, Update, Update!
It’s always a good habit to ensure your system is up-to-date. This fetches the latest package lists and upgrades any existing software to its newest version.
sudo apt update && sudo apt upgrade -y
The -y flag is a handy little shortcut that automatically says “yes” to any prompts, so you don’t have to sit there hitting Enter.
3. Grab wget (Just in Case)
The CyberPanel installer will handle most dependencies, but let’s make sure wget (our trusty tool for downloading files) is installed:
sudo apt install wget -y
It’s usually there, but better safe than sorry!
4. Unleash the CyberPanel Installer!
Now for the main event! We’re going to switch to the root user, download the CyberPanel installation script, and then run it.
sudo su -
wget -O installer.sh https://download.cyberpanel.net/install.sh
bash installer.sh
sudo su -: This command gets you into the root user’s environment, which is crucial for the installer to have full permissions.wget -O installer.sh ...: This downloads the official CyberPanel installation script and saves it asinstaller.sh.bash installer.sh: This executes the script, kicking off the installation process.
5. Follow the Yellow Brick Road (Installer Prompts)
The installer will guide you with a series of prompts. Here’s what you’ll typically see and our recommendations:
- Choose Installation Type:
- Select
2: “Install CyberPanel along with OpenLiteSpeed.” This is highly recommended as OpenLiteSpeed is a high-performance web server that pairs perfectly with CyberPanel and is free to use.
- Select
- Full Service Installation:
- Type
yfor “Yes.” This installs everything you need for a complete setup.
- Type
- Install Remote MySQL?
- Type
nfor “No,” unless you have a specific, separate MySQL server you plan to use. For most setups, CyberPanel will install its own local MySQL.
- Type
- Press ‘Y’ to continue setup or ‘N’ to abort:
- Type
yto proceed.
- Type
- Set Admin Password:
- CRITICAL! You’ll be asked to set a strong password for your CyberPanel admin user. Write this down somewhere safe! You’ll need it to log into the panel later.
- Install Memcached / Redis:
- These are caching systems that can significantly speed up your websites. You can choose
yfor both if you plan on optimizing your site’s performance.
- These are caching systems that can significantly speed up your websites. You can choose
Now, sit back and relax. The installation can take anywhere from 15 to 30 minutes (or even more), depending on your server’s specs and internet speed. It’s doing a lot of heavy lifting in the background!
6. Give Your Server a Fresh Start
Once the installation proudly declares its completion, the script will usually suggest a reboot. Do it! It ensures all the new services and configurations are loaded correctly.
sudo reboot
Your SSH connection will drop as the server restarts. Just wait a few minutes, and then you can reconnect.
Welcome to Your New CyberPanel Dashboard!
The moment of truth! Once your server is back online, open your web browser and navigate to:
https://your_server_ip:8090
Remember to replace your_server_ip with your server’s actual IP address. CyberPanel’s default port is 8090.
You might see a security warning about an “untrusted certificate” (like “Your connection is not private” or “NET::ERR_CERT_AUTHORITY_INVALID”). Don’t worry, this is normal! CyberPanel uses a self-signed certificate initially. Just click “Advanced” or “Proceed anyway” to continue.
Finally, you’ll be greeted by the CyberPanel login screen. Use these credentials:
- Username:
admin - Password: The strong password you set during the installation.
A Few Troubleshooting Pointers
Ran into a snag? Here are a couple of common issues and their quick fixes:
- Can’t Access the Dashboard? Check Your Firewall!
CyberPanel needs ports 80 (HTTP), 443 (HTTPS), and 8090 (CyberPanel dashboard) open. If you’re using ufw (Uncomplicated Firewall), you might need to allow them:
Bashsudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw allow 8090/tcp sudo ufw reload - Installation Failed? Look at the Logs!
If something went wrong during the installation, check the logs for clues. They’re usually found in /var/log.
There you have it! You’ve successfully installed CyberPanel on your Ubuntu 24.04 server. Now you’re ready to start hosting websites, managing databases, and enjoying the power of OpenLiteSpeed. What are you planning to build with your new server? Let us know in the comments below!
Leave a comment