I just set up a VPS running ubuntu 16.04 with apache2. VPS has root login disabled, and I’ve given my own user account sudo permissions
I installed apache2 with
sudo apt-get install apache2 . Certbot installed with
sudo apt-get install python-letsencrypt-apache
I’m able to generate the certificate files OK, but apache cant seem to access the files:
apachectl configtest gives me:
AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/domain.net-le-ssl.conf: SSLCertificateFile: file '/etc/letsencrypt/live/domain.net/fullchain.pem' does not exist or is empty Action 'configtest' failed.
I think this is a permissions issue because I cant
Apache also doesn’t start after reboot. Is this because I dont have a root user account?
Whats the correct way to setup apache2 and letsencrypt (with, or without, root access)?