I build my own server on EC2 this weekend, everything goes well and my server is running, at least for a while, until shutdown.
First of all, I'm starting the server with sudo service apache2 status and everything is perfect, my server starts and I am able to navigate around my webpage.
Then, suddenly the server stops running (the EC2 instance works perfect)
when I do sudo service apache2 status
I get this output:
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 Tue 2019-07-16 01:28:00 UTC; 54min ago
Process: 18543 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 18565 (code=exited, status=1/FAILURE)
Jul 15 21:17:38 ip-172-31-9-236 systemd[1]: Starting The Apache HTTP Server...
Jul 15 21:17:38 ip-172-31-9-236 systemd[1]: Started The Apache HTTP Server.
Jul 16 01:28:00 ip-172-31-9-236 systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 01:28:00 ip-172-31-9-236 systemd[1]: apache2.service: Failed with result 'exit-code'.
And I really don't know why.
I'm using EC2 from amazon with a route53 and https from cerbot.
The /var/log/apache2/error.log output is nothing.