LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-02-2008, 04:38 PM   #1
ericvlach
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Angry apache wont start after using HTTP Configuration Tool in FC7


My apache server was working beautifully yesterday. I had edited httpd.conf manually, started the daemon using /sbin/service httpd start, opened port 80 in my firewall... things were groovy.

This morning I was exploring the GUI tools, and ran accross the HTTP Server Configuration tool. The help file cautioned me:

"Do not edit the /etc/httpd/conf/httpd.conf configuration file by hand if you wish to use this tool. The HTTP Configuration Tool generates this file after you save your changes and exit the program. If you want to add additional modules or configuration options that are not available in HTTP Configuration Tool, you cannot use this tool."

That seemed appropriate, if things didn't work, if I didn't like it, or if I wanted to do more advanced stuff I could always go back to editing httpd.conf manually.

First of all the tool is buggy: at least one screen (the 'edit default settings' button under the 'virtual hosts' tab) doesn't exit when i hit 'ok' or 'cancel,' only when I [x] out of the window. The tool does ask me if I'm sure I want to save and quit when I exit. I hit 'yes' (and re-open to make sure the changed are still there... they are)

Using the Service Configuration GUI tool, I stopped httpd, it gave me the [OK].

BUT... when I tried to start the httpd, I got a failure. And now no matter what I try I can't get apache to run, it keeps failing. An unfortunate find: The httpd.conf file is still identical to what it was yesterday, the HTTP Server Configuration Tool did NOT change it, as the help file indicated it would.

There is nothing out of the ordinary in the log files.

Any clues as to what is going wrong? Any ideas how to go back to how it was yesterday? The damn HTTP Config Tool messed everything up.

edit: running Fedora Core 7, with SELinux enabled
 
Old 09-02-2008, 09:02 PM   #2
ericvlach
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile found the cause of the problem. apache starts.

Many hours later, i have found the solution... Posted in case someone else runs into the problem.

The HTTP Configuration Tool puts its version of httpd.conf in /etc/httpd/conf.d/

In the main httpd.conf, there is the include conf.d clause, and reloading all the information causes the failure when trying to start. It's odd that it didn't give me an error message, it would have helped to see some warning that i was duplicating the conf file. Oh well...

Solution: Remove the additional httpd.conf in conf.d.

case closed.

Last edited by ericvlach; 09-02-2008 at 09:04 PM.
 
  


Reply

Tags
apache, configuration, http, httpd, tool


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu / Debian Linux: Services Configuration Tool to Start / Stop System Servi LXer Syndicated Linux News 0 12-13-2007 02:10 PM
Apache wont start techi Linux - Server 4 12-02-2007 01:11 PM
Apache wont start stlyz3 Linux - Software 14 05-30-2005 02:25 PM
apache wont start mrgeoff Linux - Software 8 10-27-2004 03:46 PM
Apache configuration tool Red Hat 9 spoody_goon Red Hat 1 01-13-2004 08:59 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration