<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On May 18, 2006, at 12:35 AM, Paul Howarth wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Wed, 2006-05-17 at 14:39 -0700, Michelle Schuknecht wrote:</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hello,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am having a problem starting apache upon boot on FC4.<SPAN class="Apple-converted-space">  </SPAN>I have a <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">script in /etc/init.d for httpd to start and have linked this with a <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">file in /etc/rc3.d.</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You did this manually? What did you call the link in /etc/rc.d/rc3.d</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>The link I made was:  <FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S91httpd</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><BR></SPAN></FONT><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">  </SPAN>After boot, when I run ps aux, I see that httpd <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">is running:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">root<SPAN class="Apple-converted-space">      </SPAN>2557<SPAN class="Apple-converted-space">  </SPAN>2.3<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6896 ?<SPAN class="Apple-converted-space">        </SPAN>Ss <SPAN class="Apple-converted-space">  </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2587<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2588<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2589<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2590<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2591<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2592<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2593<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">apache<SPAN class="Apple-converted-space">    </SPAN>2594<SPAN class="Apple-converted-space">  </SPAN>0.0<SPAN class="Apple-converted-space">  </SPAN>0.6<SPAN class="Apple-converted-space">  </SPAN>17048<SPAN class="Apple-converted-space">  </SPAN>6912 ?<SPAN class="Apple-converted-space">        </SPAN>S<SPAN class="Apple-converted-space">    </SPAN>14:12 <SPAN class="Apple-converted-space">  </SPAN>0:00 /usr/<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sbin/httpd -DSSL -k start</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However when I try to access the website, I get a Bad Gateway: The <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">proxy server received an invalid response from an upstream server <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">error.<SPAN class="Apple-converted-space">  </SPAN>If I go to the script in /etc/init.d to stop and then start <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the httpd process again everything runs o.k.<SPAN class="Apple-converted-space">    </SPAN>Why would this not be <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">starting properly when booting?</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Perhaps your manual link causes httpd to start up too soon, before the</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">network is up?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It's better to use chkconfig to set up the links:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "># chkconfig httpd on</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I tried using chkconfig, but get the error: service httpd does not support chkconfig</DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Paul.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">fedora-list mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To unsubscribe: <A href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>