Raspberrypi Wordpress Apache fix

Hahahah :wink:

The new certificate covers the following domains: https://www.davidhallows.com,
https://davidhallows.duckdns.org, and https://www.davidhallows.duckdns.org

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=www.davidhallows.com
https://www.ssllabs.com/ssltest/analyze.html?d=davidhallows.duckdns.org
https://www.ssllabs.com/ssltest/analyze.html?d=www.davidhallows.duckdns.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/www.davidhallows.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/www.davidhallows.com/privkey.pem
   Your cert will expire on 2020-02-16. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le
1 Like

Doesn’t seem to be working, I’ll check in later. Thanks again. Dave

Hi rg305
I’ve jacked a keyboard, mouse and monitor into my pi, to try and solve this, if you’ve still got the patience :wink:

I’m all about patience :slight_smile:

What is now in:
ls -l /etc/apache2/sites-enabled/

Great to hear :slight_smile:
I’ve lost my squiggly tide mark as it’s a different keyboard, give me a mo…

Got it…

pi@raspberrypi:~ $ ls -l /etc/apache2/sites-enabled/
total 4
lrwxrwxrwx 1 root root   35 Nov 16 10:15 000-default.conf -> ../sites-available/000-default.conf
-rwxrwxr-x 1 root root 1386 Nov 18 16:08 000-default.conf.save
lrwxrwxrwx 1 root root   52 Nov 18 16:58 000-default-le-ssl.conf -> /etc/apache2/sites-available/000-default-le-ssl.conf
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ 

Let’s see:
/etc/apache2/sites-enabled/000-default-le-ssl.conf

:confused:

pi@raspberrypi:~ $ /etc/apache2/sites-enabled/000-default-le-ssl.conf
bash: /etc/apache2/sites-enabled/000-default-le-ssl.conf: Permission denied
pi@raspberrypi:~ $ 

As my better half has my machine, my notes are not available… to give myself permissions is it something like:
sudo chmod -R 755 /etc/

?

sorry, try:
more /etc/apache2/sites-enabled/000-default-le-ssl.conf
or
cat /etc/apache2/sites-enabled/000-default-le-ssl.conf

[it’s not an executable file]

ok…

pi@raspberrypi:~ $ cat /etc/apache2/sites-enabled/000-default-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName www.davidhallows.com
    ServerAlias davidhallows.com
    ServerAlias www.davidhallows.duckdns.org
    ServerAlias davidhallows.duckdns.org
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Alias /.well-known/acme-challenge/ /var/www/html
    Redirect / https://www.davidhallows.com

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.davidhallows.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.davidhallows.com/privkey.pem
</VirtualHost>
</IfModule>
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ 

remove that line.
[circular redirection]

Ensure that is the correct document root and you are good to go!

It won’t let me in. Every time I give the commands it reverts back to the command prompt.

sudo nano /etc/apache2/sites-enabled/000-default-le-ssl.conf
or
sudo vi /etc/apache2/sites-enabled/000-default-le-ssl.conf

[insert your fav editor]

Scrub that. I sudo nano’d in and have done it…

restart apache and resume life.

1 Like

There is a god!!!

1 Like

And She is beautiful :slight_smile:

I really can’t express how much heart ache you’ve saved me friend. I was on the verge of giving up.

All is good again on planet Earth. Big love. Dave.

1 Like