CyberPanel is a robust web hosting control panel powered by OpenLiteSpeed, a popular web server. This guide will walk you through the installation of CyberPanel on a server running a compatible version of CentOS or Ubuntu, followed by the basic setup and creation of your first website.
Prerequisites
Before you begin, ensure you have the following:
- A server running CentOS 7/8 or Ubuntu 18.04/20.04.
- Root access to the server.
- A domain name pointed to your server’s IP address.
- Basic knowledge of SSH and server management.
Step 1: Update Your Server
First, update your server’s package index and upgrade existing packages.
CentOS:
sudo yum update -y
Ubuntu:
sudo apt update -y
sudo apt upgrade -y
Step 2: Install CyberPanel
To install CyberPanel, connect to your server via SSH and run the following commands:
sudo su -
wget -O installer.sh https://cyberpanel.net/install.sh
chmod +x installer.sh
./installer.sh
You will be prompted to select various options during the installation:
- Install CyberPanel: Choose option 1 to install CyberPanel.
- Install Full Service for CyberPanel: Choose option 1 to install CyberPanel with OpenLiteSpeed.
- Set up Remote MySQL: Choose option 2 unless you need remote MySQL access.
- Install Memcached extension: Choose Y for Yes.
- Install Redis extension: Choose Y for Yes.
- Install WatchDog: Choose Y for Yes.
- Choose Password: Set a password for the CyberPanel admin account.
The installation process might take some time. Once it’s completed, you’ll see a success message with details on how to access CyberPanel.
Step 3: Access CyberPanel
After installation, access CyberPanel via your web browser. Use the following URL format:
https://your-server-ip:8090
Login with the username admin and the password you set during installation.
Step 4: Basic Setup
Upon first login, you’ll be taken to the CyberPanel dashboard. Here are a few basic configurations to get started:
Change Admin Password
- Go to
Users->Modify User. - Select the
adminuser. - Enter a new password and save the changes.
Configure Hostname and Email
-
Go to
Server->Server Status->Server Information. -
Click on
Change Hostname. -
Enter your desired hostname and save.
-
Go to
Email->Access eMail. -
Configure the email settings according to your domain and server requirements.
Set Up DNS
- Go to
DNS->Create Nameserver. - Enter your domain and the IP addresses for your nameservers.
- Save the settings.
Step 5: Create Your First Website
To create your first website, follow these steps:
- Go to
Websites->Create Website. - Fill in the necessary details:
- Select Package: Default.
- Select Owner: admin.
- Domain Name: Enter your domain name.
- Email: Your email address.
- PHP: Select the desired PHP version.
- Click
Create Website.
Configure SSL for Your Website
- Go to
Websites->List Websites. - Click
Managenext to your newly created website. - Under
Configuration, clickSSL. - Click
Issue SSLto generate a free SSL certificate from Let’s Encrypt.
Step 6: Upload Your Website Files
You can upload your website files via the built-in File Manager or using FTP.
Using File Manager
- Go to
Websites->List Websites. - Click
Managenext to your website. - Click on
File Manager. - Upload your website files to the
public_htmldirectory.
Using FTP
- Go to
FTP->Create FTP Account. - Fill in the details to create an FTP account.
- Use an FTP client like FileZilla to upload your website files to the
public_htmldirectory of your domain.
Step 7: Test Your Website
Open your web browser and navigate to your domain. You should see your website if everything is set up correctly.
Conclusion
Congratulations! You have successfully installed CyberPanel, performed basic setup, and created your first website. CyberPanel offers a wide range of features and tools to manage your web hosting environment efficiently. Explore the dashboard to familiarize yourself with other functionalities and take full advantage of what CyberPanel has to offer.