Best practices for setting up a secure Linux server for hosting multiple websites without using cPanel?

samsso

New member
XNullUser
Joined
Apr 28, 2025
Messages
11
Reaction score
0
Points
1
Location
Amsterdam
NullCash
5
Hello everyone,


I’m planning to host several small websites on a single Linux server.


Any security tips or setup advice?


Thanks!
 

Astinmantt

Member
XNullUser
Joined
Jul 22, 2024
Messages
39
Reaction score
1
Points
8
Location
USA
NullCash
323
I use separate non-root users for each site with limited permissions, set up UFW to only allow needed ports, and always disable password SSH logins in favor of key-based auth.
 

Miraiskow

Member
XNullUser
Joined
May 24, 2024
Messages
72
Reaction score
0
Points
6
Location
USA
NullCash
564
I ditched control panels a while back and just manage my sites with Nginx, PHP-FPM, and MariaDB manually. UFW with specific IP whitelisting for SSH helped a lot. For self-hosted stuff, I use Nextcloud. If you're curious about Nextcloud pricing, it depends on whether you go with their hosted solution or self-host. Self-hosting is free unless you want the enterprise features.
 
Top