Shared hosting powered by cPanel remains one of the most accessible and cost-effective ways to host websites, PHP web apps, and databases. When combined with a free .devs.surf subdomain, you can deploy staging sites, testing environments, or side projects without purchasing new domains or configuring complex DNS servers.
This guide walks you through finding your cPanel server IP, adding the required A record in Devs.Surf, configuring the domain inside cPanel, and provisioning free Let's Encrypt SSL via cPanel AutoSSL.
Prerequisites
- An active cPanel shared hosting account (Hostinger, Namecheap, Bluehost, Niagahoster, etc.).
- A claimed subdomain on Devs.Surf (e.g.
myproject.devs.surf).
Step 1: Find Your cPanel Shared IP Address
cPanel accounts are hosted on servers with a dedicated or shared IPv4 address. You need this IP address to tell Devs.Surf where to route incoming traffic:
- Log in to your cPanel Dashboard.
- Look at the right-hand sidebar under the General Information pane.
- Locate the field labeled Shared IP Address (or Dedicated IP Address).
- Copy the numeric IPv4 address (e.g.,
198.51.100.45).
Step 2: Add an A Record in Devs.Surf DNS
Head over to your Devs.Surf Dashboard, click on your subdomain, and enter DNS Manager:
| Record Type | Host / Name | Points To (Target) | TTL |
|---|---|---|---|
| A | @ |
<YOUR_CPANEL_SHARED_IP> |
3600 (1 hr) |
| CNAME (Optional) | www |
myproject.devs.surf |
3600 (1 hr) |
Devs.Surf Anycast DNS propagates instantly to global resolvers within 30 to 60 seconds.
Step 3: Add the Domain in cPanel
Modern cPanel versions (v102 and newer) consolidate domain management into a single interface:
- In cPanel, search for and open Domains (under the Domains section).
- Click the Create A New Domain button.
- In the Domain field, enter your full subdomain:
myproject.devs.surf. - Important: Uncheck the box that says "Share document root with public_html".
- In Document Root, specify a separate folder (e.g.
public_html/myprojectormyproject.devs.surf). This isolates your files from other websites on the same hosting account. - Click Submit.
myproject.devs.surf as the New Domain Name.
Step 4: Issue Free SSL via cPanel AutoSSL
cPanel includes an automated SSL daemon (AutoSSL) powered by Let's Encrypt or Sectigo:
- In cPanel, open SSL/TLS Status.
- Find your domain
myproject.devs.surfin the certificate list. - Click Run AutoSSL at the top of the page.
- cPanel will automatically place an HTTP-01 DCV challenge file inside your document root, verify domain ownership via Devs.Surf Anycast DNS, and install a valid TLS certificate within 2 to 5 minutes.
Step 5: Enforce HTTPS via .htaccess
Once your certificate is issued, ensure all visitors are forced to secure HTTPS by placing these rewrite rules in your document root's .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Troubleshooting Common cPanel Issues
- Domain shows "cPanel Default Web Page" or Sorbs Page: This means DNS is pointing correctly to the server, but Apache has not loaded the VirtualHost configuration yet. Wait 2 minutes for Apache to reload graceful, or verify that the domain name typed in cPanel exactly matches your Devs.Surf subdomain.
- AutoSSL DCV Failure: If AutoSSL fails, verify that your
.htaccessfile is not blocking access to the hidden.well-known/acme-challenge/directory. - 403 Forbidden Error: Verify that your document root folder has permissions set to
0755and files are set to0644.