Question

Site can't be changes reached

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.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 17, 2020
Accepted Answer

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

alexdo
Site Moderator
Site Moderator badge
April 13, 2022

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!

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.