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.

edited by bobbyiliev

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.

×
1 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

  • Hi @bobbyiliev thanks for the reply.

    Include /etc/phpmyadmin/apache.conf //this is line 226

    But earlier phpmyadmin was uninstalled.But that time also working fine for me.

    • Hi there @alanj,

      Ah I see, yes this would explain the problem then.

      You need to either delete that line or comment it out by adding a # sign at the beginning of the line.

      Then run another config test:

      • sudo apachectl -t

      And if you get Syntax OK restart Apache:

      • sudo systemctl restart apache2

      Let me know how it goes!
      Regards,
      Bobby

Submit an Answer