Apache Server Failed To start

Discussion in 'General' started by Gregory S Tibbetts, Aug 9, 2018.

  1. I stopped and started apache and it failed to restart. Here is my out put from this. Can anyone help.

    [root@webman ~]# systemctl -l status httpd.service
    â httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Thu 2018-08-09 10:26:03 CDT; 5min ago
    Docs: man:httpd(8)
    man:apachectl(8)
    Process: 11228 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
    Process: 11226 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
    Main PID: 11226 (code=exited, status=1/FAILURE)

    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: Starting The Apache HTTP Server...
    Aug 09 10:26:03 webman.aagthosting.com httpd[11226]: httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf: Syntax error on line 176 of /etc/httpd/conf/sites-enabled/htf-common-issues.php: Include takes one argument, Name(s) of the config file(s) to be included; fails if the wildcard does not match at least one file
    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Aug 09 10:26:03 webman.aagthosting.com kill[11228]: kill: cannot find process ""
    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: httpd.service: control process exited, code=exited status=1
    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: Failed to start The Apache HTTP Server.
    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: Unit httpd.service entered failed state.
    Aug 09 10:26:03 webman.aagthosting.com systemd[1]: httpd.service failed.

    Would it help to reinstall apache?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No, and thats also not nescessary. You downloaded a .php file into the apache sites-enabled folder which shall not be put in that folder. remove it with:

    rm /etc/httpd/conf/sites-enabled/htf-common-issues.php
     
  3. I removed the file and the .txt file and it starts. Thanks.
     

Share This Page