Skip to content

Commit 43c5016

Browse files
authored
Merge pull request #170 from vdbhb59/patch-2
Set up a root web server using Hestia Control Panel & update VPS Web Hosting tutorial
2 parents 964e4f6 + c30d812 commit 43c5016

File tree

8 files changed

+218
-7
lines changed

8 files changed

+218
-7
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
---
2+
title: Set Up a Web Server Using Hestia Control Panel on netcup
3+
description: Learn how to set up a Root Server for hosting using Hestia Control Panel on netcup.
4+
level: beginner
5+
updated_at: 2024-11-18
6+
slug: netcup-root-server-hosting-using-hestia-control-panel
7+
author_name: vdbhb59
8+
author_url: https://github.com/vdbhb59
9+
author_image: https://avatars.githubusercontent.com/u/60728004
10+
author_bio: Songs & Books 4ever
11+
tags: [root, hosting, hestia-control-panel, netcup, debian, ubuntu, LTS-only]
12+
netcup_product_url: https://www.netcup.com/en/server/root-server/rs-1000-g11-iv-12m
13+
language: en
14+
available_languages: en
15+
---
16+
17+
# Introduction
18+
19+
In this tutorial, we will guide you through the process of setting up a netcup Root Server for hosting using Hestia Control Panel. Hestia Control Panel is a popular open source web server control panel that simplifies the management of your website, email accounts, databases, and other hosting-related tasks. This tutorial is compatible with both VPS and Root Server offerings by netcup.
20+
21+
The reading time of this tutorial is about 15 minutes; implementation will take approximately 45 minutes.
22+
23+
# Prerequisites
24+
25+
- A Root Server from netcup with latest Ubuntu 20.04/22.04 (LTS); Debian 10/11/12 or later installed (see the below URL) - use minimal mode of installation, also called clean installation. [Requirement Details](https://hestiacp.com/docs/introduction/getting-started.html#requirements)
26+
- Please note latest Hestia Control Panel only supports the latest versions of the above OS. To know more visit:
27+
[Supported OS](https://hestiacp.com/docs/introduction/getting-started.html#supported-operating-systems)
28+
- A registered domain name (optional)
29+
- Root access to your server
30+
31+
# Step 1: Update your system
32+
33+
Before we begin, it's essential to ensure that your system is up-to-date. Log in to your server via SSH as the root user and run the following command:
34+
35+
For Ubuntu/Debian:
36+
37+
```
38+
apt update && apt upgrade -y
39+
```
40+
41+
# Step 2: Install Hestia Control Panel
42+
43+
To install Hestia Control Panel, you'll first need to install the installation script. Run the following commands to download and to execute the installation script:
44+
45+
```
46+
cd ~ && wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh && bash hst-install.sh
47+
```
48+
> **Info**
49+
> If the download fails due to an SSL validation error, please be sure you've installed the ca-certificate package on your system - you can do this with the following command: `apt-get update && apt-get install ca-certificates`
50+
51+
> **Info**
52+
> To install with custom commands, use the script generator: [Script Generator](https://gabizz.github.io/hestiacp-scriptline-generator/)
53+
54+
Possible options to use in the command are:
55+
```
56+
-a, --apache Install Apache [yes | no] default: yes
57+
-w, --phpfpm Install PHP-FPM [yes | no] default: yes
58+
-o, --multiphp Install MultiPHP [yes | no] default: no
59+
-v, --vsftpd Install VSFTPD [yes | no] default: yes
60+
-j, --proftpd Install ProFTPD [yes | no] default: no
61+
-k, --named Install BIND [yes | no] default: yes
62+
-m, --mysql Install MariaDB [yes | no] default: yes
63+
-M, --mysql8 Install Mysql8 [yes | no] default: no
64+
-g, --postgresql Install PostgreSQL [yes | no] default: no
65+
-x, --exim Install Exim [yes | no] default: yes
66+
-z, --dovecot Install Dovecot [yes | no] default: yes
67+
-Z, --sieve Install Sieve [yes | no] default: no
68+
-c, --clamav Install ClamAV [yes | no] default: yes
69+
-t, --spamassassin Install SpamAssassin [yes | no] default: yes
70+
-i, --iptables Install Iptables [yes | no] default: yes
71+
-b, --fail2ban Install Fail2ban [yes | no] default: yes
72+
-q, --quota Filesystem Quota [yes | no] default: no
73+
-d, --api Activate API [yes | no] default: yes
74+
-r, --port Change Backend Port default: 8083
75+
-l, --lang Default language default: en
76+
-y, --interactive Interactive install [yes | no] default: yes
77+
-s, --hostname Set hostname
78+
-e, --email Set admin email
79+
-p, --password Set admin password
80+
-D, --with-debs Path to Hestia debs
81+
-f, --force Force installation
82+
-h, --help Print this help
83+
```
84+
85+
An example of an updated command to run the script:
86+
```
87+
cd ~ && wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh && bash hst-install.sh --apache yes --phpfpm yes --multiphp yes --vsftpd yes --port '8083' --hostname 'DOMAIN-HERE' --email 'EMAIL-HERE' --password 'PASSWORD-HERE' --lang 'en' --force
88+
```
89+
90+
Follow the on-screen instructions to complete the installation. The installation process may take some time. Once it's complete, the Hestia Control Panel will be installed on your system.
91+
92+
# Step 3: Configure Hestia Control Panel
93+
94+
After the installation is complete, you can access Hestia via your browser. Open your browser and navigate to:
95+
96+
```
97+
https://your_server_ip:8083
98+
```
99+
100+
![Hestia Control Panel Login](images/Login_Page.png)
101+
102+
Replace "your_server_ip" with the IP address of your server. You'll encounter a security warning since the SSL certificate is self-signed. Proceed to the website and log in with the username and password that were displayed at the end of the script run.
103+
104+
Upon logging in, you'll be presented with the dashboard where you can view and configure the panel as per your needs.
105+
106+
![Panel Dashboard](images/Control_Panel_Homepage.png)
107+
108+
# Step 4: Create a new user (regular)
109+
110+
On the dashboard, click the "Add User" button; fill out the fields; click the "Save" button in the top right.
111+
112+
To switch to the new user, hover over the user you want to login as; click the login as icon (`-]`) on the right of the user’s name and email; you are now logged in as the user. As such, any action you perform will be done as this user.
113+
114+
**Info**
115+
Never run a web or mail domain with the admin user - by default, the admin user has elevated privileges. This can pose a security threat to your server!
116+
117+
# Step 5: Set up your domain
118+
119+
Navigate to the "Web" tab and click the "+ Add Web Domain" button, then enter your domain information.
120+
Example: `exampledomain.com`
121+
122+
After creating a new account, you'll need to update your domain's nameservers to point to your server. This process varies depending on your domain registrar, so consult their documentation for instructions.
123+
124+
# Step 6: Create DNS zone, email accounts & databases
125+
126+
Click on the box labeled "DNS" & fill in the required details. A minimum of 2 name servers are necessary for redundancy.
127+
128+
![DNS Setup](images/DNS_Setup.png)
129+
130+
With your domain set up, you can now create email accounts and databases for your website. To create an email account, click on the box labeled "MAIL".
131+
132+
![MAIL Setup](images/MAIL_Setup.png)
133+
134+
To create a database, click on the box labeled "DB".
135+
136+
![Database Setup](images/DB_Setup.png)
137+
138+
# Step 6: Upload your website files
139+
140+
To upload your website files, you can use the File Manager in the Panel or an FTP client such as FileZilla. If using the File Manager, click on the File Manager icon on the right top side and upload your files to the "public_html" directory under WEB -> domain_name_folder -> public_html.
141+
142+
![Upload Files](images/Upload_Files.png)
143+
144+
If using an FTP client, you'll need to create an FTP account in the Panel first. Click on the "WEB" icon -> "domain name (edit domain)" -> "Advanced Options" -> "Additional FTP account(s)" -> fill in the username, password and the default path & click "Save" to create a new account, then use the provided credentials to connect and upload your files.
145+
146+
# Step 7: Enable two-factor authentication (2FA) for the admin user
147+
148+
[Documentation](https://hestiacp.com/docs/user-guide/account.html#two-factor-authentication-2fa)
149+
150+
Since the admin user has full control on the server, as well as elevated privileges, it is highly recommended that you enable 2FA on this account. To access your account settings, click the user button in the top right. Note that you might need to switch back to the admin user first, using the "Arrow up" button in the top right.
151+
152+
- In your account settings, check the box labeled "Enable two-factor authentication".
153+
- Click the "Save" button in the top right.
154+
- Scan the QR code using an authentication app, for example "Google Authenticator".
155+
- Save your Account Recovery Code somewhere safe, in case you lose access to your authenticator.
156+
157+
To secure your account further check out the following tutorial (applies to all server setups): [Secure Linux Server](https://community.netcup.com/en/tutorials/first-steps-to-protect-your-linux-server-against-common-attacks)
158+
159+
# Conclusion
160+
161+
Awesome! You've successfully set up a netcup Root Server for hosting using Hestia Control Panel. You can now manage your websites, emails, and databases through the userfriendly interface. Remember to keep your server and Panel updated to ensure consistent security and performance.
162+
163+
# Licence
164+
165+
[MIT](https://github.com/netcup-community/community-tutorials/blob/main/LICENSE)
166+
167+
Copyright (c) 2024 netcup
168+
169+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
170+
171+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
172+
173+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
174+
175+
# Contributor's Certificate of Origin
176+
By making a contribution to this project, I certify that:
177+
178+
1) The contribution was created in whole or in part by me and I have the right to submit it under the licence indicated in the file; or
179+
180+
2) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate licence and I have the right under that licence to submit that work with modifications, whether created in whole or in part by me, under the same licence (unless I am permitted to submit under a different licence), as indicated in the file; or
181+
182+
3) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
183+
184+
4) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the licence(s) involved.
23.9 KB
Loading
17.9 KB
Loading
19 KB
Loading
16.9 KB
Loading
16.3 KB
Loading
11.5 KB
Loading

community-tutorials/vps-web-hosting-using-cpanel/01-en.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,24 @@ The reading time of this tutorial is about 10 minutes; implementation will take
2222

2323
# Prerequisites
2424

25-
- A server from netcup with CentOS 7 or later or Ubuntu 18.04 or later installed
25+
- A server from netcup with AlmaLinux, CloudLinux, RockyLinux or Ubuntu 22.04 or later installed (see the below URL) - use minimal mode of installation, also called clean installation.
26+
```
27+
https://docs.cpanel.net/installation-guide/system-requirements/
28+
```
29+
30+
- Older OS verions like CentOS 7 is still allowed with forced installation in the script or directly via installing of specific verion. See:
31+
```
32+
https://support.cpanel.net/hc/en-us/articles/360052251053-How-to-Install-a-Specific-Version-of-cPanel-WHM
33+
```
34+
```
35+
--force — Force installation on an unrecommended configuration.
36+
```
37+
38+
- Please note latest cPanel/WHM only supports the latest versions of the above OS. To know more visit:
39+
```
40+
https://support.cpanel.net/hc/en-us/articles/1500001216582-What-operating-systems-are-supported-by-cPanel
41+
```
42+
2643
- A registered domain name (optional)
2744
- Root access to your server
2845

@@ -44,17 +61,27 @@ apt update && apt upgrade -y
4461

4562
# Step 2: Install cPanel
4663

47-
To install cPanel, you'll first need to install the cPanel & WHM installation script. Run the following commands:
64+
To install cPanel, you'll first need to install the cPanel & WHM installation script. Run the following commands to download and to execute the installation script:
4865

4966
```bash
50-
cd /home
51-
sudo curl -o latest -L https://securedownloads.cpanel.net/latest
67+
cd ~ && curl -o latest -L https://securedownloads.cpanel.net/latest && sudo sh latest
5268
```
5369

54-
Now, execute the installation script:
70+
The newer cPanel versions default to fast installation mode. It is recommended to disable the fast mode based on your requirements. You can use the options provided here:
71+
```
72+
https://docs.cpanel.net/installation-guide/customize-your-installation/
73+
```
5574

56-
```bash
57-
sudo sh latest
75+
A few examples to use with the command are:
76+
```
77+
--skip-wptoolkit — Skip the automatic installation of WP Toolkit.
78+
--skip-cloudlinux — Skip the automatic CloudLinux conversion process even if a license exists.
79+
--force — Force installation on an unrecommended configuration.
80+
```
81+
82+
Updated command to run the script:
83+
```
84+
cd ~ && curl -o latest -L https://securedownloads.cpanel.net/latest && sudo sh latest --skip-wptoolkit --skip-cloudlinux --force
5885
```
5986

6087
![Cpanel Login](images/installation.png)

0 commit comments

Comments
 (0)