My domain is: wonkylogic.co
I had my LAMP server (on Digital Ocean) set up a couple weeks ago and it was working ok. I then tried setting up SSL with certbot but somehow I broke something so that my website would not load (tried on multiple browsers). So I decided to follow instructions in forums here to remove my SSL certificates and start over. But I broke my website entirely so that nothing was loading. I've spent hours trawling forums here and Stackoverflow etc to try and recitify this, lastly resorting to purging Apache, PHP and Mysql. I've reinstalled and verified that:
- PHP is working.
- I can open up index.html if I include a basic index.html file in my directory.
- PHP is talking to mysql (I set up a testing php page linked to a mysql database and it worked).
I am trying to get my website working without SSL right now and then I will try to reinstall certbot after that and hopfeully get a better outcome.
But if I delete index.html then my website fails to load - tried on Firefox, Chrome and Safari (macOS and iOS). It looks as though the website keeps trying to force https rather than http, i.e. I type in http://wonkylogic.co and when the browser fails to load, in the address bar there is https://wonkylogic.co instead.
I've seen some really insightful answers provided to other users here so I'm confident there is someone here who would know what I'm doing wrong. I'm at the end of myself here - it is so frustraing to not be able to nail this down. If I can't resolve this then I am going to have to destroy the droplet and really start over.
My web server is (include version): Digital Ocean Droplet
The operating system my web server runs on is (include version): Ubuntu 20.04
NOTE that I am using apache configuration files to direct traffic to the correct directory based on the domain name (Virtual host) for the purpose of being able to run multiple websites from the server. I don't have any other websites on there yet but trying to leave the door open to that. This may well be a source of my problems.
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No, all done over SSH
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot):