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: Starting The Apache HTTP Server... Aug 17 06:43:41 DIB-Web-Dev-Server apachectl: 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: Action 'start' failed. Aug 17 06:43:41 DIB-Web-Dev-Server apachectl: The Apache error log may have more information. Aug 17 06:43:41 DIB-Web-Dev-Server systemd: apache2.service: Control process exited, code=exited status=1 Aug 17 06:43:41 DIB-Web-Dev-Server systemd: apache2.service: Failed with result 'exit-code'. Aug 17 06:43:41 DIB-Web-Dev-Server systemd: 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
I would recommend checking the
/etc/apache2/apache2.conffile on line 226 for more information.
Feel free to share the line here as well so I could try to further advise you!
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
Hope that this helps!
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now