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
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.
|All times are GMT -5. The time now is 09:05 PM.|