How to install SSL (HTTPS) with Let's Encrypt on WordPress (Apache)

Questions and discussions about VPS plans, Linux setup, WordPress, Nginx, NAT and VPS configuration in Bulgaria.
rychy
Site Admin
Мнения: 132
Регистриран на: Вто Окт 20, 2026 10:45 am

How to install SSL (HTTPS) with Let's Encrypt on WordPress (Apache)

Мнение от rychy »

🇧🇬 Прочети на български

🔐 How to enable HTTPS (SSL) on WordPress

After you install WordPress, you must add an SSL certificate.

It makes your site:
  • secure
  • rank better in Google
  • more trusted by visitors

📦 1. Install Certbot

Код: Избери целия код

sudo apt update
sudo apt install certbot python3-certbot-apache -y

🌐 2. Add your domain

Make sure the domain points to your VPS (an A record to its IP address).

⚡ 3. Generate the SSL certificate
sudo certbot --apache

👉 It will ask for:

the domain (example: yourdomain.com)
whether to redirect HTTP → HTTPS (choose YES)
🔄 4. Check

Open in the browser:

https://yourdomain.com
🔁 5. Automatic renewal
sudo systemctl status certbot.timer
🔥 Tip

If your site does not open over HTTPS:

check that port 443 is open
check the Apache configuration
✅ Result

Your site now runs with:

🔒 HTTPS
a valid SSL certificate
better SEO