Report this

What is the reason for this report?

Problem starting Apache

Posted on April 6, 2019

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey by me came that and i not visit what i must do…

root@e2dd2500-8b98-4d18-8e6e-de36a748b017:/usr/sbin# systemctl status apache2.service
* apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-08-11 12:43:47 UTC; 10s ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 13158 ExecStart=/usr/sbin/apachectl start (code=exited, status=203/EXEC)

Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[1]: Starting The Apache HTTP Server...
Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[13158]: apache2.service: Failed to execute command: Permission denied
Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[13158]: apache2.service: Failed at step EXEC spawning /usr/sbin/apachectl: Permission denied
Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[1]: apache2.service: Control process exited, code=exited, status=203/EXEC
Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 11 12:43:47 e2dd2500-8b98-4d18-8e6e-de36a748b017 systemd[1]: Failed to start The Apache HTTP Server.
code

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.