Apache startup problem
Michelle Schuknecht
tristan11 at mindspring.com
Thu May 18 21:29:47 UTC 2006
On May 18, 2006, at 12:27 PM, Paul Howarth wrote:
> On Thu, 2006-05-18 at 11:51 -0700, Michelle Schuknecht wrote:
>>
>> On May 18, 2006, at 12:35 AM, Paul Howarth wrote:
>>
>>> On Wed, 2006-05-17 at 14:39 -0700, Michelle Schuknecht wrote:
>>>> Hello,
>>>> I am having a problem starting apache upon boot on FC4. I have a
>>>>
>>>> script in /etc/init.d for httpd to start and have linked this with
>>>> a
>>>> file in /etc/rc3.d.
>>>
>>>
>>> You did this manually? What did you call the link in /etc/rc.d/rc3.d
>>
>>
>> The link I made was: ln
>> -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S91httpd
>
> That should be OK then; the default is 85 so 91 should be fine too.
>
>>>> After boot, when I run ps aux, I see that httpd
>>>> is running:
>>>>
>>>>
>>>> root 2557 2.3 0.6 17048 6896 ? Ss 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2587 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2588 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2589 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2590 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2591 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2592 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2593 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>> apache 2594 0.0 0.6 17048 6912 ? S 14:12
>>>> 0:00 /usr/
>>>> sbin/httpd -DSSL -k start
>>>>
>>>>
>>>>
>>>>
>>>> However when I try to access the website, I get a Bad Gateway:
>>>> The
>>>> proxy server received an invalid response from an upstream server
>>>>
>>>> error. If I go to the script in /etc/init.d to stop and then
>>>> start
>>>> the httpd process again everything runs o.k. Why would this not
>>>> be
>>>> starting properly when booting?
>>>
>>>
>>> Perhaps your manual link causes httpd to start up too soon, before
>>> the
>>> network is up?
>>>
>>>
>>> It's better to use chkconfig to set up the links:
>>>
>>>
>>> # chkconfig httpd on
>>
>>
>> I tried using chkconfig, but get the error: service httpd does not
>> support chkconfig
>
> Are you using something other than the FC4 standard httpd package, or
> have you edited the initscript?
I am using a different script in init.d then what was supplied so
that apache will start automatically with ssl enabled. I fixed the
script I am using so that chkconfig now works. I turned httpd off
and on with chkconfig. I'm still having the same issue. Upon boot
httpd is running, but I get a bad gateway message. Once I stop and
start the httpd script in init.d, everything works o.k. If there is
a problem with the script I am using in init.d, wouldn't I also have
problems when trying to run it manually? I'm not sure what else
could be causing this behavior. I have saved the original init.d/
httpd script. Is there an easier way to make sure apache starts up
with ssl enabled?
>
> Does your SSL certificate require a passphrase?
No passphrase is required.
>
> Paul.
>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
More information about the users
mailing list