Installing HestiaCP
HestiaCP is a powerful and free server control panel designed to simplify web server administration. It supports the installation and management of websites, mail servers, databases, and other services. This guide will walk you through the process of installing HestiaCP on a server running Debian or Ubuntu.
Step 1: Prepare the Server
-
Update the System
Before installing HestiaCP, make sure all packages are updated:
bashsudo apt-get update
-
Set the Hostname
Set a hostname for your server:
bashsudo hostnamectl set-hostname yourhostname
-
Reboot the Server
Reboot the server to apply the hostname change:
bashsudo reboot
Step 2: Install HestiaCP
-
Download the Installation Script
Download the HestiaCP installation script from the official site:
bashwget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
-
Run the Installation Script
Make the script executable and run it:
bashsudo chmod +x hst-install.sh sudo ./hst-install.sh
-
Select Installation Options
During installation, you will be prompted to select components to install. HestiaCP usually installs all necessary components by default. Follow the on-screen instructions and confirm your choices.
-
Complete the Installation
After selecting options, the script will proceed with the installation. This may take a few minutes. At the end of the installation, you will be provided with a login and password for the control panel.
Step 3: Access the Control Panel
-
Log in to HestiaCP
Open your browser and go to:
bashhttps://your_server_ip:8083
-
Log into the System
Use the provided login and password to access the HestiaCP control panel.
Step 4: Initial Setup
-
Create a User
After logging in to the control panel, create a new user to manage your domains and websites.
-
Add a Domain
In the "WEB" section, add a new domain and configure its settings.
-
Set Up the Mail Server
If you need a mail server, configure it in the "MAIL" section.
-
Create a Database
In the "DB" section, create a new database for your website.
Troubleshooting Common Issues
-
SSL Certificate Issues
If you encounter issues with SSL certificates, ensure that port 443 is open and correctly configured. Also, verify that your domain has the correct DNS records.
-
Database Connection Errors
Check your database settings, such as username, password, and host. Ensure that the database is running and accessible.
-
Permission Problems
Ensure that all directories and files for your website have the correct permissions. You can adjust permissions using the following commands:
bashsudo chown -R www-data:www-data /home/username/web/domain/public_html
By following these instructions, you can successfully install and configure HestiaCP on your server and address common issues that may arise.