English
Ask Your Question
0

httpd not starting

asked 2012-11-03 19:30:28 +0000

vinayk gravatar image

i am not able to start httpd service and also phpmyadmin because of it.

systemctl status httpd.service
httpd.service - The Apache HTTP Server (prefork MPM)
      Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
      Active: failed (Result: exit-code) since Sun, 04 Nov 2012 00:50:51 +0530; 2min 56s ago
      CGroup: name=systemd:/system/httpd.service
Nov 04 00:50:51 xyz httpd[2036]: Syntax error on line 98 of /etc/httpd/conf.d/system-config-httpd.conf:
Nov 04 00:50:51 xyz httpd[2036]: NameVirtualHost takes one argument, A numeric IP address:port, or the name of a host
please help me

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-11-03 21:29:24 +0000

sten gravatar image

The error should be pretty self-explanatory- you have a syntax error in the "NameVirtualHost" section on line 98 of /etc/httpd/conf.d/system-config-httpd.conf

If you can't correct the error on your own, post that section of the config file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2012-11-03 19:30:28 +0000

Seen: 405 times

Last updated: Nov 03 '12