How to Install Easypanel on Your Virtual Server – A Step-by-Step Dummy Guide
Easypanel is a user-friendly control panel that simplifies application deployment and management on virtual servers. Built on Docker, it streamlines tasks such as hosting applications, managing databases, and monitoring server resources. This guide provides a beginner-friendly, step-by-step tutorial for installing Easypanel on your VPS.
Prerequisites
Before starting, ensure your server meets these requirements:
- Operating System: Linux (Ubuntu recommended).
- Memory: Minimum 2 GB RAM.
- Docker Installed: Easypanel requires Docker to run.
- Access: Root (sudo) privileges on your server.
Step 1: Update and Prepare Your Server
Updating your server ensures it’s secure and ready for new installations.
- Login to Your Server: Access your server via SSH:
ssh root@your-server-ip
- Update System Packages:
sudo apt update && sudo apt upgrade -y
- Install Prerequisites (if missing):
- curl: Used to download files.
sudo apt install curl -y
- curl: Used to download files.
Step 2: Install Docker
Easypanel relies on Docker to manage containers. If Docker isn’t already installed, follow these steps:
- Download and Install Docker:
curl -fsSL https://get.docker.com | bash
- Start Docker and Enable It on Boot:
sudo systemctl start docker sudo systemctl enable docker
- Verify Docker Installation:
docker --version
Step 3: Install Easypanel
Now that Docker is ready, you can install Easypanel.
- Run the Installation Command:
docker run --rm -it \ -v /etc/easypanel:/etc/easypanel \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ easypanel/easypanel setup
This command initializes Easypanel, configuring Docker Swarm and creating necessary directories. - Firewall Considerations: Ensure that ports 80 (HTTP) and 443 (HTTPS) are open for Easypanel to function:
sudo ufw allow 80/tcp sudo ufw allow 443/tcp
Step 4: Access Easypanel
Once the installation is complete, Easypanel is accessible via your server’s IP address.
- Open your browser and navigate to:
http://your-server-ip
Replaceyour-server-ip
with your actual server’s IP address. - Use the default login credentials provided during installation. If no credentials are shown, refer to the troubleshooting section.
Step 5: Update Easypanel
Easypanel is designed to automatically notify you of updates. To manually update:
- Pull the Latest Image:
docker pull easypanel/easypanel
- Restart the Easypanel Service:
docker service update easypanel --force
Step 6: Reset Easypanel Password
If you forget your password or need to reset it:
- Run the reset password command:
docker run --rm -it \ -v /etc/easypanel:/etc/easypanel \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ easypanel/easypanel reset-password
- Follow the prompts to set a new password.
Step 7: Start Deploying Applications
With Easypanel installed, you can begin deploying applications, managing databases, and monitoring server performance via the user-friendly dashboard.
Key Features to Explore:
- App Deployment: Add and manage applications with ease.
- Database Management: Set up and manage MySQL, PostgreSQL, or other databases.
- Resource Monitoring: Keep track of server performance metrics.
- Backup and Restore: Simplify data backups and restorations.
Troubleshooting Tips
- Ports Not Accessible: Check if your firewall blocks ports 80 or 443 and open them using
ufw
commands. - Docker Issues: Reinstall Docker or ensure it’s running with:
sudo systemctl restart docker
- Cannot Access Easypanel: Verify your server’s IP address and check the logs for errors:
docker logs easypanel