Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
hostinger-hosting【部署与运维】Use when managing websites on Hostinger hosting — hPanel navigation, WordPress staging environment, LiteSpeed Cache configuration, PHP version management, SSH access (port 65002), DNS zone editor, SSL/TLS certificates, email setup (IMAP/SMTP settings, SPF/DKIM/DMARC), backup and restore, Hostinger CDN, Node.js deployment, cron jobs, Git integration, …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Hostinger uses a custom control panel (hPanel, not cPanel), LiteSpeed web server, and NVMe storage. This skill covers hPanel navigation, WordPress-specific features, performance, SSH/developer tools, DNS, backups, SSL, email, security, troubleshooting, and migration.
AI assistant (Kodee): Built into hPanel, can toggle maintenance mode, flush caches, tweak LiteSpeed, run migrations.
Availability: Business plan or higher.
Create: Websites > Dashboard > WordPress > Staging > Create staging. Enter subdomain name, wait a few minutes.
Based on LiteSpeed Memcached (LSMCD), not Redis on shared hosting. Business plan or higher.
Enable: hPanel > WordPress > Overview > Core section > toggle Object Cache.
Location: Advanced > PHP Configuration.
Select version from dropdown (minimum 8.2 recommended). PHP Options tab for: upload_max_filesize, post_max_size, max_execution_time, memory_limit.
Location: WordPress > Security. Separate toggles for core, plugins, and themes.
Built into hPanel: Websites > Dashboard > Security. Scans for harmful files and suspicious code.
All Hostinger hosting runs LiteSpeed. LiteSpeed Cache for WordPress (LSCWP) plugin pre-installed. Features: page caching, image optimization, CSS/JS minification, lazy load, database optimization. OPcache enabled by default.
Availability: Business plan or higher.
Enable: Dashboard > search CDN > Enable. Domain must point to Hostinger nameservers. Auto-resizes/compresses images (WebP). Up to 40% performance improvement.
Web Hosting:
| Parameter | Single | Premium | Business |
|---|---|---|---|
| Websites | 1 | 3 | 50 |
| Storage (NVMe) | 10 GB | 20 GB | 50 GB |
| Bandwidth | 100 GB | Unlimited | Unlimited |
| CPU Cores | 1 | 1 | 2 |
| RAM | 1 GB | 2 GB | 3 GB |
| PHP Workers | 25 | 40 | 60 |
| PHP Memory | 1024 MB | 1536 MB | 2048 MB |
| Email Accounts | 1 total | 2/website | 5/website |
Cloud Hosting:
| Parameter | Startup | Professional | Enterprise |
|---|---|---|---|
| Websites | 100 | 100 | 100 |
| Storage (NVMe) | 100 GB | 200 GB | 300 GB |
| CPU Cores | 4 | 5 | 6 |
| RAM | 4 GB | 6 GB | 12 GB |
| PHP Workers | 100 | 200 | 300 |
| PHP Memory | 3072 MB | 6144 MB | 12288 MB |
Availability: Premium plan and above (NOT Single).
Port: 65002 (custom, not standard 22)
ssh u123456789@185.x.x.x -p 65002
Enable: Advanced > SSH Access > Enable. Username: u{account_number}. Password: same as FTP password. SSH key auth supported.
Available via SSH. Full command set accessible after connecting.
Location: Advanced > GIT.
/public_html)Available via SSH for PHP dependency management.
Availability: Business and Cloud plans. Deploy manually or from GitHub. Configured via hPanel.
Location: Advanced > Cron Jobs.
Two types: PHP (for .php files) and Custom (for scripts with special characters, use .sh file). Timezone: UTC+0.
Location: Advanced > DNS Zone Editor (domain must use Hostinger nameservers).
Default Hostinger nameservers: ns1.dns-parking.com, ns2.dns-parking.com
| Record | Purpose |
|---|---|
| A | Domain to IPv4 |
| AAAA | Domain to IPv6 |
| CNAME | Alias to another domain |
| MX | Mail server |
| TXT | SPF, DKIM, verification tokens |
| SRV | Service location |
| CAA | SSL certificate authority auth |
Default TTL: 14400 seconds (4 hours).
Update nameservers at Domains > select domain > Change Nameservers. Then manage DNS in Cloudflare, not hPanel. SSL mode must be "Full" or "Full (Strict)" to avoid redirect loops.
SPF (TXT): v=spf1 include:_spf.mail.hostinger.com ~all
DKIM (CNAME): Auto-configured for Hostinger Email
DMARC (TXT): v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
MX: mx1.hostinger.com (priority 5), mx2.hostinger.com (priority 10)
Only one SPF record per domain. Only one email provider per domain at a time.
| Plan | Frequency | Retention |
|---|---|---|
| Premium | Weekly | 6 weeks |
| Business | Daily | 7 days |
| Cloud | Daily | 7 days |
Location: Files > Backups.
Auto-installed on all websites. Lifetime free with auto-renewal. Domain-validated (DV).
Custom SSL: Uninstall free cert first, then Import SSL (paste cert, private key, CA bundle).
Method 1: hPanel > Security > SSL > toggle "Force HTTPS"
Method 2: .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Hostinger Email:
| Protocol | Server | Port |
|---|---|---|
| IMAP | imap.hostinger.com | 993 (SSL) |
| POP3 | pop.hostinger.com | 995 (SSL) |
| SMTP | smtp.hostinger.com | 465 (SSL) or 587 (STARTTLS) |
Titan Email (premium add-on):
| Protocol | Server | Port |
|---|---|---|
| IMAP | imap.titan.email | 993 (SSL) |
| POP3 | pop.titan.email | 995 (SSL) |
| SMTP | smtp.titan.email | 465 (SSL) or 587 (STARTTLS) |
Single: 1 total. Premium: 2/website. Business: 5/website. Cloud: 10/website.
Aliases, forwarding, catch-all, webmail (Hostinger Mail Web App). Compatible with Gmail, Outlook, Apple Mail via IMAP/SMTP.
.htaccess to .htaccess_backupwp-content/plugins to plugins_disabled)localhost on shared hosting)siteurl/home in wp_options are HTTPS, if Cloudflare set SSL to "Full"/"Full (Strict)"Change via: Advanced > PHP Configuration > PHP Options > upload_max_filesize and post_max_size. post_max_size must be larger than upload_max_filesize.
Location: Websites > Add website > Migrate website.
Supported: WordPress (single-site), Joomla, cPanel/WHM. NOT supported: WordPress Multisite, Blogger, Shopify, Squarespace.
Provide domain name + admin credentials. Hostinger handles the rest.
What migrates: Files, database, .htaccess. Does NOT migrate: Cron jobs, DNS records, custom SSL, FTP accounts, email.
public_htmllocalhost)siteurl/home in wp_options if domain changed| Don't | Why |
|---|---|
| Change DNS before migration completes | Visitors see broken/empty site |
| Use standard SSH port 22 | Hostinger uses port 65002 |
| Create multiple SPF records | Only one SPF per domain; combine them |
| Set DKIM as TXT record | Must be CNAME on Hostinger |
| Ignore PHP memory limits per plan | Cannot exceed plan maximum regardless of wp-config |
| Skip staging for major updates | No easy rollback on shared hosting |
| Use Cloudflare "Flexible" SSL mode | Causes redirect loops with Hostinger |
| Attempt multisite migration with auto tool | Not supported; must migrate manually |