What do these files contain?
/etc/apache2/sites-available/allmyloveyogurt.com.conf
/etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf
What do these files contain?
/etc/apache2/sites-available/allmyloveyogurt.com.conf
/etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf
the first one contain
<Directory /var/www/html/>
Require all granted
</Directory>
<VirtualHost *:80>
ServerName allmyloveyogurt.com
ServerAdmin webmaster@localhost
ServerAlias www.allmyloveyogurt.com
DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined
<files xmlrpc.php>
order allow,deny
deny from all
</files>
RewriteEngine on
RewriteCond %{SERVER_NAME} =allmyloveyogurt.com [OR]
RewriteCond %{SERVER_NAME} =www.allmyloveyogurt.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
the second one contain
<IfModule mod_ssl.c><VirtualHost *:443>
ServerName allmyloveyogurt.com
ServerAdmin webmaster@localhost
ServerAlias www.allmyloveyogurt.com
DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined
<files xmlrpc.php>
order allow,deny
deny from all
</files>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/allmyloveyogurt.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/allmyloveyogurt.com/privkey.pem
</VirtualHost>
</IfModule>
Are those the whole files? The closings are missing.
Change the output postings to look like this:
```
output
```
That's for code instead of the quotes you've used.
Edit: Much better!
Okay! I edit the post!
Replace the entire contents of /etc/apache2/sites-available/allmyloveyogurt.com.conf
with this:
<Directory /var/www/html/>
Require all granted
</Directory>
<VirtualHost *:80>
ServerName allmyloveyogurt.com
ServerAlias www.allmyloveyogurt.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined
<files xmlrpc.php>
order allow,deny
deny from all
</files>
</VirtualHost>
Okay, I replaced it!
Should I install certbot and start all over now or?
Not yet.
sudo a2dissite allmyloveyogurt.com-le-ssl.conf
sudo apachectl -k graceful
It can't work.
It shows
ERROR: Site /etc/apache2/sites-available/allmyloveyogurt.com-le-ssl does not exist!
My fault.
sudo a2dissite allmyloveyogurt.com-le-ssl.conf
sudo apachectl -k graceful
Did I lose you?
If so, after the commands in my previous post, these should be next:
sudo rm /etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf
What is the output of this?
sudo ls -lRa /etc/letsencrypt
If that's empty, you should be able to reinstall certbot then proceed with:
sudo certbot --apache -d "allmyloveyogurt.com,www.allmyloveyogurt.com"
Hi! I’m sorry I got urgent things to do so I can’t use my computer right now! I’ll be right back in about 15mins
No worries. If I'm not available, I believe I've given you everything else you need.
Okay! Thank you so much for everything
Hi, what if it's not empty? It shows
/etc/letsencrypt:
total 12
drwxr-xr-x 3 root root 4096 Feb 1 16:14 .
drwxr-xr-x 81 root root 4096 Feb 1 16:09 ..
drwxr-xr-x 5 root root 4096 Feb 1 16:09 renewal-hooks
/etc/letsencrypt/renewal-hooks:
total 20
drwxr-xr-x 5 root root 4096 Feb 1 16:09 .
drwxr-xr-x 3 root root 4096 Feb 1 16:14 ..
drwxr-xr-x 2 root root 4096 Feb 1 16:09 deploy
drwxr-xr-x 2 root root 4096 Feb 1 16:09 post
drwxr-xr-x 2 root root 4096 Feb 1 16:09 pre
/etc/letsencrypt/renewal-hooks/deploy:
total 8
drwxr-xr-x 2 root root 4096 Feb 1 16:09 .
drwxr-xr-x 5 root root 4096 Feb 1 16:09 ..
/etc/letsencrypt/renewal-hooks/post:
total 8
drwxr-xr-x 2 root root 4096 Feb 1 16:09 .
drwxr-xr-x 5 root root 4096 Feb 1 16:09 ..
/etc/letsencrypt/renewal-hooks/pre:
total 8
drwxr-xr-x 2 root root 4096 Feb 1 16:09 .
drwxr-xr-x 5 root root 4096 Feb 1 16:09 ..
Also I can not access my domain now.
Will it recover once I reinstall Certbot and proceed with
sudo certbot --apache -d "allmyloveyogurt.com,www.allmyloveyogurt.com"
Thanks again
It is ok, doesn't matter.
I can, I see your coming soon page. Maybe you are trying to access to https and that is the reason you can't access.
Yes, it should recover once you get your cert and certbot configures your site again. Go ahead and try the command.
Just a warning, this is the last time you can issue a certificate covering your both domains in the same cert because you have already issued 4 for the same sub set of domains last 7 days, the next one will be the last, after that you will hit the rate limit of 5 certificates covering the same domains per 7 days and you should wait 6 days but no worries, it should work
Hi, thanks for helping and warning!
One last question, can I install it by using this command
sudo apt install certbot python-certbot-apache
or should I just install it with
sudo apt install certbot
As you are using Debian 10 install python3-certbot-apache
:
sudo apt install certbot python3-certbot-apache
I've checked it and python-certbot-apache
is a dummy package to allow the transition from python2 to python3 so it will install python3-certbot-apache
so no matter what you install but better install directly the python3 package
Ohh!!! It worked! Everythings' working perfectly right now!
Thank you all for helping me! It's so nice of you