Archive

How to Secure a Newly Installed Ubuntu Server

Securing your Ubuntu server immediately after installation is vital to protect it from unauthorized access and maintain system integrity. Follow this beginner-friendly checklist to harden your server:

1. Update Your System

Keep your packages up-to-date:

sudo apt update && sudo apt upgrade -y

2. Create a New User (Avoid Using Root)

sudo adduser newuser
sudo usermod -aG sudo newuser

3. Enable UFW Firewall

Allow SSH and enable UFW:

sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status

4. Configure SSH

Edit SSH config:

sudo nano /etc/ssh/sshd_config

Recommended changes:

PermitRootLogin no
PasswordAuthentication no    # Use only if SSH keys are set up
Port 2222                    # Optional: change default SSH port

Apply changes:

sudo systemctl restart ssh

5. Set Up SSH Key Authentication

Generate keys on your local machine:

ssh-keygen
ssh-copy-id newuser@your_server_ip

6. Install Fail2Ban

Protect against brute-force login attempts:

sudo apt install fail2ban -y
sudo systemctl enable fail2ban

7. Enable Unattended Security Updates

Install and configure:

sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure --priority=low unattended-upgrades

8. Disable Unused Services

List active services:

sudo systemctl list-units --type=service

Disable unneeded ones:

sudo systemctl disable service-name

9. Set Timezone and Enable NTP

sudo timedatectl set-timezone Africa/Lagos
sudo timedatectl set-ntp on

 

10. Configure AppArmor (Optional)

AppArmor is pre-installed on Ubuntu:

sudo apt install apparmor-profiles apparmor-utils -y
sudo aa-enforce /etc/apparmor.d/*

 

By following these steps, you’ll significantly enhance the security and stability of your Ubuntu server from the start.

LiteSpeed vs Apache vs NGINX: Which Web Server Should You Choose?

When launching a website or web application, choosing the right web server can make a huge difference in speed, scalability, and stability. In this guide, we compare LiteSpeed, Apache, and NGINX—three of the most popular web servers—to help you choose the best one for your hosting needs.

🔍 What Is a Web Server?

A web server handles requests from web browsers and delivers your site’s content. The right server can improve your site’s loading speed, handle traffic spikes, and secure your data.

🧱 Apache: The Veteran Workhorse

Apache HTTP Server has been around since 1995 and powers over 30% of websites today.

✅ Pros:

  • Wide compatibility with Linux, Windows, and Unix
  • Supports .htaccess files and dynamic modules
  • Huge community and documentation
  • Easy to configure for beginners

❌ Cons:

  • Slower under heavy concurrent traffic
  • Resource-intensive compared to alternatives

Best For: Small to medium websites with moderate traffic and flexible configuration needs.

👉 Learn how to configure Apache

⚡ LiteSpeed: The Performance Champ

LiteSpeed Web Server (LSWS) is a high-performance commercial server built as a drop-in replacement for Apache.

✅ Pros:

  • Up to 5x faster than Apache
  • Built-in DDoS protection
  • Native HTTP/3 support
  • Compatible with Apache’s configuration files

❌ Cons:

  • Free version has limited features
  • Commercial license for full version

Best For: WordPress sites, high-traffic blogs, and eCommerce platforms needing speed and security.

🛠️ Some hosting providers offer LiteSpeed for free on shared or managed plans.

👉 See LiteSpeed benchmarks

🚀 NGINX: The Modern Scalability Leader

NGINX (pronounced “Engine-X”) is known for high concurrency and low resource usage.

✅ Pros:

  • Excellent at handling thousands of connections
  • Reverse proxy and load balancer built-in
  • Lightweight and highly efficient
  • Open-source and widely used

❌ Cons:

  • Steeper learning curve for beginners
  • Limited support for .htaccess

Best For: High-traffic apps, streaming platforms, and modern stacks with Node.js or Python backends.

👉 Explore NGINX official documentation

🆚 Performance Comparison

Feature Apache LiteSpeed NGINX
Ease of Use ⭐⭐⭐⭐ ⭐⭐⭐⭐ ⭐⭐
Speed ⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐
Resource Efficiency ⭐⭐ ⭐⭐⭐⭐ ⭐⭐⭐⭐⭐
HTTP/3 Support
.htaccess Support

🧠 Final Thoughts: Which Should You Choose?

  • Choose Apache if you’re just starting out and need flexibility with strong community support.
  • Go with LiteSpeed if performance, speed, and WordPress optimization are critical.
  • Opt for NGINX if you’re running high-traffic applications and need advanced scalability.

📌 Related Reads

Demystifying VPS vs. Shared Hosting—Which Is Right for You?

Choosing the right web hosting plan is crucial for performance, security, and budget. Two popular entry‑level options are Shared Hosting and VPS (Virtual Private Server) Hosting. This guide breaks down their differences, pros & cons, and helps you decide which fits your needs.

What Is Shared Hosting?

  • Definition: Multiple websites share the same physical server and its resources (CPU, RAM, disk).
  • Typical Use Cases:
    • Small blogs and personal sites
    • Brochure‑style business websites
    • Low‑traffic portfolios

Pros

  • Cost‑Effective: Lowest entry cost (often $2–$10/month).
  • Managed Environment: Server maintenance, security, and updates handled by the host.
  • Easy Setup: Beginner‑friendly control panel (cPanel) and one‑click installers.

Cons

  • Limited Resources: Spikes in other sites’ traffic can slow you down.
  • Less Control: You cannot install custom server software or adjust core settings.
  • Security Risks: Neighboring sites’ vulnerabilities could affect you.

What Is VPS Hosting?

  • Definition: A single physical server is partitioned into multiple virtual servers. Each VPS has dedicated CPU, RAM, and storage.
  • Typical Use Cases:
    • Growing business websites
    • E‑commerce stores
    • Web applications requiring custom configurations

Pros

  • Dedicated Resources: Predictable performance, unaffected by other users.
  • Root Access & Customization: Install any software, tweak server settings, and optimize performance.
  • Better Security Isolation: Virtual partitions keep you insulated from other VPS users.

Cons

  • Higher Cost: Plans usually start around $20–$40/month.
  • Technical Skill Required: You may need basic Linux/command‑line knowledge for management—though managed VPS options are available.
  • Maintenance Responsibility: You’re responsible for updates, patches, and security hardening (unless you choose a managed plan).

Side‑by‑Side Comparison

Feature Shared Hosting VPS Hosting
Cost Low ($2–$10/mo) Moderate ($20–$100+/mo)
Resource Allocation Shared among all users Dedicated per VPS instance
Performance Variable Consistent
Control & Customization Limited Full root access
Scalability Low High
Security Basic Enhanced isolation
Technical Skill None required Basic to advanced

How to Decide

  1. Budget & Traffic
    • On a tight budget with low traffic? Shared Hosting is ideal.
    • Expecting growth or spikes? VPS offers room to scale.
  2. Technical Requirements
    • Need simple WordPress or static site? Shared covers it.
    • Require custom software, multiple environments, or higher security? Go VPS.
  3. Management Preference
    • Want fully managed convenience? Shared or managed VPS.
    • Comfortable with server administration? Unmanaged VPS gives full control.

Next Steps

  • Try Shared Hosting: Test the waters with a low‑cost plan—perfect for new sites.
  • Upgrade to VPS: When you outgrow shared resources, seamlessly migrate to VPS for better performance.

 

Ready to choose? Assess your needs, compare plans, and select the hosting that powers your success.

Affiliate Marketing 101: Earn Passive Income by Promoting Web Services

Affiliate marketing empowers you to earn money by referring customers to web services—without building products or handling support. In this comprehensive, SEO-optimized guide, you’ll learn how to choose the right program, create content that converts, and scale your earnings. We’ll include internal links to Sternhost resources and authoritative external references for maximum value.

 

Why Affiliate Marketing Works for Web Services

Web services—such as web hosting, domain registration, and website builders—are in high demand. According to Statista, the global web hosting market is projected to reach $216.9 billion by 2025. With recurring subscriptions and competitive commissions, promoting these services can generate reliable passive income.

1. Understand the Affiliate Ecosystem

  • You (Affiliate): Promote services via unique tracking links.
  • Merchant: The web service provider offering the affiliate program.
  • Commission: Typically a percentage of each sale (e.g., Sternhost offers 20% per sale).
  • Cookie Duration: The time window for tracking referrals (e.g., 30 days).

Learn more about affiliate terms in our Affiliate Program FAQ.

2. Select Your Niche and Program

Choose a Profitable Niche

Focus on audiences likely to need web services:

  • Small businesses looking to build an online presence
  • Bloggers and content creators seeking reliable WordPress hosting
  • E‑commerce startups needing secure, scalable platforms

Join a Reputable Program

Sign up for Sternhost’s affiliate program or compare alternatives like Bluehost Affiliates or SiteGround Affiliates.

3. Create High-Value Content

Content Types That Convert

  • How‑To Guides: Step-by-step tutorials (e.g., “How to Launch Your First Website in 30 Minutes” linking to Sternhost’s Getting Started Guide).
  • Comparison Posts: “Shared vs. VPS Hosting: Which Is Right for You?” with internal link to our Hosting Comparison.
  • Case Studies: “How XYZ Blog Increased Traffic by 3× with Faster Hosting.”
  • Product Reviews: In-depth reviews of hosting plans, domain registrars, and website builders.

SEO Best Practices

  • Target long-tail keywords (e.g., “best hosting for small business 2025”).
  • Use descriptive headings (H1, H2, H3) and include keywords naturally.
  • Optimize meta titles and descriptions (under 60/160 characters).
  • Add internal links to relevant Sternhost resources and external links to authority sites (e.g., W3Schools ).

4. Drive Targeted Traffic

Organic Methods

  • SEO: Publish regularly, build backlinks, and optimize on-page elements.
  • Guest Posting: Contribute to industry blogs with a link back to your site.
  • Social Media: Share snippets on LinkedIn, Twitter, and Facebook groups.

Paid Methods

  • PPC Ads: Run Google Ads targeting high-intent keywords (e.g., “buy web hosting”).
  • Social Ads: Promote tutorials on platforms like Instagram and Facebook.

Use our guide on Boosting Website Performance to ensure your landing pages load quickly and convert visitors.

5. Optimize Conversion Rates

  • Clear CTAs: Use buttons like “Start Your Free Trial” linked to your affiliate URL.
  • Dedicated Landing Pages: Focus on one offer per page for clarity.
  • A/B Testing: Experiment with headlines, images, and CTAs using tools like Google Optimize.

6. Track and Analyze Performance

  • Monitor clicks, conversions, and revenue in the Sternhost Affiliate Dashboard.
  • Use Google Analytics to track behavior and identify top-performing content.
  • Adjust strategies based on data: double down on high-converting posts and refine underperforming ones.

7. Scale Your Affiliate Business

  • Expand Content: Add video tutorials, webinars, or podcasts.
  • Email Marketing: Build a list and send exclusive offers—see our Email Setup Guide.
  • Partnerships: Collaborate with influencers and complementary service providers.

8. Compliance and Best Practices

  • Disclosure: Clearly disclose affiliate relationships to comply with FTC guidelines.
  • Transparency: Provide honest, experience-based reviews to build trust.
  • Regular Updates: Keep content fresh with the latest pricing, features, and industry trends.

Conclusion

Affiliate marketing for web services offers a powerful way to earn passive income while providing real value to your audience. By selecting the right niche, creating optimized content, driving targeted traffic, and leveraging Sternhost’s generous 20% commission, you’ll build a sustainable revenue stream.

Ready to start? Sign up for the Sternhost Affiliate Program and turn your content into commissions!

White‑Label cPanel: Custom Branding Your Client’s Hosting Portal

If you run a web agency or manage multiple clients, branding matters. Offering a custom-branded hosting experience boosts your agency’s professionalism. It’s easier than ever to create a white-label experience your clients will love.

In this guide, we’ll show you how to apply custom logos, colors, and footers in cPanel, allowing you to present a seamless, professional hosting portal under your brand.

What Is White‑Label cPanel?

White-labeling means removing third-party branding and replacing it with your business’s branding. When you white-label cPanel:

  • Your logo appears instead of cPanel’s .
  • You can change theme colors to match your brand.
  • You can add a custom footer link (like back to your agency’s site).

Your clients log in and feel like they are interacting with your own hosting company.

Perfect for agencies, resellers, freelancers, and entrepreneurs!

How to White‑Label Your cPanel

Follow these easy steps:

1. Log into Your WHM (Web Host Manager)

2. Navigate to “Customization”

  • In WHM, find cPanel > Customization.
  • Here you’ll see four tabs: Branding, Customization, Public Contact, and Documentation Link.

3. Upload Your Logo and Favicon

  • Under Branding, upload your company logo.
  • Upload a favicon (small browser icon) too for full branding.

Tip: Use high-quality images (PNG preferred) for best results!

4. Set Your Brand Colors

  • Customize the main theme color, sidebar color, and accent color.
  • Match these to your business’s primary brand colors.

5. Add Custom Footer Links

  • Under Public Contact, you can link to your support page, home page, or contact form.
  • This ensures your clients know where to get help (from you).

6. Save and Preview

  • Always preview your changes before making them live.
  • Once happy, Save Settings.

Done! Your clients now have a fully branded cPanel experience.

Why White‑Label with Sternhost?

  • Professionalism: Boosts your agency’s image.
  • Trust: Clients see YOUR brand, not third-party brands.
  • Upsell Opportunities: Easier to offer premium hosting services.
  • Seamless Support: Clients contact YOU directly, not Sternhost.

At Sternhost, we offer flexible hosting plans built for agencies who want to scale fast. See why agencies trust us — check our agency hosting plans here (internal link).

Final Thoughts

With Sternhost’s easy white-label cPanel tools, your brand stays front and center. Start customizing your client experience today and grow your agency with confidence!

Need help setting up your white-labeled portal? 🚀 Contact Sternhost Support — we’re happy to assist.

 

Building CI/CD Pipelines with GitHub Actions & Sternhost

Continuous Integration and Continuous Deployment (CI/CD) isn’t just for big tech companies anymore. With Sternhost and GitHub Actions, you can easily set up a pipeline that automatically deploys your code every time you push to your repository. This guide will walk you through setting up your own CI/CD pipeline, so you can ship faster and more confidently.

Why Set Up CI/CD on Sternhost?

  • Faster Deployments: Your updates go live automatically without manual uploads.
  • Fewer Mistakes: Automated tests and builds catch issues before they reach your live site.
  • Professional Workflow: Impress clients and collaborators with seamless updates.
  • Focus on Coding: Spend less time managing servers and more time building.

Prerequisites

  • A Sternhost hosting account (preferably VPS or Cloud hosting for SSH access)
  • A GitHub account
  • Your project hosted in a GitHub repository
  • SSH access to your Sternhost server

If you don’t have hosting yet, check out Sternhost plans — affordable and ready for developers!

Step 1: Set Up SSH Access

First, make sure you can SSH into your Sternhost server.

  1. Generate an SSH key (if you don’t have one):
ssh-keygen -t rsa -b 4096
  1. Add your public key to your Sternhost server through the control panel or manually via .ssh/authorized_keys.
  2. Test the connection:
ssh youruser@yourdomain.com

If it connects without asking for a password, you’re good!

Step 2: Add SSH Key to GitHub Secrets

  • Go to your GitHub repo → Settings → Secrets and Variables → Actions.
  • Create a new secret:
    • Name: HOST_SSH_KEY
    • Value: (paste your private key here — usually in ~/.ssh/id_rsa)

Important: Keep this private key safe!

Also add:

  • HOST_USER → your Sternhost server username
  • HOST_SERVER → your domain or IP address
  • HOST_DIR → the directory you want to deploy to (e.g., /home/youruser/app/)

Step 3: Create Your GitHub Action

Inside your GitHub repo, create a new file:

.github/workflows/deploy.yml

Paste this into it:

name: Deploy to Sternhost

on:
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Deploy via SSH
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.HOST_SERVER }}
          username: ${{ secrets.HOST_USER }}
          key: ${{ secrets.HOST_SSH_KEY }}
          script: |
            cd ${{ secrets.HOST_DIR }}
            git pull origin main
            npm install # or your build commands
            pm2 restart all # if you're using a Node app

✨ You can customize the script section depending on your project’s language (PHP, Node.js, Python, etc.)

Step 4: Push and Deploy!

  • Commit and push your changes to GitHub.
  • Watch your GitHub Actions tab — your code will automatically deploy to Sternhost!

Bonus Tips

  • Testing Before Deploying: Add unit tests or build checks before pulling the code.
  • Zero Downtime Deployment: Use tools like PM2 or Docker for advanced strategies.
  • Notification on Success/Failure: Integrate Slack, Discord, or email notifications.

Final Thoughts

With GitHub Actions and Sternhost, you’re ready to take your website or app to the next level. Set it up once, and deploy with total confidence — no FTP, no manual mistakes, just clean, professional automation.

Ready to build faster? 🚀
Get Started with Sternhost

 

Real‑Time with WebSockets: Hosting Chat Apps on Sternhost

In today’s digital world, users expect real-time interactions — whether it’s live chat, notifications, or dynamic collaboration tools. WebSockets make this possible by enabling two-way communication between the server and the browser. At Sternhost, setting up a WebSocket server is fast, flexible, and beginner-friendly. Here’s how you can do it!

Why Use WebSockets for Your Chat App?

Traditional HTTP is request-response based — your browser asks for something, the server responds. But WebSockets create a persistent connection, allowing continuous data flow without repeated requests. This makes your chat apps ultra-responsive, efficient, and smooth.

Benefits of WebSockets:

  • Instant messaging and updates.
  • Lower latency compared to polling methods.
  • Reduces server load.
  • Enables real-time gaming, trading, collaboration, and more.

Setting Up a WebSocket Server on Sternhost

Sternhost’s VPS Hosting gives you full control to install Node.js, Python, or any server technology you prefer. Here’s a simple guide to launch your WebSocket project:

1. Choose a VPS Hosting Plan

First, make sure you’re on a VPS Hosting plan from Sternhost. Explore Sternhost VPS Plans here.

Our plans are affordable and scalable, perfect for growing your real-time application.

2. Install Node.js or Python

Once your VPS is ready:

  • Access your VPS via SSH.
  • For Node.js, install it with:
    sudo apt update
    sudo apt install nodejs npm
    
  • For Python, install if not already available:
    sudo apt install python3 python3-pip
    

3. Build Your WebSocket Server

Example for Node.js (using ws package):

const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 8080 });

wss.on('connection', function connection(ws) {
  ws.on('message', function incoming(message) {
    console.log('received: %s', message);
  });
  ws.send('Hello! Message from Sternhost WebSocket Server');
});

Install ws package:

npm install ws

Example for Python (using websockets library):

import asyncio
import websockets

async def echo(websocket, path):
    async for message in websocket:
        await websocket.send(f"Echo: {message}")

start_server = websockets.serve(echo, "localhost", 8765)

asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()

Install websockets package:

pip3 install websockets

4. Point Your Domain to Your WebSocket Server

  • Go to your Sternhost Control Panel.
  • Update your domain’s A Record to point to your VPS IP address.
  • If needed, set up an SSL certificate for secure wss:// connections. Learn how to install SSL with Sternhost.

5. Run Your Server in the Background

Use pm2 for Node.js apps:

npm install pm2 -g
pm2 start app.js
pm2 startup
pm2 save

Or use screen/tmux sessions to keep Python servers running.

Final Thoughts

Hosting real-time chat apps has never been easier thanks to Sternhost’s powerful VPS hosting and full root access. Whether you’re building a chat app, multiplayer game, or live collaboration tool, WebSockets will elevate your users’ experience.

Get started today with Sternhost VPS Hosting and bring your ideas to life in real-time!

Deploying Laravel (or Django) Apps on Sternhost: From Zero to Live

Getting your modern web application from code to production doesn’t have to be complicated. In this tutorial, we’ll cover two popular frameworks—Laravel (PHP) and Django (Python)—and show you how to deploy them on Sternhost from an empty server to a live, secure site.

Why Choose Sternhost for Framework Apps?

  • Optimized Environments for PHP and Python
  • SSH & Composer/Pip preconfigured on VPS plans
  • Easy Virtual Host Setup via cPanel
  • Free SSL, automated backups, and 24/7 expert support

Common Prerequisites

  1. Sternhost VPS or Dedicated Plan (required SSH access).
  2. Domain Pointed to your Sternhost nameservers.
  3. SSH Key installed in your Sternhost control panel for secure login.
  4. Basic CLI Knowledge (SSH, composer, pip).

Part 1: Deploying a Laravel App

1. Connect via SSH & Prepare Server

ssh youruser@your.server.ip
cd ~
  1. Update packages
    sudo apt update && sudo apt upgrade -y
    
  2. Install PHP dependencies (if not already)—Laravel requires PHP 8.x, extensions, Composer:
    sudo apt install php php-mbstring php-xml php-zip php-mysql php-pdo unzip -y
    curl -sS https://getcomposer.org/installer | php
    sudo mv composer.phar /usr/local/bin/composer
    

2. Upload or Clone Your Laravel Project

  • Git clone:
    git clone https://github.com/yourname/your-laravel-app.git public_html
    
  • Or upload your project ZIP via cPanel File Manager into ~/public_html, then extract.

3. Install Dependencies & Environment

cd public_html
composer install --optimize-autoloader --no-dev
cp .env.example .env
php artisan key:generate

Edit .env to configure:

APP_URL=https://yourdomain.com
DB_HOST=localhost
DB_DATABASE=your_db
DB_USERNAME=your_user
DB_PASSWORD=your_pass

4. Set Up Database

  1. In cPanel → MySQL® Databases, create a database and user.
  2. Grant all privileges, then run:
    php artisan migrate --force
    

5. Configure Virtual Host & SSL

  1. In cPanel → DomainsAddon Domains (or Subdomains), point yourdomain.com to public_html/public.
  2. Enable SSL via SSL/TLSLet’s Encrypt.
  3. In .htaccess (inside public_html/public), ensure Laravel’s rewrite rules:
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
    

6. Optimize & Go Live

php artisan config:cache
php artisan route:cache
php artisan view:cache

Visit **https://yourdomain.com**—your Laravel app is live!

Part 2: Deploying a Django App

1. Connect via SSH & Prepare Server

ssh youruser@your.server.ip

Install Python 3, pip, virtualenv:

sudo apt update && sudo apt install python3 python3-venv python3-pip -y

2. Upload or Clone Your Django Project

cd ~
git clone https://github.com/yourname/your-django-app.git
mv your-django-app public_html

3. Create Virtual Environment & Install Requirements

cd public_html
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

4. Configure Django Settings

In settings.py:

ALLOWED_HOSTS = ['yourdomain.com']
DEBUG = False
STATIC_ROOT = BASE_DIR / 'staticfiles'

Collect static files:

python manage.py collectstatic --noinput

5. Set Up Database

If using MySQL/PostgreSQL:

  1. Create DB & user in cPanel → MySQL® Databases or PostgreSQL® Databases.
  2. Update DATABASES in settings.py.
  3. Run migrations:
    python manage.py migrate
    

6. Configure uWSGI and Apache (via cPanel)

  1. In cPanel → Setup Python App:
    • Choose Python 3.x
    • Set “Application root” to public_html
    • “Application startup file” to passenger_wsgi.py (create this file next)
  2. Create passenger_wsgi.py in public_html:
    import os
    from django.core.wsgi import get_wsgi_application
    
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yourproject.settings')
    application = get_wsgi_application()
    
  3. Restart the Python app in cPanel.

7. Enable SSL & Test

Troubleshooting & Tips

  • Permissions: Ensure storage (Laravel) or staticfiles (Django) directories are writable (chmod -R 755).
  • Logs: Check storage/logs/laravel.log or Django’s error_log via cPanel’s Metrics → Errors.
  • Support: Sternhost’s 24/7 team can assist with server-level issues—open a ticket via the Support Portal.

Conclusion

Deploying Laravel or Django on Sternhost is fast and reliable when you follow these steps. From SSH setup to SSL configuration, our platform gives you the tools to launch robust, production-ready applications. Ready to deploy? Log in to your Sternhost cPanel and go live today!

Securing Your Website: Installing SSL Certificates via cPanel on Sternhost

Protecting your visitors’ data and building trust starts with a secure connection. Installing an SSL (Secure Sockets Layer) certificate on your website encrypts traffic between your server and users, prevents “Not Secure” warnings in browsers, and boosts your SEO rankings. In this guide, we’ll show you how to install an SSL certificate in cPanel on Sternhost—step by step.

Why SSL Matters

  • Data Encryption & Privacy
    SSL encrypts sensitive information (login details, payment data) to prevent eavesdropping.
  • User Trust & Credibility
    Visitors expect the padlock icon and “https://” prefix on modern websites—sites without SSL risk losing conversions.
  • SEO Benefits
    Google uses HTTPS as a ranking signal, so a secure site can improve your search visibility (source: Google Search Central).

Step 1: Choose Your SSL Certificate

Sternhost supports multiple SSL options:

  • Free Let’s Encrypt SSL (auto‑renewed).
  • Premium SSL Certificates (DV, OV, EV) with extended warranties and higher validation levels.

Learn more about our SSL offerings on the Sternhost SSL Plans page.

Step 2: Access cPanel’s SSL/TLS Manager

  1. Log in to cPanel
    Go to sternhost.com/cpanel and enter your credentials.
  2. Locate SSL/TLS
    Under the Security section, click SSL/TLS.

Step 3: Generate a CSR (Certificate Signing Request)

If you’re installing a premium SSL:

  1. Click “Certificate Signing Requests (CSR)”
  2. Fill in Domain Details
    • Domains: Your primary domain (e.g., example.com) and any subdomains.
    • Company Info: Organization name, department, city, and country.
    • Passphrase: Optional—adds extra security during CSR generation.
  3. Generate and copy the CSR code.

🚩 Tip: Keep your private key secure—it’s created simultaneously and stored in cPanel.

Step 4: Purchase & Validate Your SSL

  1. Go to the Sternhost Client Area
    Navigate to Services → SSL Certificates, select your purchased SSL, and paste the CSR.
  2. Complete Domain Validation
    Depending on your SSL type, validation happens via email, HTTP file upload, or DNS record.
  3. Receive Your SSL Certificate
    Once validated, you’ll receive a .crt file (certificate) and CA bundle from Sternhost via email.

Step 5: Install Your SSL Certificate

  1. Return to cPanel’s SSL/TLS Manager
    Click Manage SSL sites under the Install and Manage SSL for your site (HTTPS) section.
  2. Paste Your Certificate
    • Domain: Select your domain from the dropdown.
    • Certificate (CRT): Paste the contents of your .crt file.
    • Private Key (KEY): cPanel often auto‑loads this if you generated the CSR there. If not, paste your private key.
    • Certificate Authority Bundle (CABUNDLE): Paste the CA bundle provided by Sternhost.
  3. Install Certificate
    Click Install Certificate. You should see a success message and your site will now serve HTTPS.

Step 6: Enable HTTP to HTTPS Redirect

To ensure all visitors use the secure URL:

  1. Open File Manager in cPanel.
  2. Edit .htaccess in your public_html folder (or site root).
  3. Add Redirect Rule at the top:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
  4. Save and test by visiting http://yourdomain.com—it should redirect to https://yourdomain.com.

 

Troubleshooting & Best Practices

  • Mixed Content Warnings
    If some resources (images, scripts) still load over HTTP, update their URLs to HTTPS or use protocol‑relative paths.
  • Auto‑Renewal for Let’s Encrypt
    Sternhost’s free SSL auto‑renews every 90 days—ensure your domain remains pointed correctly.
  • Check Your Installation
    Use an SSL checker like SSL Labs to verify your certificate chain, protocol support, and grades.

Additional Resources

Conclusion

Installing an SSL certificate in cPanel on Sternhost is fast and straightforward, yet it offers tremendous benefits in security, trust, and SEO. By following this guide, you can secure your website within minutes and ensure your visitors always connect safely over HTTPS.

Ready to secure your site? Log in to your Sternhost cPanel and get started today!

GDPR & Data Privacy on Your Sternhost Site: Best Practices for Compliance

Ensuring compliance with the EU’s General Data Protection Regulation (GDPR) is essential for any website that serves European visitors. Non‑compliance can lead to hefty fines and damage your brand’s reputation. In this guide, we’ll show you how to configure cookie banners, create comprehensive privacy pages, and implement solid data‑handling practices on your Sternhost‑hosted site.

1. Understand Your GDPR Obligations

  • Data Collection Principles:
    GDPR requires that all personal data be collected lawfully, transparently, and for a specific purpose.
  • User Rights:
    Visitors have rights to access, rectify, erase, and port their data.
  • Accountability:
    You must document your data‑processing activities and demonstrate compliance on demand (source: GDPR.eu).

2. Configure a Cookie Consent Banner

Why It Matters

Cookies can track personal data (e.g., IP addresses, preferences). Under GDPR, you need explicit, opt‑in consent before setting non‑essential cookies.

How to Set Up on Sternhost

  1. Choose a Cookie‑Banner Solution:
    • Plugin (CMS): For WordPress, use GDPR‑compliant plugins like Cookie Notice or Complianz.
    • Standalone Script: Use open‑source solutions such as Osano or CookieConsent by Insites.
  2. Install & Configure:
    • Upload Files: If using a script, upload its JS/CSS to your public_html directory via cPanel’s File Manager.
    • Insert Snippet: Add the initialization code to your site’s <head> section (via theme editor or global header include).
    • Customize Behavior:
      window.cookieconsent.initialise({
        "palette": { "popup": {"background":"#000"}, "button": {"background":"#f1d600"} },
        "theme": "classic",
        "type": "opt-in",
        "content": { "message": "We use cookies to improve your experience.", "dismiss": "Accept", "deny": "Decline", "link": "Learn more", "href": "/privacy-policy" }
      });
      
  3. Test & Verify:
    • Load your site in a private browser window.
    • Ensure the banner appears before any non‑essential cookies are set.
    • Test both Accept and Decline flows (use DevTools → Application → Cookies).

For a step‑by‑step code walkthrough, see our Cookie Banner Setup guide.

3. Create a GDPR‑Compliant Privacy Policy Page

Key Sections to Include

  1. Introduction & Data Controller Info:
    • Your company name, address, and contact details (email/phone).
  2. Data Collected:
    • List personal data types (names, emails, IPs, analytics).
  3. Purpose & Legal Basis:
    • Why you collect data (e.g., service delivery, marketing) and legal grounds (consent, contract).
  4. Third‑Party Sharing:
    • Detail any integrations (analytics, payment gateways) and link to their privacy policies.
  5. Cookie Usage:
    • Explain essential vs. non‑essential cookies and link to your cookie banner.
  6. User Rights & Contact:
    • How users can access, correct, delete their data, or withdraw consent.

How to Publish on Sternhost

  1. Create the Page:
    • In your CMS, add a new “Privacy Policy” page.
    • Or, upload a privacy-policy.html file via cPanel’s File Manager.
  2. Link in Footer & Banner:
    • Add a “Privacy Policy” link in your site footer.
    • Ensure your cookie banner’s “Learn more” button points here.
  3. Update Regularly:
    • Review and revise whenever you add new data‑processing features.

For template examples, visit our Privacy Policy Templates.

4. Implement Robust Data‑Handling Practices

a. Minimize & Secure Data Collection

  • Data Minimization:
    Only collect what you need—avoid storing unnecessary personal details.
  • Encryption:
    Enable SSL/TLS on your site (via cPanel’s SSL/TLS Manager) to encrypt data in transit.
  • Server‑Side Security:
    Use strong file permissions (chmod 644 for files, 755 for folders) and keep software up to date.

b. Manage User Requests Efficiently

  • Automated Workflows:
    Use forms or tools (e.g., WP‑GDPR) that log, authenticate, and process data‑subject access requests.
  • Internal Documentation:
    Maintain a data register in a secure location (off‑site backup via Sternhost’s backup system).

c. Regular Audits & Training

  • Periodic Reviews:
    Audit your data‑collection points (forms, analytics, third‑party scripts) at least annually.
  • Team Training:
    Ensure anyone handling personal data understands GDPR obligations and internal policies.

5. Monitor & Maintain Compliance

  • Use Audit Logs:
    Enable cPanel’s Raw Access Logs to track data‑related events.
  • Stay Updated:
    Follow GDPR updates from official sources like the European Data Protection Board.
  • Leverage Sternhost Support:
    Reach out to our 24/7 support team for assistance with server‑level security and data‑handling configurations.

 

Conclusion

Implementing GDPR‑compliant cookie banners, privacy policies, and robust data‑handling practices not only helps you avoid penalties but also builds trust with your visitors. With Sternhost’s intuitive cPanel tools and reliable hosting infrastructure, you have everything you need to safeguard personal data and maintain compliance.

Ready to secure your site? Log in to your Sternhost cPanel and start implementing these best practices today!