Apache Error

Issues related to applications and software problems
Post Reply
circuitbear
Posts: 9
Joined: 2014/07/20 22:06:14

Apache Error

Post by circuitbear » 2014/10/22 03:04:29

So I was working on getting my website running about two ish months ago before my college classes started again.

Today I decided to try to get the routing working since that was where I was having issues(the site would show up with a host file but not without it). When I tried to get to the site, I started getting a variety of issues I couldn't understand.(Mariadb, ssh, and a number of other processes stopped working). I managed to track all of those down to being permissions issues. I am not sure how these occured when I haven't touched the server in months but from what I can tell, everything but apache is now running. When testing apache, I get no error code or message that I can tell. No syntax error, no permissions error.(I tested http -t and it told me my syntax was fine even.) This is all I get for the issue with httpd.

Code: Select all

 systemctl status httpd.service -l
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Tue 2014-10-21 22:02:06 CDT; 10s ago
  Process: 15066 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 15065 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 15065 (code=exited, status=1/FAILURE)

Oct 21 22:02:06 NewsRunner.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 21 22:02:06 NewsRunner.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Oct 21 22:02:06 NewsRunner.localdomain systemd[1]: Unit httpd.service entered failed state.


Any advice on how to troubleshoot the issue more thoroughly will be greatly appreciated.

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Apache Error

Post by lightman47 » 2014/10/22 22:41:15

I think Apache keeps a log in /etc/httpd/log/ - or something like that. Perhaps clues will be in there ...

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Apache Error

Post by gerald_clark » 2014/10/22 23:12:13

Not the CentOS supplied version.
The logs are in /var/log/httpd.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Apache Error

Post by TrevorH » 2014/10/23 01:23:09

I don't have httpd installed on el7 but on el6, /etc/httpd/logs is a symlink to /var/log/httpd
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Apache Error

Post by gerald_clark » 2014/10/23 01:42:37

I have httpd installed on CentOS 6 and /var/log/httpd is not a symlink.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Apache Error

Post by TrevorH » 2014/10/23 08:57:31

Other way around, /etc/httpd has a bunch of symlinks in it, one of those is to ../../var/log/httpd
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply