India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Canada English
Canada Français
Somalia English
Netherlands Nederlands

The Definitive Guide to Installing CyberPanel on your VPS

CyberPanel is an open source web hosting control panel that allows managing web sites, domains, databases, email accounts and more through a user friendly interface.

Some key benefits of using CyberPanel include:

  • Easy to use interface for managing web hosting
  • Support for multiple web sites and domains
  • Email accounts, mailing lists, spam filtering
  • Database management (MySQL, PostgreSQL)
  • Application installer for common apps like WordPress
  • Security tools like firewall configuration
  • Optimized for low resource usage

Using CyberPanel to manage web sites on a VPS can save time and effort compared to manually configuring all services.

It brings a shared hosting like experience to your own virtual private server.

Choosing a VPS for CyberPanel in Canada

Selecting the right VPS (Virtual Private Server) is important for having a smooth experience running CyberPanel.

You want enough resources to handle your expected sites and traffic levels, while keeping costs reasonable. This section covers guidelines for choosing your hosting VPS in Canada.

VPS Sizing Considerations

The cores, memory and storage of your VPS determines how many sites and monthly visitors it can comfortably accommodate. Some rough guidelines:

Light Usage VPS

  • 1-5 sites
  • Under 5000 visits / month total
  • Recommended VPS:
    • 2 CPU cores
    • 2GB RAM
    • 40GB SSD storage

Medium Usage VPS

  • Up to 50 sites
  • Up to 50,000 visits / month total
  • Recommended VPS:
    • 4 CPU cores
    • 4GB RAM
    • 80GB SSD storage

High Usage VPS

  • Around 200 sites
  • Up to 500,000 visits / month total
  • Recommended VPS:
    • 8+ CPU cores
    • 16GB+ RAM
    • 200GB+ SSD storage

CyberPanel Resource Usage

Keep in mind CyberPanel itself has a very low footprint, utilizing:

  • 128MB – 256MB RAM
  • 2-4% CPU

So the large majority of your VPS resources are available for your web hosting workload.

Linux Distribution Options

CyberPanel supports multiple Linux distributions, but CentOS 7 is recommended as the most stable and compatible choice:

CentOS 7

  • Considered best for stability and performance
  • Longer term support until 2024
  • Large software ecosystem and community

Debian 9/10

  • More bleeding edge packages
  • Shorter LTS support cycles
  • Not quite as compatible out of the box

Ubuntu 18.04

  • Based on Debian so similar tradeoffs
  • Works well but has higher resource usage than CentOS

Unless you have a specific need for Ubuntu or Debian, CentOS 7 is encourages as the distro that will lead to least headaches long term.

VPS Hosting Providers in Canada

You have many good options for Linux VPS hosting compatible with CyberPanel. Here are top recommendations:

Cloudpap

Deploy your CloudPAP compute instances in seconds.

Run any workload, from mission-critical CPU, memory, and storage-intensive apps to low-traffic sites.

Affordable prices.

DigitalOcean

  • Simple interface and predictable pricing
  • Offer higher spec’d instances
  • Global data center locations
  • Fast storage and networking

Vultr

  • Very cost competitive pricing
  • Usage-based variable billing
  • Bare metal instances available
  • Deploy to 15+ global data centers

Linode

  • Around since 2003, very well known
  • Emphasis on stability and uptime
  • Solid network connectivity
  • Reasonable prices

All three providers make launching and managing CentOS 7 VPS servers easy which is what matters most for getting started with CyberPanel.

Launching your CyberPanel VPS

Once you’ve chosen your desired provider, launching a fresh VPS prepped for CyberPanel only takes a few minutes.

Basic steps with most any provider:

  1. Sign up for account
  2. Access cloud server dashboard
  3. Click deploy new server
  4. Select region to host in
  5. Choose CentOS 7 for OS
  6. Pick VPS size based on guidelines above
  7. Give root password
  8. Wait 2-3 minutes for VPS deployment
  9. SSH in to newly created IP address as root

Your fresh CentOS 7 VPS instance will now be ready for Installing LEMP and CyberPanel.

Resizing VPS Plans

One advantage of choosing a good VPS provider is the ability to upgrade to a higher grade VPS plan later very easily, often with no downtime.

If after using CyberPanel for awhile you need more cores, RAM, bandwidth or storage, just:

  1. Login to hosting provider portal
  2. Navigate to upgrade plans section
  3. Select a plan with more resources
  4. The provider handles migrating your VPS to new hardware

So don’t worry about perfectly predicting your hosting needs upfront.

Key Considerations Summary

  • Size VPS based on expected sites and monthly traffic
  • Use CentOS 7 64-bit for best stability
  • Choose hosting provider with simple dashboard and upgrade process
  • Launch basic CentOS 7 image
  • Adjust resources later if necessary

This will provide an ideal foundation for installing CyberPanel and having a great hosting control panel experience even as future needs change.

A provider that allows resizing resources later is ideal in case you need to scale up.

Installing LEMP Stack on VPS

Before installing CyberPanel, you need a LEMP stack installed:

  • Linux – Operating system
  • ENginx – Web server
  • MySQL – Database management
  • PHP – Programming language

Here is an overview of getting LEMP deployed on CentOS 7:

  1. Launch a CentOS 7 VPS instance with your hosting provider
  2. Log into the VPS as root via SSH
  3. Update system packages: yum update -y
  4. Install EPEL repository (Extra Packages for Enterprise Linux): yum install epel-release
  5. Install Nginx web server: yum install nginx
  6. Start Nginx: systemctl start nginx
  7. Confirm Nginx is running by visiting VPS IP in browser
  8. Install MySQL database: yum install mysql-server Secure the installation: mysql_secure_installation
  9. Install PHP yum install php php-mysqlnd php-fpm php-json
  10. Enable and start PHP-FPM service systemctl enable php-fpm systemctl start php-fpm

Once you have a LEMP stack running, you are ready to install CyberPanel.

4. Downloading and Configuring CyberPanel

With the LEMP stack online, follow these steps to get CyberPanel installed:

  1. Download CyberPanel installer: wget https://cyberpanel.sh/install.py
  2. Edit the config file: python install.py Choose option #2 for manual configuration
  3. Update paths to point at your Nginx, PHP-FPM and MySQL locations
  4. Start installation script: python install.py
  5. Choose full installation option

This will complete the installation process automatically. It takes 5-15 minutes usually.

Some key configuration areas set by the installer:

  • Creates CyberPanel system user
  • Configures cPanel like directories
  • Sets up database for CyberPanel
  • Creates virtual hosts for domains
  • Enables and configures LiteSpeed web server
  • Configures everything to work with LEMP stack

After finishing, CyberPanel should be installed and ready for setup!

Initial CyberPanel Setup

Once CyberPanel is installed, there are some key configuration steps to take before starting to create accounts and add domains.

Taking the time to complete these correctly will ensure your experience with CyberPanel is smooth.

Create the Admin Account

The first step is to create your main CyberPanel administrator account.

  1. After installation finishes, the script will provide a URL to visit to set the admin username and password. Example: Please go to the following URL and create the admin account: http://123.123.123.123:8090
  2. Navigate to that URL in your browser. You will see a screen prompting to set your admin username and password:
cyberpanel login
  1. Enter your desired admin username and a strong password. This account will have full control over the entire CyberPanel system.

Once submitted, you will be logged into the CyberPanel dashboard automatically.

This admin account can be used to create other users with different privilege levels later.

Adjust File Permissions

By default, CyberPanel uses very strict file permissions for security reasons.

However, this can prevent normal operation of some functionality.

To allow accounts and services to operate properly, you need to relax permissions on a few directories:

chmod -R 755 /home
chmod -R 755 /etc/cyberpanel

The /home directory is used for user accounts and websites files. The /etc/cyberpanel directory contains CyberPanel specific configuration.

Configure Mail Services

The final step is enabling mail services so accounts can send/receive email.

By default CyberPanel uses Postfix for mailing, but you can switch to Sendmail or setup a full mail stack instead.

  1. From main dashboard navigate to: Email –> Mail Server Settings
  2. Configure desired mail server: As you can see there are sections for Postfix, Sendmail and External Mail Service settings.
  3. Enter your preferences to match your mail stack requirements.

Once mail services are properly configured, user accounts and sites created in CyberPanel will be able to send/receive emails normally.

Taking the time to complete these three steps sets you up nicely to start fully leveraging the power of CyberPanel for your web hosting management needs!

After those steps CyberPanel should be ready for general usage!

6. Managing CyberPanel

Once logged into the admin dashboard, CyberPanel offers the following core features:

Control Panel

This is where domains, websites, databases and more are managed:

  • Domains – Add/remove domains
  • Website – Create sites for domains
  • Package – Set resource limits per site
  • Databases – Add/manage MySQL/Postgres DBs
  • DNS – Manage DNS zones
  • Services – tools like mail and FTP accounts

Account Panel

For managing users accounts:

  • Create/remove user accounts
  • Set packages to allocate resources
  • View usage statistics

Server Settings

Includes server management tools like:

  • Security options – Firewall, kernel settings, etc
  • Admin privileges – granting server or reseller access
  • Performance – tune database and web server settings
  • View traffic and usage

With these you can fully manage your web hosting environment with CyberPanel as the central interface.

Scaling and Optimizing CyberPanel on a VPS

As your web hosting usage grows from a few sites to dozens or hundreds of sites, CyberPanel and the underlying VPS will need some tuning to handle the increased loads.

Here are tips for making sure performance remains smooth.

Monitoring Resource Usage

The first step is keeping a close eye on server resource utilization using CyberPanel’s built-in usage graphs:

Dashboard –> System Logs –> Resource Usage

The first step is keeping a close eye on server resource utilization using CyberPanel's built-in usage graphs:

This shows historical data for:

  • CPU Load – Overall CPU usage percentage
  • RAM Usage – System memory consumption
  • Disk Usage – Storage space used

If CPU, RAM or disk space remain very high (85%+) consistently, it means your VPS is underpowered for the workload. Time to upgrade.

Acceptable Ranges:

ResourceNormal Load
CPUUnder 60% during peak times
RAMUnder 75% during peak times
DiskUnder 80% overall

Upgrading the VPS

If your VPS plan is too undersized, the solution is moving to a higher spec plan with more CPU cores, RAM and SSD storage space.

Most VPS providers make this easy to do with little to no downtime for your sites. Steps may vary by provider but generally:

  1. Log into VPS provider control panel
  2. Navigate to VPS upgrade page
  3. Choose new VPS plan (more CPU/RAM)
  4. The provider handles moving and resizing everything automatically

After a few minutes your CyberPanel instance will be running on new improved hosting resources!

Popular VPS Upgrade Paths

Starting PlanUpgrade Plan
2 CPU Core, 4GB RAM4 CPU Cores, 8GB RAM
4 CPU Core, 8GB RAM6 CPU Cores, 16GB RAM

CyberPanel Performance Tuning

In addition to scaling up the VPS, you can also tune CyberPanel itself to handle more usage:

Tune LiteSpeed Settings

CyberPanel uses LiteSpeed as the web server by default. Optimization can help:

[Max Connections]  
Increase from default of 1024 to 2048+

[Max SSL Connections]
Boost to match Max Connections

[PHP Children] 
Set based on number of sites/traffic  

Adjust PHP-FPM Configuration

Edit CyberPanel’s /etc/cyberpanel/phpfpm.conf file:

[PHP Options]

pm.max_children = 100 

pm.start_servers = 30

pm.min_spare_servers = 20

pm.max_spare_servers = 50  

MySQL Tuning

If hosting large DBs, consider tweaking my.cnf settings:

key_buffer_size 
innodb_buffer_pool_size
query_cache_size
thread_cache_size

This will help CyberPanel handle much more traffic and usage!

Summary

  • Monitor usage charts for high utilization
  • Scale VPS plan for more resources
  • Tune LiteSpeed, PHP and MySQL configs in CyberPanel

With some smart optimization, CyberPanel can easily power heavy hosting workloads on a properly specc’d VPS!

This will help ensure CyberPanel remains performant as usage scales up.

Key Takeaways

CyberPanel brings an intuitive hosting panel to your VPS in Canada.

Some of the key benefits of installing CyberPanel on a VPS:

  • Creates a user friendly hosting management environment
  • Makes managing multiple sites, domains, servers much easier
  • Includes security and performance tools
  • Scales well with higher-end VPS plans
  • Supports web developer favorite LEMP stack

Overall CyberPanel can make running a custom web hosting environment easy for both users and administrators.

Leave a comment

Your email address will not be published. Required fields are marked *