Problem starting Apache

April 6, 2019 721 views
Apache

Hello,

I really would appreciate your help. My website suddendly was down, and now I obtain the following:

systemctl status nginx apache2

Unit nginx.service could not be found.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2019-04-05 12:37:33 UTC; 1h 25min ago
Process: 976 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Apr 05 12:37:33 host systemd[1]: Starting The Apache HTTP Server…
Apr 05 12:37:33 host apachectl[976]: AH00526: Syntax error on line 35 of /etc/apache2/sites-enabled/000-default-le-ssl.conf:
Apr 05 12:37:33 host apachectl[976]: SSLCertificateFile: file ’/etc/letsencrypt/live/www.ccc.com/fullchain.pem’ does not exist or is empty
Apr 05 12:37:33 host apachectl[976]: Action ‘start’ failed.
Apr 05 12:37:33 host apachectl[976]: The Apache error log may have more information.
Apr 05 12:37:33 host systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 05 12:37:33 host systemd[1]: apache2.service: Failed with result 'exit-code’.
Apr 05 12:37:33 host systemd[1]: Failed to start The Apache HTTP Server.

Anybody knows what can I do?

1 comment
1 Answer

Hello,

Yes indeed as Amiy mentioned you have a syntax error in your /etc/apache2/sites-enabled/000-default-le-ssl.conf file on line 35, your /etc/letsencrypt/live/www.ccc.com/fullchain.pem file seems to be missing. This probably happened during the Let’s Encrypt SSL installation.

What I could suggest is the following:

  • Disable the 000-default-le-ssl.conf Vhost completely
  • Then try starting apache again:
systemctl start apache2
  • Once your Apache is up and running again, then just follow the steps here on how to secure your Apache with Let’s Encrypt and Cerbot:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04

Hope that this helps!
Regards,
Bobby

by Erika Heidi
This tutorial will show you how to set up a free TLS/SSL certificate from Let’s Encrypt on a Ubuntu 16.04 server running Apache as web server. TLS certificates are used within web servers to encrypt the traffic between server and client, providing extra security for users accessing your application.
Have another answer? Share your knowledge.