UbuntuUbuntu Based

How To Install FastPanel on Ubuntu 24.04 LTS

Install FastPanel on Ubuntu 24.04

FastPanel has emerged as a popular free server control panel solution for web hosting environments. With its intuitive interface and comprehensive toolset, FastPanel simplifies server management tasks that would otherwise require extensive command-line knowledge. This comprehensive guide walks you through the complete installation and configuration process of FastPanel on Ubuntu 24.04 LTS, the latest long-term support release from Canonical.

Table of Contents

What is FastPanel?

FastPanel is a powerful, user-friendly server control panel designed to simplify web server management. Unlike other control panels that require costly licenses, FastPanel offers a free licensing model while delivering robust functionality. The panel allows system administrators and web hosting providers to effortlessly manage websites, email accounts, databases, and server settings through an intuitive graphical interface.

FastPanel stands out from alternatives like cPanel and DirectAdmin through its lightweight resource footprint and modern interface design. The panel excels at providing comprehensive server management capabilities without overwhelming users with complex technical options. Key functionalities include:

  • Website creation and management
  • Email account configuration and management
  • Database administration tools
  • Dynamic system notifications
  • Backup creation and management
  • SSL certificate implementation
  • User access management with permission controls
  • Two-factor authentication for enhanced security
  • Web SSH client for remote server access
  • Performance monitoring and statistics

The panel’s free licensing model makes it particularly attractive for small businesses and developers seeking cost-effective server management solutions.

System Requirements for FastPanel

Before installing FastPanel on your Ubuntu 24.04 LTS server, ensure your system meets the following minimum requirements:

  • Processor: Minimum 1 CPU core (1 GHz or higher)
  • Memory: Minimum 1GB RAM (2GB or more recommended for optimal performance)
  • Storage: Minimum 5GB free disk space (20GB or more recommended)
  • Operating System: Ubuntu 24.04 LTS (64-bit architecture only)
  • Network: Stable internet connection with static IP address

While FastPanel supports various Linux distributions including Debian (9-12), CentOS 7, AlmaLinux 8, and Rocky Linux 8, this guide focuses specifically on Ubuntu 24.04 LTS installation procedures.

It’s important to note that FastPanel requires a clean operating system installation without any preinstalled software. Installing the panel on a server with preconfigured web server components can cause conflicts and functionality issues. For optimal results, start with a fresh Ubuntu 24.04 LTS installation.

Pre-Installation Preparation

Proper preparation ensures a smooth installation process. Follow these steps to prepare your Ubuntu 24.04 LTS server for FastPanel installation:

Setting Up a Fresh Server

If you’re starting with a new VPS or dedicated server, ensure it has Ubuntu 24.04 LTS installed. Most cloud providers offer this as an option during server creation. For existing servers that don’t meet the “clean installation” requirement, consider reinstalling the operating system or provisioning a new server.

Updating System Packages

Before installing FastPanel, update your system’s package repositories and upgrade existing packages to their latest versions:

sudo apt update
sudo apt upgrade -y

This ensures all system components are up to date and reduces the likelihood of compatibility issues during installation.

Verifying System Requirements

Confirm your server meets the minimum hardware requirements:

# Check CPU information
lscpu

# Check available memory
free -h

# Check available disk space
df -h

Setting Correct Hostname

Ensure your server has a properly configured hostname:

# Check current hostname
hostname

# Set a new hostname if needed
sudo hostnamectl set-hostname your-server-hostname

Disabling Conflicting Software

If you have any web server software or control panels already installed, they should be removed to prevent conflicts with FastPanel:

# Remove Apache if installed
sudo apt purge apache2* -y

# Remove Nginx if installed
sudo apt purge nginx* -y

# Remove other control panels if present
# Commands will vary depending on what's installed

Acquiring a FastPanel License

FastPanel requires a license for operation, but fortunately, it offers a free licensing option. Follow these steps to acquire your FastPanel license:

  1. Visit the official FastPanel website.
  2. Click on the “Get For Free” or similar registration button
  3. Create an account by providing your email address
  4. Verify your email address by clicking the activation link sent to your inbox
  5. Log in to your new account
  6. Navigate to the license section and select “License FastPanel”
  7. Add the license to your cart
  8. During checkout, you’ll need to provide your server’s IP address
  9. Complete the order process (even though it’s free)
  10. Your license will be associated with your server IP address

The license acquisition process is straightforward and doesn’t require payment information for the free version. You’ll need this license during the post-installation configuration of FastPanel.

Server Configuration Before Installation

Proper server configuration enhances security and ensures optimal FastPanel performance. Complete these configuration steps before proceeding with installation:

Network Configuration

Verify your server has a properly configured network interface with a static IP address:

# Check network configuration
ip addr show

# Verify internet connectivity
ping -c 4 google.com

Firewall Configuration

Configure your firewall to allow traffic on port 8888, which is used by FastPanel’s web interface:

# Install UFW if not already present
sudo apt install ufw -y

# Allow SSH to prevent lockout
sudo ufw allow 22/tcp

# Allow FastPanel web interface
sudo ufw allow 8888/tcp

# Enable the firewall
sudo ufw enable

If using a cloud provider, ensure their network firewall also allows traffic on port 8888.

SELinux Configuration

FastPanel requires SELinux to be disabled. Ubuntu doesn’t have SELinux enabled by default, but if you’ve installed it manually, disable it:

# Check if SELinux is installed
sestatus

# If installed, edit the configuration file
sudo nano /etc/selinux/config

# Change SELINUX=enforcing to SELINUX=disabled
# Save and exit

# Reboot the server
sudo reboot

Synchronizing System Time

Ensure your server has the correct time set:

# Install NTP
sudo apt install ntp -y

# Enable and start the NTP service
sudo systemctl enable ntp
sudo systemctl start ntp

# Verify time synchronization
date

Installing Dependencies

FastPanel requires certain dependencies to function properly. Install these prerequisites before running the FastPanel installation script:

Installing wget

The wget utility is needed to download the FastPanel installation script:

# Update package lists
sudo apt update

# Install wget
sudo apt install wget -y

Verifying wget Installation

Ensure wget is properly installed:

# Check wget version
wget --version

If the command returns version information, wget is successfully installed. If not, retry the installation.

Installing Additional Prerequisites

Depending on your specific environment, you may need additional packages:

# Install common dependencies
sudo apt install curl software-properties-common apt-transport-https ca-certificates gnupg -y

FastPanel Installation Process

With all prerequisites in place, you’re ready to install FastPanel. The installation process is straightforward and automated through a script:

Downloading the Installation Script

Download the FastPanel installation script using wget:

wget https://repo.fastpanel.direct/install_fastpanel.sh

Running the Installation Script

Execute the installation script:

# Standard installation
sudo bash install_fastpanel.sh

# Alternatively, download and run in one command
wget https://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -

Customizing MySQL Version (Optional)

If you need to specify a particular MySQL or MariaDB version:

# Check available database versions
wget https://repo.fastpanel.direct/install_fastpanel.sh && bash install_fastpanel.sh --help | grep 'Available versions'

# Install with specific MySQL version (e.g., MySQL 8.0)
bash install_fastpanel.sh -m mysql8.0

Monitoring Installation Progress

The installation process may take several minutes, depending on your server’s performance. The script will display progress information as it completes various stages of the installation.

Once the installation completes successfully, you’ll receive a confirmation message with login credentials similar to:

Congratulations! FASTPANEL successfully installed and available for you at https://your.server.ip:8888

Login: fastuser
Password: your-generated-password

Make note of these credentials as you’ll need them to access the FastPanel interface.

Post-Installation Configuration

After successful installation, proceed with these post-installation configuration steps:

Accessing the FastPanel Web Interface

Open a web browser and navigate to the URL provided in the installation success message:

https://your.server.ip:8888

Note that FastPanel uses HTTPS with a self-signed certificate, so you may encounter security warnings in your browser. These warnings are expected and can be safely bypassed for your server.

Install FastPanel on Ubuntu 24.04 LTS

Initial Login and License Activation

  1. Enter the username and password provided during installation
  2. You’ll be prompted to enter an email address for license activation
  3. Enter the email address associated with your FastPanel license
  4. Click “Request license”
  5. Check your email for a verification message
  6. Click the verification link in the email
  7. Return to the FastPanel interface and click “Check status”
  8. Complete the login process with your username and password
  9. You may be asked to enter an email for password recovery (recommended)
  10. Accept the license agreement by clicking “Accept” twice

Changing Default Credentials

For security reasons, change the default password immediately:

  1. Navigate to the “Manage” section in the left sidebar
  2. Select “Users”
  3. Click on the “fastuser” account
  4. Click the three dots icon and select “Edit user”
  5. Enter the current password and set a new strong password
  6. Click “Save”

Security Configuration

Implement these security best practices to protect your FastPanel installation:

Implementing Two-Factor Authentication

Enhance login security by enabling two-factor authentication:

  1. Navigate to the user profile settings
  2. Locate the two-factor authentication option
  3. Follow the prompts to configure an authenticator app
  4. Scan the QR code with your mobile device
  5. Enter the verification code to complete setup

Additional Firewall Rules

Configure additional firewall rules to protect your server:

# Allow HTTP and HTTPS for websites
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

# Allow email ports if needed
sudo ufw allow 25/tcp
sudo ufw allow 465/tcp
sudo ufw allow 587/tcp
sudo ufw allow 110/tcp
sudo ufw allow 995/tcp
sudo ufw allow 143/tcp
sudo ufw allow 993/tcp

# Block unnecessary services
sudo ufw deny 3306/tcp

Regular Security Updates

Schedule regular security updates for your server:

# Set up automatic security updates
sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure -plow unattended-upgrades

Security Audit

Perform a basic security audit to identify potential vulnerabilities:

# Install security audit tools
sudo apt install lynis -y

# Run a security audit
sudo lynis audit system

Basic FastPanel Usage

FastPanel offers an intuitive interface for managing various aspects of your web server. Here’s an overview of basic functionality:

Dashboard Overview

The FastPanel dashboard provides an at-a-glance view of server status, resource usage, and important notifications. Key metrics include:

  • CPU and memory usage
  • Disk space utilization
  • Running services status
  • Recent system events
  • Security alerts

User Management

FastPanel allows you to create and manage user accounts with different permission levels:

  1. Navigate to the “Manage” section
  2. Select “Users”
  3. Click “Add user” to create new accounts
  4. Configure permissions based on roles
  5. Assign websites and resources to specific users

Website Creation and Management

Creating websites in FastPanel is straightforward:

  1. Click the “Add website” button on the dashboard
  2. Enter the domain name
  3. Select the desired PHP version
  4. Choose whether to enable SSL
  5. Configure additional settings as needed
  6. Click “Create” to provision the website

Once created, you can manage various aspects of the website including file management, SSL certificates, and performance settings.

Database Management

FastPanel simplifies database administration:

  1. Navigate to the “Databases” section
  2. Click “Add database” to create a new database
  3. Set a database name and credentials
  4. Choose the database type (MySQL or MariaDB)
  5. Configure access permissions
  6. Manage the database using phpMyAdmin

Email Account Management

Set up and manage email accounts through FastPanel:

  1. Navigate to the “Mail” section
  2. Select the domain for email hosting
  3. Click “Add mailbox” to create new email accounts
  4. Configure spam protection and filters
  5. Set quota limits for mailboxes
  6. Manage email forwarding and auto-responders

Advanced FastPanel Features

Beyond basic functionality, FastPanel offers advanced features for comprehensive server management:

Backup Configuration

Set up automated backups to protect your data:

  1. Navigate to the “Backups” section
  2. Configure backup frequency and retention policy
  3. Select what to include in backups (websites, databases, emails)
  4. Choose backup storage location (local or remote)
  5. Configure notification settings for backup status

SSL Certificate Implementation

FastPanel makes SSL certificate management simple:

  1. Navigate to website settings
  2. Select “SSL/TLS” tab
  3. Choose between Let’s Encrypt free certificates or custom certificates
  4. For Let’s Encrypt, click “Issue certificate” and follow prompts
  5. For custom certificates, upload your certificate files
  6. Configure SSL settings such as protocols and ciphers

Cron Job Management

Schedule automated tasks using cron jobs:

  1. Navigate to the “Scheduled tasks” section
  2. Click “Add task” to create a new cron job
  3. Enter the command to execute
  4. Set the execution schedule
  5. Configure notification settings for task completion

Server Monitoring and Statistics

Monitor server performance and website traffic:

  1. Access the “Monitoring” section
  2. View server resource usage over time
  3. Analyze website traffic statistics
  4. Monitor service status and response times
  5. Set up alerts for performance thresholds

PHP Version Management

Manage PHP versions for different websites:

  1. Navigate to website settings
  2. Select “PHP” tab
  3. Choose the desired PHP version
  4. Configure PHP settings and extensions
  5. Set resource limits for PHP processes

Troubleshooting Common Installation Issues

Even with careful preparation, you might encounter issues during or after FastPanel installation. Here are solutions to common problems:

Connection Errors

If you can’t connect to the FastPanel interface:

  1. Verify the server is running: sudo systemctl status fastpanel2
  2. Check firewall settings: sudo ufw status
  3. Ensure port 8888 is open: sudo lsof -i:8888
  4. Verify network connectivity: curl -Ik https://localhost:8888

Login Problems

If you’re having trouble logging in:

  1. Verify credentials are correct (case-sensitive)
  2. Reset password via SSH if needed: passwd fastuser
  3. Check if the FastPanel service is running: sudo systemctl status fastpanel2
  4. Examine FastPanel logs: sudo tail -f /var/log/fastpanel/error.log

License Activation Issues

If license activation fails:

  1. Verify your email address is correct
  2. Check that your server’s IP address matches the licensed IP
  3. Ensure your server can reach the FastPanel licensing servers
  4. Contact FastPanel support if issues persist

Missing Package Errors

If you encounter missing package errors:

# For Debian/Ubuntu:
dpkg -l | grep fastpanel2
apt install fastpanel2

# For CentOS/Alma/Rocky:
rpm -qa | grep fastpanel2
yum install fastpanel2

404 Errors After Installation

If you encounter 404 errors when accessing the panel, the fastpanel2 package might have been removed:

  1. Check if the package is installed:
    dpkg -l | grep fastpanel2
  2. Reinstall if missing:
    apt install fastpanel2

Maintaining Your FastPanel Installation

Regular maintenance ensures optimal performance and security of your FastPanel installation:

Regular Updates

Keep FastPanel and system components updated:

# Update system packages
sudo apt update
sudo apt upgrade -y

# Update FastPanel
sudo apt update
sudo apt install fastpanel2

Backup Best Practices

Implement a robust backup strategy:

  1. Configure regular automated backups
  2. Store backups in multiple locations (local and remote)
  3. Test backup restoration periodically
  4. Monitor backup job completion status
  5. Implement backup rotation to manage storage efficiently

Performance Monitoring

Regularly monitor server performance:

  1. Use FastPanel’s built-in monitoring tools
  2. Install additional monitoring tools if needed: sudo apt install htop iotop
  3. Monitor system logs: sudo tail -f /var/log/syslog
  4. Check for resource-intensive processes: top or htop
  5. Monitor disk space usage: df -h

Security Audits

Perform regular security audits:

  1. Scan for vulnerabilities: sudo lynis audit system
  2. Check for suspicious processes: ps aux | grep -i suspicious
  3. Monitor login attempts: sudo lastb
  4. Update security packages: sudo apt update && sudo apt upgrade
  5. Review FastPanel logs for security events

Congratulations! You have successfully installed FastPanel. Thanks for using this tutorial for installing the FastPanel web-hosting control panel on Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the official FastPanel website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button