Sorry, I don’t think those were the relevant lines of the file. I should have double-checked and scrolled up before posting. Try this:
Jan 14 16:56:35 enorugby.com sudo[23892]: pi : TTY=pts/0 ; PWD=/home/admin/conf/web ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
Jan 14 16:56:35 enorugby.com sudo[23892]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Jan 14 16:56:35 enorugby.com systemd[1]: Stopping The Apache HTTP Server…
– Subject: Unit apache2.service has begun shutting down
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
– Unit apache2.service has begun shutting down.
Jan 14 16:56:35 enorugby.com apachectl[23898]: AH00526: Syntax error on line 44 of /home/admin/conf/web/drills.enorugby.com.apache2-le-ssl.conf:
Jan 14 16:56:35 enorugby.com apachectl[23898]: Name duplicates previous WSGI daemon definition.
Jan 14 16:56:35 enorugby.com apachectl[23898]: Action ‘stop’ failed.
Jan 14 16:56:35 enorugby.com apachectl[23898]: The Apache error log may have more information.
Jan 14 16:56:35 enorugby.com systemd[1]: apache2.service: Control process exited, code=exited status=1
Jan 14 16:56:36 enorugby.com systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jan 14 16:56:36 enorugby.com systemd[1]: Stopped The Apache HTTP Server.
– Subject: Unit apache2.service has finished shutting down
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
– Unit apache2.service has finished shutting down.
Jan 14 16:56:36 enorugby.com systemd[1]: Starting The Apache HTTP Server…
– Subject: Unit apache2.service has begun start-up
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
– Unit apache2.service has begun starting up.
Jan 14 16:56:36 enorugby.com apachectl[23904]: AH00526: Syntax error on line 44 of /home/admin/conf/web/drills.enorugby.com.apache2-le-ssl.conf:
Jan 14 16:56:36 enorugby.com apachectl[23904]: Name duplicates previous WSGI daemon definition.
Jan 14 16:56:36 enorugby.com apachectl[23904]: Action ‘start’ failed.
Jan 14 16:56:36 enorugby.com apachectl[23904]: The Apache error log may have more information.
Jan 14 16:56:36 enorugby.com systemd[1]: apache2.service: Control process exited, code=exited status=1
Jan 14 16:56:36 enorugby.com sudo[23892]: pam_unix(sudo:session): session closed for user root
Jan 14 16:56:36 enorugby.com systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jan 14 16:56:36 enorugby.com systemd[1]: Failed to start The Apache HTTP Server.
– Subject: Unit apache2.service has failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
– Unit apache2.service has failed.