العربية

Your first hour on Hostinger: the settings worth changing first

A practical checklist for a new Hostinger account: two-factor login, a DNS check, SSL, SPF/DKIM/DMARC for email, SSH keys and firewall on a VPS, and backups.

· 6 min read
Your first hour on Hostinger: the settings worth changing first

You just bought a plan and hPanel is open in front of you, full of cards, shortcuts and offers. Before you install anything, spend one hour on the Hostinger hPanel settings that protect your account, your domain and your email. Here is the order I follow, based on how this site, its blog and its business email were set up on Hostinger.

This is not a tour of every button. It is a short Hostinger setup guide for beginners and for developers who want the boring, important parts done first. Panels change and plans differ, so if you can't find a section I mention, check what your own plan includes.

Hostinger hPanel settings, step one: two-factor login

Your hosting account controls your website, your DNS and your email. If someone gets into it, they get all three. So the first setting is account security, not the website.

  • Open your account or profile security settings and turn on two-factor authentication. Use an authenticator app on your phone rather than SMS if you have the choice.
  • Save the recovery codes somewhere outside your email, because your email may live on the same account.
  • Use a long, unique password from a password manager.
  • Check the contact email on the account. It should be one you will still read in three years, not a former employee's address.

While you are there, look at billing. Like most hosts, first-term prices are usually lower than renewals. Note your renewal date and the renewal price shown for your plan so it doesn't surprise you later.

Check the domain and DNS before anything else

Most "my site doesn't work" problems in the first week are DNS problems. Before you touch SSL or email, confirm where your domain actually points.

In hPanel, open your domain and look at the DNS zone. Then check from your own machine what the world sees:

dig +short example.com A
dig +short www.example.com
dig +short example.com NS
dig +short example.com MX

You want the A record to point at your hosting or VPS IP (for example 203.0.113.10), www to resolve to the same site, and the MX records to point at the mail provider you actually use. If the nameservers are still at your old registrar, edit records there, not in hPanel. Changes in the wrong place are the classic wasted afternoon.

If records are new or changed, give them time to propagate. I explain the record types and when to use each one in how to point your domain to Hostinger.

Turn on SSL and force HTTPS

Once DNS points correctly, set up HTTPS for the root domain and www, plus any subdomain you plan to use.

On shared and web hosting plans, hPanel has an SSL section for your domains; check what your plan offers and make sure the certificate covers both example.com and www.example.com. Then enable the option to force HTTPS if your plan shows it.

On a VPS, you manage this yourself. On this site I used Certbot with Nginx for the root domain, www and the blog subdomain, with automatic renewal. Two quick checks after setup:

curl -I http://example.com
sudo certbot renew --dry-run

The first should return a redirect (301 or 308) to https://. The second confirms that renewal will work before the certificate expires, which is the part people forget.

Email domain settings: SPF, DKIM and DMARC

If you use Hostinger email on your domain, open the email section in hPanel and find the domain settings or DNS status page. On my account, that page showed SPF, DKIM and DMARC as set up. Make sure yours does too, because without them your messages are far more likely to land in spam or be rejected.

In short:

  • SPF lists which servers may send mail for your domain.
  • DKIM signs each message so receivers can verify it wasn't changed.
  • DMARC tells receivers what to do when SPF or DKIM fail.

Copy the exact values hPanel gives you rather than guessing. You can confirm they are live like this:

dig +short TXT example.com
dig +short TXT _dmarc.example.com

A starting DMARC record often looks like v=DMARC1; p=none; rua=mailto:dmarc@example.com. Start with p=none to observe, then tighten once you know all your legitimate senders pass. Only keep one SPF record; two SPF records on the same domain break it.

If your site sends notifications, send them through SMTP directly. This site uses smtp.hostinger.com on port 465 with SSL. I learned this the hard way: forwarding from the Hostinger mailbox to Gmail was sometimes rejected with "550 5.7.1 Message blocked", and sending directly via SMTP fixed it. For the full mailbox setup, see a professional email on your own domain.

On a VPS: SSH keys and the firewall

If you run a VPS, this is where you spend most of the hour. A VPS means you own updates, backups and security.

hPanel gives you a browser terminal for the VPS, SSH key management and a firewall section. I used all three during setup. The browser terminal is your safety net: if you break SSH, you can still get in.

Create a key on your own computer and add the public part in hPanel:

ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pub

Paste the output into the SSH keys section, then test in a new terminal before closing the old one:

ssh your-user@203.0.113.10

Next, the firewall. If you use UFW on the server, allow SSH before enabling it:

sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status

If you also add rules in the hPanel firewall, make sure they allow the same ports (22, 80, 443). Two firewalls that disagree look exactly like a dead server. I cover disabling password login and adding fail2ban safely in securing a new VPS.

Backups, and the things you own

Check the backups section in hPanel and see what your plan includes: how often backups run, how long they are kept and how restore works. Don't assume. Read it for your plan, and try one restore of something small so you know the steps before you need them under pressure.

On a VPS, treat the host's backups as a bonus, not your only copy. On this site MySQL runs in Docker, so a simple database dump looks like this:

docker exec your-mysql-container sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" your_db' > backup.sql

Store copies off the server and run the dump on a schedule. A backup that only lives on the same machine is not really a backup.

Last tip for the hour: the panel shows a lot of offers and banners. Ignore them for now. Finish security, DNS, SSL, email and backups first, then decide what extras you actually need. If you haven't picked a plan yet, my complete Hostinger guide walks through the options, and you can start from Hostinger here.

FAQ

What should I set up first on a new Hostinger account?

Two-factor login on the account. It protects your site, DNS and email at once. Then check DNS, SSL and email authentication, in that order.

How do I know if SPF, DKIM and DMARC are working on Hostinger?

Open the email domain settings in hPanel and check their status, then confirm with dig +short TXT on your domain and on _dmarc.yourdomain. Sending a test message to a Gmail account and viewing the original headers also shows pass or fail.

Is a Hostinger VPS good for beginners?

It can be, if you are ready to own updates, backups and security. If you just need a website and email, a shared or web hosting plan is simpler. Compare what you need before choosing on Hostinger.


Setting up a new account and want a second pair of eyes? Talk to the editor at ahmed-adil.com.

Some links in this article are affiliate links; if you buy through them, Ahmed may earn a commission at no extra cost to you.

More from the Supplement