A Server for a Few Euros
Your website needs a home: a computer that is switched on day and night and reachable from the internet. You do not have to buy one. You rent a small part of a big computer in a data centre, a virtual private server, or VPS. It costs a few euros a month, and it is yours: nobody else's plugins, nobody else's rules about what may run on it.
Goal
By the end of this chapter you will have:
- a small Linux server of your own,
- logged in to it from your computer,
- the two ports open that a website needs.
What to rent
Every hosting company offers VPS plans. For one ForgeCMS website, even for a handful, the smallest plan is enough. Look for:
| What | Choose |
|---|---|
| Operating system | Ubuntu (24.04 or newer). Other Linux systems work too, but the AI and this book assume Ubuntu. |
| Memory (RAM) | 1 GB is enough for ForgeCMS. 2 GB is more comfortable while the AI installs and builds things. |
| Disk | 10 GB or more |
| Location | A data centre in the EU, if your visitors are in Europe: short ways, and European data protection law. |
| Access | root access via SSH. Every real VPS has it. |
I will use IONOS as an example, because that is where my own servers are. Its smallest VPS costs about two euros a month at the time of writing. Hetzner, netcup, Strato, OVH, Contabo and many others work exactly the same way. Prices change often, so compare for yourself.
Do not confuse a VPS with "web hosting" or a "WordPress package". Those give you a folder for PHP files and a login page, but no server of your own. ForgeCMS needs a VPS.
Step 1: Order the server
In the customer panel of your provider:
- Create a new VPS (sometimes called "cloud server").
- Choose Ubuntu as the image.
- Choose how to log in. Most panels offer a root password or an SSH key. A password is fine to start with: choose a long one and keep it in your password manager.
- Start the server and wait until the panel says running.
The panel now shows two things you need. Write them down:
- the public IP address, four numbers like
203.0.113.10, - the user name, almost always root.
Step 2: Open the doors for the web
A new server is often locked down by a firewall in the provider's panel. A website needs two ports open:
| Port | For |
|---|---|
| 80 | http://, also needed once to get a certificate for https:// |
| 443 | https:// |
Port 22 (SSH, how you log in) is usually open already. At IONOS this is under Network → Firewall policies; other providers call it "firewall", "security group" or "network rules". Add rules that allow TCP on ports 80 and 443 from everywhere.
Step 3: Log in
You talk to your server through SSH, a secure connection to its command line. Your computer already has it:
- Mac: open the app Terminal.
- Windows 10 and 11: open PowerShell or Terminal from the start menu.
- Linux: open a terminal.
Type, with your server's address:
ssh root@203.0.113.10
The first time, SSH asks whether you trust this server ("Are you sure you want to continue connecting?"). Type yes. Then enter the root password. Nothing appears while you type it, that is normal.
When it works, the prompt changes to something like:
root@my-server:~#
You are now on your server. Everything you type in this window happens there, not on your own computer.
Step 4: Bring it up to date
A fresh server has been waiting in a data centre for a while. Let it fetch the latest security updates:
apt update && apt upgrade -y
This takes a minute or two. If it asks about restarting services, press Enter.
That is the last command in this book that you have to type by hand. From the next chapter on, you will describe what you want, and the AI on your server will do the typing.
Optional: your own domain
A website is nicer at mybakery.com than at 203.0.113.10. If you have a domain, or buy one now (often a few euros a year), go to the DNS settings of the domain and add an A record:
| Type | Name | Value |
|---|---|---|
| A | @ (the domain itself) |
your server's IP |
| A | www |
your server's IP |
It can take from a few minutes to a few hours until the whole internet knows the new address. Do it now, then it is ready when your site is. You can also start without a domain and add it later.
Pitfalls
- "Connection timed out" on
ssh: the server is not running yet, the address is wrong, or the firewall blocks port 22. Check the panel. - "Permission denied": wrong password. Some panels let you set a new root password; some send it by email.
- The site will not open later, but SSH works: ports 80 and 443 are closed in the provider's firewall. This is the most common problem of all.
- Typing the password into the wrong window: it is easy to type commands meant for the server on your own computer. Look at the prompt: on the server it starts with
root@.
What you learned
- A VPS is a small rented server of your own. The smallest plan of any provider is enough for ForgeCMS.
- You need its IP address and the root login, and ports 80 and 443 must be open.
ssh root@<address>takes you onto the server from Mac, Windows or Linux.- A domain points to your server with an A record.
In the next chapter, the AI moves in and builds your website.
