logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache seems to hang
Author
edwardsmarkf



Joined: 20 Feb 2013
Posts: 25
Location: cottonwood, az

PostPosted: Mon 27 Jun '16 17:09    Post subject: apache seems to hang Reply with quote

hello - ever since i went to centos7 and started using systemctl, i have started to occasionally have situations where apache seems to just stop.

and this morning, when i tried to issue:

systemctl stop httpd.service
systemctl start httpd.service

apache would not start.

'systemctl status httpd.service' gave the the message below.

suggestions?


# systemctl 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 Mon 2016-06-27 10:44:07 EDT; 13s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 8152 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10572 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 8151 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 8151 (code=exited, status=1/FAILURE)

Jun 27 10:44:06 myserver.info systemd[1]: Starting The Apache HTTP Server...
Jun 27 10:44:07 myserver.info systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 27 10:44:07 myserver.info kill[8152]: kill: cannot find process ""
Jun 27 10:44:07 myserver.info systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 27 10:44:07 myserver.info systemd[1]: Failed to start The Apache HTTP Server.
Jun 27 10:44:07 myserver.info systemd[1]: Unit httpd.service entered failed state.
Jun 27 10:44:07 myserver.info systemd[1]: httpd.service failed.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 28 Jun '16 11:26    Post subject: Reply with quote

I think there is maybe a syntax error or some misconfiguration. Search for httpd.

Then run httpd -S

e.g.
Code:

root@server:~# which httpd
/usr/sbin/httpd
root@schwabing:~# /usr/sbin/httpd -S


it will inform you for any config issues.
Back to top


Reply to topic   Topic: apache seems to hang View previous topic :: View next topic
Post new topic   Forum Index -> Apache