My site accidentally down and shows error in apache/error_log
file like this "AH00169: caught SIGTERM, shutting down"
.
And I’m trying restart apache show error. And checking the apache status shows like this:
Aug 17 06:43:41 DIB-Web-Dev-Server systemd[1]: Starting The Apache HTTP Server...
Aug 17 06:43:41 DIB-Web-Dev-Server apachectl[29649]: apache2: Syntax error on line 226 of /etc/apache2/apache2.conf: Could not open configuration file
Aug 17 06:43:41 DIB-Web-Dev-Server apachectl[29649]: Action 'start' failed.
Aug 17 06:43:41 DIB-Web-Dev-Server apachectl[29649]: The Apache error log may have more information.
Aug 17 06:43:41 DIB-Web-Dev-Server systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 17 06:43:41 DIB-Web-Dev-Server systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 17 06:43:41 DIB-Web-Dev-Server systemd[1]: Failed to start The Apache HTTP Server.
I can’t find the issue. Please help me. Earlier it was working for me.
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.
Hi there @alanj,
As far as I can see from the output that you’ve shared, it looks like that the problem is on line 226 in
/etc/apache2/apache2.conf
.I would recommend checking the
/etc/apache2/apache2.conf
file on line 226 for more information.Feel free to share the line here as well so I could try to further advise you!
Regards, Bobby
Hello there,
As Bobby already mentioned the issue is a Syntax Error in the Apache config file. You need to edit the file and check this particular line and fix the problem. It might be a missing symbol/character or an extra one added.
I’ll also recommend check our series of tutorials under the How To Set Up Apache Virtual Hosts
https://www.digitalocean.com/community/tutorial_collections/how-to-set-up-apache-virtual-hosts
Hope that this helps!