Setup server từ đầu — cho project custom.
Khi hosting có sẵn không đủ. Setup VPS/Cloud/dedicated từ OS-level: Ubuntu/CentOS, Nginx/Apache, MySQL/Postgres, Redis, SSL, firewall, monitoring, backup tự động lên S3.
Khi project cần stack non-standard hoặc compliance đặc thù, setup server từ đầu là bước bắt buộc. Web22 setup turnkey trong 2-5 ngày tùy độ phức tạp.
Stack điển hình
- OS: Ubuntu 22.04 LTS hoặc Rocky Linux 9. Hardening cơ bản — disable root SSH, tạo non-root user, SSH key only.
- Webserver: Nginx (mặc định) hoặc OpenLiteSpeed (cho WP). Cấu hình rate limit, gzip/brotli, HTTP/2.
- Database: MySQL 8 hoặc MariaDB 10.11. Tuning my.cnf theo RAM. Postgres 15+ cho project Django/Strapi.
- Cache: Redis cho object cache + session. Memcached cho legacy app.
- Runtime: PHP 8.2+ FPM, Node.js 20+ LTS, Python 3.11+.
Security baseline
- UFW firewall: chỉ mở 22 (SSH custom port), 80, 443.
- Fail2ban: auto-block SSH brute force.
- Cloudflare proxy: hide IP gốc, DDoS protection free tier.
- SSL Let’s Encrypt: cron auto-renew 90 ngày.
- Audit log: rsyslog forward sang central log server hoặc CloudWatch/Datadog.
Backup & Monitoring
- Backup database hàng giờ, file hàng ngày → S3/Backblaze B2.
- Retention: 7 ngày daily + 4 tuần weekly + 12 tháng monthly.
- Monitoring: UptimeRobot/Pingdom HTTP check 1 phút.
- Resource monitor: Netdata (free) hoặc Datadog (paid).
- Alert qua email/Slack/Telegram khi service down hoặc CPU/RAM/disk vượt 80%.
Khi không cần setup từ đầu
- WordPress site → managed WP hosting tiết kiệm hơn 30-50%.
- Static site → Vercel/Netlify free tier đủ.
- Shop nhỏ < 100 đơn/ngày → shared hosting hoặc VPS basic có sẵn.
Một dịch vụ — sáu mặt trận đồng thời.
OS hardening
Ubuntu 22.04 LTS hoặc Rocky Linux 9. SSH key only, custom port, non-root user, automatic security update.
- SSH hardening
- UFW firewall
- Fail2ban
- Auto security update
Runtime stack
PHP 8.2/Node 20/Python 3.11/Go/Ruby tùy stack. Webserver Nginx hoặc Apache hoặc Caddy.
- PHP-FPM
- Node.js LTS
- Python venv
- Nginx + reverse proxy
Database tuning
MySQL/MariaDB hoặc PostgreSQL. my.cnf/postgresql.conf tuning theo RAM. Slow query log + index optimization.
- MySQL 8
- PostgreSQL 15
- Redis
- Memcached optional
CI/CD + IaC
Deploy script (rsync/git pull/Docker), GitHub Actions/GitLab CI runner, Terraform IaC code cho cloud.
- Deploy script
- GitHub Actions
- Docker compose
- Terraform
Monitoring + alert
UptimeRobot HTTP check, Netdata server metrics, log aggregation (Loki/Datadog), alert email/Slack.
- UptimeRobot
- Netdata
- Log aggregation
- Alert routing
Setup Basic
1 lần · 2-3 ngày- OS hardening Ubuntu/Rocky
- Nginx + 1 runtime (PHP/Node/Python)
- MySQL hoặc PostgreSQL
- Let's Encrypt SSL
- UFW firewall + Fail2ban
- Backup daily 7 ngày
- Multi-instance|x Load balancer
Setup Advanced
1 lần · 5-7 ngày- Tất cả Basic +
- Docker compose hoặc Kubernetes lite
- Redis + cache layer
- Monitoring full (Netdata + UptimeRobot + alerts)
- Log aggregation
- CI/CD pipeline (GitHub Actions)
- Terraform IaC code
- Documentation + runbook
Setup Enterprise
Báo giá riêng · 7-14 ngày- Multi-region cloud (AWS/GCP)
- Load balancer + auto-scaling
- Database replication
- CDN + edge cache
- Compliance audit (HIPAA/PCI DSS)
- Disaster recovery plan
- 24/7 monitoring + on-call
Khi nào cần setup server từ đầu?
Khi stack non-standard (Next.js + Node, Django + Postgres, Strapi headless), hoặc cần compliance đặc thù (HIPAA y tế, PCI DSS payment), hoặc traffic enterprise >500K visitor/tháng. WordPress site bình thường thì managed WP tiết kiệm hơn.
Có support stack ngoài WordPress không?
Có. Web22 setup được: Next.js/Nuxt + Node + Postgres, Django + Postgres, Laravel + MySQL, Strapi headless, NestJS, Python FastAPI, Ruby on Rails. Báo trước stack cụ thể để chuẩn bị runtime + dependency.
Có dùng Docker/Kubernetes không?
Docker compose: có ở Setup Advanced (1-server hoặc multi-server simple). Kubernetes full: chỉ Setup Enterprise (multi-region, auto-scaling). Cho project <100K visitor/tháng, single-server với Docker compose là sweet spot — không over-engineer.
Có Infrastructure as Code (IaC)?
Có ở Advanced + Enterprise. Terraform code cho AWS/GCP/DO. Lưu trên Git của khách. Khi cần re-deploy, chạy terraform apply tái tạo full infrastructure trong 10-20 phút.
Compliance HIPAA/PCI DSS thì sao?
Setup Enterprise hỗ trợ. Bao gồm: encryption at rest (LUKS/cloud KMS), audit log immutable, access control RBAC, network segmentation, regular vulnerability scan. Audit thực tế cần thuê auditor bên ngoài (SecureSet, KPMG) — Web22 chuẩn bị documentation đáp ứng yêu cầu.
Sau bàn giao, ai maintain?
Tùy chọn: (1) Khách tự maintain với runbook + training của Web22, (2) Web22 maintain hàng tháng từ 2-5tr/tháng tùy độ phức tạp, (3) Hybrid: emergency support theo giờ ($50-100/giờ).