Error while running apache2ctl graceful.
httpd not running, trying to start
Action ‘graceful’ failed.
The Apache error log may have more information.
AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘S
erverName’ directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
I also tried running certbot --apache certonly and recieved the same error.
Apache is currently running on your domain, so you have either resolved this, or there is a second version of apache running - which is why you are getting the error.
Yes I resolved the issue by running certbot certonly --webroot
I put the domain name as: Mangotreepro.com
I put the webroot as: opt/bitnami/apps/drupal/htdocs
However, as you can see, the webpage is not currently MY webpage, it’s the default apache page. It says I must replace a file, which I found in my directory, but what do I replace it with? How do I get my drupal site to show up instead of the default apache page?
Currently it’s not giving the default apache page, but rather a “403 forbidden” error.
Have you got a backup of your apache config ? if not, can you paste your main apache config, and your vhost for the domain so we can tell you what corrections are required.
Yes it was giving me the default page earlier, and now it’s a 403 forbidden error. I believe it’s because my coworker (seeing the site wasn’t there) loaded a snapshot of the site before I followed the steps to use letsencrypt. Unfortunately, we needed the original site to be working for a meeting today. However, I am confident that when I try to implement a certificate again, I can get it to the apache default page. How do I proceed from there?
If you use the certbot certonly --webroot method, it will make no changes to your apache ( so won’t change things to the apache default page or anything)
You will need to configure your apache for https afterwards - https://mozilla.github.io/server-side-tls/ssl-config-generator/ is a good site for giving you a good config. Let us know what you want a hand with, and preferably paste what you have so we can tell you the modifications needed.
Could you help me run the certbot --apache instead then? The less I have to configure myself the better, I’m quite inexperienced. If not that’s okay, I don’t really know which pathway is going to be easier.
Yes, I’d suggest doing it after your meeting today, so that there isn’t a time pressure to get it fixed fully
Then. the more information you can provide the better (do you have root access ? do you have a control panel ? what versions of apache etc ) It would be good to check your apache config before you start as well, since some of your initial errors looked to be not related to letsencrypt, rather errors in apache config.
I have found the files you requested, but they are quite long and it would be very difficult to paste them anywhere or screenshot them. If needed I can do this, but which part of the files are you looking for particularly? I can navigate the file and find the information you need.
I’m not exactly sure what you mean by vhost file-so I suppose I didn’t set one up. All I have done so far is attach the domain name to the IP of a duplicate to the website and then get the certificate. The duplicate website is running on a different VM instance than the original.
Where should I put the vhost file and the one for https? Does it matter what their names are?