BosskuAI Hostinger Hosting
Use this skill when the box or plan is Hostinger and the answer depends on what hPanel controls, what the VPS template gives you, and how Hostinger's abuse process behaves.
How this differs from nearby skills
bosskuai-vps-docker-deployment: containerized single-server deploys on any provider; use it for the compose topology, this skill for the Hostinger-specific provisioning, panel, backups, and incident realities.bosskuai-aws-deployment: managed services and multi-AZ; move there when you need managed databases, autoscaling, or compliance boundaries.bosskuai-incident-response: incident coordination; this skill has the concrete VPS compromise playbook.bosskuai-cybersecurity-risk: risk analysis; this skill applies it to a Hostinger box.
Mindset
- A root-compromised server is not "cleaned"; it is contained until rebuilt from a clean template with data restored.
- Hostinger's abuse team suspends first (CPU abuse, outbound scans, spam) and asks later. Keep the box quiet and answer tickets with evidence.
- Snapshots are for rollback and get overwritten; they are not backups. Off-box, restore-tested copies are.
- Shared hosting and a KVM VPS are different products: hPanel owns the stack on shared, you own everything on the VPS.
Product map
- Shared / Cloud hosting (hPanel): PHP version selector, cron jobs, Git deployment, file manager, free SSL, LiteSpeed cache, limited SSH on higher plans. No root, no custom daemons, no Node long-running processes.
- KVM VPS: root on Ubuntu/Debian/AlmaLinux or an app template (Docker, n8n, CyberPanel), hPanel VPS firewall (in front of the OS firewall), snapshots, optional paid backups, Monarx malware scanner, browser terminal for lock-out recovery.
- DNS zone editor, domains, email (Hostinger mail or Titan): keep DNS TTLs short before migrations; confirm which cert carries the
wwwSAN.
First hour on a new VPS
- Verify what actually listens:
ss -tlnp. The SSH port in Hostinger's welcome email may not matchsshd_config; trust the socket, not the email. - Create a
deployuser with sudo; install your key; keep the current session open while testing a fresh login. sshd_config:PermitRootLogin no,PasswordAuthentication no,AllowUsers deploy, thensshd -t && systemctl reload ssh.- UFW: allow OpenSSH, 80, 443 only; mirror the same in the hPanel VPS firewall.
fail2bansshd jail,unattended-upgrades, timezone, hostname, 1–2 GB swap on small plans.- Enable paid backups or set up off-box backups before deploying anything.
- Check the versions you inherit: the OS release (
/etc/os-release), PHP (php -v), Node (node -v) and MySQL (mysql --version). Compare each with its support end date on the vendor's page. A template default is not a decision you made.
One-box layout that stays operable
- nginx vhost per domain in
sites-available; certbot with explicit-dlists; runcertbot certificatesand check SANs per cert. - Node apps under PM2 as the
deployuser (never root) withpm2 startup+pm2 save;ecosystem.config.jsnames the real entrypoint (verify it matchespackage.json). - php-fpm pool per site with its own user; Laravel
storage/writable by that user only. - MySQL bound to
127.0.0.1;validate_passwordis MEDIUM on Hostinger images, so generated passwords need a special character orALTER USERfails. - Redis bound to localhost with a password;
.envfiles640, owned by the app user. - Keep one table in the repo docs: domain → root → process → port → health URL. Socket.io vhosts legitimately return 404 at
/; health-check/socket.io/?EIO=4&transport=pollinginstead.
Deploying without downtime on one box
- PHP: symlinked releases (
releases/<sha>→current),composer install --no-dev,php artisan migrate --forcegated, then swap the symlink andphp artisan config:clear && config:cache(cached config keeps old credentials otherwise). Keep the previous release directory until the new one is verified. Reload php-fpm after the swap, because PHP's realpath cache can keep serving the old release for a while. - Node:
pm2 reload <app>in cluster mode, or blue/green ports behind nginx. - Never rotate a credential into
.envbefore theALTER USERor provider change is verified; a half-rotation takes the app down. artisan tinkercan fail when psysh cannot write its config dir; bootstrap Laravel from a standalone PHP script for one-off scripts.- One deploy at a time: put the deploy script behind a lock file (
flock). Two runs that swap symlinks or migrate together can leave the site half-deployed. - Rehearse the migration on a copy: restore the production database into a scratch database on the same MySQL version, run the migration against that scratch database only, and compare row counts with production before the real run. Give the copy its own .env with DB_DATABASE set to the scratch database, and use a MySQL user that has no rights on the production database. In the copy, delete bootstrap/cache/config.php and run php artisan config:clear, because a cached config stops .env from loading. Check that no server or php-fpm setting overrides DB_DATABASE. Before you migrate, run SELECT DATABASE(); through the app's connection, and stop if it returns the production name.
- A rollback restores code, not rows. Keep the pre-deploy dump encrypted and outside the web root, remove it once the release is verified, and write down the reverse step before you start. Migrations must be expand-only in each deploy: the swap and any rollback run old code on the new schema, so add only new tables, nullable columns, or columns with a default. Drop or rename the old column in a later deploy, once no running release uses it.
Backups
- Nightly
mysqldump --single-transaction(orpg_dump) plusrestic/rcloneof uploads to S3-compatible or B2 storage off the box; retain 30 days; encrypt. - Binlogs cover only the current instance and are not a backup.
- Restore drill quarterly into a scratch VPS; record the date in the runbook.
Compromise and suspension playbook
- Signals: unknown process at 100% CPU, Hostinger abuse email, outbound SSH scans, new users, zeroed binaries.
- Preserve: snapshot first; copy evidence (
/var/log/auth.log, crontabs,last, process list) to/root/incident-<date>. - Contain: kill by verified executable path, never
pkill -uon an account that turns out to be uid 0. Check/etc/passwdfor extra uid-0 users; check crontabs of every user,/etc/cron.d, systemd units and timers,authorized_keysof every user,/etc/ld.so.preload, and typosquat binaries in/usr/bin(systemtd). - Immutable attributes:
Operation not permittedas root meanschattr +i;lsattrthenchattr -ibefore repair. - Repair the OS: zeroed
apt-get/python3/php-fpmcreate a dpkg deadlock; extract packages withdpkg-deb -xfrom/var/cache/apt/archivesto break it. - Rotate everything: root and user passwords, all keys, DB users, app secrets, API tokens; verify each before writing to
.env. - Decide: any root compromise → rebuild from a clean template, restore data only, redeploy from git. "Contain now, rebuild later" without a date is how the second suspension happens.
- Reply to Hostinger with what was found, what was removed, and what was rebuilt.
Sizing and edge
- KVM 1–2 for staging; KVM 2+ (4 GB) for production with PM2 + MySQL + Redis; watch RAM before CPU. Watch disk too: a full disk stops MySQL and log writes in the middle of a release.
- Cloudflare in front for DDoS, TLS, caching, and to hide the origin IP; keep origin certs valid anyway.
- Hostinger's hosting agreement (Section 7) promises 99.9% monthly uptime, with a credit of 5% of the monthly fee that can be used only for further purchases and must be claimed within 30 days. The guarantee is written for all services and lists no VPS exclusion, but confirm VPS coverage in writing. If uptime is contractual, move the database or the whole stack to a managed provider.
Verification
ss -tlnp
sshd -T | grep -Ei 'permitrootlogin|passwordauthentication|allowusers'
ufw status verbose && fail2ban-client status sshd
certbot certificates
pm2 ls && systemctl --failed
awk -F: '$3==0' /etc/passwd
ls -la /etc/cron.d && for u in $(cut -d: -f1 /etc/passwd); do crontab -l -u "$u" 2>/dev/null | sed "s/^/$u: /"; done
Guardrails
- Do not leave
PermitRootLogin yeswith password auth on a public VPS, even for a day. - Do not treat snapshots or binlogs as backups.
- Do not write rotated credentials into
.envbefore the rotation is verified. - Do not trust a previously root-compromised box after cleanup; schedule the rebuild with a date.
- Do not keep the SSH port, hostname, or credentials in a skill or memory that syncs anywhere shared.
Output format
Hostinger product: [shared | cloud | KVM VPS plan] - OS: [...]
Hardening state: [ssh, firewall, fail2ban, updates]
Layout: [domain → root → process → port → health]
Backups: [what, where off-box, last restore test]
Findings / blockers: [P0/P1/P2]
Deploy or recovery steps: [commands]
Rebuild decision: [not needed | scheduled <date> | done]
References
../../references/checklists/hostinger-hosting-checklist.md../../references/checklists/vps-docker-deployment-checklist.md../../references/checklists/security-risk-checklist.md../../references/checklists/engineering-quality-bar.md