Overview
Following server management best practices ensures your Hostxpeed VPS remains secure, performs well, and avoids common pitfalls.
1. Security Best Practices
- Always keep the system updated:
sudo apt update && sudo apt upgrade -y - Use SSH keys instead of passwords
- Disable root login (
PermitRootLogin no) after creating a sudo user - Change default SSH port (e.g., 2222)
- Enable UFW firewall and allow only necessary ports
- Install and configure Fail2ban to block brute force attacks
- Regularly check logs for suspicious activity:
grep "Failed password" /var/log/auth.log
2. Monitoring Best Practices
- Monitor resource usage daily via Hostxpeed portal live stats
- Set up resource alerts for CPU (>80%), disk (>85%), memory (>90%)
- Use htop, netdata, or cockpit for real-time monitoring
- Review logs weekly:
journalctl -p 3 -xb - Monitor failed login attempts and blocked IPs by Fail2ban
3. Backup Best Practices
- Automate daily backups of databases and important files
- Store backups off-server (remote rsync, S3, or separate VPS)
- Test backup restoration every month
- Use Hostxpeed snapshots before major changes (OS upgrade, kernel update)
- Keep at least 7 daily, 4 weekly, 3 monthly backups
4. Performance Best Practices
- Use BBR congestion control for network performance
- Add swap space if RAM is low (2x RAM for ≤2GB VPS)
- Tune swappiness (
vm.swappiness=10) for SSD VPS - Enable HugePages for database servers
- Use logrotate to prevent disk fills
- Set up caching (Redis, Memcached) for dynamic websites
5. Maintenance Best Practices
- Schedule regular reboot (monthly recommended)
- Clean up old kernels:
sudo apt autoremove --purge - Remove orphaned packages:
sudo deborphan | xargs sudo apt-get remove -y - Check disk health and I/O weekly
- Review cron jobs and remove obsolete ones
6. Hostxpeed Portal Management
- Use the Service Detail page for quick actions (reboot, password change, OS reinstall)
- Monitor bandwidth usage to avoid overages
- Request OS reinstall through portal for a fresh start
- Check renewal date to prevent service interruption
- Always take a snapshot before upgrading OS version
7. Emergency Preparedness
- Store root password securely (password manager)
- Keep contact information updated for support access
- Have a backup VPS ready for failover if needed
- Document your server configuration and recovery steps
- Know how to restore from snapshot or full backup
Following these best practices will ensure your Hostxpeed VPS remains a reliable and secure platform for your projects.