Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently added httpd to start during the start up by doing this:

cd /etc/rc.d/rc5.d/
ln -s  /etc/init.d/httpd S80httpd

Although httpd starts on boot, seems like my DocumentRoot that was set in httpd.conf located in /etc/httpd/conf/httpd.conf does not take effect and Fedora Test Page gets loaded.

When I used to start httpd manually by httpd -k start, everything was working fine.

I perhaps have not correctly understood the <number> part of s<number>script / k<number>script naming convention for the RC scripts.

Although, I know that it's for representing the order in which the script will be executed during the run of runlevel control script.

I picked up S80httpd from How to auto start Apache during boot time.

What is exactly happening?

I am using Fedora 15 and Apache/2.2.21.

share|improve this question
Assuming that you aren't accidentally running two different installs, I would poke around the /etc/rc.d/rc5.d/S80httpd script to see if it mentions other config files then the ones you intend for it to use. Why are you linking that start up script? Did the package not install one for you? – Tim Jan 12 '12 at 18:05
@Tim no the package hadn't installed one. Looking into S80httpd script now. – ThinkingMonkey Jan 12 '12 at 18:06
@Tim the script says his config: /etc/httpd/conf/httpd.conf. I definitely am not running two different installs. – ThinkingMonkey Jan 12 '12 at 18:08
That doesn't sound right, guess I will step back because I haven't used fedora in a few months, something may be wildly different then I remember. – Tim Jan 12 '12 at 18:09
Is /etc/httpd/conf/httpd.conf the correct config file where you have defined your doc root? Can you also post the entire stanza that has your docroot definition? – Tim Jan 12 '12 at 18:10

Centos has a /etc/httpd/conf.d/welcome.conf which will load the generic welcome page. Check to see if that file exists on your fedora system. If so, move it out of the way, stop whichever instance of apache you have, and start apache via service httpd start, or /etc/init.d/apache start, etc.

share|improve this answer
There is a welcome.conf. But, since it starts properly when doing a manual start, It should also work with auto-start. The point is to start httpd during start not manually. as you can see by my question. Peace. – ThinkingMonkey Jan 12 '12 at 18:38
The manual start may not be reading your apache config the same way. See I'm assuming you are seeing the testpage they show at Are you seeing a different test page? – becomingwisest Jan 12 '12 at 18:42
Yup, I am seeing the server page show at – ThinkingMonkey Jan 12 '12 at 18:47
So it is the /etc/httpd/conf.d/welcome.conf file. You can follow my directions, or Fedora's @… which is to place an index.html file in the Docroot, or to comment out the file. – becomingwisest Jan 12 '12 at 18:49
there is an index.php at the DocumentRoot. Will move the welcome.conf to another directory as my httpd.conf has Include conf.d/*.conf – ThinkingMonkey Jan 12 '12 at 18:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.