<?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>cPanel &#8211; Aveshost Blog</title>
	<atom:link href="https://blog.aveshost.com/tag/cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.aveshost.com</link>
	<description>Your Blueprint for Online Success</description>
	<lastBuildDate>Sat, 07 Nov 2026 18:57:14 +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>cPanel &#8211; Aveshost Blog</title>
	<link>https://blog.aveshost.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Deploy a Lovable Website to cPanel Hosting</title>
		<link>https://blog.aveshost.com/deploy-lovable-website-to-cpanel/</link>
					<comments>https://blog.aveshost.com/deploy-lovable-website-to-cpanel/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sat, 07 Nov 2026 16:37:33 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[AI Insights]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Lovable]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5783</guid>

					<description><![CDATA[Want to host your AI-built Lovable app on your own domain? Follow this step-by-step guide to export your Lovable project to GitHub, build the production Vite bundle, configure .htaccess for React Router, and deploy to cPanel.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">To <strong>deploy a Lovable website to cPanel</strong> hosting, you export your project to GitHub, compile the React and Vite source code into a production static bundle (the <code>dist/</code> folder) using <code>npm run build</code>, add an Apache <code>.htaccess</code> rewrite rule for client-side routing, and upload the compiled files into your cPanel <code>public_html</code> directory. Because <a href="https://docs.lovable.dev/tips-tricks/self-hosting" target="_blank" rel="noopener">Lovable projects</a> use standard open-source web technologies—React, TypeScript, Vite, and Tailwind CSS—you have complete ownership of your code and can host the frontend on any standard Linux cPanel account.</p>



<p class="wp-block-paragraph"><strong>Key Takeaways:</strong> Never upload raw Lovable source files (such as <code>src/App.tsx</code> or <code>package.json</code>) directly into <code>public_html</code>; browsers cannot execute uncompiled TypeScript. Always configure your <code>VITE_*</code> environment variables before running <code>npm run build</code>, upload only the contents <em>inside</em> the generated <code>dist/</code> folder, and include a <code>.htaccess</code> file so refreshing sub-pages like <code>/dashboard</code> or <code>/pricing</code> does not trigger a 404 error.</p>



<p class="wp-block-paragraph"><strong>Using DirectAdmin instead of cPanel?</strong> If your hosting account or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">Aveshost Fully Managed VPS</a> uses the DirectAdmin control panel, follow our companion step-by-step tutorial on <a href="https://blog.aveshost.com/deploy-lovable-website-to-directadmin/">how to deploy a Lovable website to DirectAdmin hosting</a>, which covers DirectAdmin’s <code>domains/yourdomain.com/public_html/</code> directory path, and the Evolution File Manager</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div class=""><a href="#how-lovable-websites-work-on-cpanel">How Lovable Websites Work on cPanel Hosting</a></div><div class=""><a href="#prerequisites-before-deploying-to-cpanel">Prerequisites Before You Deploy a Lovable Website to cPanel</a></div><div class=""><a href="#step-1-export-lovable-project-to-github">Step 1: Sync and Export Your Lovable Project to GitHub</a></div><div class=""><a href="#step-2-configure-env-and-build-dist-folder">Step 2: Configure Environment Variables and Build the dist Folder</a></div><div class=""><a href="#step-3-create-htaccess-for-react-router">Step 3: Add an .htaccess File to Fix React Router 404 Errors</a></div><div class=""><a href="#step-4-upload-dist-files-to-cpanel-public-html">Step 4: Upload and Extract Your Build in cPanel File Manager</a></div><div class=""><a href="#automate-deployments-with-github-and-cpanel">Bonus: Automate Future Updates with GitHub Actions or cPanel Git</a></div><div class=""><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="how-lovable-websites-work-on-cpanel" class="wp-block-heading">How Lovable Websites Work on cPanel Hosting</h2>



<p class="wp-block-paragraph">When you build a web application in Lovable, the platform generates a modern <strong>Single Page Application (SPA)</strong> powered by <a href="https://vite.dev/guide/static-deploy.html" target="_blank" rel="noopener">Vite</a>, React, Tailwind CSS, and shadcn/ui. During development inside Lovable—or inside an AI IDE like <a href="https://blog.aveshost.com/google-antigravity-vs-cursor/">Google Antigravity or Cursor</a>—a Node.js dev server compiles TypeScript and JSX on the fly.</p>



<p class="wp-block-paragraph">In production, however, a compiled Vite app does not require a running Node.js server. Running <code>npm run build</code> packages your entire application into static HTML, CSS, and JavaScript assets inside a <code>dist/</code> folder. Your <a href="https://www.aveshost.com/web-hosting" rel="noopener">Aveshost cPanel Web Hosting</a> server (running Apache or LiteSpeed) delivers those static files over HTTPS with near-zero server overhead, while dynamic features—such as user logins, database queries, and serverless edge functions—continue communicating directly with your <a href="https://blog.aveshost.com/self-host-supabase-on-a-vps/">Supabase</a> or API backend from the visitor’s browser.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Application Layer</th><th>Where It Runs After Deployment</th><th>What You Configure</th></tr></thead><tbody><tr><td>Frontend UI (React + Vite + Tailwind)</td><td>cPanel public_html directory (Apache / LiteSpeed)</td><td>Upload compiled contents of the dist/ folder</td></tr><tr><td>Client-Side Routing (React Router)</td><td>cPanel Apache / LiteSpeed mod_rewrite</td><td>Add .htaccess rewrite rule pointing to /index.html</td></tr><tr><td>Database, Auth &amp; Edge Functions</td><td>Supabase Cloud, Lovable Cloud, or Self-Hosted VPS</td><td>Set VITE_SUPABASE_URL &amp; keys in .env before build</td></tr><tr><td>Custom Domain &amp; SSL Certificate</td><td>cPanel Domains + AutoSSL (Let’s Encrypt)</td><td>Point domain DNS to cPanel &amp; whitelist URL in Supabase</td></tr></tbody></table></figure>



<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/lovable-to-cpanel-deployment-pipeline.webp" alt="Four-step workflow diagram showing how to deploy a Lovable website to cPanel: Sync to GitHub, Build Static App, Add .htaccess, and Upload to cPanel" class="wp-image-5785" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/lovable-to-cpanel-deployment-pipeline.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/lovable-to-cpanel-deployment-pipeline-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/lovable-to-cpanel-deployment-pipeline-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/lovable-to-cpanel-deployment-pipeline-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /><figcaption class="wp-element-caption">The four-step workflow to deploy a Lovable website to cPanel: sync with GitHub, run npm run build, add an .htaccess rewrite rule, and extract inside public_html.</figcaption></figure>



<h2 id="prerequisites-before-deploying-to-cpanel" class="wp-block-heading">Prerequisites Before You Deploy a Lovable Website to cPanel</h2>



<p class="wp-block-paragraph">Before starting the deployment, make sure you have the following four items ready so your build and upload finish in under ten minutes:</p>



<p class="wp-block-paragraph"><strong>1. A Lovable project connected to GitHub:</strong> A free GitHub account linked to your Lovable workspace via two-way sync.</p>



<p class="wp-block-paragraph"><strong>2. Node.js (v18 or v20+) and Git installed locally:</strong> Required on your computer to run <code>npm install</code> and <code>npm run build</code> (unless you automate builds with GitHub Actions).</p>



<p class="wp-block-paragraph"><strong>3. An active cPanel hosting account and domain:</strong> Any <a href="https://www.aveshost.com/web-hosting" rel="noopener">Aveshost cPanel hosting plan</a> with File Manager access and a connected <a href="https://www.aveshost.com/domains" rel="noopener">domain name</a> (or see our <a href="https://blog.aveshost.com/deploy-lovable-website-to-directadmin/">DirectAdmin Lovable deployment guide</a> if your server uses DirectAdmin).</p>



<p class="wp-block-paragraph"><strong>4. Your public API or Supabase credentials:</strong> If your Lovable site uses a database or authentication, keep your <code>VITE_SUPABASE_URL</code> and <code>VITE_SUPABASE_PUBLISHABLE_KEY</code> (or <code>VITE_SUPABASE_ANON_KEY</code>) handy.</p>



<h2 id="step-1-export-lovable-project-to-github" class="wp-block-heading">Step 1: Sync and Export Your Lovable Project to GitHub</h2>



<p class="wp-block-paragraph">Lovable uses native two-way GitHub synchronization rather than a one-time static ZIP export. This means you can continue prompting Lovable in the browser while keeping a clean Git repository for production builds.</p>



<p class="wp-block-paragraph">Open your project inside Lovable, click the <strong>GitHub</strong> icon in the top-right navigation bar, and select <strong>Connect to GitHub</strong>. Authorize the Lovable GitHub App, choose your personal account or organization, and click <strong>Create Repository</strong>. Once Lovable pushes the initial commit, open your local terminal and clone the repository to your computer:</p>



<p class="wp-block-paragraph">After cloning the repository, inspect the project root to verify that <code>package.json</code>, <code>vite.config.ts</code>, <code>index.html</code>, and the <code>src/</code> folder are present. Because Lovable maintains a live two-way sync with this GitHub repository, any future UI changes you generate inside Lovable will automatically appear as new commits on your default branch—making it easy to pull updates (<code>git pull</code>) and rebuild whenever you are ready to ship a new release.</p>



<pre class="wp-block-code"><code># Clone your synced Lovable repository from GitHub
git clone https://github.com/your-username/your-lovable-project.git
cd your-lovable-project</code></pre>



<h2 id="step-2-configure-env-and-build-dist-folder" class="wp-block-heading">Step 2: Configure Environment Variables and Build the dist Folder</h2>



<p class="wp-block-paragraph">A common mistake when developers first <strong>deploy a Lovable website to cPanel</strong> is uploading the raw GitHub repository straight to the server. Because browsers cannot execute <code>.tsx</code> files directly, you must compile the project into static assets first.</p>



<p class="wp-block-paragraph">If your Lovable app connects to Supabase or external APIs, create a <code>.env</code> file in the root of your cloned project before building. Vite injects variables prefixed with <code>VITE_</code> directly into the compiled JavaScript bundle at build time—if you skip the <code>.env</code> file, your live site may render a blank white screen.</p>



<p class="wp-block-paragraph">Once your <code>.env</code> file is saved, run <code>npm install</code> followed by <code>npm run build</code>. Vite will compile, minify, and tree-shake your application into a new folder named <strong><code>dist/</code></strong> containing <code>index.html</code> and an <code>assets/</code> directory.</p>



<p class="wp-block-paragraph">Keep in mind that any variable prefixed with <code>VITE_</code> is embedded into the public client bundle downloaded by the browser. Never place secret server-only keys (such as a Supabase <code>service_role</code> key, database root password, or private Stripe secret key) inside your <code>.env</code> file. Store private secrets exclusively inside Supabase Edge Function secrets or backend environment variables.</p>



<pre class="wp-block-code"><code># 1. Create a .env file in the project root (if using Supabase or public APIs)
VITE_SUPABASE_URL="https://your-project-id.supabase.co"
VITE_SUPABASE_PUBLISHABLE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

# 2. Install dependencies and compile the production bundle into dist/
npm install
npm run build</code></pre>



<h2 id="step-3-create-htaccess-for-react-router" class="wp-block-heading">Step 3: Add an .htaccess File to Fix React Router 404 Errors</h2>



<p class="wp-block-paragraph">By default, Lovable uses <strong>React Router</strong> (<code>react-router-dom</code>) for client-side navigation. When a visitor clicks a link from your homepage to <code>yourdomain.com/about</code>, React handles the URL change in memory. However, if that visitor refreshes the browser on <code>yourdomain.com/about</code> or clicks a direct link from Google Search, cPanel’s Apache or LiteSpeed web server looks for a physical folder named <code>/public_html/about/</code>—which does not exist—and returns a <strong>404 Not Found</strong> error.</p>



<p class="wp-block-paragraph">To solve this, create a file named <strong><code>.htaccess</code></strong> inside your local <code>dist/</code> folder (right alongside <code>index.html</code>) that tells Apache to serve existing static files normally and route all other virtual paths back to <code>index.html</code>.</p>



<p class="wp-block-paragraph">If you are deploying your Lovable application into a subdirectory such as <code>https://yourdomain.com/app/</code> instead of the primary root domain, update two settings before uploading: add <code>base: '/app/'</code> inside your <code>vite.config.ts</code> file prior to running <code>npm run build</code>, and change <code>RewriteBase /</code> and <code>RewriteRule . /index.html [L]</code> in your <code>.htaccess</code> file to <code>RewriteBase /app/</code> and <code>RewriteRule . /app/index.html [L]</code> so assets and deep links resolve inside the subfolder.</p>



<pre class="wp-block-code"><code># Save as dist/.htaccess (and upload to /home/username/public_html/.htaccess)
&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - &#91;L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule . /index.html &#91;L]
&lt;/IfModule&gt;</code></pre>



<h2 id="step-4-upload-dist-files-to-cpanel-public-html" class="wp-block-heading">Step 4: Upload and Extract Your Build in cPanel File Manager</h2>



<p class="wp-block-paragraph">With your compiled <code>dist/</code> bundle and <code>.htaccess</code> file ready, you can upload the site to cPanel in less than two minutes:</p>



<p class="wp-block-paragraph"><strong>1. Zip the contents inside <code>dist/</code>:</strong> Open your local <code>dist/</code> folder, select all files inside it (<code>index.html</code>, the <code>assets/</code> folder, <code>favicon.ico</code>, and <code>.htaccess</code>), and compress them into <code>deploy.zip</code>. Do not zip the outer <code>dist</code> folder itself, or your site will end up at <code>yourdomain.com/dist/</code>.</p>



<p class="wp-block-paragraph"><strong>2. Open cPanel File Manager:</strong> Log in to cPanel, open <strong>File Manager</strong>, click <strong>Settings</strong> in the top-right corner, and check <strong>Show Hidden Files (dotfiles)</strong> so <code>.htaccess</code> is visible.</p>



<p class="wp-block-paragraph"><strong>3. Extract inside <code>public_html</code>:</strong> Navigate into <code>public_html</code> (or your addon domain’s document root), remove any default placeholder files, click <strong>Upload</strong> to upload <code>deploy.zip</code>, right-click <code>deploy.zip</code>, and select <strong>Extract</strong>. Once extracted, delete <code>deploy.zip</code> so your archive is not publicly downloadable.</p>



<p class="wp-block-paragraph"><strong>4. Update Supabase Auth URLs (If Applicable):</strong> If your Lovable app uses Supabase Authentication, open your Supabase dashboard, go to <strong>Authentication → URL Configuration</strong>, set the <strong>Site URL</strong> to <code>https://yourdomain.com</code>, and add <code>https://yourdomain.com/**</code> under <strong>Redirect URLs</strong> so login redirects work on your live domain.</p>



<h2 id="automate-deployments-with-github-and-cpanel" class="wp-block-heading">Bonus: Automate Future Updates with GitHub Actions or cPanel Git</h2>



<p class="wp-block-paragraph">If you frequently update your website in Lovable, manually running <code>npm run build</code> and uploading a ZIP file after every prompt gets repetitive. You have two clean ways to automate the pipeline:</p>



<p class="wp-block-paragraph"><strong>Option A — GitHub Actions FTP/SSH Auto-Deploy (Recommended):</strong> Add a workflow file at <code>.github/workflows/deploy.yml</code> in your repository. Every time Lovable pushes a change to your <code>main</code> branch on GitHub, GitHub’s cloud runner automatically installs Node dependencies, injects your repository secrets, runs <code>npm run build</code>, creates <code>.htaccess</code>, and syncs the compiled <code>dist/</code> folder straight to your cPanel server via FTPS or SSH.</p>



<p class="wp-block-paragraph"><strong>Option B — <a href="https://docs.cpanel.net/cpanel/files/git-version-control/" target="_blank" rel="noopener">cPanel Git Version Control</a> (<code>.cpanel.yml</code>):</strong> If you commit your built <code>dist/</code> folder or build on a staging environment, you can connect your GitHub repository directly inside <strong>cPanel → Git Version Control</strong> and add a <code>.cpanel.yml</code> file at the repository root that copies the compiled assets into <code>/home/username/public_html/</code> on every pull.</p>



<p class="wp-block-paragraph">Whether you are launching a fast marketing site, a client portal, or a full-stack SaaS frontend, pairing Lovable’s AI speed with <a href="https://www.aveshost.com/web-hosting" rel="noopener">Aveshost cPanel Web Hosting</a> gives you predictable pricing, free Let’s Encrypt SSL, custom business email, and full control over your files. If you ever outgrow shared cPanel hosting or want to run your own <a href="https://blog.aveshost.com/supabase-alternatives/">self-hosted backend database</a> alongside your frontend, you can upgrade seamlessly to an <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">Aveshost Managed VPS</a> or reach out to <a href="https://www.aveshost.com/support" rel="noopener">Aveshost Support</a> for hands-on migration help.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Deployment Issue / Symptom</th><th>Root Cause on cPanel</th><th>Exact Fix</th></tr></thead><tbody><tr><td>Blank white page after uploading to public_html</td><td>Missing VITE_* variables at build time or uploaded raw src/ files</td><td>Create .env before running npm run build; upload only dist/ contents</td></tr><tr><td>404 Not Found when refreshing /login or /dashboard</td><td>Apache looks for physical folders instead of React Router routes</td><td>Add the mod_rewrite .htaccess file inside public_html</td></tr><tr><td>Broken CSS/JS assets when hosted in a subfolder (/app/)</td><td>Vite defaults to root-relative (/assets/&#8230;) asset paths</td><td>Set base: &#8216;/app/&#8217; in vite.config.ts and rebuild before uploading</td></tr><tr><td>Supabase login redirects back to *.lovable.app preview URL</td><td>Supabase Site URL still points to Lovable preview domain</td><td>Update Site URL &amp; Redirect URLs in Supabase Auth settings</td></tr></tbody></table></figure>



<pre class="wp-block-code"><code># Example .cpanel.yml for cPanel Git Version Control deployment
---
deployment:
  tasks:
    - export DEPLOYPATH=/home/cpanel_username/public_html/
    - /bin/cp -R dist/* $DEPLOYPATH
    - /bin/cp dist/.htaccess $DEPLOYPATH</code></pre>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/cpanel-manual-upload-vs-git-auto-deploy.webp" alt="Side-by-side comparison diagram of cPanel deployment methods: Manual File Manager upload versus automated GitHub + cPanel Git workflow" class="wp-image-5786" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/cpanel-manual-upload-vs-git-auto-deploy.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/cpanel-manual-upload-vs-git-auto-deploy-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/cpanel-manual-upload-vs-git-auto-deploy-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/cpanel-manual-upload-vs-git-auto-deploy-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /><figcaption class="wp-element-caption">Comparing manual cPanel File Manager uploads against automated GitHub Actions and cPanel Git Version Control deployments.</figcaption></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-dc199d1241be4116aa3d3fc1a9102436" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I upload a Lovable GitHub repository directly to cPanel without building it?</h3>
<div class="rank-math-answer ">

<p>No. A Lovable GitHub repository contains raw TypeScript (.tsx) and Vite source files that web browsers cannot execute directly. You must run npm install and npm run build locally (or via GitHub Actions) and upload only the compiled contents of the dist/ folder to cPanel&#8217;s public_html directory.</p>

</div>
</div>
<div id="faq-question-790be16068894765a6f3986d44e7bd09" class="rank-math-list-item">
<h3 class="rank-math-question ">Why do sub-pages on my Lovable website show a 404 error on cPanel when refreshed?</h3>
<div class="rank-math-answer ">

<p>Lovable websites are Single Page Applications (SPAs) that use React Router for client-side navigation. Without an .htaccess rewrite rule in public_html, Apache looks for a physical subfolder matching the URL path and returns a 404 error. Adding a standard mod_rewrite .htaccess rule redirects all virtual routes to index.html.</p>

</div>
</div>
<div id="faq-question-f925de363c9e4aa8873d3d8e63bfd813" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I deploy a Lovable website to a subfolder or subdomain in cPanel?</h3>
<div class="rank-math-answer ">

<p>For a subdomain (such as app.yourdomain.com), create the subdomain in cPanel Domains and extract your dist/ files directly into that subdomain&#8217;s document root. For a subfolder (such as yourdomain.com/app/), add base: &#8216;/app/&#8217; inside vite.config.ts before running npm run build, and set RewriteBase /app/ in that folder&#8217;s .htaccess file.</p>

</div>
</div>
<div id="faq-question-d615b52acb29475db3a44e8b11c48605" class="rank-math-list-item">
<h3 class="rank-math-question ">What happens to my Supabase database when I move a Lovable site to cPanel?</h3>
<div class="rank-math-answer ">

<p>Your Supabase database, authentication, and Edge Functions remain completely intact because your Lovable frontend communicates with Supabase over HTTPS using your VITE_SUPABASE_URL and public API key. Just make sure to add your new cPanel domain under Authentication -&gt; URL Configuration in the Supabase dashboard.</p>

</div>
</div>
<div id="faq-question-01d175d808f5430f948335b0e16fd4dd" class="rank-math-list-item">
<h3 class="rank-math-question ">Does cPanel need Node.js enabled to run a built Lovable website?</h3>
<div class="rank-math-answer ">

<p>No. Once compiled with npm run build, a Lovable application is 100% static HTML, CSS, and JavaScript. Standard Apache or LiteSpeed web servers on any cPanel hosting plan serve these files natively without requiring a persistent Node.js process on the server.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/deploy-lovable-website-to-cpanel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress Admin Login URL: How to Find It and Recover Access</title>
		<link>https://blog.aveshost.com/wordpress-admin-login-url/</link>
					<comments>https://blog.aveshost.com/wordpress-admin-login-url/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Wed, 04 Nov 2026 13:25:21 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[WordPress Tutorial]]></category>
		<category><![CDATA[wp-admin]]></category>
		<category><![CDATA[wp-login.php]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5725</guid>

					<description><![CDATA[Learn how to find your default or custom WordPress Admin Login URL (/wp-admin/ and /wp-login.php) and recover access to your dashboard using cPanel 1-click login, File Manager, or phpMyAdmin.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">To find your default <strong>WordPress Admin Login URL</strong>, add <code>/wp-admin/</code> or <code>/wp-login.php</code> to the end of your website&#8217;s domain name in your browser&#8217;s address bar—for example, <code>https://yourdomain.com/wp-admin/</code> or <code>https://yourdomain.com/wp-login.php</code>. Both paths take you straight to the WordPress login screen where you enter your administrator username or email address and password.</p>



<p class="wp-block-paragraph">If visiting your normal <strong>WordPress Admin Login URL</strong> shows a <code>404 Not Found</code> page, redirects endlessly back to the login screen, or rejects your password without sending a reset email, a custom security plugin or database configuration issue is blocking your entry. Below, we cover every default login path for root, subdirectory, and subdomain installations, followed by five proven methods to recover full administrator access.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#what-is-the-default-wordpress-admin-login-url">What Is the Default WordPress Admin Login URL?</a></div><div><a href="#how-to-bookmark-and-access-wp-admin-faster">Method 1: Log In Instantly via cPanel WordPress Manager (No Password Needed)</a></div><div><a href="#find-hidden-or-custom-wordpress-admin-login-url">Method 2: Find or Restore a Hidden Custom WordPress Admin Login URL</a></div><div><a href="#reset-wordpress-admin-password-email-or-phpmyadmin">Method 3: Recover Access by Resetting Your WordPress Password</a></div><div><a href="#fix-wordpress-login-page-redirect-loop-and-errors">Method 4: Fix the WordPress Login Page Refreshing and Redirecting Loop</a></div><div><a href="#fix-403-forbidden-or-database-error-on-wp-admin">Method 5: Resolve 403 Forbidden or Database Errors on /wp-admin/</a></div><div><a href="#wordpress-login-troubleshooting-reference-table">Quick Reference: WordPress Login Problems and Fastest Fixes</a></div><div><a href="#protect-your-wordpress-admin-login-url">Best Practices to Secure Your WordPress Admin Login URL Without Getting Locked Out</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="what-is-the-default-wordpress-admin-login-url" class="wp-block-heading">What Is the Default WordPress Admin Login URL?</h2>



<p class="wp-block-paragraph">On every fresh installation, <a href="https://wordpress.org/documentation/article/first-steps-with-wordpress-b/" target="_blank" rel="noopener noreferrer">WordPress</a> creates built-in rewrite rules and PHP entry files that route administrators to the login screen. Which exact <strong>WordPress Admin Login URL</strong> you should type depends on whether you installed WordPress in your domain&#8217;s root folder (<code>public_html</code>), inside a subfolder, or on a subdomain.</p>



<p class="wp-block-paragraph">Use the reference table below to match your installation setup to the right login address:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Installation Type</th><th>Primary Login URL</th><th>Direct PHP Login File</th></tr></thead><tbody><tr><td>Standard Root Domain</td><td>https://yourdomain.com/wp-admin/</td><td>https://yourdomain.com/wp-login.php</td></tr><tr><td>Short Redirect Aliases</td><td>https://yourdomain.com/admin/</td><td>https://yourdomain.com/login/</td></tr><tr><td>Subdirectory Install (e.g. /blog)</td><td>https://yourdomain.com/blog/wp-admin/</td><td>https://yourdomain.com/blog/wp-login.php</td></tr><tr><td>Subdomain Install (e.g. blog.)</td><td>https://blog.yourdomain.com/wp-admin/</td><td>https://blog.yourdomain.com/wp-login.php</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-default-login-urls-reference.webp" alt="Default WordPress Admin Login URL structures for standard root domains, subdirectories, subdomains, and cPanel 1-click WordPress Manager login." class="wp-image-5723" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-default-login-urls-reference.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-default-login-urls-reference-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-default-login-urls-reference-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-default-login-urls-reference-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="how-to-bookmark-and-access-wp-admin-faster" class="wp-block-heading">Method 1: Log In Instantly via cPanel WordPress Manager (No Password Needed)</h2>



<p class="wp-block-paragraph">If you forgot your <strong>WordPress Admin Login URL</strong> or cannot remember your administrator password, you do not have to guess credentials on the public login screen. When your site is hosted on cPanel—including <a href="https://www.aveshost.com/wordpress-hosting" rel="noopener">Aveshost WordPress Hosting</a> and <a href="https://www.aveshost.com/web-hosting" rel="noopener">Aveshost Shared Web Hosting</a>—you can sign straight into your WordPress dashboard from your hosting control panel.</p>



<p class="wp-block-paragraph">Follow these steps to use the 1-click admin sign-in:</p>



<p class="wp-block-paragraph"><strong>1. Open cPanel:</strong> Log in to your Aveshost client area and open <strong>cPanel</strong>.</p>



<p class="wp-block-paragraph"><strong>2. Launch WordPress Manager:</strong> Scroll to the <em>Software</em> or <em>Applications</em> section and click <strong>WordPress Manager by Softaculous</strong>.</p>



<p class="wp-block-paragraph"><strong>3. Click Login next to your domain:</strong> Locate your website in the installation list and click the <strong>Login</strong> button in the <em>Admin</em> column. Softaculous authenticates your administrator session automatically and opens your <code>/wp-admin/</code> dashboard in a new browser tab without asking for a password.</p>



<h2 id="find-hidden-or-custom-wordpress-admin-login-url" class="wp-block-heading">Method 2: Find or Restore a Hidden Custom WordPress Admin Login URL</h2>



<p class="wp-block-paragraph">What if typing <code>/wp-admin/</code> or <code>/wp-login.php</code> returns a <code>404 Not Found</code> error or redirects you to your home page? That almost always means someone installed a login-hiding plugin—such as <strong>WPS Hide Login</strong>, <strong>Solid Security</strong> (formerly iThemes Security), <strong>All-In-One Security (AIOS)</strong>, or <strong>Defender</strong>—to change the default <strong>WordPress Admin Login URL</strong> to a custom slug like <code>/my-portal/</code> or <code>/secret-login/</code>.</p>



<p class="wp-block-paragraph">If you no longer remember that custom login slug, you can recover your login URL in two ways using cPanel:</p>



<p class="wp-block-paragraph"><strong>Option A — Look up the custom slug in phpMyAdmin (keeps the plugin active):</strong> Open <strong>cPanel → phpMyAdmin</strong>, select your WordPress database, and click the <code>wp_options</code> table. Use the <strong>Search</strong> tab to search where <code>option_name</code> equals <code>whl_page</code> (used by WPS Hide Login) or <code>aio_wp_security_configs</code> (used by AIOS). The <code>option_value</code> column will show the exact custom slug you need to visit.</p>



<p class="wp-block-paragraph"><strong>Option B — Rename the plugin folder in File Manager (restores /wp-login.php immediately):</strong> Open <strong>cPanel → File Manager</strong>, navigate to <code>public_html/wp-content/plugins/</code>, right-click the folder of your login-hiding plugin (for example, <code>wps-hide-login</code>), and rename it to <code>wps-hide-login-old</code>. As soon as the folder name changes, WordPress deactivates that plugin and restores your standard <code>https://yourdomain.com/wp-login.php</code> address. Once you log in, you can rename the folder back and check its settings page.</p>



<h2 id="reset-wordpress-admin-password-email-or-phpmyadmin" class="wp-block-heading">Method 3: Recover Access by Resetting Your WordPress Password</h2>



<p class="wp-block-paragraph">When you can reach your <strong>WordPress Admin Login URL</strong> at <code>/wp-login.php</code> but your password is not working, start by clicking the <strong>Lost your password?</strong> link underneath the login form and entering your username or administrator email address.</p>



<p class="wp-block-paragraph">If the password reset email never arrives in your inbox or spam folder, your WordPress site is likely using unauthenticated PHP <code>mail()</code>, which modern mail providers frequently block. (Once you regain access, configure authenticated SMTP using our step-by-step guide on <a href="https://blog.aveshost.com/use-gmail-smtp-server/">how to use the Gmail SMTP server to send emails for free</a> so password reset emails always deliver.) In the meantime, you can <a href="https://developer.wordpress.org/advanced-administration/security/reset-password/#through-phpmyadmin" target="_blank" rel="noopener noreferrer">reset your WordPress password directly in phpMyAdmin</a>:</p>



<p class="wp-block-paragraph"><strong>1. Open the <code>wp_users</code> table:</strong> In <strong>cPanel → phpMyAdmin</strong>, click your WordPress database in the left sidebar and select the <code>wp_users</code> table (your table prefix may differ, such as <code>wp8k_users</code>).</p>



<p class="wp-block-paragraph"><strong>2. Edit your administrator row:</strong> Locate your username under the <code>user_login</code> column and click <strong>Edit</strong>.</p>



<p class="wp-block-paragraph"><strong>3. Set a new MD5 password hash:</strong> Find the <code>user_pass</code> row. In the <strong>Function</strong> dropdown menu, select <code>MD5</code>. In the <strong>Value</strong> text box next to it, delete the existing long hash and type your new plain-text password.</p>



<p class="wp-block-paragraph"><strong>4. Save and sign in:</strong> Scroll to the bottom and click <strong>Go</strong>. Now return to your <strong>WordPress Admin Login URL</strong> (`https://yourdomain.com/wp-login.php`) and sign in with your new password—WordPress will automatically upgrade the MD5 hash to its modern cryptographic hash on login.</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/recover-wordpress-admin-access-workflow.webp" alt="Four-step workflow to recover WordPress admin login access: cPanel 1-click login, unhiding custom login URLs in File Manager, resetting passwords in phpMyAdmin, and fixing redirect loops." class="wp-image-5724" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/recover-wordpress-admin-access-workflow.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/recover-wordpress-admin-access-workflow-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/recover-wordpress-admin-access-workflow-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/recover-wordpress-admin-access-workflow-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="fix-wordpress-login-page-redirect-loop-and-errors" class="wp-block-heading">Method 4: Fix the WordPress Login Page Refreshing and Redirecting Loop</h2>



<p class="wp-block-paragraph">Sometimes your <strong>WordPress Admin Login URL</strong> loads normally and accepts your username and password, but instead of opening the dashboard, it silently redirects you right back to <code>wp-login.php?redirect_to=...</code>. This login redirect loop has three common causes:</p>



<p class="wp-block-paragraph"><strong>1. Corrupted browser cookies or cache:</strong> WordPress relies on browser cookies to verify your login session. Test your <strong>WordPress Admin Login URL</strong> in an Incognito / Private browser window first. If it logs in cleanly there, clear your browser&#8217;s cookies and cached files for your domain.</p>



<p class="wp-block-paragraph"><strong>2. Mismatched <code>siteurl</code> and <code>home</code> URLs:</strong> If you recently switched from <code>http://</code> to <code>https://</code> or added/removed <code>www.</code>, a mismatch between your WordPress Address and Site Address will drop your authentication cookie. Open <code>wp-config.php</code> in cPanel File Manager and add these two lines just above <code>/* That's all, stop editing! */</code> (replacing <code>https://yourdomain.com</code> with your exact canonical URL):<br><code>define( 'WP_HOME', 'https://yourdomain.com' );</code><br><code>define( 'WP_SITEURL', 'https://yourdomain.com' );</code></p>



<p class="wp-block-paragraph"><strong>3. Corrupted <code>.htaccess</code> rules or conflicting plugins:</strong> In <strong>cPanel → File Manager</strong>, enable <strong>Show Hidden Files (dotfiles)</strong> under Settings, right-click <code>.htaccess</code> in <code>public_html</code>, and rename it to <code>.htaccess.bak</code>. Log in at <code>/wp-login.php</code>, then visit <strong>Settings → Permalinks</strong> and click <strong>Save Changes</strong> so WordPress generates a fresh, clean <code>.htaccess</code> file.</p>



<h2 id="fix-403-forbidden-or-database-error-on-wp-admin" class="wp-block-heading">Method 5: Resolve 403 Forbidden or Database Errors on /wp-admin/</h2>



<p class="wp-block-paragraph">If visiting your <strong>WordPress Admin Login URL</strong> displays <code>403 Forbidden</code> or blocks your IP address after too many failed login attempts, a firewall or brute-force limiter plugin (such as Wordfence, Limit Login Attempts Reloaded, or ModSecurity) has temporarily locked out your connection. You can bypass a plugin lockout immediately by signing in via <strong>cPanel → WordPress Manager</strong> or by temporarily renaming that security plugin&#8217;s folder inside <code>wp-content/plugins/</code> and whitelisting your IP address once inside.</p>



<p class="wp-block-paragraph">If both your public site and your <strong>WordPress Admin Login URL</strong> show a database error message instead of the login box, your PHP files cannot reach MySQL—follow our step-by-step walkthrough on <a href="https://blog.aveshost.com/fix-error-establishing-a-database-connection/">how to fix Error Establishing a Database Connection in WordPress</a> to verify your <code>wp-config.php</code> credentials and repair corrupted tables.</p>



<h2 id="wordpress-login-troubleshooting-reference-table" class="wp-block-heading">Quick Reference: WordPress Login Problems and Fastest Fixes</h2>



<p class="wp-block-paragraph">Use the symptom matrix below to jump straight to the right recovery method whenever you cannot sign in at your <strong>WordPress Admin Login URL</strong>:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>What Happens at the Login URL</th><th>Root Cause</th><th>Fastest Recovery Step</th></tr></thead><tbody><tr><td>/wp-admin/ and /wp-login.php show 404 Not Found</td><td>Custom login URL plugin (e.g., WPS Hide Login) or broken .htaccess</td><td>Check whl_page in wp_options or rename the login plugin folder in wp-content/plugins/</td></tr><tr><td>Password rejected and reset email never arrives</td><td>Forgotten password combined with unauthenticated PHP mail()</td><td>Log in via cPanel WordPress Manager or reset user_pass with MD5 in phpMyAdmin</td></tr><tr><td>Login form refreshes back to wp-login.php without an error</td><td>Stale browser cookie or mismatched WP_HOME / WP_SITEURL</td><td>Try an Incognito window and define matching WP_HOME and WP_SITEURL in wp-config.php</td></tr><tr><td>403 Forbidden or &#8216;Too many failed login attempts&#8217;</td><td>Security plugin IP lockout or firewall rule</td><td>Temporarily rename the security plugin folder via File Manager and whitelist your IP</td></tr></tbody></table></figure>



<h2 id="protect-your-wordpress-admin-login-url" class="wp-block-heading">Best Practices to Secure Your WordPress Admin Login URL Without Getting Locked Out</h2>



<p class="wp-block-paragraph">Because every automated bot knows the default <strong>WordPress Admin Login URL</strong> (`https://yourdomain.com/wp-login.php`), securing your login page is essential—but you should do it in a way that never locks out your own team. First, enable two-factor authentication (2FA) and use a password manager to store both your administrator password and any custom login slug. Second, never use <code>admin</code> as a username; create a named administrator account and delete the generic <code>admin</code> user.</p>



<p class="wp-block-paragraph">If you want fast, secure WordPress hosting where you always have 1-click dashboard sign-in, daily automated backups, and 24/7 technical assistance, explore <a href="https://www.aveshost.com/wordpress-hosting" rel="noopener">Aveshost WordPress Hosting</a> and <a href="https://www.aveshost.com/managed-wordpress-hosting" rel="noopener">Aveshost Managed WordPress Hosting</a>. And if you are ever locked out of your WordPress dashboard and need a hand getting back in safely, contact our team anytime via <a href="https://www.aveshost.com/support" rel="noopener">Aveshost Support</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-9c402bb14c79456fa6539ee2056ecbce" class="rank-math-list-item">
<h3 class="rank-math-question ">What is the default WordPress Admin Login URL?</h3>
<div class="rank-math-answer ">

<p>The default WordPress Admin Login URL for a standard root installation is <code>https://yourdomain.com/wp-admin/</code> or <code>https://yourdomain.com/wp-login.php</code> (replace <code>yourdomain.com</code> with your actual domain name).</p>

</div>
</div>
<div id="faq-question-c7d92b2519474da5b32579b4835a8e49" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I find my WordPress login URL if it was changed by a plugin?</h3>
<div class="rank-math-answer ">

<p>Log in to your hosting cPanel, open <strong>File Manager</strong>, and check <code>public_html/wp-content/plugins/</code> to see which security or custom-login plugin is installed (such as <code>wps-hide-login</code>). You can either inspect its saved slug in the <code>wp_options</code> table in phpMyAdmin or rename that plugin folder to temporarily restore <code>/wp-login.php</code>.</p>

</div>
</div>
<div id="faq-question-240297f9075e4750904fcc3760dc37e3" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I log in to WordPress without a password through cPanel?</h3>
<div class="rank-math-answer ">

<p>Yes. If your site is managed through <strong>WordPress Manager by Softaculous</strong> (or WP Toolkit) in cPanel, you can click the <strong>Login</strong> button next to your domain to open your WordPress admin dashboard with one click, without typing a username or password.</p>

</div>
</div>
<div id="faq-question-8a453a53a54b4533aed63dded378af49" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does my WordPress login page keep refreshing and redirecting?</h3>
<div class="rank-math-answer ">

<p>A login redirect loop is usually caused by blocked or outdated browser cookies, a mismatch between your WordPress Address (<code>WP_SITEURL</code>) and Site Address (<code>WP_HOME</code>), or a corrupted <code>.htaccess</code> file.</p>

</div>
</div>
<div id="faq-question-920f7ac72a20448ea5f8b47f8aa04e68" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I reset my WordPress admin password if I do not receive the reset email?</h3>
<div class="rank-math-answer ">

<p>Open <strong>cPanel → phpMyAdmin</strong>, select your WordPress database, open the <code>wp_users</code> table, click <strong>Edit</strong> on your administrator account, choose <code>MD5</code> in the Function dropdown for the <code>user_pass</code> field, enter your new password in plain text, and click <strong>Go</strong>.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/wordpress-admin-login-url/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Fix “Error Establishing a Database Connection” in WordPress</title>
		<link>https://blog.aveshost.com/fix-error-establishing-a-database-connection/</link>
					<comments>https://blog.aveshost.com/fix-error-establishing-a-database-connection/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Wed, 04 Nov 2026 11:04:30 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[WordPress Tutorial]]></category>
		<category><![CDATA[wp-config.php]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5718</guid>

					<description><![CDATA[Seeing Error Establishing a Database Connection in WordPress means your site&#8217;s PHP files cannot communicate with the MySQL or MariaDB database that stores your posts, pages, user accounts, and plugin settings. Because WordPress builds every page dynamically by querying the database, a broken database link immediately takes both your public website and your dashboard offline. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Seeing <strong>Error Establishing a Database Connection</strong> in WordPress means your site&#8217;s PHP files cannot communicate with the MySQL or MariaDB database that stores your posts, pages, user accounts, and plugin settings. Because WordPress builds every page dynamically by querying the database, a broken database link immediately takes both your public website and your dashboard offline.</p>



<p class="wp-block-paragraph">In practice, nearly every instance of <strong>Error Establishing a Database Connection</strong> comes down to one of four root causes: mismatched database credentials in <code>wp-config.php</code>, missing MySQL user permissions in your hosting panel, corrupted database tables after an interrupted update, or an overloaded database server. Below, we walk through the exact five-step diagnostic sequence to pinpoint the cause and get your WordPress site back online safely.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#what-causes-error-establishing-database-connection">What Causes “Error Establishing a Database Connection” in WordPress?</a></div><div><a href="#step-1-check-wp-config-database-credentials">Step 1: Verify Your Database Credentials in wp-config.php</a></div><div><a href="#step-2-check-mysql-database-user-privileges">Step 2: Confirm Your MySQL User Has All Privileges in cPanel</a></div><div><a href="#step-3-repair-corrupted-wordpress-database-tables">Step 3: Repair Corrupted Tables with WP_ALLOW_REPAIR or phpMyAdmin</a></div><div><a href="#step-4-verify-database-host-and-mysql-server-status">Step 4: Check Your Database Host (DB_HOST) and MySQL Server Status</a></div><div><a href="#step-5-restore-clean-database-backup">Step 5: Restore a Recent Database Backup If Tables Are Missing</a></div><div><a href="#wordpress-database-troubleshooting-reference">Quick Troubleshooting Reference by Symptom</a></div><div><a href="#prevent-future-wordpress-database-errors">How to Prevent Future Database Connection Errors on Your Website</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="what-causes-error-establishing-database-connection" class="wp-block-heading">What Causes “Error Establishing a Database Connection” in WordPress?</h2>



<p class="wp-block-paragraph">Every time a visitor requests a page on your site, WordPress reads the connection constants stored in your root <code>wp-config.php</code> file, opens a connection to your MySQL or MariaDB server, and fetches the required rows from tables like <code>wp_posts</code> and <code>wp_options</code>. If MySQL rejects the login, cannot read a damaged table, or refuses new connections due to resource limits, WordPress stops execution and outputs <a href="https://developer.wordpress.org/advanced-administration/wordpress/common-errors/#error-establishing-database-connection" target="_blank" rel="noopener noreferrer">Error establishing a database connection</a>.</p>



<p class="wp-block-paragraph">Before changing any files to fix <strong>Error Establishing a Database Connection</strong>, compare the four primary causes below—and check whether the front end and <code>/wp-admin/</code> show the exact same message or two different messages:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Root Cause</th><th>Typical Trigger</th><th>Fastest Fix</th></tr></thead><tbody><tr><td>1. Wrong wp-config.php Credentials</td><td>Site migration, manual database password change, or typo in DB_NAME / DB_USER / DB_PASSWORD</td><td>Match all four DB constants in wp-config.php against cPanel MySQL Databases</td></tr><tr><td>2. Missing MySQL User Privileges</td><td>Creating a new database user after migration without assigning ALL PRIVILEGES</td><td>Re-link the user to the database in cPanel and check ALL PRIVILEGES</td></tr><tr><td>3. Corrupted Database Tables</td><td>Plugin crash, sudden server reboot, or interrupted bulk import</td><td>Run WP_ALLOW_REPAIR at /wp-admin/maint/repair.php or Repair Table in phpMyAdmin</td></tr><tr><td>4. MySQL Server Overload or Down</td><td>Traffic surge, runaway query loop, or exhausted RAM / max_connections on a VPS</td><td>Check MySQL service status, restart mariadb/mysqld, or upgrade server resources</td></tr></tbody></table></figure>



<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/wordpress-database-connection-error-causes.webp" alt="Four common causes of Error Establishing a Database Connection in WordPress: wrong wp-config.php credentials, missing MySQL user privileges, corrupted database tables, and MySQL server overload." class="wp-image-5716" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-database-connection-error-causes.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-database-connection-error-causes-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-database-connection-error-causes-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/wordpress-database-connection-error-causes-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="step-1-check-wp-config-database-credentials" class="wp-block-heading">Step 1: Verify Your Database Credentials in wp-config.php</h2>



<p class="wp-block-paragraph">An incorrect database name, username, or password in <a href="https://developer.wordpress.org/advanced-administration/wordpress/wp-config/" target="_blank" rel="noopener noreferrer">wp-config.php</a> is the number-one cause of <strong>Error Establishing a Database Connection</strong>, especially right after migrating a site to a new host or resetting a cPanel password.</p>



<p class="wp-block-paragraph">Follow these steps to inspect and sync your credentials:</p>



<p class="wp-block-paragraph"><strong>1. Open File Manager in your hosting panel:</strong> Log in to cPanel (or connect via SFTP), open <strong>File Manager</strong>, and navigate to your site&#8217;s document root (usually <code>public_html</code>).</p>



<p class="wp-block-paragraph"><strong>2. View <code>wp-config.php</code>:</strong> Right-click <code>wp-config.php</code> and select <strong>Edit</strong>. Download a quick local copy first so you have a backup before making any changes.</p>



<p class="wp-block-paragraph"><strong>3. Inspect the four MySQL settings:</strong> Locate the section defining <code>DB_NAME</code>, <code>DB_USER</code>, <code>DB_PASSWORD</code>, and <code>DB_HOST</code>:</p>



<p class="wp-block-paragraph"><code>define( 'DB_NAME', 'cpaneluser_wp842' );</code><br><code>define( 'DB_USER', 'cpaneluser_wpuser' );</code><br><code>define( 'DB_PASSWORD', 'YourStrongPasswordHere' );</code><br><code>define( 'DB_HOST', 'localhost' );</code></p>



<p class="wp-block-paragraph"><strong>4. Compare against MySQL Databases in cPanel:</strong> Open <strong>cPanel → MySQL Databases</strong> (or <strong>Manage My Databases</strong>) in a second browser tab. Confirm that the exact database name and username—including your hosting account prefix, such as <code>cpaneluser_</code>—match what is written inside single quotes in <code>wp-config.php</code>. If you are unsure whether the password is still valid, click <strong>Change Password</strong> next to that MySQL user in cPanel, paste the exact same password into <code>DB_PASSWORD</code> in <code>wp-config.php</code>, and save both.</p>



<h2 id="step-2-check-mysql-database-user-privileges" class="wp-block-heading">Step 2: Confirm Your MySQL User Has All Privileges in cPanel</h2>



<p class="wp-block-paragraph">Even when your database name, username, and password are 100% accurate, MySQL will trigger <strong>Error Establishing a Database Connection</strong> if the database user has not been explicitly granted permission to read and write to that database. This frequently happens when developers create a new database and user during a manual migration but skip the final step of linking them together.</p>



<p class="wp-block-paragraph">To verify and restore user permissions in cPanel:</p>



<p class="wp-block-paragraph"><strong>1. Scroll to Current Databases:</strong> Inside <strong>cPanel → MySQL Databases</strong>, look at the <strong>Current Databases</strong> table and check the <strong>Privileged Users</strong> column next to your WordPress database.</p>



<p class="wp-block-paragraph"><strong>2. Add the user to the database if missing:</strong> If the column is empty—or lists a different user—scroll to <strong>Add User To Database</strong>, select your WordPress database user and database from the two dropdown menus, and click <strong>Add</strong>.</p>



<p class="wp-block-paragraph"><strong>3. Enable ALL PRIVILEGES:</strong> On the <strong>Manage User Privileges</strong> screen, check the top box labeled <strong>ALL PRIVILEGES</strong> and click <strong>Make Changes</strong>. Reload your website in a private browser window to see if <strong>Error Establishing a Database Connection</strong> is resolved.</p>



<h2 id="step-3-repair-corrupted-wordpress-database-tables" class="wp-block-heading">Step 3: Repair Corrupted Tables with WP_ALLOW_REPAIR or phpMyAdmin</h2>



<p class="wp-block-paragraph">How do you know if your tables are corrupted rather than your password being wrong? Visit your admin login URL directly at <code>https://yourdomain.com/wp-admin/</code>. While the public front end still shows <strong>Error Establishing a Database Connection</strong>, if <code>/wp-admin/</code> displays a message saying <em>&#8220;One or more database tables are unavailable. The database may need to be repaired&#8221;</em>, your login credentials in <code>wp-config.php</code> are working, and one or more database tables need repair.</p>



<p class="wp-block-paragraph">You can repair corrupted tables using either WordPress&#8217;s built-in repair tool or <strong>phpMyAdmin</strong>:</p>



<p class="wp-block-paragraph"><strong>Option A — Use WordPress&#8217;s built-in <code>WP_ALLOW_REPAIR</code> tool:</strong> Open <code>wp-config.php</code> in File Manager and add the following line just above <code>/* That's all, stop editing! Happy publishing. */</code>:</p>



<p class="wp-block-paragraph"><code>define( 'WP_ALLOW_REPAIR', true );</code></p>



<p class="wp-block-paragraph">Save the file and visit <code>https://yourdomain.com/wp-admin/maint/repair.php</code> in your browser. Click <strong>Repair Database</strong> (or <strong>Repair and Optimize Database</strong>) and wait for the script to check every table. <strong>Important security step:</strong> As soon as the repair finishes, delete <code>define( 'WP_ALLOW_REPAIR', true );</code> from <code>wp-config.php</code> and save the file, because that repair URL is publicly accessible without a password while enabled.</p>



<p class="wp-block-paragraph"><strong>Option B — Repair tables inside phpMyAdmin:</strong> Open <strong>cPanel → phpMyAdmin</strong>, click your WordPress database in the left sidebar, scroll to the bottom of the table list, check <strong>Check all</strong>, and choose <strong>Repair table</strong> from the <em>With selected:</em> dropdown menu.</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/fix-wordpress-database-connection-steps.webp" alt="Five-step troubleshooting workflow to fix Error Establishing a Database Connection in WordPress: check wp-config.php, verify privileges, repair tables, check MySQL server, and restore backup." class="wp-image-5717" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/fix-wordpress-database-connection-steps.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/fix-wordpress-database-connection-steps-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/fix-wordpress-database-connection-steps-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/fix-wordpress-database-connection-steps-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="step-4-verify-database-host-and-mysql-server-status" class="wp-block-heading">Step 4: Check Your Database Host (DB_HOST) and MySQL Server Status</h2>



<p class="wp-block-paragraph">On standard cPanel and DirectAdmin hosting—including <a href="https://www.aveshost.com/wordpress-hosting" rel="noopener">Aveshost WordPress Hosting</a> and <a href="https://www.aveshost.com/web-hosting" rel="noopener">Aveshost Shared Web Hosting</a>—your MySQL database runs on the same physical machine as your web files, so <code>DB_HOST</code> in <code>wp-config.php</code> should be set to <code>localhost</code>. However, if you recently migrated your website from a provider that used an external database cluster (such as a custom hostname or IP address and port), leaving that old hostname in <code>DB_HOST</code> will cause <strong>Error Establishing a Database Connection</strong>.</p>



<p class="wp-block-paragraph">If you manage your own Linux server on <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS Hosting</a>, a sudden traffic surge or an unindexed WooCommerce query can also cause the MySQL or MariaDB service to stop or hit its <code>max_connections</code> ceiling, resulting in an intermittent <strong>Error Establishing a Database Connection</strong>. Connect to your VPS via SSH and run <code>sudo systemctl status mysql</code> (or <code>sudo systemctl status mariadb</code>) to check whether the database daemon is active, and inspect <code>df -h</code> and <code>free -m</code> to make sure a full disk or out-of-memory killer event did not halt the database process.</p>



<h2 id="step-5-restore-clean-database-backup" class="wp-block-heading">Step 5: Restore a Recent Database Backup If Tables Are Missing</h2>



<p class="wp-block-paragraph">If you open <strong>phpMyAdmin</strong> and discover that core tables such as <code>wp_options</code>, <code>wp_users</code>, or <code>wp_posts</code> are completely missing—for example, after an accidental cleanup plugin run or a failed staging overwrite—table repair alone cannot clear <strong>Error Establishing a Database Connection</strong> or recreate deleted data.</p>



<p class="wp-block-paragraph">In that situation, the cleanest recovery path is restoring a verified database backup from your hosting control panel (such as JetBackup in cPanel) or importing your latest <code>.sql</code> backup file inside phpMyAdmin. Always export a snapshot of the current broken database first before importing a backup so no recent records are lost.</p>



<h2 id="wordpress-database-troubleshooting-reference" class="wp-block-heading">Quick Troubleshooting Reference by Symptom</h2>



<p class="wp-block-paragraph">Not sure which step applies to what you see on screen when <strong>Error Establishing a Database Connection</strong> appears? Match your exact symptom in the table below to jump straight to the right fix:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>What You See on Screen</th><th>Most Likely Cause</th><th>Where to Fix It</th></tr></thead><tbody><tr><td>Error appears immediately after migrating hosts or changing passwords</td><td>Mismatched DB_NAME, DB_USER, DB_PASSWORD, or DB_HOST</td><td>Edit wp-config.php and compare with cPanel → MySQL Databases</td></tr><tr><td>/wp-admin/ says &#x27;One or more database tables are unavailable&#x27;</td><td>Corrupted wp_options or wp_posts table</td><td>Run WP_ALLOW_REPAIR at /wp-admin/maint/repair.php or phpMyAdmin Repair Table</td></tr><tr><td>Error happens only during peak traffic and disappears on refresh</td><td>MySQL max_connections limit or server RAM exhaustion</td><td>Enable page caching and upgrade hosting or VPS RAM</td></tr><tr><td>phpMyAdmin opens but shows zero tables inside the database</td><td>Incomplete SQL import or accidental table drop</td><td>Import your .sql backup in phpMyAdmin or restore via JetBackup</td></tr></tbody></table></figure>



<h2 id="prevent-future-wordpress-database-errors" class="wp-block-heading">How to Prevent Future Database Connection Errors on Your Website</h2>



<p class="wp-block-paragraph">Once your site is back online, a few preventative habits will keep <strong>Error Establishing a Database Connection</strong> from returning. First, avoid editing <code>wp-config.php</code> or resetting cPanel database passwords without updating both places simultaneously. Second, use page caching and object caching so repeat visitors do not trigger dozens of redundant SQL queries on every page view. Third, configure reliable WordPress admin email alerts—for example, by following our guide on <a href="https://blog.aveshost.com/use-gmail-smtp-server/">how to use the Gmail SMTP server to send emails for free</a>—and keep automated off-site backups active so you can roll back any failed plugin update in minutes.</p>



<p class="wp-block-paragraph">If you want fast, stable database performance without worrying about manual server tuning, <a href="https://www.aveshost.com/wordpress-hosting" rel="noopener">Aveshost WordPress Hosting</a>, <a href="https://www.aveshost.com/managed-wordpress-hosting" rel="noopener">Aveshost Managed WordPress Hosting</a>, and <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">Aveshost Fully Managed VPS Hosting</a> provide NVMe/SSD database storage, automated backups, and 24/7 engineering support. If your WordPress site is currently stuck on a database connection error and you want help resolving it quickly, reach out to our team via <a href="https://www.aveshost.com/support" rel="noopener">Aveshost Support</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-8c3636970a1844aa9035e7b87a703f76" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does WordPress say Error Establishing a Database Connection?</h3>
<div class="rank-math-answer ">

<p>WordPress displays Error Establishing a Database Connection whenever PHP cannot connect to your MySQL or MariaDB database—most commonly due to an incorrect database name, username, password, or host in <code>wp-config.php</code>, missing database user privileges, corrupted tables, or an unresponsive database server.</p>

</div>
</div>
<div id="faq-question-d2841f039b8f45ddbcd9a20a123ab686" class="rank-math-list-item">
<h3 class="rank-math-question ">Where is wp-config.php located in WordPress?</h3>
<div class="rank-math-answer ">

<p>The <code>wp-config.php</code> file is located in the root directory of your WordPress installation (usually <code>public_html</code> in cPanel File Manager, right alongside the <code>wp-admin</code>, <code>wp-content</code>, and <code>wp-includes</code> folders).</p>

</div>
</div>
<div id="faq-question-bcff6b5f7bbf4ea29cae45f15c9e6258" class="rank-math-list-item">
<h3 class="rank-math-question ">What should DB_HOST be set to in wp-config.php?</h3>
<div class="rank-math-answer ">

<p>On almost all cPanel, DirectAdmin, and standard Linux web hosting environments—including Aveshost—<code>DB_HOST</code> should be set to <code>localhost</code>. Only change it if your hosting provider specifically gives you an external MySQL hostname or custom port.</p>

</div>
</div>
<div id="faq-question-c4830c4d6e564930a2d38df8b52376e6" class="rank-math-list-item">
<h3 class="rank-math-question ">Is it safe to leave WP_ALLOW_REPAIR enabled in wp-config.php?</h3>
<div class="rank-math-answer ">

<p>No. Because <code>/wp-admin/maint/repair.php</code> can be accessed by anyone without logging in, you must remove <code>define( 'WP_ALLOW_REPAIR', true );</code> from <code>wp-config.php</code> immediately after repairing your tables.</p>

</div>
</div>
<div id="faq-question-00e9a0f1d84a4477a6107a690f097d75" class="rank-math-list-item">
<h3 class="rank-math-question ">Can a plugin or traffic spike cause Error Establishing a Database Connection?</h3>
<div class="rank-math-answer ">

<p>Yes. Poorly coded plugins that run unindexed SQL queries on every page load—or a sudden surge of uncached traffic—can exhaust available MySQL connections or server memory, causing the database server to temporarily refuse new connections.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/fix-error-establishing-a-database-connection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Why Ghanaian Web Agencies Are Switching from cPanel to CyberPanel and DirectAdmin</title>
		<link>https://blog.aveshost.com/cpanel-alternatives-ghana/</link>
					<comments>https://blog.aveshost.com/cpanel-alternatives-ghana/#respond</comments>
		
		<dc:creator><![CDATA[Bridget Afful]]></dc:creator>
		<pubDate>Wed, 14 Oct 2026 00:08:15 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Business & Entrepreneurship]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[CyberPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5152</guid>

					<description><![CDATA[Compare cPanel alternatives for Ghanaian agencies. Explore CyberPanel, DirectAdmin, VPS costs in Ghana cedis and a practical migration plan with Aveshost.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>For Ghanaian web agencies comparing cPanel alternatives, CyberPanel and DirectAdmin offer two practical routes to a more flexible hosting setup.</strong> CyberPanel centres on OpenLiteSpeed, while DirectAdmin provides familiar tools for managing websites, clients and reseller accounts. The right choice depends on the services your agency sells and the work your team wants to manage.</p>



<p class="wp-block-paragraph">At Aveshost, we help agencies build hosting around their business. A freelancer looking after a few WordPress sites has different needs from an agency managing client mailboxes, reseller packages and dozens of separate accounts. This guide compares the panels, explains the costs that affect your margins and shows how to plan the move onto our cloud VPS hosting.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#reasons">Why cPanel alternatives matter for Ghanaian agencies</a></div><div><a href="#comparison">cPanel vs CyberPanel vs DirectAdmin: the practical comparison</a></div><div><a href="#cyberpanel">CyberPanel: an OpenLiteSpeed option for WordPress projects</a></div><div><a href="#directadmin">DirectAdmin: a strong fit for client and reseller hosting</a></div><div><a href="#cloudpanel">Where CloudPanel fits into an agency stack</a></div><div><a href="#performance">Choose the web stack for your actual workload</a></div><div><a href="#costs">Compare the total monthly cost in Ghana cedis</a></div><div><a href="#aveshost">Choose your Aveshost VPS and management level</a></div><div><a href="#migration">How to migrate client websites without disruption</a></div><div><a href="#security">Build security and backups into the new setup</a></div><div><a href="#decision">Which control panel should your agency choose?</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="reasons" class="wp-block-heading">Why cPanel alternatives matter for Ghanaian agencies</h2>



<p class="wp-block-paragraph">Recurring hosting costs become more visible as your client portfolio grows. A licence tier that suited five clients may no longer fit thirty separate accounts. Your agency also needs to budget for backups, security tools, support time and the people maintaining the server. Reviewing the panel is one way to align those costs with your service model.</p>



<p class="wp-block-paragraph">cPanel’s current licence structure distinguishes accounts from websites: Solo covers one account, Admin up to five, Pro up to thirty and Premier up to one hundred, with additional-account charges beyond its allowance. A single account can manage multiple websites. Count the separate client logins you need, rather than using domain totals as the licence count.</p>



<p class="wp-block-paragraph">There are good reasons to keep cPanel too. Your team may already have established support procedures, clients may know the interface, and your existing integrations may fit it well. The business case for moving is strongest when the new panel improves the way you operate or reduces your full service cost after migration and training.</p>



<ul class="wp-block-list">
<li><strong>More predictable budgeting:</strong> choose a licensing model that fits your account growth.</li>



<li><strong>A suitable web stack:</strong> match WordPress caching or application deployment to the services you sell.</li>



<li><strong>Clear client access:</strong> give each customer the tools and permissions they need.</li>



<li><strong>Flexible VPS resources:</strong> grow CPU, memory and storage with your portfolio.</li>



<li><strong>A simpler daily workflow:</strong> standardise backups, onboarding and routine maintenance.</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/10/agency-control-panel-choice.webp" alt="Compare cPanel alternatives by cost, client management and security for a Ghanaian agency" class="wp-image-5155" srcset="https://blog.aveshost.com/wp-content/uploads/2026/10/agency-control-panel-choice.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-control-panel-choice-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-control-panel-choice-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-control-panel-choice-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="comparison" class="wp-block-heading">cPanel vs CyberPanel vs DirectAdmin: the practical comparison</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Panel</th><th>Licence approach</th><th>Main agency use</th><th>Web stack and key distinction</th></tr></thead><tbody><tr><td>cPanel / WHM</td><td>Paid licence tiers based on account allowances</td><td>Full-service client hosting and familiar WHM workflows</td><td>Apache-based hosting with supported stack integrations; LiteSpeed licensing is separate where used.</td></tr><tr><td>CyberPanel</td><td>Free OpenLiteSpeed version; commercial options and add-ons are separate</td><td>WordPress-focused hosting with an OpenLiteSpeed workflow</td><td>OpenLiteSpeed or LiteSpeed Enterprise, depending on the edition and licence.</td></tr><tr><td>DirectAdmin</td><td>Paid tiers with account and domain allowances</td><td>Client hosting, reseller packages and website/email management</td><td>CustomBuild supports Apache, NGINX and LiteSpeed-family options.</td></tr><tr><td>CloudPanel</td><td>Free panel software</td><td>Websites and PHP, Node.js or Python application projects</td><td>NGINX-based application stack; no built-in email hosting service.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Product and plan details were reviewed <strong>at the time of writing</strong>. These are workflow comparisons. Choose the edition, licence and extensions required for your deployment before finalising the server budget.</p>



<h2 id="cyberpanel" class="wp-block-heading">CyberPanel: an OpenLiteSpeed option for WordPress projects</h2>



<p class="wp-block-paragraph">CyberPanel appeals to agencies building WordPress sites because its free edition uses OpenLiteSpeed. That gives a developer-led team an accessible route to a LiteSpeed-family web stack on its own VPS. The free panel removes the recurring core panel licence from that setup; the VPS, backups, administration and any paid extras remain part of your budget.</p>



<p class="wp-block-paragraph">CyberPanel’s <a href="https://cyberpanel.net/KnowledgeBase/home/installing-cyberpanel/" rel="noopener">official installation guide</a> distinguishes the OpenLiteSpeed edition from the LiteSpeed Enterprise edition. Choose the web server deliberately. Enterprise licensing, supported features and optional services can change the final cost.</p>



<p class="wp-block-paragraph">For an agency, the practical test is a representative client site. Configure the PHP version, SSL, WordPress cache, scheduled jobs and backup destination, then verify login, forms and checkout. Test the rewrite rules used by your applications when moving from an Apache-based setup to OpenLiteSpeed.</p>



<p class="wp-block-paragraph">Our <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed cloud VPS hosting</a> provides root access for your team to build and maintain this environment. Start with a fresh supported Linux installation and follow the current CyberPanel installation requirements. Keep the panel and server software updated and document how you will recover the installation.</p>



<h2 id="directadmin" class="wp-block-heading">DirectAdmin: a strong fit for client and reseller hosting</h2>



<p class="wp-block-paragraph">DirectAdmin is a practical choice for an agency that wants a conventional hosting control panel with separate administrator, reseller and user workflows. It suits portfolios where clients need website access, databases and email management alongside the agency’s hosting packages.</p>



<p class="wp-block-paragraph">Its <a href="https://www.directadmin.com/pricing.php" rel="noopener">retail licence tiers</a> include Personal PLUS with two accounts and twenty domains, Lite with ten accounts and fifty domains, and Standard with unlimited accounts and domains. Choose the tier for the client access structure you intend to use. An unlimited licence allowance still needs sufficient server resources for the hosted workload.</p>



<p class="wp-block-paragraph">DirectAdmin’s CustomBuild manages supported server components, including web servers and PHP. Its <a href="https://docs.directadmin.com/" rel="noopener">official documentation</a> covers Apache, NGINX, OpenLiteSpeed and LiteSpeed configurations. This gives your agency room to match the stack to its applications, with commercial web-server licences budgeted separately when required.</p>



<p class="wp-block-paragraph">Our <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS plans</a> come with the <strong>DirectAdmin control panel and its licence included at no additional cost</strong>. You can manage your client websites, databases and email through DirectAdmin while our team handles the server platform. It’s a practical choice for agencies that want to spend more time on client projects.</p>



<h2 id="cloudpanel" class="wp-block-heading">Where CloudPanel fits into an agency stack</h2>



<p class="wp-block-paragraph">CloudPanel is useful when your agency’s main work is websites and applications rather than traditional reseller hosting. It provides a free NGINX-based panel for PHP, Node.js, Python and static sites. It belongs in the comparison because agencies often manage a mixture of WordPress websites and custom web applications.</p>



<p class="wp-block-paragraph">CloudPanel uses a different stack from CyberPanel. Its performance tools and configuration centre on NGINX and application services. Choose it for that workflow rather than describing every alternative panel as a LiteSpeed product.</p>



<p class="wp-block-paragraph">The <a href="https://www.cloudpanel.io/docs/v2/frontend-area/e-mail/" rel="noopener">CloudPanel email documentation</a> states that the panel does not provide email hosting. Plan client mail separately, such as with our <a href="https://www.aveshost.com/business-email" rel="noopener">Aveshost business email hosting</a>. Keep the correct MX and email authentication records in the domain’s DNS during any website move.</p>



<h2 id="performance" class="wp-block-heading">Choose the web stack for your actual workload</h2>



<p class="wp-block-paragraph">A control panel makes the environment easier to manage. Website speed also depends on the web server, PHP configuration, caching, database workload, available memory and the application itself. Set a performance target for the client website, then choose and configure the stack to meet it.</p>



<p class="wp-block-paragraph">For WordPress portfolios, enable the cache suited to the server, optimise images and monitor slow database queries. For WooCommerce, exclude carts, checkout and logged-in customer sessions from public page caching. Test dynamic pages as well as cached landing pages so your performance review reflects real customer activity.</p>



<ul class="wp-block-list">
<li>Measure response times for both logged-out visitors and logged-in users.</li>



<li>Test the busiest applications and scheduled tasks together.</li>



<li>Watch CPU utilisation, memory, disk capacity and database load.</li>



<li>Check the backup window and peak traffic period.</li>



<li>Leave resources available for growth and maintenance.</li>
</ul>



<p class="wp-block-paragraph">Use a small pilot group before migrating the whole portfolio. Include a brochure site, a store and a custom application if your agency hosts all three. This will show the compatibility work and support training needed for the new panel.</p>



<h2 id="costs" class="wp-block-heading">Compare the total monthly cost in Ghana cedis</h2>



<p class="wp-block-paragraph">For a Ghanaian agency, work out the total monthly bill in Ghana cedis. Include the server, panel and web-server licences, backup storage, security tooling and administration time. Compare the same account requirements and service responsibilities on each option.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Cost item</th><th>Question to answer</th></tr></thead><tbody><tr><td>VPS resources</td><td>How much CPU, RAM and SSD storage does the portfolio need?</td></tr><tr><td>Panel licence</td><td>How many independent accounts and domains does the chosen tier allow?</td></tr><tr><td>Web-server licence</td><td>Are you using a free stack or a commercial LiteSpeed edition?</td></tr><tr><td>Backups and security</td><td>Which services are included, and which are paid add-ons?</td></tr><tr><td>Administration</td><td>Will your team manage updates and incidents, or use our managed service?</td></tr><tr><td>Migration and training</td><td>How much work is needed to move clients and document the new workflow?</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">For example, an agency collecting GH₵80 per month from ten clients has GH₵800 in monthly hosting revenue. A GH₵170 VPS leaves GH₵630 before panel licences, backups, security, tax and staff costs. That balance is not profit yet. Use your actual service costs to price client packages and protect the margin.</p>



<p class="wp-block-paragraph">A free panel can be a cost-effective choice when your team already maintains Linux servers. A managed service can also offer strong value when it reduces the hours your developers spend on infrastructure. Compare the complete operating model rather than the panel licence alone.</p>



<style>.aves-migration-ad{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0;padding:23px 26px;border-radius:16px;background:linear-gradient(115deg,#09265b 0%,#0b51aa 58%,#087bd5 100%);color:#fff;box-shadow:0 8px 22px rgba(8,42,94,.13)}.aves-migration-ad .aves-migration-brand{font-size:11px;line-height:1.3;font-weight:800;letter-spacing:1.6px;color:#bedcff;margin:0 0 7px}.aves-migration-ad .aves-migration-title{font-size:23px;line-height:1.2;font-weight:800;color:#fff;margin:0 0 8px}.aves-migration-ad .aves-migration-copy{font-size:14px;line-height:1.5;color:#e7f1ff;margin:0;max-width:485px}.aves-migration-ad .aves-migration-button{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:12px 15px;border-radius:8px;background:#fff;color:#083c80!important;text-decoration:none!important;font-size:14px;line-height:1.4;font-weight:800;white-space:nowrap}.aves-migration-ad .aves-migration-button:hover{background:#e6f2ff}.aves-migration-ad .aves-migration-button:focus-visible{outline:3px solid #a9dcff;outline-offset:4px}@media(max-width:600px){.aves-migration-ad{flex-direction:column;align-items:flex-start;gap:16px;padding:21px}.aves-migration-ad .aves-migration-title{font-size:22px}}</style>
<aside class="aves-migration-ad" aria-label="Aveshost free website migration"><div><p class="aves-migration-brand">AVESHOST · FREE MIGRATION</p><p class="aves-migration-title">Ready to move from cPanel to DirectAdmin?</p><p class="aves-migration-copy">Choose an Aveshost VPS, and we’ll migrate your website, database and emails at no additional cost. Moving from another provider? Discuss your move with our team.</p></div><a class="aves-migration-button" href="https://www.aveshost.com/support" rel="noopener">Discuss Your Migration <span aria-hidden="true">&nbsp;→</span></a></aside>



<h2 id="aveshost" class="wp-block-heading">Choose your Aveshost VPS and management level</h2>



<p class="wp-block-paragraph">Our self-managed VPS plans come with <strong>SSD storage and full root access</strong>. They do not include a bundled cPanel or DirectAdmin control panel. They give a capable technical team the environment to deploy and maintain its own supported software, including a CyberPanel or CloudPanel setup.</p>



<p class="wp-block-paragraph">Our fully managed VPS plans include <strong>DirectAdmin and its licence at no additional cost</strong>, alongside server management. Our team handles server maintenance, security updates and platform optimisation, giving your agency a managed platform for its client websites.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Aveshost option</th><th>Monthly price</th><th>Resources</th><th>Suitable agency starting point</th></tr></thead><tbody><tr><td>Self-managed Cloud VPS 2</td><td>GH₵170</td><td>4 vCores, 8 GB RAM, 100 GB SSD</td><td>A developer-managed pilot or a modest website portfolio.</td></tr><tr><td>Self-managed Cloud VPS 3</td><td>GH₵300</td><td>6 vCores, 12 GB RAM, 200 GB SSD</td><td>More memory and storage for a growing workload.</td></tr><tr><td>Self-managed Cloud VPS 4</td><td>GH₵420</td><td>8 vCores, 24 GB RAM, 300 GB SSD</td><td>A larger application or client portfolio.</td></tr><tr><td>Fully managed Starter</td><td>GH₵330</td><td>4 vCores, 8 GB RAM, 100 GB SSD</td><td>Managed server platform with the DirectAdmin licence included at no additional cost.</td></tr><tr><td>Fully managed Standard</td><td>GH₵550</td><td>6 vCores, 12 GB RAM, 200 GB SSD</td><td>A growing agency that wants management included.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">These prices were reviewed at the time of writing. Review the selected plan, billing term and any additional services in the order summary. The comparison describes different management packages; the difference between managed and self-managed prices is not a standalone panel licence quote.</p>



<p class="wp-block-paragraph">The number of websites you can host depends on their traffic, applications and resource use. Twenty lightly used brochure sites can have a very different workload from twenty busy online stores. Tell our team about the applications, current usage and growth plans so we can help match the VPS to your portfolio.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/10/agency-panel-migration.webp" alt="Agency website migration steps: back up, build, test and switch DNS" class="wp-image-5156" srcset="https://blog.aveshost.com/wp-content/uploads/2026/10/agency-panel-migration.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-panel-migration-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-panel-migration-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/10/agency-panel-migration-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="migration" class="wp-block-heading">How to migrate client websites without disruption</h2>



<p class="wp-block-paragraph">Treat a panel change as a migration project. Keep the existing service available while you build and test the destination, and agree a change window with clients who receive orders, bookings or frequent form submissions.</p>



<ul class="wp-block-list">
<li><strong>Inventory the account:</strong> record domains, databases, PHP versions, mailboxes, cron jobs, SSL, redirects and custom server settings.</li>



<li><strong>Back up and verify:</strong> preserve website files, databases, email and the DNS zone. Check a restore before switching.</li>



<li><strong>Build a fresh destination:</strong> install the supported panel and stack on the new VPS. Do not layer competing panels onto an existing production installation.</li>



<li><strong>Move a pilot account:</strong> check application requirements, database names and permissions.</li>



<li><strong>Test before DNS changes:</strong> verify pages, admin login, forms, payment callbacks, scheduled work and incoming/outgoing email.</li>



<li><strong>Synchronise current data:</strong> reconcile orders, uploads and mail received while testing.</li>



<li><strong>Switch and monitor:</strong> change the necessary DNS records, verify the new service and retain a clear rollback plan.</li>
</ul>



<p class="wp-block-paragraph">DirectAdmin documents a <a href="https://docs.directadmin.com/directadmin/backup-restore-migration/migration-to-da.html" rel="noopener">cPanel-to-DirectAdmin migration workflow</a> using trusted account backups. It also lists conversion considerations, including database naming and services that need separate handling. Test one account before a bulk transfer and review any custom applications individually.</p>



<p class="wp-block-paragraph">For CyberPanel or CloudPanel, plan the website, database, email and DNS transfer around the supported tools for your chosen version. Do not treat a cPanel archive as a universal one-click import. A WordPress site can be moved at application level, while email data and custom configurations need their own checks.</p>



<p class="wp-block-paragraph">If the domain’s nameservers are also changing, prepare the complete DNS zone first. Preserve MX, SPF, DKIM and DMARC records alongside the website records. A website loading correctly does not establish that the client’s business email is receiving mail.</p>



<p class="wp-block-paragraph">Contact <a href="https://www.aveshost.com/support" rel="noopener">our Aveshost team</a> to discuss your migration, account structure and preferred panel. We can help plan the hosting move around your clients’ operational needs.</p>



<h2 id="security" class="wp-block-heading">Build security and backups into the new setup</h2>



<p class="wp-block-paragraph">Give every client a separate account or the appropriate restricted access for the selected panel. Use unique administrator credentials, two-factor authentication where supported and limited permissions for staff. Restrict panel administration and SSH access to the people who maintain the server.</p>



<p class="wp-block-paragraph">Keep the operating system, panel, PHP and applications patched. Install legitimate themes and plugins, and maintain current licences. If a website is already infected, arrange cleanup before migrating it. Moving the files into a different panel does not remove the infection.</p>



<p class="wp-block-paragraph">For a practical recovery workflow, see our guide on <a href="https://blog.aveshost.com/clean-a-hacked-wordpress-site-ghana/">cleaning a hacked WordPress site in Ghana</a>. It explains how to preserve evidence, remove infected code and address the entry point.</p>



<p class="wp-block-paragraph">Back up websites, databases, mail and important configuration on a schedule that fits the business. Keep protected recovery copies and test restoration. Document the administrator responsible for updates, scan alerts, disk capacity and failed scheduled tasks so maintenance continues when a developer is away.</p>



<h2 id="decision" class="wp-block-heading">Which control panel should your agency choose?</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Agency priority</th><th>Recommended direction</th></tr></thead><tbody><tr><td>WordPress-focused hosting with a developer managing Linux</td><td>Pilot CyberPanel on an Aveshost self-managed VPS.</td></tr><tr><td>Traditional client accounts, reseller packages and email management</td><td>Choose an Aveshost fully managed VPS with DirectAdmin included at no additional cost.</td></tr><tr><td>PHP, Node.js or Python projects with email handled separately</td><td>Evaluate CloudPanel on a self-managed VPS.</td></tr><tr><td>Established cPanel workflow that still fits the business</td><td>Choose our paid cPanel option and optimise the existing process.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">The best cPanel alternative for your Ghanaian agency is the one that fits the services you deliver and the team maintaining them. Start with a representative pilot, price the full service in Ghana cedis and document the workflow before moving every client.</p>



<p class="wp-block-paragraph">Ready to build your agency’s next hosting platform? Compare our <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS plans</a> and <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS plans</a>, then <a href="https://www.aveshost.com/support" rel="noopener">discuss your project with Aveshost</a>. We will help you choose a hosting setup that supports your client portfolio and the way your agency works.</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-panel-0" class="rank-math-list-item">
<h3 class="rank-math-question ">Is DirectAdmin free?</h3>
<div class="rank-math-answer ">

<p>DirectAdmin and its licence are included at no additional cost with our fully managed VPS hosting. Standalone DirectAdmin licences use paid tiers.</p>

</div>
</div>
<div id="faq-question-panel-1" class="rank-math-list-item">
<h3 class="rank-math-question ">Is CyberPanel free for WordPress hosting?</h3>
<div class="rank-math-answer ">

<p>The OpenLiteSpeed edition provides a free core panel. Your VPS, administration, backups and any commercial web-server edition or add-ons still need to be budgeted.</p>

</div>
</div>
<div id="faq-question-panel-2" class="rank-math-list-item">
<h3 class="rank-math-question ">Does every alternative panel use LiteSpeed?</h3>
<div class="rank-math-answer ">

<p>No. CyberPanel uses OpenLiteSpeed or LiteSpeed Enterprise. DirectAdmin supports several stack options through CustomBuild. CloudPanel uses an NGINX-based application stack.</p>

</div>
</div>
<div id="faq-question-panel-3" class="rank-math-list-item">
<h3 class="rank-math-question ">Can DirectAdmin migrate cPanel accounts?</h3>
<div class="rank-math-answer ">

<p>DirectAdmin documents a conversion and restore workflow for trusted cPanel backups. Test a pilot account and review databases, email and unsupported custom services before moving the portfolio.</p>

</div>
</div>
<div id="faq-question-panel-4" class="rank-math-list-item">
<h3 class="rank-math-question ">Does Aveshost self-managed VPS include cPanel or DirectAdmin?</h3>
<div class="rank-math-answer ">

<p>Our self-managed VPS plans do not include a bundled cPanel or DirectAdmin panel. They provide SSD storage and root access for your team to manage its software environment.</p>

</div>
</div>
<div id="faq-question-panel-5" class="rank-math-list-item">
<h3 class="rank-math-question ">Which Aveshost VPS includes a control panel?</h3>
<div class="rank-math-answer ">

<p>Our fully managed VPS plans include DirectAdmin and its licence at no additional cost, together with server management.</p>

</div>
</div>
<div id="faq-question-panel-6" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I host business email in CloudPanel?</h3>
<div class="rank-math-answer ">

<p>CloudPanel does not provide built-in email hosting. Plan mail separately, such as with Aveshost business email hosting, and preserve the email DNS records during a website move.</p>

</div>
</div>
<div id="faq-question-panel-7" class="rank-math-list-item">
<h3 class="rank-math-question ">How much RAM does a web agency need?</h3>
<div class="rank-math-answer ">

<p>Size the server around the real applications, traffic, databases and background tasks. Our 8 GB RAM VPS options provide a practical starting point for a pilot or modest portfolio, with larger plans available as usage grows.</p>

</div>
</div>
<div id="faq-question-panel-8" class="rank-math-list-item">
<h3 class="rank-math-question ">Will changing panels automatically make WordPress faster?</h3>
<div class="rank-math-answer ">

<p>Performance depends on the configured web stack, caching, database and available resources. Test representative client sites and dynamic pages before deciding which setup meets your targets.</p>

</div>
</div>
<div id="faq-question-panel-9" class="rank-math-list-item">
<h3 class="rank-math-question ">Can Aveshost help an agency plan its move?</h3>
<div class="rank-math-answer ">

<p>Yes. Contact our support team with your client account structure, current applications and preferred management level. We can discuss the VPS setup and migration plan that fits your agency.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/cpanel-alternatives-ghana/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
