<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Hosting &#8211; Aveshost Blog</title>
	<atom:link href="https://blog.aveshost.com/category/web-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.aveshost.com</link>
	<description>Your Blueprint for Online Success</description>
	<lastBuildDate>Mon, 23 Nov 2026 21:23:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://blog.aveshost.com/wp-content/uploads/2026/01/logo-150x150.png</url>
	<title>Web Hosting &#8211; Aveshost Blog</title>
	<link>https://blog.aveshost.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Self-Host NocoDB on a VPS with PostgreSQL and HTTPS</title>
		<link>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/</link>
					<comments>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 21:23:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[NocoDB]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6150</guid>

					<description><![CDATA[A complete production guide to self-hosting NocoDB on a Linux VPS using Docker Compose and PostgreSQL—covering NC_DB, NC_AUTH_JWT_SECRET, NC_PUBLIC_URL, Caddy/Nginx HTTPS reverse proxy, and firewall hardening.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>self-host NocoDB</strong> on your own Linux VPS gives your team an open-source Airtable alternative without per-seat SaaS fees or row-count limits. NocoDB turns any relational database into a fast collaborative spreadsheet UI with kanban boards, forms, webhooks, and a full REST API.</p>



<p class="wp-block-paragraph">While NocoDB can start quickly on embedded SQLite for local testing, production teams should pair it with <strong>PostgreSQL</strong> for concurrent multi-user writes, reliable backups, and cleaner scaling—especially when deployed behind an HTTPS reverse proxy like Caddy or Nginx.</p>



<p class="wp-block-paragraph">Whether you run <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide walks through deploying NocoDB with Docker Compose, PostgreSQL 16, automatic Let&#8217;s Encrypt HTTPS, and essential security hardening.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-pair-nocodb-with-postgresql-and-a-reverse-proxy">Why Pair NocoDB with PostgreSQL and a Reverse Proxy</a></div><div><a href="#prerequisites-and-environment-variables">Prerequisites and Required NocoDB Environment Variables</a></div><div><a href="#step-1-deploy-nocodb-and-postgresql-with-docker-compose">Step 1: Deploy NocoDB and PostgreSQL 16 with Docker Compose</a></div><div><a href="#step-2-configure-https-with-caddy-or-nginx">Step 2: Add Automatic HTTPS with Caddy (or Nginx + Certbot)</a></div><div><a href="#step-3-backups-and-production-hardening">Step 3: Back Ups, Firewall Rules, and Production Checklist</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-pair-nocodb-with-postgresql-and-a-reverse-proxy" class="wp-block-heading">Why Pair NocoDB with PostgreSQL and a Reverse Proxy</h2>



<p class="wp-block-paragraph">Out of the box, NocoDB stores metadata in SQLite when no external database is configured. For solo experiments that works fine, but as soon as multiple teammates edit views, trigger webhooks, or upload attachments simultaneously, PostgreSQL eliminates write-lock contention (see our <a href="https://blog.aveshost.com/sqlite-vs-postgresql-vps/">SQLite vs PostgreSQL on a VPS comparison</a>).</p>



<p class="wp-block-paragraph">Separating storage into two layers also makes upgrades safer: PostgreSQL holds your workspace metadata, table schemas, and user permissions, while the <code>nocodb_data</code> Docker volume mounted at <code>/usr/app/data</code> stores uploaded file attachments and runtime state. You can recreate or upgrade the NocoDB container anytime without touching your relational data.</p>



<p class="wp-block-paragraph">Binding NocoDB strictly to <code>127.0.0.1:8080</code> and placing Caddy or Nginx in front of it keeps port <code>8080</code> and PostgreSQL port <code>5432</code> completely off the public internet while terminating TLS on port <code>443</code>.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture.webp" alt="Architecture diagram showing self-hosted NocoDB behind Caddy or Nginx HTTPS proxy connected to PostgreSQL 16" class="wp-image-6148" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="prerequisites-and-environment-variables" class="wp-block-heading">Prerequisites and Required NocoDB Environment Variables</h2>



<p class="wp-block-paragraph">Prepare an Ubuntu 22.04 or 24.04 VPS (at least 2 GB RAM recommended for PostgreSQL + NocoDB) with Docker Engine and Docker Compose installed, and point an A record (such as <code>nocodb.yourdomain.com</code>) to your server&#8217;s public IPv4 address. If you are setting up a fresh server, check our <a href="https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/">Ubuntu VPS setup guide</a> for initial SSH and UFW steps.</p>



<p class="wp-block-paragraph">According to the <a href="https://docs.nocodb.com/getting-started/installation/" rel="noopener">official NocoDB installation documentation</a>, three environment variables matter most for a stable PostgreSQL + HTTPS deployment:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Environment Variable</th><th>Purpose</th><th>Production Example / Note</th></tr></thead><tbody><tr><td>NC_DB</td><td>PostgreSQL connection string for NocoDB metadata</td><td>pg://postgres:5432?u=nocodb&amp;p=STRONG_PASS&amp;d=nocodb</td></tr><tr><td>NC_AUTH_JWT_SECRET</td><td>Signs user session and API JWT tokens</td><td>Generate a long random 32+ character secret</td></tr><tr><td>NC_PUBLIC_URL</td><td>Canonical HTTPS URL behind reverse proxy</td><td>https://nocodb.yourdomain.com (fixes webhooks &amp; links)</td></tr></tbody></table></figure>



<h2 id="step-1-deploy-nocodb-and-postgresql-with-docker-compose" class="wp-block-heading">Step 1: Deploy NocoDB and PostgreSQL 16 with Docker Compose</h2>



<p class="wp-block-paragraph">Create a project directory such as <code>/opt/nocodb</code> and save the <code>docker-compose.yml</code> file below. Two details make this production-ready: first, binding NocoDB&#8217;s port to <code>127.0.0.1:8080:8080</code> instead of <code>8080:8080</code> prevents Docker from bypassing UFW on the public interface (<a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">Docker and UFW port safety guide</a>).</p>



<p class="wp-block-paragraph">Second, adding a <code>pg_isready</code> healthcheck on the PostgreSQL service with <code>condition: service_healthy</code> guarantees NocoDB does not crash on boot while PostgreSQL is still initializing its data directory. Also make sure <code>NC_AUTH_JWT_SECRET</code> is set explicitly in your environment or <code>.env</code> file rather than left blank; otherwise, container restarts invalidate active user sessions.</p>



<p class="wp-block-paragraph">Start the stack with <code>sudo docker compose up -d</code> and check <code>sudo docker compose logs -f nocodb</code> until it reports listening on port <code>8080</code>. You can verify the container health locally with <code>curl -I http://127.0.0.1:8080/api/v1/health</code> before wiring up your domain.</p>



<pre class="wp-block-code"><code>services:
  postgres:
    image: postgres:16-alpine
    restart: unless-stopped
    environment:
      POSTGRES_DB: nocodb
      POSTGRES_USER: nocodb
      POSTGRES_PASSWORD: CHANGE_ME_STRONG_DB_PASSWORD
    volumes:
      - pg_data:/var/lib/postgresql/data
    healthcheck:
      test: &#91;"CMD-SHELL", "pg_isready -U nocodb -d nocodb"]
      interval: 10s
      timeout: 5s
      retries: 10

  nocodb:
    image: nocodb/nocodb:latest
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      NC_DB: "pg://postgres:5432?u=nocodb&amp;p=CHANGE_ME_STRONG_DB_PASSWORD&amp;d=nocodb"
      NC_AUTH_JWT_SECRET: "REPLACE_WITH_LONG_RANDOM_SECRET"
      NC_PUBLIC_URL: "https://nocodb.yourdomain.com"
    volumes:
      - nocodb_data:/usr/app/data

volumes:
  pg_data:
  nocodb_data:</code></pre>



<pre class="wp-block-code"><code>sudo docker compose up -d
sudo docker compose logs -f nocodb</code></pre>



<h2 id="step-2-configure-https-with-caddy-or-nginx" class="wp-block-heading">Step 2: Add Automatic HTTPS with Caddy (or Nginx + Certbot)</h2>



<p class="wp-block-paragraph">With NocoDB listening on <code>127.0.0.1:8080</code>, configure a reverse proxy to terminate HTTPS on port <code>443</code>. <strong>Caddy</strong> is the fastest option because it obtains and renews Let&#8217;s Encrypt TLS certificates automatically with a five-line <code>Caddyfile</code>.</p>



<p class="wp-block-paragraph">If you already run Nginx on your VPS, create a standard server block with <code>proxy_pass http://127.0.0.1:8080</code> (including WebSocket <code>Upgrade</code> and <code>X-Forwarded-Proto</code> headers) and run <code>sudo certbot --nginx -d nocodb.yourdomain.com</code>.</p>



<p class="wp-block-paragraph">Open <code>https://nocodb.yourdomain.com</code> in your browser to create your first Super Admin account. Because <code>NC_PUBLIC_URL</code> matches your domain, shared views, invite links, and API docs will all resolve cleanly over HTTPS.</p>



<pre class="wp-block-code"><code># /etc/caddy/Caddyfile
nocodb.yourdomain.com {
    reverse_proxy 127.0.0.1:8080
}</code></pre>



<pre class="wp-block-code"><code># Optional UFW firewall check
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status</code></pre>



<h2 id="step-3-backups-and-production-hardening" class="wp-block-heading">Step 3: Back Ups, Firewall Rules, and Production Checklist</h2>



<p class="wp-block-paragraph">To keep your NocoDB instance resilient on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting, keep only ports <code>80</code> and <code>443</code> open publicly in UFW. If you only want internal team access—or want to lock down SSH—pair your VPS with <a href="https://blog.aveshost.com/secure-vps-access-tailscale-without-public-ports/">Tailscale private VPS access</a>.</p>



<p class="wp-block-paragraph">Never expose PostgreSQL port <code>5432</code> in your Compose file or firewall; keeping PostgreSQL on the internal Docker bridge network ensures only the NocoDB container can query it. When applying container updates later, pull the new image and recreate only the application service with <code>sudo docker compose pull &amp;&amp; sudo docker compose up -d</code>.</p>



<p class="wp-block-paragraph">Finally, schedule automated daily <code>pg_dump</code> exports of your PostgreSQL database alongside backups of the <code>nocodb_data</code> volume (<code>/usr/app/data</code>) so both structured tables and uploaded attachments can be restored cleanly. Test restoring a dump to a staging container periodically to confirm your backup files are complete.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist.webp" alt="Six-step production checklist for self-hosting NocoDB with PostgreSQL and HTTPS on a VPS" class="wp-image-6149" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Daily PostgreSQL dump
sudo docker compose exec -T postgres pg_dump -U nocodb nocodb &gt; /opt/nocodb/nocodb-backup.sql</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-ce89c46a56d646bda42c3f19ac2e6ed0" class="rank-math-list-item">
<h3 class="rank-math-question ">How much RAM does a self-hosted NocoDB + PostgreSQL VPS need?</h3>
<div class="rank-math-answer ">

<p>While NocoDB can boot on 1 GB RAM for light testing, 2 GB to 4 GB RAM is recommended on an Ubuntu VPS when running PostgreSQL 16, NocoDB, and a reverse proxy together in production.</p>

</div>
</div>
<div id="faq-question-78d5f776f32e4780ade24e15c0a12250" class="rank-math-list-item">
<h3 class="rank-math-question ">Why should I set NC_PUBLIC_URL when running NocoDB behind Caddy or Nginx?</h3>
<div class="rank-math-answer ">

<p>Without NC_PUBLIC_URL set to your full https:// domain, NocoDB may generate localhost or HTTP links for shared views, password resets, OAuth callbacks, and webhook payloads behind a reverse proxy.</p>

</div>
</div>
<div id="faq-question-7b593bcd9cc84ee38faa6ca60d7af8ba" class="rank-math-list-item">
<h3 class="rank-math-question ">Why bind NocoDB to 127.0.0.1:8080:8080 instead of 8080:8080 in Docker Compose?</h3>
<div class="rank-math-answer ">

<p>Binding to 127.0.0.1 ensures only your local Caddy or Nginx reverse proxy can reach NocoDB, preventing Docker&#8217;s iptables rules from exposing unencrypted port 8080 to the public internet.</p>

</div>
</div>
<div id="faq-question-ac62d359a6ac45ffbcf2ffb1a18e6293" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I migrate NocoDB from SQLite to PostgreSQL later?</h3>
<div class="rank-math-answer ">

<p>Starting directly on PostgreSQL 16 is much simpler for production. If you already run SQLite, NocoDB supports connecting external PostgreSQL data sources or exporting/migrating bases, though starting with NC_DB pointed at PostgreSQL avoids manual metadata migration.</p>

</div>
</div>
<div id="faq-question-e583ba808e09421fb6dcf3717dc210cf" class="rank-math-list-item">
<h3 class="rank-math-question ">Which reverse proxy is easier for NocoDB HTTPS: Caddy or Nginx?</h3>
<div class="rank-math-answer ">

<p>Caddy is simpler for single-app VPS setups because it provisions and renews Let&#8217;s Encrypt TLS certificates automatically with minimal config. Nginx + Certbot is ideal if you already host multiple sites on the same VPS.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Headscale vs Tailscale: Should You Host Your Own Control Server?</title>
		<link>https://blog.aveshost.com/headscale-vs-tailscale-control-server/</link>
					<comments>https://blog.aveshost.com/headscale-vs-tailscale-control-server/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 12:31:12 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Headscale]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Tailscale]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6144</guid>

					<description><![CDATA[An engineering comparison of Headscale vs Tailscale—explaining how both share the WireGuard data plane while differing on control-plane sovereignty, DERP relays, Tailscale Funnel, OIDC, and VPS operations.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Comparing <strong>Headscale vs Tailscale</strong> is different from most software rivalries because both use the exact same official Tailscale client apps and WireGuard data plane. What changes is the <strong>control server</strong>—the coordination layer that registers devices, distributes public keys, pushes ACL policies, and manages MagicDNS.</p>



<p class="wp-block-paragraph">Tailscale gives you a zero-maintenance cloud control plane with global DERP relays, Funnel, and a polished admin console. Headscale is an open-source, self-hosted implementation of that control server that runs on your own Linux VPS, giving you full data sovereignty and zero per-user licensing fees.</p>



<p class="wp-block-paragraph">Whether you run <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide breaks down every technical trade-off in <strong>Headscale vs Tailscale</strong> so you know when self-hosting is worth the operational effort.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#headscale-vs-tailscale-at-a-glance">Headscale vs Tailscale at a Glance</a></div><div><a href="#control-plane-vs-data-plane-architecture">Control Plane vs Data Plane: What Self-Hosting Actually Changes</a></div><div><a href="#key-limitations-and-operational-trade-offs-of-headscale">Key Limitations &amp; Operational Trade-Offs of Headscale</a></div><div><a href="#should-you-host-your-own-control-server">Should You Host Your Own Control Server?</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="headscale-vs-tailscale-at-a-glance" class="wp-block-heading">Headscale vs Tailscale at a Glance</h2>



<p class="wp-block-paragraph">If you are still getting familiar with private mesh networking, start with our <a href="https://blog.aveshost.com/secure-vps-access-tailscale-without-public-ports/">guide to securing VPS access with Tailscale</a>. Once you understand how WireGuard tunnels work, here is how the managed Tailscale SaaS control plane compares with self-hosting Headscale on a VPS:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Feature / Dimension</th><th>Tailscale (Managed SaaS)</th><th>Headscale (Self-Hosted OSS)</th></tr></thead><tbody><tr><td>Control Plane Location</td><td>Tailscale Inc. cloud infrastructure</td><td>Your own Linux VPS (behind Nginx or Caddy HTTPS)</td></tr><tr><td>WireGuard Data Plane</td><td>Official Tailscale clients (P2P encrypted)</td><td>Official Tailscale clients (identical P2P encryption)</td></tr><tr><td>DERP Relays</td><td>Global managed network of automatic relays</td><td>Public DERP map or self-hosted embedded DERP (UDP 3478)</td></tr><tr><td>Tailscale Funnel</td><td>Supported (public internet ingress)</td><td>Not supported</td></tr><tr><td>Tailscale SSH &amp; Taildrop</td><td>Supported</td><td>Supported</td></tr><tr><td>Multi-Tenancy</td><td>Native multi-org &amp; separate tailnets</td><td>Single-tailnet architecture partitioned by ACLs</td></tr><tr><td>Cost Model</td><td>Free tier (up to 100 devices) / per-user paid tiers</td><td>Free open source (pay only for your VPS)</td></tr></tbody></table></figure>



<h2 id="control-plane-vs-data-plane-architecture" class="wp-block-heading">Control Plane vs Data Plane: What Self-Hosting Actually Changes</h2>



<p class="wp-block-paragraph">Even when using managed Tailscale, your peer-to-peer traffic is encrypted end-to-end with WireGuard keys that Tailscale cannot decrypt. However, Tailscale&#8217;s cloud control plane still stores your node inventory, IP assignments, login emails, and network topology.</p>



<p class="wp-block-paragraph">With <a href="https://headscale.net/" rel="noopener">Headscale</a>, you move that coordination database onto your own VPS (using SQLite for small deployments or <a href="https://blog.aveshost.com/sqlite-vs-postgresql-vps/">PostgreSQL on a VPS</a> for larger production fleets). Your Windows, macOS, Linux, and mobile devices still run the official Tailscale app—you simply pass <code>--login-server https://headscale.yourdomain.com</code> during registration.</p>



<p class="wp-block-paragraph">Because Tailscale clients require HTTPS to communicate with the coordination server, you will run Headscale behind Caddy or Nginx with a valid Let&#8217;s Encrypt TLS certificate, and back up your Headscale database and Noise private key regularly so nodes never lose their registered identities.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture.webp" alt="Control plane architecture diagram comparing managed Tailscale cloud against self-hosted Headscale on a VPS" class="wp-image-6142" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="key-limitations-and-operational-trade-offs-of-headscale" class="wp-block-heading">Key Limitations &amp; Operational Trade-Offs of Headscale</h2>



<p class="wp-block-paragraph">Before spinning up Headscale to save on SaaS seats, weigh four real-world differences that surprise teams migrating from managed Tailscale:</p>



<p class="wp-block-paragraph">• <strong>1. No Tailscale Funnel:</strong> Because Tailscale Funnel relies on Tailscale&#8217;s proprietary public edge ingress nodes, Headscale does not support Funnel. If you need public webhooks alongside private tools—such as <a href="https://blog.aveshost.com/access-openclaw-privately-with-tailscale/">accessing OpenClaw privately with Tailscale</a>—you will expose public routes via Nginx or Caddy on your VPS instead.</p>



<p class="wp-block-paragraph">• <strong>2. Single-Tailnet Design:</strong> Headscale is built around a single shared tailnet. To separate teams, clients, or staging servers, you must enforce strict HuJSON ACLs—and remember that Headscale loads no ACL file by default (meaning allow-all until you define deny-by-default rules).</p>



<p class="wp-block-paragraph">• <strong>3. DERP Relay Responsibility:</strong> Headscale includes an optional embedded DERP server (requiring HTTPS port <code>443</code> and STUN UDP port <code>3478</code>). If you remove Tailscale&#8217;s public DERP list for maximum privacy, your single Headscale VPS becomes a single point of failure for any device stuck behind symmetric NAT.</p>



<p class="wp-block-paragraph">• <strong>4. OIDC &amp; CLI Administration:</strong> Headscale is CLI-first out of the box (though community web UIs exist) and supports OIDC providers like Keycloak, Authentik, and Google. Always restrict <code>oidc.allowed_domains</code> or groups so random users cannot register nodes.</p>



<h2 id="should-you-host-your-own-control-server" class="wp-block-heading">Should You Host Your Own Control Server?</h2>



<p class="wp-block-paragraph">Choosing between <strong>Headscale vs Tailscale</strong> comes down to whether your priority is zero-maintenance convenience or complete control-plane ownership:</p>



<p class="wp-block-paragraph">• <strong>Stick with Managed Tailscale When:</strong> You have fewer than 100 devices on the free Personal plan, rely on Tailscale Funnel or global multi-region DERP relays, or want zero control-plane upkeep.</p>



<p class="wp-block-paragraph">• <strong>Self-Host Headscale on a VPS When:</strong> You are scaling past free user limits, require strict compliance keeping node metadata off third-party clouds, or already run <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting with automated backups and reverse proxies.</p>



<p class="wp-block-paragraph">• <strong>Keep an Easy Migration Path:</strong> Because both options use the exact same Tailscale client binaries, moving a device from Tailscale Cloud to Headscale (or back) only requires re-running <code>tailscale up</code> with or without the <code>--login-server</code> flag and updating your ACL policy.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix.webp" alt="Six-factor decision matrix for choosing between Headscale self-hosted control server and managed Tailscale" class="wp-image-6143" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Register an official Tailscale client with your self-hosted Headscale VPS
sudo tailscale up --login-server https://headscale.yourdomain.com

# If enabling Headscale embedded DERP on your Ubuntu VPS, allow STUN UDP 3478
sudo ufw allow 443/tcp
sudo ufw allow 3478/udp</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-8949b0cf35f44db697e9d0265dd9e830" class="rank-math-list-item">
<h3 class="rank-math-question ">Do I need a special client app to connect to Headscale?</h3>
<div class="rank-math-answer ">

<p>No. Headscale works with the official Tailscale desktop, server, and mobile client apps. You simply pass your Headscale server URL using &#8211;login-server when running tailscale up (or configure the custom server URL in mobile/desktop settings).</p>

</div>
</div>
<div id="faq-question-919a5736abd34292895e752c5d94cdcd" class="rank-math-list-item">
<h3 class="rank-math-question ">Does Headscale support Tailscale SSH and Taildrop?</h3>
<div class="rank-math-answer ">

<p>Yes. Headscale supports both Tailscale SSH and Taildrop peer-to-peer file sharing, because both features operate over the standard WireGuard data plane coordinated by your control server.</p>

</div>
</div>
<div id="faq-question-f715163c2c4c4d30956680202fb9a714" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does Headscale not support Tailscale Funnel?</h3>
<div class="rank-math-answer ">

<p>Tailscale Funnel depends on Tailscale Inc.&#8217;s proprietary public edge ingress nodes to route public internet traffic into a private tailnet. Because Headscale runs independently on your own VPS, you should use Nginx, Caddy, or Cloudflare Tunnels if you need public HTTPS ingress.</p>

</div>
</div>
<div id="faq-question-a6e87aa3dac04d61ad3b27c49932b337" class="rank-math-list-item">
<h3 class="rank-math-question ">Is Headscale secure out of the box?</h3>
<div class="rank-math-answer ">

<p>You must configure an ACL policy file right away. By default, Headscale loads no ACL policy, which allows all registered nodes on the single tailnet to communicate with each other—and if you enable OIDC, restrict allowed domains or groups strictly.</p>

</div>
</div>
<div id="faq-question-38970f02897e45208caf18fd56f4d063" class="rank-math-list-item">
<h3 class="rank-math-question ">What VPS specs do I need to self-host Headscale?</h3>
<div class="rank-math-answer ">

<p>Headscale is a lightweight Go binary. A 1 vCPU, 1 GB RAM Ubuntu VPS easily coordinates hundreds of nodes, especially when paired with PostgreSQL and a TLS reverse proxy like Caddy or Nginx.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/headscale-vs-tailscale-control-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RustDesk vs AnyDesk: Costs, Privacy and Self-Hosting Compared</title>
		<link>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/</link>
					<comments>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sat, 21 Nov 2026 20:22:57 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[AnyDesk]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[RustDesk]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6126</guid>

					<description><![CDATA[An engineering and buyer comparison of RustDesk vs AnyDesk covering licensing costs, open-source transparency vs closed-source SaaS, encryption, self-hosting on a Linux VPS, and enterprise team controls.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Comparing <strong>RustDesk vs AnyDesk</strong> comes down to a clear architectural divide: an open-source remote desktop platform you can self-host for free on your own VPS versus a closed-source commercial SaaS tool built around a managed global cloud.</p>



<p class="wp-block-paragraph">Both tools deliver low-latency screen sharing, file transfer, and unattended access across Windows, macOS, Linux, Android, and iOS. However, their pricing models, privacy guarantees, and self-hosting restrictions lead to very different long-term costs for solo IT pros, agencies, and growing support teams.</p>



<p class="wp-block-paragraph">In this guide, we compare <strong>RustDesk vs AnyDesk</strong> across licensing costs, data sovereignty, encryption standards, self-hosting requirements on <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a>, and team administration.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#rustdesk-vs-anydesk-at-a-glance">RustDesk vs AnyDesk at a Glance</a></div><div><a href="#licensing-and-cost-comparison">Costs &amp; Licensing: Open-Source Freedom vs Per-Seat Subscriptions</a></div><div><a href="#privacy-encryption-and-data-sovereignty">Privacy, Encryption, and Data Sovereignty</a></div><div><a href="#self-hosting-and-deployment-effort">Self-Hosting &amp; Deployment Effort Compared</a></div><div><a href="#which-should-you-choose-rustdesk-or-anydesk">Which Should You Choose: RustDesk or AnyDesk?</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="rustdesk-vs-anydesk-at-a-glance" class="wp-block-heading">RustDesk vs AnyDesk at a Glance</h2>



<p class="wp-block-paragraph">Before diving into each category, here is how <strong>RustDesk vs AnyDesk</strong> stacks up across source licensing, hosting model, encryption, and team administration:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Comparison Factor</th><th>RustDesk (OSS / Pro)</th><th>AnyDesk (Cloud / Ultimate)</th></tr></thead><tbody><tr><td>Source License</td><td>Open-source client &amp; Server OSS (AGPLv3); optional commercial Server Pro</td><td>Proprietary closed-source software</td></tr><tr><td>Cost Model</td><td>Free to self-host OSS with no user caps; Pro adds annual console license</td><td>Free for personal use only; commercial use requires annual per-seat plans</td></tr><tr><td>Self-Hosting Availability</td><td>Available on all tiers via Docker (hbbs + hbbr)</td><td>Restricted to enterprise Ultimate On-Premises tier</td></tr><tr><td>Encryption</td><td>End-to-end encryption with Ed25519 keypairs (ENCRYPTED_ONLY=1)</td><td>TLS 1.3 + 256-bit AES transport encryption + RSA 2048-bit key exchange</td></tr><tr><td>Web Console &amp; SSO</td><td>CLI/config in OSS; Web UI, OIDC/LDAP &amp; audit logs in Server Pro</td><td>Cloud my.anydesk console (Standard/Advanced) or local appliance (Ultimate)</td></tr></tbody></table></figure>



<h2 id="licensing-and-cost-comparison" class="wp-block-heading">Costs &amp; Licensing: Open-Source Freedom vs Per-Seat Subscriptions</h2>



<p class="wp-block-paragraph">Cost is the number one reason IT teams evaluate <strong>RustDesk vs AnyDesk</strong>. AnyDesk offers a free edition strictly for personal, non-commercial use. As soon as AnyDesk&#8217;s heuristics detect frequent business sessions or commercial patterns, you must move to an annual paid subscription—Solo, Standard, Advanced, or Ultimate—which caps licensed users, concurrent connections, and managed unattended devices.</p>



<p class="wp-block-paragraph">By contrast, the <a href="https://rustdesk.com/docs/en/self-host/" rel="noopener">RustDesk Server OSS</a> edition is licensed under AGPLv3 and is completely free to self-host with zero artificial user caps or concurrent session limits. Your only recurring cost is a modest Linux VPS (typically 1 GB to 2 GB RAM) to run <code>hbbs</code> and <code>hbbr</code>.</p>



<p class="wp-block-paragraph">If your organization wants a graphical web admin console, centralized address books, OIDC/LDAP single sign-on, and audit logs, RustDesk also sells a commercial <strong>Server Pro</strong> license billed annually—still usually at a fraction of multi-seat proprietary remote-desktop subscriptions.</p>



<h2 id="privacy-encryption-and-data-sovereignty" class="wp-block-heading">Privacy, Encryption, and Data Sovereignty</h2>



<p class="wp-block-paragraph">Both platforms take transport security seriously, yet they offer very different levels of auditability and metadata control. According to <a href="https://anydesk.com/en/features/security" rel="noopener">AnyDesk&#8217;s security overview</a>, AnyDesk secures sessions using TLS 1.3, 256-bit AES transport encryption, and RSA 2048-bit asymmetric key exchange, alongside 2FA and access control lists. However, on all standard cloud plans, session brokering and relay fallback pass through AnyDesk&#8217;s proprietary servers, and the codebase cannot be audited independently.</p>



<p class="wp-block-paragraph">RustDesk pairs an auditable AGPLv3 open-source client and OSS server with Ed25519 keypair verification. When you self-host RustDesk with <code>ENCRYPTED_ONLY=1</code>, clients refuse unencrypted connections and every session handshake and fallback relay stays strictly inside your own VPS.</p>



<p class="wp-block-paragraph">If your team handles regulated client environments or strict internal compliance, keeping session routing off third-party SaaS clouds is a major privacy win.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture.webp" alt="Connection and privacy architecture diagram comparing self-hosted RustDesk against AnyDesk cloud and Ultimate on-premises" class="wp-image-6124" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="self-hosting-and-deployment-effort" class="wp-block-heading">Self-Hosting &amp; Deployment Effort Compared</h2>



<p class="wp-block-paragraph">With AnyDesk, zero setup is required if you use their cloud—install the client, sign in, and connect. However, if you specifically want to self-host AnyDesk on your own infrastructure, you must purchase their enterprise <strong>Ultimate</strong> tier to unlock the closed-source On-Premises appliance.</p>



<p class="wp-block-paragraph">RustDesk makes self-hosting accessible to everyone. Deploying RustDesk Server OSS on Ubuntu takes under ten minutes with Docker Compose and four UFW firewall rules (<code>21115/tcp</code>, <code>21116/tcp</code>, <code>21116/udp</code>, and <code>21117/tcp</code>). Follow our complete walkthrough on <a href="https://blog.aveshost.com/self-host-rustdesk-ubuntu-vps/">how to self-host RustDesk on an Ubuntu VPS</a> to deploy it cleanly.</p>



<p class="wp-block-paragraph">When self-hosting with Docker on a VPS, remember to audit published container ports (<a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">Docker and UFW port safety guide</a>) and track relay uptime using <a href="https://blog.aveshost.com/public-website-status-page-with-uptime-kuma/">a public or internal Uptime Kuma status page</a>.</p>



<h2 id="which-should-you-choose-rustdesk-or-anydesk" class="wp-block-heading">Which Should You Choose: RustDesk or AnyDesk?</h2>



<p class="wp-block-paragraph">Choosing between <strong>RustDesk vs AnyDesk</strong> depends on whether you prioritize zero-maintenance SaaS convenience or full infrastructure control and predictable costs:</p>



<p class="wp-block-paragraph">• <strong>Choose RustDesk if:</strong> You want free commercial-ready remote access without per-seat SaaS renewals, require open-source transparency, or want 100% control over your relay server on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting.</p>



<p class="wp-block-paragraph">• <strong>Choose AnyDesk if:</strong> You want an out-of-the-box managed cloud service with zero VPS maintenance, rely on polished enterprise features like MSI/GPO mass rollout out of the gate, and have budget for annual commercial seats.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix.webp" alt="Six-factor decision matrix comparing RustDesk and AnyDesk across cost, self-hosting, open source, cloud setup, enterprise console, and security" class="wp-image-6125" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-90a79e067c204acc9eecbf707d7d5e8e" class="rank-math-list-item">
<h3 class="rank-math-question ">Is RustDesk completely free for commercial use?</h3>
<div class="rank-math-answer ">

<p>Yes, RustDesk&#8217;s open-source client and Server OSS (AGPLv3) are free to self-host on your own VPS for both personal and commercial use with no user or session caps. If you want RustDesk&#8217;s proprietary Server Pro web management console and SSO features, those require an annual Pro license.</p>

</div>
</div>
<div id="faq-question-7a8f6dd136024bd79a411a5147a63c71" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I self-host AnyDesk on my own VPS?</h3>
<div class="rank-math-answer ">

<p>Not on AnyDesk&#8217;s Solo, Standard, or Advanced plans. Self-hosting AnyDesk requires the enterprise Ultimate tier, which unlocks their closed-source On-Premises appliance via custom sales pricing.</p>

</div>
</div>
<div id="faq-question-807b672b188545499f308d6250badb1f" class="rank-math-list-item">
<h3 class="rank-math-question ">Which is more private: RustDesk or AnyDesk?</h3>
<div class="rank-math-answer ">

<p>Self-hosted RustDesk offers stronger privacy and data sovereignty because the client and Server OSS code are open source (AGPLv3) and all ID brokering and relay traffic remain on your own VPS with Ed25519 key enforcement. AnyDesk encrypts traffic with TLS 1.3 and AES-256, but standard tiers are closed source and route through AnyDesk&#8217;s cloud.</p>

</div>
</div>
<div id="faq-question-b80d5de30cb8481b9e32df7558c171ac" class="rank-math-list-item">
<h3 class="rank-math-question ">Does RustDesk require a powerful VPS to self-host?</h3>
<div class="rank-math-answer ">

<p>No. RustDesk&#8217;s hbbs and hbbr containers are lightweight Rust binaries. A 1 vCPU, 1 GB RAM Ubuntu VPS comfortably supports dozens of concurrent remote desktop sessions.</p>

</div>
</div>
<div id="faq-question-48d5affe24864adbb0b778945f0e2c87" class="rank-math-list-item">
<h3 class="rank-math-question ">Why do teams switch from AnyDesk to RustDesk?</h3>
<div class="rank-math-answer ">

<p>Teams commonly switch to avoid recurring per-seat and concurrent-connection SaaS renewals, eliminate commercial-use detection prompts, and gain full ownership of their relay infrastructure on a private Linux VPS.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Self-Host RustDesk on an Ubuntu VPS for Remote Desktop Access</title>
		<link>https://blog.aveshost.com/self-host-rustdesk-ubuntu-vps/</link>
					<comments>https://blog.aveshost.com/self-host-rustdesk-ubuntu-vps/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sat, 21 Nov 2026 18:49:44 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[RustDesk]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6121</guid>

					<description><![CDATA[A complete step-by-step tutorial on how to self-host RustDesk on an Ubuntu VPS with Docker Compose—covering hbbs and hbbr setup, UFW firewall ports, Ed25519 key enforcement, and desktop/mobile client configuration.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>self-host RustDesk</strong> on your own Ubuntu VPS gives you fast, private remote desktop access without recurring TeamViewer or AnyDesk licensing limits. Instead of routing your support sessions through crowded public relay servers, your own server handles client discovery and encrypted relay traffic exclusively for your team.</p>



<p class="wp-block-paragraph">The open-source RustDesk server stack runs cleanly in two lightweight Docker containers—<code>hbbs</code> (the ID and rendezvous server) and <code>hbbr</code> (the relay server)—and easily runs alongside other services on a 1 GB or 2 GB RAM <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> plan from Aveshost.</p>



<p class="wp-block-paragraph">In this guide, you will deploy RustDesk with Docker Compose on Ubuntu, open the exact required UFW ports, lock down your server with <code>ENCRYPTED_ONLY=1</code> and an Ed25519 public key, and connect your desktop and mobile clients.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#how-self-hosted-rustdesk-architecture-works">How Self-Hosted RustDesk Works (hbbs vs hbbr)</a></div><div><a href="#prerequisites-and-required-firewall-ports">Prerequisites and Required Ubuntu UFW Firewall Ports</a></div><div><a href="#deploy-rustdesk-server-with-docker-compose">Step 1: Deploy RustDesk Server with Docker Compose</a></div><div><a href="#configure-rustdesk-desktop-and-mobile-clients">Step 2: Connect RustDesk Desktop and Mobile Clients</a></div><div><a href="#security-hardening-and-vps-maintenance">Step 3: Harden Your RustDesk VPS and Prevent Common Issues</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="how-self-hosted-rustdesk-architecture-works" class="wp-block-heading">How Self-Hosted RustDesk Works (hbbs vs hbbr)</h2>



<p class="wp-block-paragraph">When you <strong>self-host RustDesk</strong>, your Ubuntu VPS acts as the private broker between your controller device and your remote computers. According to the <a href="https://rustdesk.com/docs/en/self-host/" rel="noopener">official RustDesk self-hosting documentation</a>, the server splits into two complementary services:</p>



<p class="wp-block-paragraph">• <strong>hbbs (ID / Rendezvous Server):</strong> Registers client IDs, checks NAT types, and coordinates direct peer-to-peer (P2P) UDP hole-punching so two machines on friendly networks can talk directly.</p>



<p class="wp-block-paragraph">• <strong>hbbr (Relay Server):</strong> Steps in automatically whenever strict corporate firewalls or symmetric NAT block direct P2P connections, relaying end-to-end encrypted traffic over TCP port <code>21117</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-architecture.webp" alt="Architecture diagram showing how self-hosted RustDesk hbbs and hbbr containers work on an Ubuntu VPS" class="wp-image-6119" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="prerequisites-and-required-firewall-ports" class="wp-block-heading">Prerequisites and Required Ubuntu UFW Firewall Ports</h2>



<p class="wp-block-paragraph">Before installing the containers, prepare an Ubuntu 22.04 or 24.04 VPS with Docker Engine, Docker Compose, and a non-root sudo user. If you have not hardened your server yet, our <a href="https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/">Ubuntu VPS deployment guide</a> walks through initial SSH and firewall setup.</p>



<p class="wp-block-paragraph">RustDesk requires three core ports (including both TCP and UDP on port <code>21116</code>) and two optional WebSocket ports that you should keep closed unless you specifically serve the browser web client behind an HTTPS reverse proxy:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Port &amp; Protocol</th><th>Service</th><th>Purpose</th><th>Should You Open It?</th></tr></thead><tbody><tr><td>21115 / TCP</td><td>hbbs</td><td>NAT type test</td><td>Yes (required)</td></tr><tr><td>21116 / TCP &amp; UDP</td><td>hbbs</td><td>ID registration, heartbeat (UDP), and TCP hole-punching</td><td>Yes (required — both TCP and UDP)</td></tr><tr><td>21117 / TCP</td><td>hbbr</td><td>Encrypted relay fallback service</td><td>Yes (required)</td></tr><tr><td>21118–21119 / TCP</td><td>hbbs / hbbr</td><td>WebSocket support for browser Web Client</td><td>No (leave closed unless proxied via HTTPS)</td></tr></tbody></table></figure>



<pre class="wp-block-code"><code># Open required RustDesk ports in UFW on Ubuntu
sudo ufw allow 21115/tcp
sudo ufw allow 21116/tcp
sudo ufw allow 21116/udp
sudo ufw allow 21117/tcp
sudo ufw reload</code></pre>



<h2 id="deploy-rustdesk-server-with-docker-compose" class="wp-block-heading">Step 1: Deploy RustDesk Server with Docker Compose</h2>



<p class="wp-block-paragraph">Create a dedicated project directory such as <code>/opt/rustdesk</code> on your Ubuntu VPS and configure <code>docker-compose.yml</code>. Notice two critical production settings: passing <code>-r your-vps-ip-or-domain:21117</code> to <code>hbbs</code> so clients know your relay endpoint, and setting <code>ENCRYPTED_ONLY=1</code> on both containers.</p>



<p class="wp-block-paragraph">Enabling <code>ENCRYPTED_ONLY=1</code> tells <code>hbbs</code> and <code>hbbr</code> to reject any unencrypted client connection and enforce your Ed25519 keypair. Without this variable, anyone who discovers your VPS IP could attempt to use your relay unauthenticated.</p>



<p class="wp-block-paragraph">Once you run <code>docker compose up -d</code>, RustDesk automatically generates <code>id_ed25519</code> (private key) and <code>id_ed25519.pub</code> (public key) inside <code>./data</code>. Print your public key with <code>cat ./data/id_ed25519.pub</code> and keep it ready for your client apps.</p>



<pre class="wp-block-code"><code># /opt/rustdesk/docker-compose.yml
services:
  hbbs:
    container_name: hbbs
    image: rustdesk/rustdesk-server:latest
    command: hbbs -r your-vps-ip-or-domain:21117
    volumes:
      - ./data:/root
    environment:
      - ENCRYPTED_ONLY=1
    ports:
      - "21115:21115"
      - "21116:21116"
      - "21116:21116/udp"
    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:
    container_name: hbbr
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    volumes:
      - ./data:/root
    environment:
      - ENCRYPTED_ONLY=1
    ports:
      - "21117:21117"
    restart: unless-stopped</code></pre>



<pre class="wp-block-code"><code># Start RustDesk server containers and read your public key
mkdir -p /opt/rustdesk &amp;&amp; cd /opt/rustdesk
sudo docker compose up -d
cat ./data/id_ed25519.pub</code></pre>



<h2 id="configure-rustdesk-desktop-and-mobile-clients" class="wp-block-heading">Step 2: Connect RustDesk Desktop and Mobile Clients</h2>



<p class="wp-block-paragraph">With both containers running, configure every RustDesk client (Windows, macOS, Linux, Android, or iOS) to point at your private Ubuntu VPS instead of the public RustDesk servers:</p>



<p class="wp-block-paragraph">• <strong>1. Open Network Settings:</strong> Launch RustDesk on your device, click the three-dot menu next to your ID, and open <strong>Settings → Network</strong> (click <strong>Unlock network settings</strong> if prompted).</p>



<p class="wp-block-paragraph">• <strong>2. Enter ID and Relay Server:</strong> Set <strong>ID Server</strong> to your VPS public IP or domain name (for example, <code>remote.yourdomain.com</code>). You can also enter the same host in <strong>Relay Server</strong>.</p>



<p class="wp-block-paragraph">• <strong>3. Paste Your Public Key:</strong> Copy the exact string from <code>cat ./data/id_ed25519.pub</code> (with no extra spaces or trailing line breaks) into the <strong>Key</strong> field and click <strong>Apply</strong>.</p>



<p class="wp-block-paragraph">• <strong>4. Verify Status:</strong> Return to the main RustDesk window. The status indicator at the bottom should turn green and read <strong>Ready</strong>. Repeat this setup on any remote computer you want to access.</p>



<h2 id="security-hardening-and-vps-maintenance" class="wp-block-heading">Step 3: Harden Your RustDesk VPS and Prevent Common Issues</h2>



<p class="wp-block-paragraph">Because Docker modifies <code>iptables</code> directly when publishing container ports, always double-check how your firewall interacts with published ports—see our guide on <a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">stopping Docker containers from exposing unexpected ports with UFW</a>. Also monitor container logs and image layers periodically so old images do not fill your VPS disk (<a href="https://blog.aveshost.com/docker-disk-space-full/">how to find what is using Docker disk space</a>).</p>



<p class="wp-block-paragraph">Follow the six-step security checklist below to keep your self-hosted RustDesk server locked down on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-security-checklist.webp" alt="Six-step security checklist for self-hosting RustDesk on an Ubuntu VPS" class="wp-image-6120" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-security-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-security-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-security-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vps-security-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-ca7b2b9573f146dea9a99819bc635bc4" class="rank-math-list-item">
<h3 class="rank-math-question ">How much RAM and CPU does a self-hosted RustDesk server need?</h3>
<div class="rank-math-answer ">

<p>RustDesk&#8217;s hbbs and hbbr containers are written in Rust and use very little memory—typically under 100 MB of RAM at idle. A 1 vCPU, 1 GB RAM Ubuntu VPS comfortably handles dozens of concurrent remote desktop sessions, while 2 GB RAM gives extra headroom if you run other tools.</p>

</div>
</div>
<div id="faq-question-3f95ec91d1f648658e91ea393c9c6bd7" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does RustDesk say &#x27;Not ready. Please check your connection&#x27; after setup?</h3>
<div class="rank-math-answer ">

<p>This usually happens when port 21116/udp is blocked in UFW or your cloud security group, when the Key field in the client does not match ./data/id_ed25519.pub, or when ENCRYPTED_ONLY=1 rejects a client missing the public key.</p>

</div>
</div>
<div id="faq-question-5fcdb129f14a4ac1afa1cd62b4aae803" class="rank-math-list-item">
<h3 class="rank-math-question ">Do I need a domain name to self-host RustDesk on a VPS?</h3>
<div class="rank-math-answer ">

<p>No. You can enter your Ubuntu VPS public IPv4 address directly in the hbbs -r flag and in your RustDesk client ID Server field. However, pointing an A record such as remote.yourdomain.com to your VPS makes it easier to migrate servers later without reconfiguring every client.</p>

</div>
</div>
<div id="faq-question-b85c5a1e13414ac0abfa9a1fc8ea3e83" class="rank-math-list-item">
<h3 class="rank-math-question ">Should I open ports 21118 and 21119 in UFW?</h3>
<div class="rank-math-answer ">

<p>Only if you plan to host the RustDesk Web Client. Per the official RustDesk documentation, keep ports 21118 and 21119 closed unless you place them behind a properly configured HTTPS/WSS reverse proxy.</p>

</div>
</div>
<div id="faq-question-cdaf46918888454eaf1546178f2b9499" class="rank-math-list-item">
<h3 class="rank-math-question ">What happens if I lose my id_ed25519 key files?</h3>
<div class="rank-math-answer ">

<p>If ./data/id_ed25519 and id_ed25519.pub are deleted, RustDesk generates a brand-new keypair on container restart and existing clients will fail key verification until updated. Back up the ./data directory right after your first deployment.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/self-host-rustdesk-ubuntu-vps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cloud VPS Hosting Prices in Ghana: Initial &#038; Renewal Costs</title>
		<link>https://blog.aveshost.com/cloud-vps-hosting-prices-ghana/</link>
					<comments>https://blog.aveshost.com/cloud-vps-hosting-prices-ghana/#respond</comments>
		
		<dc:creator><![CDATA[Bridget Afful]]></dc:creator>
		<pubDate>Fri, 20 Nov 2026 23:01:19 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Business & Entrepreneurship]]></category>
		<category><![CDATA[Cloud VPS]]></category>
		<category><![CDATA[Ghana]]></category>
		<category><![CDATA[hosting renewal]]></category>
		<category><![CDATA[managed VPS]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6068</guid>

					<description><![CDATA[Compare Aveshost self-managed and fully managed Cloud VPS prices in cedis, including initial setup, renewal rates, management, control panels and running costs.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Cloud VPS hosting prices in Ghana start from GH₵100 per month for Aveshost self-managed Cloud VPS and GH₵330 per month for fully managed VPS.</strong> Our self-managed and fully managed plans renew at the same base subscription price. Your first payment can still differ from the monthly headline because of setup fees, your billing period and selected options.</p>



<p class="wp-block-paragraph">We compare the two services below, including a useful comparison at matching CPU, RAM and storage levels. The aim is to help you budget for the server and the work of running it. Prices are in Ghana cedis; confirm your chosen configuration and invoice before paying.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#current-vps-prices">1. Current Cloud VPS hosting prices in Ghana</a></div><div><a href="#compare-management">2. Compare self-managed and fully managed VPS fairly</a></div><div><a href="#initial-vps-payment">3. Calculate the initial payment, including setup</a></div><div><a href="#renewal-budget">4. Build a twelve-month and renewal budget</a></div><div><a href="#vps-extra-costs">5. Include licences, backups and application costs</a></div><div><a href="#server-location">6. Separate Ghana billing from server location</a></div><div><a href="#pay-and-renew">7. Plan payments, cancellation and renewals</a></div><div><a href="#choose-vps">8. Choose the right VPS using total operating cost</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="current-vps-prices" class="wp-block-heading">1. Current Cloud VPS hosting prices in Ghana</h2>



<p class="wp-block-paragraph">We offer the following <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed Cloud VPS</a> and <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS</a> plans in Ghana cedis. The table compares our base monthly server prices and renewal rates. Setup, optional services and applicable taxes are separate.</p>



<p class="wp-block-paragraph">These are different service ranges. The lowest-cost Cloud VPS 1 has one vCore, 2GB RAM and 20GB SSD storage. Managed Starter begins with four vCores, 8GB RAM and 100GB SSD storage, as well as the managed service. Comparing GH₵100 directly with GH₵330 therefore combines a resource difference and a management difference.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Service range</th><th>Plan</th><th>Base monthly price</th><th>Base monthly renewal at current rate</th></tr></thead><tbody><tr><td>Self-managed</td><td>Cloud VPS 1</td><td>GH₵100</td><td>GH₵100</td></tr><tr><td>Self-managed</td><td>Cloud VPS 2</td><td>GH₵170</td><td>GH₵170</td></tr><tr><td>Self-managed</td><td>Cloud VPS 3</td><td>GH₵300</td><td>GH₵300</td></tr><tr><td>Self-managed</td><td>Cloud VPS 4</td><td>GH₵420</td><td>GH₵420</td></tr><tr><td>Fully managed</td><td>Starter</td><td>GH₵330</td><td>GH₵330</td></tr><tr><td>Fully managed</td><td>Standard</td><td>GH₵550</td><td>GH₵550</td></tr><tr><td>Fully managed</td><td>Enhanced</td><td>GH₵770</td><td>GH₵770</td></tr><tr><td>Fully managed</td><td>Ultimate</td><td>GH₵1,200</td><td>GH₵1,200</td></tr></tbody></table></figure>



<h2 id="compare-management" class="wp-block-heading">2. Compare self-managed and fully managed VPS fairly</h2>



<p class="wp-block-paragraph">For a closer resource comparison, look at self-managed Cloud VPS 2 and fully managed Starter. Both include four virtual CPU cores, 8GB RAM, 100GB SSD storage and 32TB traffic or bandwidth allowance. Our base prices for these plans are GH₵170 and GH₵330 per month respectively, a difference of GH₵160 per month.</p>



<p class="wp-block-paragraph">With self-managed VPS, you or your administrator install and maintain the operating system, server software and application environment. Budget time for security updates, firewall rules, monitoring, backups and recovery. Root access gives you control; it also gives your team responsibility for what runs on the server.</p>



<p class="wp-block-paragraph">Fully managed VPS includes server management, security updates, monitoring and performance optimisation within the supported service scope. Confirm that your intended software stack is supported and who handles application code, plugin conflicts and specialist integrations. Server management does not automatically include developing or maintaining a custom application.</p>



<p class="wp-block-paragraph">Our fully managed VPS includes DirectAdmin at no additional charge, with cPanel available as a paid option. If you prefer a particular panel, compare the selected licence and its recurring cost before approving the order.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Comparison</th><th>Self-managed Cloud VPS 2</th><th>Fully managed Starter</th></tr></thead><tbody><tr><td>Base monthly server price</td><td>GH₵170</td><td>GH₵330</td></tr><tr><td>CPU / RAM</td><td>4 vCores / 8GB</td><td>4 vCores / 8GB</td></tr><tr><td>SSD storage / traffic</td><td>100GB / 32TB</td><td>100GB / 32TB</td></tr><tr><td>Server administration</td><td>You or your appointed administrator</td><td>Aveshost within the managed scope</td></tr><tr><td>Control-panel budget</td><td>Check your selected software and licence</td><td>DirectAdmin included; cPanel costs extra</td></tr><tr><td>Typical decision</td><td>Technical team wants direct control</td><td>Business wants help managing the server</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1672" height="941" src="https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost.webp" alt="Self-managed versus fully managed VPS comparison showing administration responsibility and the need to match CPU, RAM and storage" class="wp-image-6070" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost.webp 1672w, https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost-300x169.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost-1024x576.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost-768x432.webp 768w, https://blog.aveshost.com/wp-content/uploads/2026/11/self-managed-vs-managed-vps-cost-1536x864.webp 1536w" sizes="(max-width: 1672px) 100vw, 1672px" /></figure>



<h2 id="initial-vps-payment" class="wp-block-heading">3. Calculate the initial payment, including setup</h2>



<p class="wp-block-paragraph">The first payment is the selected billing term plus any setup charge and chosen options. A monthly headline is not enough to establish that amount. Check the order configuration after choosing the location, operating system, storage, backup and panel options.</p>



<p class="wp-block-paragraph">Our <a href="https://my.aveshost.com/store/self-managed-vps-hosting/cloud-vps-1?currency=1" rel="noopener">Cloud VPS 1</a> monthly Linux configuration costs GH₵100 with no setup fee. This example uses the United States location, Ubuntu and no preinstalled application. The total for a different configuration depends on its selected options.</p>



<p class="wp-block-paragraph">Our <a href="https://my.aveshost.com/store/fully-managed-vps-hosting/starter-1?currency=1" rel="noopener">Managed Starter</a> monthly subscription costs GH₵330 plus a GH₵70 one-off setup fee, making the initial configuration total GH₵400. This example includes Germany, 100GB SSD, Linux and DirectAdmin, without the daily-backup add-on. The base monthly renewal is GH₵330; the setup fee applies only to the initial payment.</p>



<p class="wp-block-paragraph">Our annual Starter subscription costs GH₵3,960 for that base configuration, with no setup fee. This is twelve months paid upfront, not a GH₵330 payment followed by eleven instalments. Check which fees and options apply to your chosen term, and confirm the final invoice including applicable taxes.</p>



<h2 id="renewal-budget" class="wp-block-heading">4. Build a twelve-month and renewal budget</h2>



<p class="wp-block-paragraph">At unchanged current rates, twelve months of Cloud VPS 1 base service cost GH₵1,200. Cloud VPS 2 comes to GH₵2,040, while managed Starter comes to GH₵3,960. These are server-only calculations: multiply the monthly rate by twelve, then add the relevant extras and initial charges.</p>



<p class="wp-block-paragraph">For example, twelve monthly Starter payments plus the one-off setup fee total GH₵4,030 in the first twelve months. A further twelve monthly payments at the same base rate total GH₵3,960, giving GH₵7,990 across twenty-four months before extras and taxes. Annual Starter billing instead totals GH₵3,960 upfront for its first year; billing-term choice changes the initial cash requirement.</p>



<p class="wp-block-paragraph">For the matching-resource comparison above, GH₵330 minus GH₵170 is GH₵160 per month, or GH₵1,920 across twelve months. Use that difference alongside your own administration cost and the included service scope. It is a comparison of base plans, not an itemised quotation for management alone.</p>



<p class="wp-block-paragraph">Our renewal rate matches the base subscription price for the current offer. Our billing terms allow price changes at renewal, so this is not a permanent price lock. Review the renewal invoice and any price-change notice. If you add storage, change location or switch licences, update the recurring budget rather than continuing to use the original headline rate.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1672" height="941" src="https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget.webp" alt="Cloud VPS budget separating the initial server and setup payment, recurring renewal costs, and full operating expenses" class="wp-image-6071" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget.webp 1672w, https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget-300x169.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget-1024x576.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget-768x432.webp 768w, https://blog.aveshost.com/wp-content/uploads/2026/11/vps-initial-renewal-budget-1536x864.webp 1536w" sizes="(max-width: 1672px) 100vw, 1672px" /></figure>



<h2 id="vps-extra-costs" class="wp-block-heading">5. Include licences, backups and application costs</h2>



<p class="wp-block-paragraph">Check whether your operating system or preferred commercial software needs a paid licence. A Linux base price should not be reused as a quotation for a Windows deployment. Likewise, a paid control panel, security tool or database product can introduce its own recurring charge. Choose only what your workload requires.</p>



<p class="wp-block-paragraph">Backup scope deserves its own check. Our fully managed service includes weekly backups; daily backups are available as an optional add-on. Confirm what is included for your server, the retention period, whether copies are off-server, and how restoration works. Keep independent application and database backups appropriate to how much data your business can afford to lose.</p>



<p class="wp-block-paragraph">Include any domain, transactional email, object storage, monitoring or paid API access your application requires. Those are not automatically covered by renting a VPS. Use our <a href="https://blog.aveshost.com/domain-name-prices-in-ghana/">domain pricing guide</a> when budgeting separately for registration and renewal.</p>



<p class="wp-block-paragraph">Finally, include setup, migration and ongoing developer work where needed. A server can be running correctly while a poorly configured application still fails. Agree on who deploys the application, manages secrets, tests restores and responds outside business hours, especially for a store or customer-facing portal.</p>



<h2 id="server-location" class="wp-block-heading">6. Separate Ghana billing from server location</h2>



<p class="wp-block-paragraph">This guide covers Cloud VPS services available to Ghanaian customers and priced in Ghana cedis. The two linked product ranges offer international locations. A GHS invoice or Ghana-based business does not establish that the selected virtual server is physically hosted in Ghana.</p>



<p class="wp-block-paragraph">Choose the region using your audience, application dependencies and any location requirements. For customers in Accra, test response times from Ghana. For an application used mainly in Europe, compare response times from its European audience. Check the actual region on the order before paying.</p>



<p class="wp-block-paragraph">Our managed Starter base configuration includes the Germany location. Some other regions carry an additional charge. Compare the configured total for the region you need. Also check storage and traffic allowances, upgrade options and any relevant extra-resource charges; do not read a Cloud VPS plan as unlimited capacity.</p>



<p class="wp-block-paragraph">If your requirement is specifically a server located in Ghana, request that product and its own price and specifications. The Ghana VPS or VDS ranges are separate from the two international Cloud VPS offers compared here.</p>



<h2 id="pay-and-renew" class="wp-block-heading">7. Plan payments, cancellation and renewals</h2>



<p class="wp-block-paragraph">Keep both the product currency and invoice currency set to GHS when comparing cedi totals. For payment instructions, use the authenticated client area and our <a href="https://my.aveshost.com/knowledgebase/2/How-to-pay-with-mobile-money.html" rel="noopener">Mobile Money guide</a>. Confirm the invoice status after payment; a first MoMo payment does not establish automatic deductions for every renewal.</p>



<p class="wp-block-paragraph">Our <a href="https://www.aveshost.com/legal/terms-of-service" rel="noopener">billing terms</a> explain renewal, manual and automatic payment routes, applicable taxes and cancellation. VPS is excluded from the shared-hosting money-back guarantee. Read the current conditions before making a longer prepayment, and cancel through the supported process before the next billing cycle is invoiced.</p>



<p class="wp-block-paragraph">Do not simply abandon an unpaid VPS. Non-payment can lead to suspension or termination and data loss. Keep renewal reminders, a reachable billing contact and independent backups. Before cancelling or moving, export your files and databases, confirm the replacement works, and agree when the old service should end.</p>



<h2 id="choose-vps" class="wp-block-heading">8. Choose the right VPS using total operating cost</h2>



<p class="wp-block-paragraph">Choose self-managed Cloud VPS when you have the skills or administrator support to configure, secure and maintain the server. Choose fully managed VPS when the supported management service is valuable to your business. In either case, size the plan for your application. Code efficiency and the speed of external services also affect performance.</p>



<p class="wp-block-paragraph">For a small brochure website, compare our <a href="https://blog.aveshost.com/web-hosting-prices-ghana/">Standard and High Performance shared-hosting prices</a> before taking on VPS administration. Custom runtimes, stronger isolation or growing application requirements can justify moving to a VPS.</p>



<p class="wp-block-paragraph">Send <a href="https://www.aveshost.com/support" rel="noopener">Aveshost support</a> your application type, expected users, storage needs, region preference, operating system and management requirements. Request the total due now, recurring total, setup fee, licence costs and backup scope in writing. A clear initial quote and renewal budget make the choice easier to maintain as your business grows.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-163ee2c9098c424a922a7c4a1382c610" class="rank-math-list-item">
<h3 class="rank-math-question ">How much does Cloud VPS hosting cost in Ghana?</h3>
<div class="rank-math-answer ">

<p>Our self-managed Cloud VPS starts at GH₵100 per month and fully managed VPS starts at GH₵330 per month. Confirm the resources, setup fee, location, options and taxes for your selected configuration.</p>

</div>
</div>
<div id="faq-question-36465c1db7f34a98ba619d9481ad293a" class="rank-math-list-item">
<h3 class="rank-math-question ">Does the Managed Starter monthly price include the first setup charge?</h3>
<div class="rank-math-answer ">

<p>Our monthly Starter subscription costs GH₵330 plus a GH₵70 one-off setup fee, making an initial configuration total of GH₵400. Annual Starter billing costs GH₵3,960 upfront with no setup fee for the base configuration described in this guide. Confirm your actual order and invoice.</p>

</div>
</div>
<div id="faq-question-c3dbb8daf9864ad0823ea80758fe3f12" class="rank-math-list-item">
<h3 class="rank-math-question ">Is cPanel included with fully managed VPS?</h3>
<div class="rank-math-answer ">

<p>Our fully managed VPS includes DirectAdmin at no extra charge. cPanel is a paid option. Select the panel you need and confirm its licence allowance and recurring price; do not treat both panels as free alternatives.</p>

</div>
</div>
<div id="faq-question-7c189c713712403ea7693487fc7ee514" class="rank-math-list-item">
<h3 class="rank-math-question ">Will the Cloud VPS renewal rate increase after the first term?</h3>
<div class="rank-math-answer ">

<p>Our self-managed and fully managed VPS plans renew at the same base subscription price. The applicable terms allow renewal-price changes, and selected add-ons can change your recurring total. Check your subscription, current invoice and any price notice.</p>

</div>
</div>
<div id="faq-question-1b8239686e4d4e0bbf2ff6194ec099db" class="rank-math-list-item">
<h3 class="rank-math-question ">Are these Cloud VPS servers physically located in Ghana?</h3>
<div class="rank-math-answer ">

<p>The two products compared here offer international server locations and cedi billing for Ghanaian customers. Choose and verify the actual region in the order. Request a Ghana-location product separately if local physical hosting is required.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/cloud-vps-hosting-prices-ghana/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Web Hosting Prices in Ghana: Initial &#038; Renewal Costs</title>
		<link>https://blog.aveshost.com/web-hosting-prices-ghana/</link>
					<comments>https://blog.aveshost.com/web-hosting-prices-ghana/#respond</comments>
		
		<dc:creator><![CDATA[Bridget Afful]]></dc:creator>
		<pubDate>Fri, 20 Nov 2026 22:15:28 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Business & Entrepreneurship]]></category>
		<category><![CDATA[Ghana]]></category>
		<category><![CDATA[hosting prices]]></category>
		<category><![CDATA[hosting renewal]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[website costs]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6059</guid>

					<description><![CDATA[Understand what you pay upfront and at renewal for web hosting in Ghana, including billing periods, domain renewals, optional extras and a two-year cedi budget.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Web hosting prices in Ghana are easier to compare when you separate the monthly subscription rate, the amount due upfront, and the next renewal bill.</strong> Our Standard shared hosting starts from GH₵9 per month, while High Performance shared hosting starts from GH₵30 per month. Our Standard and High Performance plans renew at the same base hosting price. Your full website budget can also include a domain, paid software and other services.</p>



<p class="wp-block-paragraph">This guide compares Aveshost’s Standard and High Performance shared-hosting options to help you plan your website budget. We explain how to read the billing period, calculate initial and renewal costs in cedis, and choose a plan that fits your website without overlooking the second year. Always confirm your selected term and final invoice before paying.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#current-hosting-prices">1. Current web hosting prices in Ghana: Aveshost examples</a></div><div><a href="#billing-period">2. A monthly rate is not always a monthly payment</a></div><div><a href="#initial-costs">3. What belongs in your initial website budget?</a></div><div><a href="#renewal-costs">4. Calculate hosting and domain renewals separately</a></div><div><a href="#two-year-budget">5. Work out a two-year budget in Ghana cedis</a></div><div><a href="#extras-and-scope">6. Check the extras that can change the total</a></div><div><a href="#payment-and-renewal">7. Plan cedi payments and renewal reminders</a></div><div><a href="#choose-a-plan">8. Choose a plan using the full renewal budget</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="current-hosting-prices" class="wp-block-heading">1. Current web hosting prices in Ghana: Aveshost examples</h2>



<p class="wp-block-paragraph">We offer two shared-hosting ranges: <a href="https://www.aveshost.com/pricing" rel="noopener">Standard and High Performance</a>. The table compares their starting plans, so you can see what the difference from GH₵9 to GH₵30 per month buys. The specifications apply to these entry plans, not every plan in each range.</p>



<p class="wp-block-paragraph">The annual figures are calculations of twelve months at the displayed monthly rate, excluding domains, optional services, discounts and applicable taxes. Our Standard and High Performance plans renew at the same base hosting price, so the renewal figures use those same rates. These are budgeting calculations, not complete checkout quotations or a permanent price guarantee; confirm your selected billing period and current renewal terms.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Starting-plan comparison</th><th>Standard: Deluxe</th><th>High Performance: Basic</th></tr></thead><tbody><tr><td>Displayed monthly rate</td><td>GH₵9</td><td>GH₵30</td></tr><tr><td>12-month hosting calculation</td><td>GH₵108</td><td>GH₵360</td></tr><tr><td>12-month renewal budget at current rate</td><td>GH₵108</td><td>GH₵360</td></tr><tr><td>Websites</td><td>1</td><td>1</td></tr><tr><td>Storage</td><td>1GB NVMe SSD</td><td>15GB SSD</td></tr><tr><td>RAM</td><td>1GB</td><td>4GB</td></tr><tr><td>Email accounts</td><td>5</td><td>20</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">The Standard range also includes Professional at GH₵16, Enterprise at GH₵32 and Ultimate at GH₵62 per month. The High Performance range also includes Professional at GH₵50, Premium at GH₵80 and Elite at GH₵120 per month. Specify the range when comparing quotes: Standard Professional and High Performance Professional are different plans.</p>



<p class="wp-block-paragraph">For a small brochure website, compare Standard’s storage, email and application allowances with your requirements. Consider High Performance when you need more resource headroom for a growing site or application. Compare the actual workload and plan limits; the range name alone does not guarantee a particular page speed or visitor capacity.</p>



<h2 id="billing-period" class="wp-block-heading">2. A monthly rate is not always a monthly payment</h2>



<p class="wp-block-paragraph">A price ending in “per month” can be a way of comparing plans billed for several months together. Read the billing-cycle selector and the configuration total, not just the largest number on the product page. Quarterly means three months, annually twelve, biennially twenty-four, and triennially thirty-six.</p>



<p class="wp-block-paragraph">Our <a href="https://my.aveshost.com/store/cloud-hosting/deluxe?currency=1" rel="noopener">Deluxe plan</a> offers quarterly, annual, two-year and three-year billing. At GH₵9 per month, the hosting component is GH₵27 for three months, GH₵108 for one year, or GH₵324 for three years. These hosting totals exclude other invoice items.</p>



<p class="wp-block-paragraph">Do not multiply a rounded monthly equivalent and expect it always to match the invoice exactly. Longer-term pricing can differ, and rounding can affect the displayed equivalent. Use the actual term total when comparing offers, then divide it by the number of months for your own budget.</p>



<p class="wp-block-paragraph">Compare the lower cash commitment of a shorter term with the convenience of paying ahead for a stable business website. Check cancellation and refund conditions before committing. Compare the same duration and service scope across quotes so that a three-year headline is not mistaken for a one-month purchase.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1672" height="941" src="https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods.webp" alt="Quarterly, annual and triennial hosting billing periods showing three, twelve and thirty-six months paid together" class="wp-image-6062" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods.webp 1672w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods-300x169.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods-1024x576.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods-768x432.webp 768w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-billing-periods-1536x864.webp 1536w" sizes="(max-width: 1672px) 100vw, 1672px" /></figure>



<h2 id="initial-costs" class="wp-block-heading">3. What belongs in your initial website budget?</h2>



<p class="wp-block-paragraph">Your initial cost is the amount needed to launch the website, not simply the hosting subscription. Start with the selected hosting term, then add domain registration if it is not included, website design or setup, paid licences, specialist email and any other selected services. Identify one-off charges separately from recurring ones.</p>



<p class="wp-block-paragraph">Hosting provides the environment where the website runs. It does not automatically include writing pages, designing a logo, entering products, configuring a payment gateway or maintaining custom code. If a developer gives you one combined quote, request an itemised version. Our <a href="https://blog.aveshost.com/website-design-vs-web-hosting-ghana/">website design versus web hosting guide</a> explains this distinction.</p>



<p class="wp-block-paragraph">Also review what is already included before buying extras. Our shared-hosting plans include Auto SSL, email accounts and weekly website backups, with account and resource limits varying by plan. Separate mailbox platforms, premium certificates, daily backup services and ongoing website management have their own pricing and service conditions.</p>



<p class="wp-block-paragraph">A small Accra consultancy with a few pages and enquiry forms has different needs from a shop uploading hundreds of product images. Ask about website count, storage, database and email use, traffic, and software requirements before choosing solely by the lowest upfront amount.</p>



<h2 id="renewal-costs" class="wp-block-heading">4. Calculate hosting and domain renewals separately</h2>



<p class="wp-block-paragraph">Hosting and domain registration are different subscriptions. They can have different billing periods and expiry dates, even when bought in one order. Renewing the hosting does not necessarily renew the domain, and paying for several years of hosting does not automatically purchase the same number of domain years.</p>



<p class="wp-block-paragraph">A free-domain offer has eligibility conditions. For example, our Deluxe free-domain offer covers .online and .top registrations with qualifying biennial or triennial orders. That does not make a .com registration free on every plan. Review the eligible extension, term, registration period and later renewal charge in the actual order.</p>



<p class="wp-block-paragraph">Our <a href="https://my.aveshost.com/domain/pricing" rel="noopener">standard .com domain price</a> is GH₵200 for one-year registration and GH₵200 for one-year renewal. Our .com.gh price is GH₵800 for each of those one-year actions. Confirm the exact name and checkout total; premium names and other extensions can follow different pricing.</p>



<p class="wp-block-paragraph">Our <a href="https://blog.aveshost.com/domain-name-prices-in-ghana/">domain price guide</a> explains registration, renewal and transfer as separate actions. Keep the domain in an account your business controls, and record its renewal date alongside the hosting date.</p>



<h2 id="two-year-budget" class="wp-block-heading">5. Work out a two-year budget in Ghana cedis</h2>



<p class="wp-block-paragraph">For example, take Standard Professional hosting billed annually at our GH₵16 monthly rate, plus a separately registered standard .com domain. The hosting calculation is GH₵16 × 12 = GH₵192 per year. Adding GH₵200 for the domain gives a base infrastructure budget of GH₵392 for the first year.</p>



<p class="wp-block-paragraph">At the same current rates, the second year&#8217;s hosting and domain renewal also total GH₵392. The two-year base is GH₵784, or about GH₵32.67 per month across twenty-four months. That monthly figure is a budgeting equivalent; it is not a monthly payment plan.</p>



<p class="wp-block-paragraph">This example excludes website design, paid plugins, specialist email, optional services, discounts, applicable taxes and payment charges. It also keeps both current rates unchanged for the calculation. Replace each line with your order&#8217;s actual figures, and update the renewal budget if a rate changes.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Example component</th><th>First year</th><th>Second year at the same rates</th></tr></thead><tbody><tr><td>Standard Professional hosting, 12 months</td><td>GH₵192</td><td>GH₵192</td></tr><tr><td>Separate standard .com domain, 1 year</td><td>GH₵200</td><td>GH₵200</td></tr><tr><td>Base subtotal before excluded costs</td><td>GH₵392</td><td>GH₵392</td></tr><tr><td>Two-year base subtotal</td><td>GH₵784 across both years</td><td>About GH₵32.67 per month equivalent</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1672" height="941" src="https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs.webp" alt="Web hosting prices in Ghana budget breakdown comparing initial hosting, domain and setup costs with recurring renewal costs" class="wp-image-6061" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs.webp 1672w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs-300x169.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs-1024x576.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs-768x432.webp 768w, https://blog.aveshost.com/wp-content/uploads/2026/11/hosting-initial-renewal-costs-1536x864.webp 1536w" sizes="(max-width: 1672px) 100vw, 1672px" /></figure>



<h2 id="extras-and-scope" class="wp-block-heading">6. Check the extras that can change the total</h2>



<p class="wp-block-paragraph">Email is a useful example. A hosting plan&#8217;s included domain mailboxes are not automatically the same product as Microsoft 365, Google Workspace or another specialist business-email service. Compare storage, users, collaboration features, support and the renewal price of the service you actually need.</p>



<p class="wp-block-paragraph">For backups, check frequency, retention, off-site copies and how restoration works. Weekly hosting backups may not meet a busy shop&#8217;s recovery needs between orders. Budget for an appropriate backup arrangement and keep an independent copy; do not treat the word “backup” as a promise that every lost change can be recovered.</p>



<p class="wp-block-paragraph">Managed hosting and website maintenance also need a defined scope. Ask who handles software updates, compatibility fixes, malware cleanup, content changes and recovery. A self-managed VPS can require system administration and software licences in addition to the server bill. More technical control does not automatically mean a lower total business cost.</p>



<p class="wp-block-paragraph">Before approving a migration, establish which website files, databases and mailboxes can be moved, whether DNS changes are included, and whether a proprietary website builder requires a rebuild. Ask for the project cost and recurring cost separately. Ghanaian billing, local support and the physical server region are distinct details; confirm each one that matters to your business.</p>



<h2 id="payment-and-renewal" class="wp-block-heading">7. Plan cedi payments and renewal reminders</h2>



<p class="wp-block-paragraph">Select GHS when checking prices and confirm that the invoice is also in cedis. If another service bills in a foreign currency, check how your bank or payment provider converts and charges the payment. A cedi figure copied from an old exchange rate is not a dependable renewal budget. See our <a href="https://blog.aveshost.com/paying-for-hosting-in-ghana-cedis/">guide to paying for hosting in Ghana cedis</a> for the comparison.</p>



<p class="wp-block-paragraph">Aveshost&#8217;s <a href="https://my.aveshost.com/knowledgebase/2/How-to-pay-with-mobile-money.html" rel="noopener">Mobile Money payment instructions</a> explain the supported payment route. Use the invoice in your client area, confirm the amount and transaction status, and keep the receipt. A successful first payment does not by itself authorise automatic recurring MoMo deductions.</p>



<p class="wp-block-paragraph">Our <a href="https://www.aveshost.com/legal/terms-of-service" rel="noopener">billing terms</a> distinguish subscription renewal from payment collection. Manual payment routes require you to pay each invoice, while supported automatic methods or sufficient account credit work differently. Our fees exclude applicable taxes. Review the final invoice and current cancellation conditions rather than waiting for an email reminder alone.</p>



<p class="wp-block-paragraph">Keep the billing contact reachable, add reminders before the hosting and domain due dates, and set aside the expected renewal amount during the year. Log into the client area directly when verifying an invoice. Do not send money to an unfamiliar account solely because a message says your website is expiring.</p>



<h2 id="choose-a-plan" class="wp-block-heading">8. Choose a plan using the full renewal budget</h2>



<p class="wp-block-paragraph">For a simple business website, start by checking whether a shared plan has enough storage, email capacity and application support. For a store, assess the catalogue, checkout workload, backups and support needs. For a custom application, establish runtime requirements and who will manage the server before requesting a quote.</p>



<p class="wp-block-paragraph">Ask for five things in writing: the exact plan and billing period, total due now, recurring hosting amount, domain registration and renewal amounts, and any optional or excluded charges. Add the second year&#8217;s total before deciding. A useful quote makes the next bill understandable as well as the first one.</p>



<p class="wp-block-paragraph">Explore our <a href="https://www.aveshost.com/web-hosting" rel="noopener">web hosting plans</a>, then contact <a href="https://www.aveshost.com/support" rel="noopener">Aveshost support</a> with your website type, expected storage, number of mailboxes and preferred payment term. We can help you compare the appropriate service scope. Choose a plan your business can maintain at renewal, with room for the resources it actually uses.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-4e95610b7a054b3aab11a5164b3b03c5" class="rank-math-list-item">
<h3 class="rank-math-question ">How much does web hosting cost in Ghana?</h3>
<div class="rank-math-answer ">

<p>The cost depends on the range, plan and service scope. Standard Aveshost shared hosting starts from GH₵9 per month, while High Performance shared hosting starts from GH₵30 per month. Compare the selected term total, renewal amount, domain and extras before treating a headline price as your complete budget.</p>

</div>
</div>
<div id="faq-question-468017e690d444a29cfd9d38ddb5d079" class="rank-math-list-item">
<h3 class="rank-math-question ">Will my hosting price automatically increase after the first year?</h3>
<div class="rank-math-answer ">

<p>An increase is not automatic for every offer. Our Standard and High Performance shared-hosting plans renew at the same base hosting price. Check your subscription and renewal invoice, because pricing can change under the applicable terms and introductory discounts have their own conditions.</p>

</div>
</div>
<div id="faq-question-a29a8fbdc1e94545a2f739832fec923a" class="rank-math-list-item">
<h3 class="rank-math-question ">Does paying annually mean the domain is included?</h3>
<div class="rank-math-answer ">

<p>Only if the selected plan, domain extension and billing period qualify for its domain offer. Read the order&#8217;s free-domain details and confirm how long registration is covered. Later domain renewals need their own budget.</p>

</div>
</div>
<div id="faq-question-e8cf7af78d2848cc9285926f4f9c9e79" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I pay for hosting with Mobile Money?</h3>
<div class="rank-math-answer ">

<p>Aveshost supports a Mobile Money payment route through its invoice process. Follow the current client-area instructions and verify payment against the invoice. Paying once does not establish automatic recurring deductions for future renewals.</p>

</div>
</div>
<div id="faq-question-e5c6890cc55e459c942ca702be1fabca" class="rank-math-list-item">
<h3 class="rank-math-question ">Is website design included in a hosting price?</h3>
<div class="rank-math-answer ">

<p>Not automatically. Hosting, domain registration, website design and ongoing maintenance are different services. A bundled proposal should identify what is included, which work is one-off, and which items renew.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/web-hosting-prices-ghana/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SMTP vs Email API: Which Should Your Website Use for Transactional Emails?</title>
		<link>https://blog.aveshost.com/smtp-vs-email-api-transactional-emails/</link>
					<comments>https://blog.aveshost.com/smtp-vs-email-api-transactional-emails/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 22:42:56 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Email API]]></category>
		<category><![CDATA[email deliverability]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[Transactional Email]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6049</guid>

					<description><![CDATA[A practical engineering comparison of SMTP vs Email API for website transactional emails—covering protocol latency, ports 587 and 465 vs HTTPS port 443, cloud VPS firewall blocks, bounce webhooks, and WordPress or SaaS integration.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Choosing between <strong>SMTP vs Email API</strong> determines how fast your password resets arrive, whether your order confirmations survive cloud firewall restrictions, and how easily your application detects bounced messages. Both protocols can deliver transactional emails reliably through providers like Postmark, SendGrid, Mailgun, Amazon SES, or Resend—yet they work very differently under the hood.</p>



<p class="wp-block-paragraph">Traditional SMTP connects over dedicated mail submission ports with a stateful multi-step handshake, making it universal across WordPress plugins, CRMs, and legacy software. An Email API sends a single stateless HTTPS <code>POST</code> request over port <code>443</code>, returning immediate JSON confirmation and pushing real-time delivery webhooks back to your server.</p>



<p class="wp-block-paragraph">Whether you run WordPress on <a href="https://www.aveshost.com/web-hosting" rel="noopener">shared web hosting</a> or deploy custom web applications on <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide compares <strong>SMTP vs Email API</strong> across speed, ports, deliverability, webhooks, and real-world use cases.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#smtp-vs-email-api-at-a-glance">SMTP vs Email API at a Glance</a></div><div><a href="#how-smtp-and-email-apis-work-under-the-hood">How SMTP and Email APIs Work Under the Hood</a></div><div><a href="#ports-587-465-25-vs-https-port-443-on-cloud-vps">Ports 25, 587, and 465 vs Port 443 on a Cloud VPS</a></div><div><a href="#deliverability-authentication-and-real-time-webhooks">Deliverability, DNS Authentication, and Real-Time Webhooks</a></div><div><a href="#when-to-use-smtp-vs-email-api">When to Use SMTP vs an Email API (WordPress, WooCommerce &amp; SaaS)</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="smtp-vs-email-api-at-a-glance" class="wp-block-heading">SMTP vs Email API at a Glance</h2>



<p class="wp-block-paragraph">At a high level, <strong>SMTP vs Email API</strong> is a choice between a universal mail-transport standard and a modern web-native REST interface. Both ultimately hand your message to an email provider&#8217;s outbound MTA for delivery, but the leg between your website and that provider behaves very differently.</p>



<p class="wp-block-paragraph">Here is how both options compare across transport protocol, network ports, latency, error handling, and bounce visibility:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Criterion</th><th>SMTP Relay (Ports 587 / 465)</th><th>Email API (HTTPS Port 443)</th></tr></thead><tbody><tr><td>Transport Protocol</td><td>Stateful TCP mail session (EHLO, AUTH, DATA)</td><td>Stateless HTTPS REST POST with JSON payload</td></tr><tr><td>Network Port</td><td>Port 587 (STARTTLS) or Port 465 (Implicit TLS)</td><td>Port 443 (standard outbound HTTPS)</td></tr><tr><td>Cloud VPS Firewall Risk</td><td>Port 25 blocked; 587/465 sometimes throttled</td><td>Never blocked on standard web servers</td></tr><tr><td>Connection Speed</td><td>Multiple round-trips per unpooled message</td><td>Single HTTP round-trip (~80 ms to 220 ms)</td></tr><tr><td>Error Feedback</td><td>Synchronous SMTP reply codes + delayed DSN emails</td><td>Structured JSON status codes + real-time webhooks</td></tr><tr><td>Best Fit</td><td>WordPress SMTP plugins, CMS tools, legacy CRMs</td><td>SaaS apps, Next.js, Node/Python backends, serverless</td></tr></tbody></table></figure>



<h2 id="how-smtp-and-email-apis-work-under-the-hood" class="wp-block-heading">How SMTP and Email APIs Work Under the Hood</h2>



<p class="wp-block-paragraph">Understanding the network dialogue explains why <strong>SMTP vs Email API</strong> feels noticeably different in production. When your application sends an email over SMTP, it opens a TCP socket and conducts a sequential conversation: greeting the server (<code>EHLO</code>), upgrading encryption (<code>STARTTLS</code> on port <code>587</code>), authenticating (<code>AUTH LOGIN</code>), declaring sender and recipient (<code>MAIL FROM</code>, <code>RCPT TO</code>), transmitting headers and body (<code>DATA</code>), and closing the session.</p>



<p class="wp-block-paragraph">By contrast, an Email API turns email delivery into a single stateless HTTPS <code>POST</code> request to an endpoint such as <code>/emails</code> or <code>/v3/mail/send</code>. Your server authenticates with a Bearer API key, sends JSON containing the recipient, subject, HTML body, and metadata, and immediately receives a structured JSON response with a message ID.</p>



<p class="wp-block-paragraph">Because there is no multi-step socket dialogue, Email APIs are much faster for serverless functions, edge runtimes, and high-concurrency web apps that cannot hold persistent SMTP connection pools open.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-architecture.webp" alt="Technical diagram comparing SMTP Relay ports 587 and 465 against Email API HTTPS port 443 workflow" class="wp-image-6047" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="ports-587-465-25-vs-https-port-443-on-cloud-vps" class="wp-block-heading">Ports 25, 587, and 465 vs Port 443 on a Cloud VPS</h2>



<p class="wp-block-paragraph">One of the most common reasons developers switch from SMTP to an Email API is outbound firewall blocking on cloud servers. Nearly every major cloud VPS provider blocks or restricts outbound <strong>Port 25</strong> by default to stop compromised servers from blasting spam.</p>



<p class="wp-block-paragraph">• <strong>Port 25 (Server-to-Server Relay):</strong> Intended for MTA-to-MTA delivery. Avoid using Port 25 directly from web application code—connections will frequently time out on cloud VPS instances.</p>



<p class="wp-block-paragraph">• <strong>Port 587 (STARTTLS) &amp; Port 465 (Implicit TLS):</strong> Defined by <a href="https://datatracker.ietf.org/doc/html/rfc8314" rel="noopener">IETF RFC 8314</a> for authenticated message submission. Port <code>587</code> starts unencrypted and upgrades via <code>STARTTLS</code>, while Port <code>465</code> encrypts from the first byte with Implicit TLS. Most hosts allow <code>587</code> and <code>465</code>, though strict networks still throttle outbound mail ports.</p>



<p class="wp-block-paragraph">• <strong>Port 443 (HTTPS Email API):</strong> Standard encrypted web traffic. Because every web server and VPS allows outbound HTTPS requests on port <code>443</code>, an Email API bypasses SMTP port blocks completely.</p>



<pre class="wp-block-code"><code># Test whether your VPS allows outbound SMTP ports vs HTTPS (Port 443)
nc -zv -w 5 smtp.example.com 25
nc -zv -w 5 smtp.example.com 587
nc -zv -w 5 smtp.example.com 465
nc -zv -w 5 api.example.com 443</code></pre>



<h2 id="deliverability-authentication-and-real-time-webhooks" class="wp-block-heading">Deliverability, DNS Authentication, and Real-Time Webhooks</h2>



<p class="wp-block-paragraph">A common myth in the <strong>SMTP vs Email API</strong> debate is that switching to an API automatically fixes spam-folder placement. In reality, inbox providers like Gmail and Microsoft 365 evaluate the exact same signals either way: your domain&#8217;s <strong>SPF</strong>, <strong>DKIM</strong>, and <strong>DMARC</strong> DNS records, plus your sender IP and domain reputation.</p>



<p class="wp-block-paragraph">If you manage DNS in DirectAdmin, make sure your domain publishes valid authentication records first—our walkthrough on <a href="https://blog.aveshost.com/spf-dkim-dmarc-in-directadmin/">configuring SPF, DKIM, and DMARC in DirectAdmin</a> covers every record step by step.</p>



<p class="wp-block-paragraph">Where Email APIs pull far ahead is <strong>post-send visibility</strong>. Traditional SMTP only tells you whether the relay accepted your message, forcing you to parse delayed Delivery Status Notification (DSN) bounce emails later. An Email API fires real-time JSON webhooks to your backend whenever an email is <code>delivered</code>, <code>bounced</code>, or marked as <code>spam</code>, letting your app automatically suppress invalid addresses before they hurt your domain reputation.</p>



<h2 id="when-to-use-smtp-vs-email-api" class="wp-block-heading">When to Use SMTP vs an Email API (WordPress, WooCommerce &amp; SaaS)</h2>



<p class="wp-block-paragraph">You do not need to over-engineer your mail setup if your stack already fits one model cleanly. Use the practical decision breakdown below to pick the right transport for your website:</p>



<p class="wp-block-paragraph">• <strong>Choose SMTP (Port 587 or 465) When:</strong> You use off-the-shelf software, legacy accounting/CRM tools, or a WordPress site where you simply want to drop credentials into an SMTP plugin. For example, if your store has missing order emails, check our guide on <a href="https://blog.aveshost.com/woocommerce-emails-not-sending/">fixing WooCommerce emails not sending</a> or <a href="https://blog.aveshost.com/use-gmail-smtp-server/">using the Gmail SMTP server</a> for low-volume contact forms.</p>



<p class="wp-block-paragraph">• <strong>Choose an Email API (Port 443) When:</strong> You are building a custom SaaS application, Next.js or <a href="https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/">FastAPI backend on a VPS</a>, serverless API routes, or high-volume transactional notifications. Even on WordPress, modern mailer plugins let you connect providers like Postmark, SendGrid, Mailgun, Amazon SES, or Resend over their HTTPS API instead of SMTP—giving you faster checkouts and full delivery logs.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-decision-matrix.webp" alt="Six-card decision matrix comparing SMTP and Email API across speed, VPS firewalls, bounce webhooks, WordPress, SaaS, and DNS authentication" class="wp-image-6048" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-decision-matrix.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-decision-matrix-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-decision-matrix-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/smtp-vs-email-api-decision-matrix-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Example: Sending a transactional email via HTTPS Email API (Port 443)
curl -X POST https://api.example.com/emails \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "no-reply@yourdomain.com",
    "to": &#91;"customer@example.com"],
    "subject": "Reset your password",
    "html": "&lt;p&gt;Click the link below to reset your password.&lt;/p&gt;"
  }'</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-fd8d68c072a1439894c2a6ae548a7775" class="rank-math-list-item">
<h3 class="rank-math-question ">Is an Email API more reliable than SMTP for transactional emails?</h3>
<div class="rank-math-answer ">

<p>An Email API is usually more reliable in cloud and serverless environments because it sends over HTTPS port 443, avoids outbound SMTP port blocks, returns clear JSON error codes, and provides real-time delivery and bounce webhooks. Both SMTP and Email APIs still depend on proper SPF, DKIM, and DMARC records for inbox placement.</p>

</div>
</div>
<div id="faq-question-608ead33443a4dd583052f4b022d2186" class="rank-math-list-item">
<h3 class="rank-math-question ">Why is an Email API faster than SMTP?</h3>
<div class="rank-math-answer ">

<p>SMTP requires a multi-step TCP conversation (EHLO, STARTTLS, AUTH, MAIL FROM, RCPT TO, DATA) for each unpooled connection, adding network round-trips. An Email API sends the entire message in one stateless HTTPS POST request, typically completing in roughly 80 to 220 milliseconds.</p>

</div>
</div>
<div id="faq-question-478dac28b9fb45d7ba7603b14f1077b1" class="rank-math-list-item">
<h3 class="rank-math-question ">Which port should I use if my website uses SMTP?</h3>
<div class="rank-math-answer ">

<p>Use Port 587 with STARTTLS as your default authenticated submission port, or Port 465 with Implicit TLS if your mail host recommends it. Avoid Port 25 in application code, as most cloud VPS providers block outbound Port 25 by default.</p>

</div>
</div>
<div id="faq-question-0b82fb55546c4c91966d118f52de9bf2" class="rank-math-list-item">
<h3 class="rank-math-question ">Can WordPress use an Email API instead of SMTP?</h3>
<div class="rank-math-answer ">

<p>Yes. Modern WordPress mailer plugins (such as FluentSMTP or WP Mail SMTP) support connecting directly to providers like Postmark, SendGrid, Mailgun, Amazon SES, or Resend via their HTTPS API keys—avoiding SMTP port blocks while keeping full email logs.</p>

</div>
</div>
<div id="faq-question-45cb34e2d6ea4e649af4a273f6f12603" class="rank-math-list-item">
<h3 class="rank-math-question ">Do I still need SPF, DKIM, and DMARC if I use an Email API?</h3>
<div class="rank-math-answer ">

<p>Yes. Whether you send over SMTP or an Email API, receiving mail servers like Gmail and Outlook verify SPF, DKIM, and DMARC DNS records on your sending domain before placing your transactional emails in the primary inbox.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/smtp-vs-email-api-transactional-emails/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change PHP Versions in DirectAdmin Without Breaking WordPress</title>
		<link>https://blog.aveshost.com/change-php-version-directadmin-wordpress/</link>
					<comments>https://blog.aveshost.com/change-php-version-directadmin-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 22:02:34 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Version]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6035</guid>

					<description><![CDATA[A step-by-step guide on how to change PHP versions in DirectAdmin without breaking WordPress—covering backups, plugin compatibility checks, Domain Setup vs Select PHP Version, restoring php.ini limits, and instant rollback.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>change PHP version in DirectAdmin</strong> safely is essential whenever your WordPress Site Health dashboard warns that your server is running an outdated PHP branch. Upgrading to PHP 8.3 or PHP 8.4 improves page speed, reduces memory overhead, and keeps your site covered by active security patches—but flipping the version switch without preparation can trigger a fatal error or white screen of death.</p>



<p class="wp-block-paragraph">Most WordPress breakages after a PHP switch happen for two predictable reasons: either an outdated plugin or theme uses deprecated code removed in PHP 8.x, or the new PHP branch starts with default extension and <code>php.ini</code> settings (such as a low <code>memory_limit</code> or missing <code>imagick</code> extension).</p>



<p class="wp-block-paragraph">In this guide, you will learn the exact order to back up WordPress, test compatibility, <strong>change PHP version in DirectAdmin</strong> via Domain Setup or Select PHP Version, restore critical extensions and memory limits, and roll back in seconds if anything goes wrong.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-changing-php-in-directadmin-can-break-wordpress">Why Changing PHP Versions in DirectAdmin Can Break WordPress</a></div><div><a href="#step-1-prepare-wordpress-before-touching-directadmin">Step 1: Back Up and Prepare WordPress Before Switching PHP</a></div><div><a href="#step-2-how-to-change-php-version-in-directadmin">Step 2: How to Change PHP Version in DirectAdmin (2 Built-In Methods)</a></div><div><a href="#step-3-enable-wordpress-php-extensions-and-php-ini-limits">Step 3: Restore Required WordPress PHP Extensions and Limits</a></div><div><a href="#step-4-verify-live-php-and-debug-errors-safely">Step 4: Verify Your Live Site, Check Site Health, and Debug Safely</a></div><div><a href="#choose-the-right-hosting-for-smooth-php-upgrades">Keep WordPress PHP Upgrades Smooth on Shared Web Hosting and VPS</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-changing-php-in-directadmin-can-break-wordpress" class="wp-block-heading">Why Changing PHP Versions in DirectAdmin Can Break WordPress</h2>



<p class="wp-block-paragraph">WordPress core is carefully tested against modern PHP releases, including PHP 8.3 and PHP 8.4. When a site crashes right after you <strong>change PHP version in DirectAdmin</strong>, the culprit is almost always one of three environment mismatches rather than WordPress core itself:</p>



<p class="wp-block-paragraph">• <strong>Incompatible Plugins or Custom Theme Functions:</strong> Older plugins written for PHP 7.4 or PHP 8.0 may rely on removed functions or trigger fatal type errors under PHP 8.2, 8.3, or 8.4.</p>



<p class="wp-block-paragraph">• <strong>Per-Version PHP Extensions Reset:</strong> In DirectAdmin setups with per-version extension selectors, switching from PHP 8.1 to PHP 8.3 loads a separate extension profile. If <code>mysqli</code>, <code>curl</code>, <code>gd</code>, <code>imagick</code>, or <code>zip</code> is unchecked on the new branch, WordPress can fail to connect to MySQL or process media.</p>



<p class="wp-block-paragraph">• <strong>Default php.ini Resource Limits:</strong> Each PHP branch can carry its own <code>memory_limit</code>, <code>upload_max_filesize</code>, and <code>max_execution_time</code>. WooCommerce, Elementor, and page builders often exceed a low default <code>128M</code> memory limit.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Symptom After PHP Switch</th><th>Most Likely Cause</th><th>Fastest Fix</th></tr></thead><tbody><tr><td>Critical error / White Screen of Death</td><td>Outdated plugin or theme calling removed PHP function</td><td>Check debug.log, disable offending plugin, or roll back PHP in DirectAdmin</td></tr><tr><td>Error establishing a database connection / missing PHP extension notice</td><td>mysqli or pdo_mysql unchecked on the new PHP version</td><td>Open Select PHP Version -&gt; Extensions and enable mysqli + required modules</td></tr><tr><td>Allowed memory size exhausted or upload fails</td><td>New PHP branch reverted memory_limit or upload_max_filesize</td><td>Raise memory_limit (256M+) and upload_max_filesize (64M+) in PHP Options</td></tr><tr><td>WordPress Site Health still shows old PHP version</td><td>Browser/page cache, subdomain override, or 10-30s FPM reload delay</td><td>Wait 30 seconds, purge WordPress cache, and check Sub-Domains Setup</td></tr></tbody></table></figure>



<h2 id="step-1-prepare-wordpress-before-touching-directadmin" class="wp-block-heading">Step 1: Back Up and Prepare WordPress Before Switching PHP</h2>



<p class="wp-block-paragraph">Before you <strong>change PHP version in DirectAdmin</strong>, spend five minutes preparing WordPress so an unexpected plugin conflict never takes down live visitors. Following the official <a href="https://wordpress.org/support/update-php/" rel="noopener">WordPress PHP upgrade guidelines</a> prevents nearly every common migration failure.</p>



<p class="wp-block-paragraph">• <strong>1. Take a Full Backup:</strong> Create a complete backup of both your WordPress files (<code>wp-content</code>, <code>wp-config.php</code>) and your MySQL database through DirectAdmin&#8217;s backup tool or your WordPress backup plugin.</p>



<p class="wp-block-paragraph">• <strong>2. Update Core, Themes, and Plugins First:</strong> Plugin authors routinely ship PHP 8.3 and 8.4 compatibility fixes in routine updates. Follow our guide on <a href="https://blog.aveshost.com/safely-update-wordpress/">how to safely update WordPress with staging and rollback checks</a> before changing server runtimes.</p>



<p class="wp-block-paragraph">• <strong>3. Clone to Staging (Recommended for Busy Sites):</strong> If you run WooCommerce or a high-traffic business site, clone it to a staging subdomain, switch only the staging subdomain to the target PHP version in DirectAdmin, and test checkout, forms, and wp-admin.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-switch-workflow.webp" alt="Four-step workflow diagram showing how to safely change PHP version in DirectAdmin without breaking WordPress" class="wp-image-6033" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-switch-workflow.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-switch-workflow-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-switch-workflow-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-switch-workflow-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code>// Add to wp-config.php (above "That's all, stop editing!") on staging or during debugging
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );</code></pre>



<h2 id="step-2-how-to-change-php-version-in-directadmin" class="wp-block-heading">Step 2: How to Change PHP Version in DirectAdmin (2 Built-In Methods)</h2>



<p class="wp-block-paragraph">Depending on how your server is configured, DirectAdmin exposes two user-level menus to switch PHP. Check which menu appears in your DirectAdmin Evolution dashboard—both are documented in the official <a href="https://docs.directadmin.com/webservices/php/multiple-php.html" rel="noopener">DirectAdmin Multiple PHP documentation</a>.</p>



<p class="wp-block-paragraph">• <strong>Method A — Domain Setup (Per-Domain PHP Selector):</strong> Log in to DirectAdmin, open <strong>Account Manager → Domain Setup</strong>, and click your target domain name. In the domain settings panel (under <strong>Useful Links</strong> on the right), click <strong>PHP Version Selector</strong>. Pick your target version (such as PHP 8.3 or PHP 8.4) from the dropdown and click <strong>Save</strong>.</p>



<p class="wp-block-paragraph">• <strong>Method B — Select PHP Version (Extensions &amp; Options Included):</strong> Navigate to <strong>Extra Features → Select PHP Version</strong> (or <strong>Account Manager → PHP Settings</strong>). Choose your target PHP version from the current PHP version dropdown and click <strong>Apply</strong> or <strong>Set as current</strong>.</p>



<p class="wp-block-paragraph">• <strong>Changing PHP for a Staging Subdomain:</strong> If you only want to test a staging subdomain first, open <strong>Account Manager → Sub-Domains Setup</strong>, select the subdomain, and assign its own PHP version without touching your live root domain. Allow <strong>10 to 30 seconds</strong> after saving for DirectAdmin to reload PHP-FPM.</p>



<h2 id="step-3-enable-wordpress-php-extensions-and-php-ini-limits" class="wp-block-heading">Step 3: Restore Required WordPress PHP Extensions and Limits</h2>



<p class="wp-block-paragraph">Right after you <strong>change PHP version in DirectAdmin</strong>, verify that your new PHP branch has the extensions and resource limits WordPress expects. Missing image or database extensions are a frequent cause of silent media upload failures or white screens.</p>



<p class="wp-block-paragraph">In <strong>Extra Features → Select PHP Version → Extensions</strong>, confirm these essential modules are enabled: <code>mysqli</code>, <code>curl</code>, <code>dom</code>, <code>exif</code>, <code>fileinfo</code>, <code>gd</code>, <code>imagick</code>, <code>intl</code>, <code>mbstring</code>, <code>openssl</code>, <code>xml</code>, <code>zip</code>, and <code>opcache</code>.</p>



<p class="wp-block-paragraph">Next, open the <strong>Options</strong> tab (or <strong>Account Manager → PHP Settings</strong>) and set WordPress-friendly <code>php.ini</code> limits—especially if you run WooCommerce, Elementor, or media-heavy sites. If you manage your own VPS via SSH, you can also apply these values inside your custom <code>php.conf.d</code> override file.</p>



<pre class="wp-block-code"><code># Recommended WordPress limits in DirectAdmin PHP Options or /usr/local/php83/lib/php.conf.d/99-custom.ini
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300</code></pre>



<h2 id="step-4-verify-live-php-and-debug-errors-safely" class="wp-block-heading">Step 4: Verify Your Live Site, Check Site Health, and Debug Safely</h2>



<p class="wp-block-paragraph">Once DirectAdmin finishes reloading PHP-FPM, purge any WordPress page cache or object cache, then open your WordPress admin dashboard and go to <strong>Tools → Site Health → Info → Server</strong>. Confirm the <strong>PHP version</strong> row reflects your new branch.</p>



<p class="wp-block-paragraph">Click through your homepage, navigation menus, contact forms, login page, and WooCommerce cart/checkout. If you encounter a fatal error or blank screen, temporarily enable private debug logging in <code>wp-config.php</code> so errors write to <code>wp-content/debug.log</code> instead of displaying on screen to visitors.</p>



<p class="wp-block-paragraph">As soon as your debug log reveals which plugin triggered the fatal error, you can either update/replace that plugin or rename its folder inside <code>wp-content/plugins/</code> via DirectAdmin&#8217;s File Manager. And if you need your site back online immediately while you fix it, simply open DirectAdmin&#8217;s <strong>PHP Version Selector</strong> and switch back to your previous PHP branch—rollback takes less than 30 seconds. You can also follow our guide on <a href="https://blog.aveshost.com/php-security-updates-check-website-protected/">checking PHP security updates on your website</a> to ensure your chosen branch stays patched.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-troubleshooting-checklist.webp" alt="Six-step checklist for changing PHP versions in DirectAdmin safely without breaking WordPress" class="wp-image-6034" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-troubleshooting-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-troubleshooting-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-troubleshooting-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/directadmin-php-troubleshooting-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Optional (VPS / Admin SSH): verify or enable DirectAdmin Multiple PHP via CustomBuild
da config-set php_version_selector 1
da build set php1_mode php-fpm
da build set php1_release 8.3
da build set php2_release 8.4
da build php
da build rewrite_confs</code></pre>



<h2 id="choose-the-right-hosting-for-smooth-php-upgrades" class="wp-block-heading">Keep WordPress PHP Upgrades Smooth on Shared Web Hosting and VPS</h2>



<p class="wp-block-paragraph">Whether you run your WordPress sites on <a href="https://www.aveshost.com/web-hosting" rel="noopener">shared web hosting</a>, <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a>, or <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> with <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a>, keeping multiple supported PHP branches available makes upgrades stress-free.</p>



<p class="wp-block-paragraph">On shared web hosting and fully managed VPS hosting, patched PHP 8.2, 8.3, and 8.4 builds are pre-installed so you can test on a staging subdomain and switch production in seconds. On self-managed VPS hosting, you control which PHP-FPM pools are compiled via CustomBuild and can pair PHP upgrades with <a href="https://blog.aveshost.com/public-website-status-page-with-uptime-kuma/">uptime monitoring in Uptime Kuma</a> and <a href="https://blog.aveshost.com/add-passkey-login-to-wordpress/">passkey login hardening for WordPress</a>.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-4ae1cf7def7a4f70b94a5f13ab045fbe" class="rank-math-list-item">
<h3 class="rank-math-question ">Where do I change the PHP version in DirectAdmin?</h3>
<div class="rank-math-answer ">

<p>Log in to DirectAdmin and open Account Manager -&gt; Domain Setup, click your domain name, and select PHP Version Selector under Useful Links. On servers using CloudLinux PHP Selector or CustomBuild PHP Settings, you can also go to Extra Features -&gt; Select PHP Version or Account Manager -&gt; PHP Settings.</p>

</div>
</div>
<div id="faq-question-ae61f5fca21b45c3b22239342ed3b3ec" class="rank-math-list-item">
<h3 class="rank-math-question ">How long does it take for a DirectAdmin PHP version change to apply?</h3>
<div class="rank-math-answer ">

<p>DirectAdmin typically applies PHP version changes within 10 to 30 seconds while PHP-FPM and web server configurations reload. Afterward, clear your WordPress page cache and verify the active version under Tools -&gt; Site Health -&gt; Info -&gt; Server.</p>

</div>
</div>
<div id="faq-question-8bd153a1da164ae68c84b41371915fb4" class="rank-math-list-item">
<h3 class="rank-math-question ">What should I do if WordPress shows a critical error after changing PHP?</h3>
<div class="rank-math-answer ">

<p>Open DirectAdmin&#8217;s PHP Version Selector and switch right back to your previous PHP version for an instant rollback. Then enable WP_DEBUG_LOG in wp-config.php or test on a staging subdomain to identify and update or replace the incompatible plugin or theme.</p>

</div>
</div>
<div id="faq-question-cb1777eab0514ff08297f3a0e7bf7e88" class="rank-math-list-item">
<h3 class="rank-math-question ">Will changing PHP versions in DirectAdmin delete my WordPress files or database?</h3>
<div class="rank-math-answer ">

<p>No. Changing the PHP version only switches the server-side PHP interpreter executing your code. Your WordPress files, uploads, and MySQL database remain untouched, though you should always take a full backup beforehand in case a plugin throws errors.</p>

</div>
</div>
<div id="faq-question-ed469cab1d4e463fbcd0fe92301527d4" class="rank-math-list-item">
<h3 class="rank-math-question ">Which PHP extensions and limits should I enable for WordPress in DirectAdmin?</h3>
<div class="rank-math-answer ">

<p>Make sure mysqli, curl, dom, exif, fileinfo, gd, imagick, intl, mbstring, openssl, xml, zip, and opcache are enabled. In PHP Options, set memory_limit to at least 256M (512M for WooCommerce or page builders), upload_max_filesize to 64M or higher, and post_max_size equal to or larger than upload_max_filesize.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/change-php-version-directadmin-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Security Updates: How to Check Whether Your Website Is Protected</title>
		<link>https://blog.aveshost.com/php-security-updates-check-website-protected/</link>
					<comments>https://blog.aveshost.com/php-security-updates-check-website-protected/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 21:50:05 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Security]]></category>
		<category><![CDATA[vps hosting]]></category>
		<category><![CDATA[website security]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6030</guid>

					<description><![CDATA[A practical guide to checking PHP security updates on WordPress, shared web hosting, and Linux VPS servers—covering live PHP-FPM checks, EOL branches, OS backports, header hardening, and safe staging upgrades.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Knowing whether your website still receives <strong>PHP security updates</strong> is one of the fastest ways to prevent avoidable server compromises. Because PHP powers WordPress, WooCommerce, Laravel, and custom business applications, running an unpatched interpreter exposes your site even when your CMS core, themes, and plugins are completely up to date.</p>



<p class="wp-block-paragraph">Many site owners believe their server is safe because a hosting dashboard looks green or a quick SSH check prints a modern version. In practice, your live web server can run a different PHP handler than the command line, and older branches quietly cross into end-of-life without breaking your front end.</p>



<p class="wp-block-paragraph">Whether you run your site on <a href="https://www.aveshost.com/web-hosting" rel="noopener">shared web hosting</a>, <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a>, or <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> with Aveshost, this guide shows you how to verify the exact PHP runtime serving live traffic, match it against the official support lifecycle, check OS-level patches, hide leaky version headers, and upgrade safely.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-php-security-updates-matter-for-live-websites">Why PHP Security Updates Matter for Live Websites</a></div><div><a href="#how-to-check-the-exact-php-version-serving-your-website">How to Check the Exact PHP Version Serving Your Website</a></div><div><a href="#verify-os-level-patching-and-backported-security-fixes">Verify OS-Level Patching and Backported Security Fixes</a></div><div><a href="#inspect-and-hide-leaky-php-version-headers">Inspect and Hide Leaky PHP Version Headers</a></div><div><a href="#how-to-upgrade-an-outdated-php-version-without-breaking-your-site">How to Upgrade an Outdated PHP Version Without Breaking Your Site</a></div><div><a href="#ongoing-php-security-updates-and-protection-checklist">Ongoing PHP Security Updates and Protection Checklist</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-php-security-updates-matter-for-live-websites" class="wp-block-heading">Why PHP Security Updates Matter for Live Websites</h2>



<p class="wp-block-paragraph">Every minor PHP branch follows a predictable maintenance lifecycle published on the official <a href="https://www.php.net/supported-versions.php" rel="noopener">PHP Supported Versions schedule</a>. During <strong>Active Support</strong>, the PHP team ships both regular bug fixes and security patches. Once a branch enters <strong>Security Fixes Only</strong>, it receives patches strictly for critical vulnerabilities and CVEs. After that window closes, the branch reaches <strong>End of Life (EOL)</strong> and stops receiving upstream <strong>PHP security updates</strong> altogether.</p>



<p class="wp-block-paragraph">Automated scanners continuously probe public websites for outdated PHP runtimes. When a vulnerability is disclosed in an EOL branch—such as memory corruption, remote code execution in a core extension, or request-parsing flaws—attackers immediately target unpatched servers. A web application firewall can filter some exploit payloads, but it is never a substitute for running a supported PHP branch.</p>



<p class="wp-block-paragraph">Upgrading off an unsupported branch also delivers tangible speed gains. Modern PHP 8.x releases provide faster OPcache execution, JIT refinements, lower memory usage per worker, and stricter type handling that surfaces silent bugs before they reach production.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>PHP Support Stage</th><th>Current Branches</th><th>What You Receive</th><th>Recommended Action</th></tr></thead><tbody><tr><td>Active Support</td><td>PHP 8.5, PHP 8.4</td><td>Full bug fixes, performance improvements, and PHP security updates</td><td>Best target for new sites and planned upgrades</td></tr><tr><td>Security Fixes Only</td><td>PHP 8.3, PHP 8.2</td><td>Critical security patches only; no regular bug fixes</td><td>Safe for now, but plan an upgrade before EOL</td></tr><tr><td>End of Life (EOL)</td><td>PHP 8.1, PHP 8.0, PHP 7.4 and older</td><td>No official upstream security patches</td><td>Audit compatibility and upgrade immediately</td></tr></tbody></table></figure>



<h2 id="how-to-check-the-exact-php-version-serving-your-website" class="wp-block-heading">How to Check the Exact PHP Version Serving Your Website</h2>



<p class="wp-block-paragraph">The single most common mistake during a PHP security audit is checking the wrong binary. Linux servers frequently have multiple PHP versions installed side by side: one for SSH command-line tasks (CLI) and another running through <code>PHP-FPM</code> or a web server handler for live HTTP requests. Always verify the runtime actually executing visitor traffic.</p>



<p class="wp-block-paragraph">• <strong>1. WordPress Site Health:</strong> In your WordPress admin dashboard, open <strong>Tools → Site Health → Info</strong> and expand the <strong>Server</strong> accordion. The <strong>PHP version</strong> row displays the exact interpreter serving live web requests. Also inspect the <strong>Status</strong> tab—WordPress flags outdated runtimes with a critical security warning.</p>



<p class="wp-block-paragraph">• <strong>2. Hosting Control Panel PHP Selector:</strong> On shared web hosting, each domain or subdomain can be assigned its own PHP branch. Open your hosting control panel&#8217;s PHP selector and verify every domain—including staging subdomains and legacy microsites sharing the same account. If your site uses DirectAdmin, follow our step-by-step guide on <a href="https://blog.aveshost.com/change-php-version-directadmin-wordpress/">how to change PHP versions in DirectAdmin without breaking WordPress</a>.</p>



<p class="wp-block-paragraph">• <strong>3. CLI vs PHP-FPM on a VPS:</strong> On self-managed VPS hosting, running <code>php -v</code> only inspects the CLI binary. Check the active PHP-FPM service and inspect the <code>fastcgi_pass</code> socket in Nginx (or <code>SetHandler</code> in Apache) to confirm which PHP-FPM pool actually handles incoming web traffic.</p>



<pre class="wp-block-code"><code># 1. Check the CLI PHP version
php -v

# 2. List active PHP-FPM services and versions
systemctl list-units --type=service | grep php
php-fpm8.4 -v 2&gt;/dev/null || php-fpm8.3 -v 2&gt;/dev/null

# 3. Verify which PHP-FPM socket Nginx forwards traffic to
grep -rn "fastcgi_pass" /etc/nginx/sites-enabled/</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-audit-workflow.webp" alt="Four-step workflow diagram showing how to audit PHP security updates on a website" class="wp-image-6028" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-audit-workflow.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-audit-workflow-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-audit-workflow-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-audit-workflow-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="verify-os-level-patching-and-backported-security-fixes" class="wp-block-heading">Verify OS-Level Patching and Backported Security Fixes</h2>



<p class="wp-block-paragraph">Checking the major.minor branch (such as PHP 8.3 or PHP 8.4) is only half of verifying <strong>PHP security updates</strong>. You also need to confirm that point releases and CVE security fixes are actually being installed and loaded into memory.</p>



<p class="wp-block-paragraph">• <strong>Upstream Packages &amp; Docker Images:</strong> Repositories such as Ondrej Sury&#8217;s PPA on Ubuntu and official Docker PHP images increment the patch number on every security release. Check that your installed patch number matches the latest release for your branch.</p>



<p class="wp-block-paragraph">• <strong>Linux Distribution Backports:</strong> Enterprise Linux distributions (such as Ubuntu LTS default repositories, Debian Stable, and AlmaLinux) often keep the base minor version unchanged while backporting CVE fixes into their own package revision numbers. Check the package changelog via <code>apt changelog</code> or <code>rpm -q --changelog</code> rather than guessing from the version string alone.</p>



<p class="wp-block-paragraph">• <strong>Reload PHP-FPM After Patching:</strong> Even if <code>unattended-upgrades</code> or <code>dnf-automatic</code> installs patched packages, running worker processes must be reloaded so old unpatched binaries do not stay resident in memory. Never leave a temporary <code>phpinfo()</code> diagnostic script on a public domain—delete it immediately after inspection so you do not leak server paths, environment variables, or loaded extensions.</p>



<pre class="wp-block-code"><code># Check installed PHP packages and pending security updates (Ubuntu / Debian)
sudo apt update
apt list --upgradable | grep php
apt changelog php8.3-fpm | head -n 25

# Apply security updates and reload PHP-FPM cleanly
sudo apt upgrade -y
sudo systemctl reload php8.3-fpm</code></pre>



<h2 id="inspect-and-hide-leaky-php-version-headers" class="wp-block-heading">Inspect and Hide Leaky PHP Version Headers</h2>



<p class="wp-block-paragraph">Even when your <strong>PHP security updates</strong> are completely current, broadcasting your exact patch number in every HTTP response hands automated scanners free reconnaissance data. By default, PHP can emit an <code>X-Powered-By</code> header revealing the exact version string (such as <code>PHP/8.3.x</code>) on every dynamic page load.</p>



<p class="wp-block-paragraph">Inspect your live headers in seconds using <code>curl -I https://yourdomain.com</code> from your terminal or the Network tab in browser DevTools. If you see <code>X-Powered-By</code> in the response, disable it at the PHP layer by setting <code>expose_php = Off</code> in your active <code>php.ini</code> file (as documented in the official <a href="https://www.php.net/manual/en/ini.core.php#ini.expose-php" rel="noopener">PHP expose_php manual</a>) and reloading PHP-FPM.</p>



<p class="wp-block-paragraph">For defense in depth, strip the header at the web server layer too—using <code>fastcgi_hide_header X-Powered-By;</code> in Nginx or <code>Header unset X-Powered-By</code> in Apache. Hiding version headers does not replace timely patching, but it removes an easy fingerprinting target.</p>



<pre class="wp-block-code"><code># Check whether your live site leaks X-Powered-By
curl -I https://example.com | grep -iE "x-powered-by|server"

# 1. Disable in php.ini (e.g. /etc/php/8.3/fpm/php.ini)
expose_php = Off

# 2. Defense-in-depth in Nginx (inside your server or location block)
fastcgi_hide_header X-Powered-By;

# 3. Defense-in-depth in Apache (.htaccess or VirtualHost)
Header unset X-Powered-By</code></pre>



<h2 id="how-to-upgrade-an-outdated-php-version-without-breaking-your-site" class="wp-block-heading">How to Upgrade an Outdated PHP Version Without Breaking Your Site</h2>



<p class="wp-block-paragraph">If your audit uncovers an end-of-life branch like PHP 8.1, PHP 8.0, or PHP 7.4, avoid flipping the production version switch without testing first. PHP 8.2, 8.3, and 8.4 introduced deprecations—such as dynamic property warnings and stricter type signatures—that can trigger fatal errors in abandoned plugins or legacy custom code.</p>



<p class="wp-block-paragraph">• <strong>1. Take a Full Backup:</strong> Export a complete archive of your site files and database before changing your runtime.</p>



<p class="wp-block-paragraph">• <strong>2. Update CMS, Themes, and Plugins on Staging:</strong> Clone your site to a staging copy and bring your core software and extensions up to date first. If you manage a WordPress site, follow our walkthrough on <a href="https://blog.aveshost.com/safely-update-wordpress/">how to safely update WordPress with staging and rollback checks</a>.</p>



<p class="wp-block-paragraph">• <strong>3. Switch Staging to PHP 8.3 or PHP 8.4:</strong> Enable server-side error logging (<code>display_errors = Off</code> and <code>log_errors = On</code>) and test checkout flows, contact forms, login screens, and admin dashboards.</p>



<p class="wp-block-paragraph">• <strong>4. Fix Fatal Errors and Deprecations:</strong> Check your PHP error log for uncaught exceptions or fatal errors. Replace abandoned plugins or patch custom theme code before touching production.</p>



<p class="wp-block-paragraph">• <strong>5. Switch Production and Monitor:</strong> Apply the PHP upgrade during a low-traffic window, clear page and object caches, and watch your logs. Pairing upgrades with <a href="https://blog.aveshost.com/public-website-status-page-with-uptime-kuma/">automated uptime monitoring in Uptime Kuma</a> alerts you immediately if a route regresses.</p>



<h2 id="ongoing-php-security-updates-and-protection-checklist" class="wp-block-heading">Ongoing PHP Security Updates and Protection Checklist</h2>



<p class="wp-block-paragraph">Keeping PHP protected is an ongoing habit rather than a one-time fix. Branches transition from Active Support to Security-Only and eventually to EOL every year, and forgotten subdomains or staging installs can silently drift onto unsupported runtimes.</p>



<p class="wp-block-paragraph">Run through the six-step protection checklist below every quarter—and combine runtime patching with strong admin authentication such as <a href="https://blog.aveshost.com/add-passkey-login-to-wordpress/">adding passkey login to WordPress</a>—so both your interpreter and your login surface stay hardened.</p>



<p class="wp-block-paragraph">• <strong>Shared Web Hosting &amp; Fully Managed VPS Hosting:</strong> Your hosting provider maintains the underlying OS packages, compiles patched PHP builds, and applies server-level CVE fixes. Your responsibility is keeping every domain assigned to a supported PHP branch and keeping your application code compatible.</p>



<p class="wp-block-paragraph">• <strong>Self-Managed VPS Hosting:</strong> You own the entire stack—package repositories, <code>apt</code> or <code>dnf</code> security upgrades, PHP-FPM reloads, and branch migrations. Whether you host on shared web hosting, fully managed VPS hosting, or self-managed VPS hosting with <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a>, scheduling a quick quarterly audit guarantees your website never falls behind on <strong>PHP security updates</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-protection-checklist.webp" alt="Six-step PHP security and update protection checklist covering Site Health, PHP-FPM, EOL branches, headers, VPS patches, and staging" class="wp-image-6029" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-protection-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-protection-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-protection-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/php-security-protection-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-884ed2370a8d4e3080c2132234d4ff45" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I know if my website is receiving PHP security updates?</h3>
<div class="rank-math-answer ">

<p>Check the exact PHP version serving live traffic using WordPress Site Health, your hosting control panel PHP selector, or your PHP-FPM socket configuration, then compare it against the official PHP Supported Versions table. PHP 8.4 and 8.5 are in Active Support, and PHP 8.3 and 8.2 receive Security Fixes Only; PHP 8.1 and older branches are end-of-life.</p>

</div>
</div>
<div id="faq-question-e35ddf44934f434d80cdcaf570a18560" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does php -v show a newer version than WordPress Site Health?</h3>
<div class="rank-math-answer ">

<p>The php -v command checks the command-line (CLI) binary, while live websites usually execute through PHP-FPM or a web server handler. Servers often have multiple PHP branches installed simultaneously, so your Nginx fastcgi_pass socket or hosting PHP selector may still point to an older version even after upgrading the CLI binary.</p>

</div>
</div>
<div id="faq-question-a01cc01a55a84de9b7f0a17650b8ec3f" class="rank-math-list-item">
<h3 class="rank-math-question ">Is PHP 8.1 still safe to use for a production website?</h3>
<div class="rank-math-answer ">

<p>No. PHP 8.1 has reached end-of-life and no longer receives official upstream PHP security updates. Unless you rely on a verified enterprise Linux distribution or commercial extended-support vendor that explicitly backports CVEs for your build, test your site on staging and upgrade to PHP 8.3 or PHP 8.4.</p>

</div>
</div>
<div id="faq-question-589fdac516c54aa89bd9b998641c8b9c" class="rank-math-list-item">
<h3 class="rank-math-question ">Does hiding the X-Powered-By header protect me from PHP vulnerabilities?</h3>
<div class="rank-math-answer ">

<p>No. Setting expose_php = Off or stripping X-Powered-By in Nginx or Apache only reduces version fingerprinting against automated scanners. It is a smart hardening step, but it never patches underlying vulnerabilities—you still need a supported, regularly patched PHP runtime.</p>

</div>
</div>
<div id="faq-question-a71b2e522cec4e69b90031e04ebd9291" class="rank-math-list-item">
<h3 class="rank-math-question ">Will upgrading my PHP version break my WordPress plugins or theme?</h3>
<div class="rank-math-answer ">

<p>Actively maintained WordPress plugins and themes run smoothly on PHP 8.3 and PHP 8.4, but abandoned plugins or older custom code can trigger fatal errors. Always take a full backup, update WordPress core and plugins first, test the new PHP branch on a staging copy with error logging enabled, and then switch production.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/php-security-updates-check-website-protected/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Deploy FastAPI on an Ubuntu VPS with Nginx and HTTPS</title>
		<link>https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/</link>
					<comments>https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 18:40:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[FastAPI]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Linux VPS]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6020</guid>

					<description><![CDATA[Run FastAPI privately behind Nginx, keep it online with systemd, enable HTTPS with Certbot and verify the deployment from application to certificate renewal.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">To <strong>deploy FastAPI</strong> on an Ubuntu VPS, run the application with Uvicorn on <code>127.0.0.1:8000</code>, supervise it with systemd, and put Nginx in front on ports 80 and 443. Nginx terminates HTTPS while the application remains reachable only through the local upstream.</p>



<p class="wp-block-paragraph">Our walkthrough takes a small API from a Python virtual environment to a working domain with a renewable certificate. It uses a dedicated service account and includes checks at each layer, so you can identify a failed application, proxy configuration or certificate challenge separately.</p>



<p class="wp-block-paragraph">Use a fresh Ubuntu 24.04 LTS VPS, SSH access with sudo privileges, and a domain or subdomain you control. Replace <code>api.example.com</code> throughout with your real hostname. This example serves a standard HTTP API at the domain root; it does not configure Docker, WebSockets, streaming, a database or a control-panel-managed Nginx installation.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#prepare">1. Prepare the VPS, DNS and firewall</a></div><div><a href="#app">2. Create the application and virtual environment</a></div><div><a href="#systemd">3. Keep FastAPI running with systemd</a></div><div><a href="#nginx">4. Put Nginx in front of FastAPI</a></div><div><a href="#https">5. Enable HTTPS with Certbot</a></div><div><a href="#renewal">6. Verify renewal and external access</a></div><div><a href="#troubleshoot">7. Troubleshoot the failing layer</a></div><div><a href="#maintain">8. Deploy FastAPI updates and plan capacity</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="prepare" class="wp-block-heading">1. Prepare the VPS, DNS and firewall</h2>



<p class="wp-block-paragraph">Point the hostname’s A record to the VPS IPv4 address. Add an AAAA record only when IPv6 reaches this same server correctly. Keep an existing SSH connection open and confirm console recovery access before changing firewall policy.</p>



<p class="wp-block-paragraph">Install the packages used below:</p>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install -y python3-venv nginx curl dnsutils ufw snapd
dig +short A api.example.com
dig +short AAAA api.example.com</code></pre>



<p class="wp-block-paragraph">For a new server using SSH on port 22, allow SSH and the web-server ports before enabling UFW:</p>



<pre class="wp-block-code"><code>sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw enable
sudo ufw status verbose</code></pre>



<p class="wp-block-paragraph">If SSH uses another port, allow that actual TCP port first. Preserve existing rules on a server already in use. Apply equivalent access rules to any upstream VPS firewall. Do not open port 8000 publicly. Ubuntu’s <a href="https://ubuntu.com/server/docs/how-to/security/firewalls/" rel="noopener">firewall guide</a> explains UFW, and its <a href="https://ubuntu.com/server/docs/how-to/web-services/install-nginx/" rel="noopener">Nginx guide</a> covers the Ubuntu package layout.</p>



<p class="wp-block-paragraph">For this HTTP-01 certificate workflow, the hostname must be publicly reachable on port 80. Incorrect DNS, including a stale AAAA record, can prevent validation. See <a href="https://letsencrypt.org/docs/challenge-types/" rel="noopener">Let’s Encrypt’s challenge requirements</a>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-nginx-https-architecture.webp" alt="FastAPI deployment architecture showing Nginx handling HTTPS, localhost Uvicorn, systemd supervision and Certbot renewal." class="wp-image-6022" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-nginx-https-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-nginx-https-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-nginx-https-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-nginx-https-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="app" class="wp-block-heading">2. Create the application and virtual environment</h2>



<p class="wp-block-paragraph">Create a dedicated system account and project directory. These commands are for a new installation; choose different names if they already exist:</p>



<pre class="wp-block-code"><code>sudo adduser --system --group --home /opt/fastapi fastapi
sudo install -d -o fastapi -g fastapi -m 0755 /opt/fastapi
sudo -u fastapi python3 -m venv /opt/fastapi/.venv
sudo -u fastapi /opt/fastapi/.venv/bin/python -m pip install fastapi uvicorn</code></pre>



<p class="wp-block-paragraph">The <a href="https://docs.python.org/3/library/venv.html" rel="noopener">Python virtual environment</a> keeps application packages separate from Ubuntu’s system Python. For an existing project, install its reviewed, pinned requirements instead of replacing them with this demonstration’s dependencies.</p>



<p class="wp-block-paragraph">Create <code>/opt/fastapi/main.py</code> with <code>sudo nano /opt/fastapi/main.py</code>, paste the following and save:</p>



<pre class="wp-block-code"><code>from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def root():
    return {"message": "FastAPI is running"}

@app.get("/health")
async def health():
    return {"status": "ok"}
</code></pre>



<p class="wp-block-paragraph">Run the ASGI server in the foreground:</p>



<pre class="wp-block-code"><code>sudo -u fastapi /opt/fastapi/.venv/bin/uvicorn main:app --app-dir /opt/fastapi --host 127.0.0.1 --port 8000</code></pre>



<p class="wp-block-paragraph">In a second SSH session, run <code>curl -fsS http://127.0.0.1:8000/health</code>. Expect <code>{"status":"ok"}</code>. Stop the foreground server with Ctrl+C before starting systemd, freeing port 8000. FastAPI’s <a href="https://fastapi.tiangolo.com/deployment/manually/" rel="noopener">server documentation</a> explains the application import string.</p>



<h2 id="systemd" class="wp-block-heading">3. Keep FastAPI running with systemd</h2>



<p class="wp-block-paragraph">Create an empty environment file for application settings, readable by root and the service group:</p>



<pre class="wp-block-code"><code>sudo install -o root -g fastapi -m 0640 /dev/null /etc/fastapi.env</code></pre>



<p class="wp-block-paragraph">Later, add required <code>NAME=value</code> settings using <code>sudoedit /etc/fastapi.env</code>. The app must explicitly read those settings; creating the file does not configure a database automatically. Keep credentials out of source control and logs.</p>



<p class="wp-block-paragraph">Create <code>/etc/systemd/system/fastapi.service</code> with <code>sudo nano /etc/systemd/system/fastapi.service</code> and save:</p>



<pre class="wp-block-code"><code>&#91;Unit]
Description=FastAPI application
After=network.target

&#91;Service]
User=fastapi
Group=fastapi
WorkingDirectory=/opt/fastapi
EnvironmentFile=/etc/fastapi.env
ExecStart=/opt/fastapi/.venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips=127.0.0.1
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true

&#91;Install]
WantedBy=multi-user.target
</code></pre>



<p class="wp-block-paragraph">The absolute executable path removes the need to activate the virtual environment. <code>WorkingDirectory</code> lets Uvicorn import <code>main:app</code>. The service runs as the dedicated account and restarts after failure; repeated failures can still hit systemd’s start-rate limits.</p>



<pre class="wp-block-code"><code>sudo systemctl daemon-reload
sudo systemctl enable --now fastapi
sudo systemctl status fastapi --no-pager
curl -fsS http://127.0.0.1:8000/health</code></pre>



<p class="wp-block-paragraph">If it fails, inspect <code>sudo journalctl -u fastapi -n 100 --no-pager</code>. See the <a href="https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html" rel="noopener">systemd service reference</a> for supervision and the <a href="https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html" rel="noopener">execution reference</a> for users, directories and environment files.</p>



<h2 id="nginx" class="wp-block-heading">4. Put Nginx in front of FastAPI</h2>



<p class="wp-block-paragraph">Create <code>/etc/nginx/sites-available/fastapi</code> with <code>sudo nano /etc/nginx/sites-available/fastapi</code>. Use this HTTP configuration first:</p>



<pre class="wp-block-code"><code>server {
    listen 80;
    listen &#91;::]:80;
    server_name api.example.com;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
</code></pre>



<p class="wp-block-paragraph">Enable the site, test syntax, then start or reload Nginx:</p>



<pre class="wp-block-code"><code>sudo ln -s /etc/nginx/sites-available/fastapi /etc/nginx/sites-enabled/fastapi
sudo nginx -t
sudo systemctl enable --now nginx
sudo systemctl reload nginx
curl -fsS http://api.example.com/health</code></pre>



<p class="wp-block-paragraph">Create the symlink only once. On a server hosting other sites, preserve their files and avoid duplicate <code>server_name</code> entries. If IPv6 is disabled at the OS level, omit the IPv6 listen directive rather than publishing a broken AAAA record.</p>



<p class="wp-block-paragraph">The <a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html" rel="noopener">Nginx proxy module</a> forwards requests to Uvicorn. This single-edge-proxy example overwrites incoming forwarded headers with values from Nginx’s connection; a CDN or additional load balancer requires a separate trusted-proxy design.</p>



<p class="wp-block-paragraph">Uvicorn trusts proxy headers only from <code>127.0.0.1</code> in our service command. Once HTTPS is enabled, that lets FastAPI build correct HTTPS redirects. Avoid trusting every source with a wildcard. FastAPI’s <a href="https://fastapi.tiangolo.com/advanced/behind-a-proxy/" rel="noopener">proxy guide</a> explains the trust boundary.</p>



<h2 id="https" class="wp-block-heading">5. Enable HTTPS with Certbot</h2>



<p class="wp-block-paragraph">Confirm the public HTTP hostname returns the health response before requesting a certificate. The endpoint is a harmless demonstration; do not send credentials or sensitive data over HTTP.</p>



<p class="wp-block-paragraph">This fresh-server workflow uses Certbot’s snap installation. If Certbot already exists through apt or another method, follow its migration instructions instead of mixing installations. Install the snap, then use its explicit executable path:</p>



<pre class="wp-block-code"><code>sudo snap install --classic certbot
sudo /snap/bin/certbot --nginx --redirect -d api.example.com</code></pre>



<p class="wp-block-paragraph">Follow the prompts for an account email and the certificate authority’s terms. Certbot’s Nginx plugin obtains the certificate and updates the selected site to serve HTTPS and redirect HTTP. Back up an existing Nginx configuration before letting it edit that configuration.</p>



<p class="wp-block-paragraph">Check the result without bypassing certificate verification:</p>



<pre class="wp-block-code"><code>sudo nginx -t
curl -fsS https://api.example.com/health
curl -fsS https://api.example.com/openapi.json</code></pre>



<p class="wp-block-paragraph">Visit <code>https://api.example.com/docs</code> and confirm the API documentation loads. HTTPS encrypts transport; it does not authenticate your API’s users. Add the access controls your real endpoints need. The <a href="https://certbot.eff.org/instructions?ws=nginx&amp;os=snap&amp;tab=standard" rel="noopener">official Certbot instructions</a> cover installation and issuance.</p>



<h2 id="renewal" class="wp-block-heading">6. Verify renewal and external access</h2>



<p class="wp-block-paragraph">Test automatic renewal and inspect the scheduled jobs:</p>



<pre class="wp-block-code"><code>sudo /snap/bin/certbot renew --dry-run
systemctl list-timers --all
sudo ss -ltnp</code></pre>



<p class="wp-block-paragraph">Confirm the Certbot renewal timer is present and scheduled. A successful initial certificate does not prove future renewal will work. Keep the required challenge route reachable and monitor expiry independently.</p>



<p class="wp-block-paragraph">In the listening-socket output, Uvicorn should use <code>127.0.0.1:8000</code>; Nginx should own the public web listeners. From a workstation outside the VPS, check HTTPS by hostname and verify that port 8000 is unreachable. Test IPv6 separately if the hostname has an AAAA record.</p>



<p class="wp-block-paragraph">Make a normal API request after a planned reboot and confirm <code>systemctl is-active fastapi nginx</code> reports both services active. The demo health route checks only the process’s HTTP response. For a database-backed app, design readiness checks that also validate critical dependencies without exposing secrets.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-deployment-checks.webp" alt="Four FastAPI deployment checks covering application health, systemd, Nginx configuration and HTTPS certificate renewal." class="wp-image-6023" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-deployment-checks.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-deployment-checks-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-deployment-checks-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/fastapi-deployment-checks-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="troubleshoot" class="wp-block-heading">7. Troubleshoot the failing layer</h2>



<p class="wp-block-paragraph">Diagnose from the application outward. If localhost is failing, changing DNS or requesting another certificate will not repair the Python process.</p>



<p class="wp-block-paragraph">Useful logs are <code>sudo journalctl -u fastapi -n 100 --no-pager</code> and <code>sudo tail -n 100 /var/log/nginx/error.log</code>. Redact tokens, cookies and personal data before sharing them. Avoid repeatedly retrying certificate issuance while DNS or network access is still broken.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Symptom</th><th>Check first</th><th>Likely action</th></tr></thead><tbody><tr><td>502 Bad Gateway</td><td>Local health URL and service logs</td><td>Fix import, dependency, process or upstream port</td></tr><tr><td>Nginx welcome page</td><td>DNS and enabled server_name</td><td>Route the hostname to the intended site</td></tr><tr><td>Redirect uses HTTP</td><td>Forwarded scheme and trusted proxy IP</td><td>Keep Nginx headers and Uvicorn trust aligned</td></tr><tr><td>Certificate validation fails</td><td>Public DNS, port 80 and AAAA record</td><td>Correct the challenge path and network reachability</td></tr><tr><td>413 or streaming/WebSocket issues</td><td>Nginx body limits, buffering and upgrade settings</td><td>Configure the application-specific proxy behavior</td></tr></tbody></table></figure>



<h2 id="maintain" class="wp-block-heading">8. Deploy FastAPI updates and plan capacity</h2>



<p class="wp-block-paragraph">For application updates, retain a known working release and dependency set, run your tests, deploy the reviewed code, and restart <code>sudo systemctl restart fastapi</code>. Recheck local and public health endpoints. Run <code>daemon-reload</code> before restarting if the unit file changes. A restart can briefly interrupt requests; this single-server setup does not provide zero-downtime releases.</p>



<p class="wp-block-paragraph">Start with the one worker shown. Increase workers only after measuring CPU, memory and database-connection usage. Each process has its own memory and application state; background tasks or startup jobs may run in each worker. Use shared persistent storage and appropriate job coordination. See <a href="https://fastapi.tiangolo.com/deployment/server-workers/" rel="noopener">FastAPI’s worker guidance</a>.</p>



<p class="wp-block-paragraph">Protect production documentation and administrative endpoints as appropriate, back up persistent data off-server, monitor errors and disk growth, and keep Ubuntu and dependencies maintained. The empty environment-file creation command is a first-install step; do not rerun it over a populated settings file.</p>



<p class="wp-block-paragraph">Our <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> suits teams that want control of this stack. Size the server for your actual workload and management needs; <a href="https://www.aveshost.com/support" rel="noopener">contact our support team</a> to discuss the deployment. Our <a href="https://blog.aveshost.com/docker-disk-space-full/">VPS storage troubleshooting guide</a> is useful when logs or deployment artifacts fill a server.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-60f4db7d85054bdcba3bc74e43dfab88" class="rank-math-list-item">
<h3 class="rank-math-question ">Do I need Gunicorn to deploy FastAPI on a VPS?</h3>
<div class="rank-math-answer ">

<p>No. This setup uses Uvicorn directly under systemd. Uvicorn can run worker processes itself; choose a process model based on measured load and memory rather than adding a second manager automatically.</p>

</div>
</div>
<div id="faq-question-367e44d8e9f34581b2fec6553a27e78c" class="rank-math-list-item">
<h3 class="rank-math-question ">Should I run Uvicorn with &#8211;reload in production?</h3>
<div class="rank-math-answer ">

<p>No. Reload mode is intended for development. Deploy a reviewed release and restart the supervised service deliberately. Keep the application bound to localhost behind Nginx.</p>

</div>
</div>
<div id="faq-question-da375db5144f418ebdc4a51cc8e22f9b" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does FastAPI work on localhost but return 502 through Nginx?</h3>
<div class="rank-math-answer ">

<p>Compare proxy_pass with the actual listening address and port, then inspect Nginx’s error log. Verify the enabled site configuration and whether the app is still running when the proxy request arrives.</p>

</div>
</div>
<div id="faq-question-2611c4d5ca7245adbf70539d9caa94c1" class="rank-math-list-item">
<h3 class="rank-math-question ">Does my API need its own certificate inside Uvicorn?</h3>
<div class="rank-math-answer ">

<p>Not in this same-host design. Nginx handles public HTTPS and forwards HTTP over loopback. If the upstream moves to another server or network, reassess encryption and trust for that connection.</p>

</div>
</div>
<div id="faq-question-afe3015930f04fd191e483a589b6f5b0" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I deploy an existing database-backed FastAPI project this way?</h3>
<div class="rank-math-answer ">

<p>Yes, but add its pinned dependencies, environment settings, database connectivity, migrations, backups and readiness checks. Preserve persistent data outside disposable releases and plan rollback around schema compatibility.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
