Linux server hardening and setup

Most compromised servers were not hacked cleverly. They were left with password logins, open ports and unpatched software. We close those doors, test the result and hand you a record of every change.

At a glanceService
  • You getA server that matches current good practice, plus a document you or your next admin can follow.
  • We needServer address and provider · Operating system and version · Temporary access we agree together, removed afterwards
  • Not includedRewriting your application's code
  • PriceFixed quote after a short call
How it works

Defense in layers: what a hardened server looks like

  1. 01

    Cloudflare

    DDoS filtering and WAF rules. Your origin IP stays hidden.

  2. 02

    Firewall

    Only ports 80 and 443 are public. SSH is restricted.

  3. 03

    Web server

    NGINX or Apache with modern TLS and security headers.

  4. 04

    App user

    PHP-FPM runs as its own low-privilege user.

  5. 05

    Database

    Listens on localhost only, with strong credentials.

  6. 06

    Backups

    An encrypted copy leaves the server every night.

This is the layout we use on our own servers. Your stack may differ; the principles do not.

Sample audit result

CheckTypical findingAfter Rootlab
SSH loginPasswords allowed, root login onKeys only, root login off
Public ports9 open, several unused2 open: 80 and 443
UpdatesManual, dozens pendingAutomatic security patches
BackupsSame disk as the dataEncrypted, off-server, restore-tested
CertificatesRenewed by handAuto-renew with an alert

Example of typical findings, not a real client.

What is covered

What you get

01

Secure access

Key-only SSH, no direct root login, sudo users with named accounts.

02

Firewall

Default-deny rules. Only the ports your services need are reachable.

03

Patching

Automatic security updates with a reboot plan, so patches really apply.

04

Web stack

NGINX or Apache, PHP and your database installed and sized for the server.

05

TLS

Let's Encrypt certificates that renew themselves, with modern ciphers.

06

Attack surface

Brute-force protection, rate limits, unused services removed.

Process

How the work runs

  1. Audit

    Read-only review of access, ports, updates, services and backups.

  2. Backup

    Snapshot or backup taken before the first change.

  3. Harden

    Changes applied in small, tested steps with a rollback for each.

  4. Report

    A written summary: what we found, changed and recommend next.

Tools and platforms

What we work with

  • Ubuntu
  • Debian
  • CentOS
  • CloudLinux
  • NGINX
  • Apache
  • LiteSpeed
  • PHP-FPM
  • MySQL
  • MariaDB
  • UFW
  • Fail2ban
  • Let's Encrypt
  • Cloudflare
What we need from you
  • Server address and provider
  • Operating system and version
  • Temporary access we agree together, removed afterwards
Out of scope

What we do not do

  • Rewriting your application's code
  • Promising a server can never be attacked: no one honestly can
The result. A server that matches current good practice, plus a document you or your next admin can follow.
FAQ

Questions about server setup and hardening

Can you harden a server that is already live?

Yes. We back up first, change in small steps and warn you in advance about anything that could cause a brief interruption.

How long does it take?

A single web server is usually a day or two of work. The quote states the timeline.

Will hardening break my site?

It should not. We test after each step and keep a rollback. Where a setting could affect your app, we ask first.

Tell us about your server

Two minutes of detail is enough. You get questions or a fixed-scope quote, and nothing starts until you say yes.