· intoPanel Team · 2 min read
A security checklist for shared hosting servers on AlmaLinux
Twelve checks that keep a shared hosting server and its customers safe, from SSH keys and the firewall to isolation, malware scans and off-server backups.
A shared hosting server is only as safe as its weakest website. You cannot control what your customers install, but you can make sure one weak website cannot become everyone's problem. Here is the checklist we use.
The server#
- Sign in to SSH with keys only. Add your key under Security → Root SSH Keys, test it, then switch off password sign-in. See the how-to.
- Move SSH off port 22. It is not a defence on its own, but it removes most automated guessing from the logs. Step by step.
- Keep the firewall on and tuned. intoPanel installs CSF and LFD for shared hosting; check the Firewall page shows both running, and allow only the ports you need.
- Turn on two-step sign-in for every administrator and reseller login.
- Install updates. Set automatic updates for intoPanel and the system packages at a quiet hour.
The accounts#
- Switch on Account Isolation, so each account's PHP sees only its own files and its own /tmp.
- Set resource limits in every package. Processor, memory, I/O and processes per account stop one website from slowing down all the others.
- Limit outgoing mail per hour, so a hacked mailbox or form cannot send thousands of messages before you notice.
- Keep ModSecurity on with the OWASP Core Rule Set, and check the hit log before switching it off for a website.
Watching#
- Scan for malware. Install Maldet (and ClamAV if the server has the memory), schedule regular scans, and decide what happens to hits.
- Read the alerts. Set alert contacts and choose which events are mailed, and how often, so important ones are not lost among the routine ones.
- Keep backups off the server. A remote destination over SFTP means a lost disk or a ransomware attack does not take the backups with it. Test a restore now and then.
Start with the Security Checkup#
intoPanel's Security Checkup page goes through most of this list for you and shows what could still be made safer, most important first, with a link to each setting. Run it after every install, and again every few months.