Ask Your Question
0

HTTPD will not start

asked 2013-02-09 10:49:51 -0500

hubbertus gravatar image

updated 2013-02-09 11:38:20 -0500

hhlp gravatar image

Can someone tell me why I am having problem with HTTPD after installation of joomla....

[root@fedora18 ~]# systemctl status httpd
httpd.service - The Apache HTTP Server
      Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
      Active: failed (Result: exit-code) since Sat 2013-02-09 10:42:17 CST; 1min 37s ago
     Process: 1158 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
     Process: 1156 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

Feb 09 10:42:17 fedora18 systemd[1]: Starting The Apache HTTP Server...
Feb 09 10:42:17 fedora18 httpd[1156]: httpd: Syntax error on line 352 of /etc/httpd/conf/httpd.conf: Syntax error on line 149 of /etc/httpd/conf.d/system-config-httpd.conf: /etc/httpd/conf.d/system-config-httpd.conf:155: <Directory> was not closed.\n/etc/httpd/conf.d/system-config-httpd.conf:153: <Directory> was not closed...: <Directory> was not closed.
Feb 09 10:42:17 fedora18 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Feb 09 10:42:17 fedora18 httpd[1158]: httpd: Syntax error on line 352 of /etc/httpd/conf/httpd.conf: Syntax error on line 149 of /etc/httpd/conf.d/system-config-httpd.conf: /etc/httpd/conf.d/system-config-httpd.conf:155: <Directory> was not closed.\n/etc/httpd/conf.d/system-config-httpd.conf:153: <Directory> was not closed...: <Directory> was not closed.
Feb 09 10:42:17 fedora18 systemd[1]: httpd.service: control process exited, code=exited status=1
Feb 09 10:42:17 fedora18 systemd[1]: Failed to start The Apache HTTP Server.
Feb 09 10:42:17 fedora18 systemd[1]: Unit httpd.service entered failed state
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-02-09 12:37:54 -0500

Remi gravatar image

Message seems clear. Your httpd configuration files are corrupt.

Have you use system-config-http ? I have always consider this tool with a lot of precaution, and recommend to not use it.

So, switch back to default httpd.conf (can't help more without seeing the files)

Note : fedora 18 provides Apache 2.4, the new major version, which have a lot of change in its configuration file.

edit flag offensive delete link more

Comments

"reinstall" never solves configuration issue. You must "uninstall", clean the configuration file, and then "install" again.

Remi gravatar imageRemi ( 2013-02-10 00:43:23 -0500 )edit
0

answered 2013-04-15 16:03:18 -0500

lyxbit gravatar image

updated 2013-04-15 16:05:14 -0500

Maybe a clean reinstall isn't needed. If your Fedora 18 was upgraded from version 17, you must import your Apache HTTPD Server 2.2 custom settings (/etc/httpd/conf/httpd.conf.rpmsave") to Apache HTTPD Server 2.4 configuration file which template is "/etc/httpd/conf/httpd.conf.rpmnew", then create a new httpd.conf. The Apache HTTPD Server 2.4 example configuration file can also be obtained from the sources supplied on Apache HTTPD website. Your custom configuration files under '/etc/httpd/conf/config.d' must also be updated. Some parameter adaptations must be done, look the Apache documentation reference: "Upgrading to 2.4 from 2.2"

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-02-09 10:49:51 -0500

Seen: 5,052 times

Last updated: Apr 15 '13