apache httpd server failed to start

General support questions
oswaldoln
Posts: 1
Joined: 2018/04/13 03:31:12

apache httpd server failed to start

Postby oswaldoln » 2018/04/13 03:34:14

NOTE: I am doing this in a VirtualBox VM with network: NAT

This is the status of my httpd:https://gyazo.com/982d2ec2a11f632f180ca134eca968a7

I did apachectl configtest and config is "OK".

I am not sure what's wrong, any idea? This is for a Linux Proj in School.

User avatar
TrevorH
Forum Moderator
Posts: 22293
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: apache httpd server failed to start

Postby TrevorH » 2018/04/13 09:41:22

I checked your image and it has no useful information in it as the screen is not wide enough and you forgot to use the -l switch to systemctl status so it has truncated all the lines. I'd also suggest not using images when your problem is just plain text - cut and paste the lines from the screen and post them here, embedded in [quote][/quote] or [code][/code] tags to preserve formatting etc.

Rerun "systemctl status -l httpd" and read the output. The syntax error line will have a line number on it and you can use that to find out where the error is.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

MartyCZ
Posts: 2
Joined: 2018/04/18 15:46:28

Re: apache httpd server failed to start

Postby MartyCZ » 2018/04/18 15:57:15

look at /var/log/httpd/error_log for more info ;)