Hello everyone
I was trying to change domain name registered with letsencrypt. Messed it up and tried to delete everything related to letsencrypt.
In the process, I probably deleted something important related to apache.
Get following message now when I run
systemctl status apache2.service
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2017-08-29 09:52:46 CEST; 4min 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 3542 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Aug 29 09:52:46 domain.name apache2[3542]: *
Aug 29 09:52:46 domain.name apache2[3542]: * The apache2 configtest failed.
Aug 29 09:52:46 domain.name apache2[3542]: Output of config test was:
Aug 29 09:52:46 domain.name apache2[3542]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on
Aug 29 09:52:46 domain.name apache2[3542]: Action ‘configtest’ failed.
Aug 29 09:52:46 domain.name apache2[3542]: The Apache error log may have more information.
Aug 29 09:52:46 domain.name systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 29 09:52:46 domain.name systemd[1]: Failed to start LSB: Apache2 web server.
Aug 29 09:52:46 domain.name systemd[1]: apache2.service: Unit entered failed state.
Aug 29 09:52:46 domain.name systemd[1]: apache2.service: Failed with result ‘exit-code’.
I do not want to start all over as everything was working perfectly before this. Is there a way to reinstall apache and keep everything as is?
I will really appreciate all the help I can get