Question

Domain name SSL wordpress droplet

Hello,

I have been struggling for the past 2 days to fix this problem. I have read countless forum answers (DO and others) and I can’t figure it out.

TLDR: I can’t use my domain name (stairway.ma) in my DigitalOcean Wordpress droplet.

I’ve probably created and destroyed a dozen droplets since yesterday:

  • During the wordpress console installation, I tried adding ‘stairway.ma’ as a domain name and add SSL, but it won’t work, it says there’s some firewall problem and I can’t access the website.
  • I tried disabling the firewalls in another installation but it still won’t work.
  • I tried starting a new droplet and using the droplet’s IP as the domain name, it worked, but when I try changing the domain to stairway.ma, the whole thing goes down.
  • I tried adding this to wp-config:
 define('WP_SITEURL', 'http://stairway.ma');
 define('WP_HOME', 'http://stairway.ma');

but it doesn’t work.

  • I tried another wp-config edit with https://stairway.ma, but it won’t work.

Any ideas? I would appreciate any help and thank you in advance for your time.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

UPDATE: I found the solution, it wasn’t a firewall problem.

Forget the wordpress SSL plugins, just follow this tutorial but instead of editing

/etc/apache2/sites-available/your_domain.com.conf

edit

/etc/apache2/sites-enabled/your_domain.com.conf

I did step 2 via FTP, not console.

I hope it helps others, good luck.

njw
DigitalOcean Employee
DigitalOcean Employee badge
November 12, 2021

Hey there!

From what you have provided here it looks like your DNS settings are all correct. It looks like the SSL isn’t being installed which would need to be setup before you can change the sites URL. What errors are you seeing when trying to setup the SSL for the domain through SSH during setup?

Nate

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel