{"slug":"hostinger-wordpress-management","title":"Hostinger WordPress Hosting Management","tags":["hostinger","hpanel","hosting","php","ssh","staging"],"agent_summary":"Hostinger hPanel operations for WordPress: adding sites, PHP version and memory configuration, SSH access on port 65002, staging creation and push-to-production, Hostinger API for automation, and MainWP integration.","trigger_phrases":["hostinger wordpress","hpanel wordpress","hostinger php version","hostinger ssh","hostinger staging","hostinger api","hostinger mainwp","hostinger cloud hosting"],"runnable":true,"markdown":"\nHostinger hosts 154 agency sites on Cloud Startup and Business plans. Key hPanel operations and automation patterns.\n\n## Add WordPress Site\n\n1. hPanel > Websites > Add Website > WordPress\n2. Choose hosting plan (Cloud Business for agency sites)\n3. Set admin email, username, password\n4. Domain: attach existing domain or use free `.hostingerapp.com` subdomain during setup\n\n## PHP Configuration\n\nhPanel > Hosting > PHP Configuration:\n- PHP Version: **8.2** (recommended for WP 6.x)\n- memory_limit: 256M\n- max_execution_time: 300\n- upload_max_filesize: 64M\n- post_max_size: 64M\n\n## SSH Access\n\nhPanel > Advanced > SSH Access > Enable:\n- Port: **65002** (not 22 — Hostinger uses non-standard port)\n- Username: shown in hPanel (format: `u123456789`)\n- Auth: upload public key via hPanel > SSH Keys\n\n```bash\n# Connect to Hostinger shared hosting\nssh -p 65002 u123456789@server-ip\n\n# Run WP-CLI on Hostinger\ncd ~/public_html && wp plugin list\n```\n\n## Staging Environment\n\nhPanel > Websites > Manage > Staging > Create Staging:\n- Staging URL: `staging.yourdomain.com`\n- Automatic copy of production files and database\n- Push to production: one-click via Staging > Push to Live\n\nNever push staging `wp-config.php` to production — contains staging DB credentials.\n\n## Hostinger API (Automation)\n\n```bash\n# List WordPress installations\ncurl -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  \"https://api.hostinger.com/v1/hosting/sites\"\n\n# Get API token: hPanel > Profile > API Tokens > Generate New Token\n```\n\n## MainWP + Hostinger Integration\n\n1. Install MainWP Child on each Hostinger site\n2. In MainWP Dashboard: Sites > Add Site > Enter site URL and security key\n3. If connection fails: check Hostinger firewall > allow MainWP Dashboard server IP\n4. Tag all Hostinger sites as `hostinger` in MainWP for filtered fleet views\n\n## File Manager (No SSH)\n\nhPanel > Files > File Manager:\n- Full file browser with upload, download, edit, permissions\n- Edit `wp-config.php` directly if SSH not available\n- Extract zip archives (for manual plugin/theme uploads)\n\n## Email Configuration\n\nhPanel > Emails > Email Accounts:\n- Create `info@domain.com`, `admin@domain.com`\n- SPF/DKIM auto-configured for Hostinger mail servers\n- For external email (Google Workspace): update MX records in DNS\n","html":"<p>Hostinger hosts 154 agency sites on Cloud Startup and Business plans. Key hPanel operations and automation patterns.</p>\n<h2>Add WordPress Site</h2>\n<ol>\n<li>hPanel > Websites > Add Website > WordPress</li>\n<li>Choose hosting plan (Cloud Business for agency sites)</li>\n<li>Set admin email, username, password</li>\n<li>Domain: attach existing domain or use free <code>.hostingerapp.com</code> subdomain during setup</li>\n</ol>\n<h2>PHP Configuration</h2>\n<p>hPanel > Hosting > PHP Configuration:</p>\n<ul>\n<li>PHP Version: <strong>8.2</strong> (recommended for WP 6.x)</li>\n<li>memory_limit: 256M</li>\n<li>max_execution_time: 300</li>\n<li>upload_max_filesize: 64M</li>\n<li>post_max_size: 64M</li>\n</ul>\n<h2>SSH Access</h2>\n<p>hPanel > Advanced > SSH Access > Enable:</p>\n<ul>\n<li>Port: <strong>65002</strong> (not 22 — Hostinger uses non-standard port)</li>\n<li>Username: shown in hPanel (format: <code>u123456789</code>)</li>\n<li>Auth: upload public key via hPanel > SSH Keys</li>\n</ul>\n<pre><code class=\"language-bash\"># Connect to Hostinger shared hosting\nssh -p 65002 u123456789@server-ip\n\n# Run WP-CLI on Hostinger\ncd ~/public_html &#x26;&#x26; wp plugin list\n</code></pre>\n<h2>Staging Environment</h2>\n<p>hPanel > Websites > Manage > Staging > Create Staging:</p>\n<ul>\n<li>Staging URL: <code>staging.yourdomain.com</code></li>\n<li>Automatic copy of production files and database</li>\n<li>Push to production: one-click via Staging > Push to Live</li>\n</ul>\n<p>Never push staging <code>wp-config.php</code> to production — contains staging DB credentials.</p>\n<h2>Hostinger API (Automation)</h2>\n<pre><code class=\"language-bash\"># List WordPress installations\ncurl -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  \"https://api.hostinger.com/v1/hosting/sites\"\n\n# Get API token: hPanel > Profile > API Tokens > Generate New Token\n</code></pre>\n<h2>MainWP + Hostinger Integration</h2>\n<ol>\n<li>Install MainWP Child on each Hostinger site</li>\n<li>In MainWP Dashboard: Sites > Add Site > Enter site URL and security key</li>\n<li>If connection fails: check Hostinger firewall > allow MainWP Dashboard server IP</li>\n<li>Tag all Hostinger sites as <code>hostinger</code> in MainWP for filtered fleet views</li>\n</ol>\n<h2>File Manager (No SSH)</h2>\n<p>hPanel > Files > File Manager:</p>\n<ul>\n<li>Full file browser with upload, download, edit, permissions</li>\n<li>Edit <code>wp-config.php</code> directly if SSH not available</li>\n<li>Extract zip archives (for manual plugin/theme uploads)</li>\n</ul>\n<h2>Email Configuration</h2>\n<p>hPanel > Emails > Email Accounts:</p>\n<ul>\n<li>Create <code>info@domain.com</code>, <code>admin@domain.com</code></li>\n<li>SPF/DKIM auto-configured for Hostinger mail servers</li>\n<li>For external email (Google Workspace): update MX records in DNS</li>\n</ul>\n"}