PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Desparate: httpd does not start on Fedora 4
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Desparate: httpd does not start on Fedora 4

Réponse
 
LinkBack Outils de la discussion
Vieux 31/05/2006, 11h58   #1
Bernard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Desparate: httpd does not start on Fedora 4

Hi all

When I run
# /etc/init.d/httpd start

then I get the error:

Starting httpd: [FAILED]

and "httpd status" still shows "stopped".

When I run
# bash -x /etc/init.d/httpd start then I get lots of output including
2 configuration warning messages and httpd starts.

I cannot explain why httpd only starts with "bash -x".

Can someone please tell me how to tweak these scripts so I can see the
errors without "bash -x"?

There are no errors in the log files.

Many thanks

BErnard
  Réponse avec citation
Vieux 31/05/2006, 22h17   #2
John Oliver
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4


  Réponse avec citation
Vieux 31/05/2006, 22h17   #3
John Oliver
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

On Wed, 31 May 2006 22:58:08 +1200, Bernard wrote:
> Hi all
>
> When I run
> # /etc/init.d/httpd start
>
> then I get the error:
>
> Starting httpd: [FAILED]
>
> and "httpd status" still shows "stopped".


How about tailing the error_log file?

--
* John Oliver http://www.john-oliver.net/ *
* Reform California gun laws - http://www.reformcagunlaws.com/ *
* http://www.gunownersca.com - http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
  Réponse avec citation
Vieux 01/06/2006, 08h54   #4
Bernard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

John

You mean tail -f error_log?
I am confused. There are no errors in the log file.

Bernard


John Oliver <joliver@john-oliver.net> wrote:

>On Wed, 31 May 2006 22:58:08 +1200, Bernard wrote:
>> Hi all
>>
>> When I run
>> # /etc/init.d/httpd start
>>
>> then I get the error:
>>
>> Starting httpd: [FAILED]
>>
>> and "httpd status" still shows "stopped".

>
>How about tailing the error_log file?


  Réponse avec citation
Vieux 01/06/2006, 20h24   #5
John Oliver
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

On Thu, 01 Jun 2006 19:54:12 +1200, Bernard wrote:
> John
>
> You mean tail -f error_log?
> I am confused. There are no errors in the log file.


So, if you open one terminal and tail -f error_log, and then in another
terminal start httpd and get a failure, nothing is logged?

If you're working in one window, try to start httpd, then just tail
error_log Also, check your httpd.conf to be certain you're looking at
the same error_log that your httpd is using.

--
* John Oliver http://www.john-oliver.net/ *
* Reform California gun laws - http://www.reformcagunlaws.com/ *
* http://www.gunownersca.com - http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
  Réponse avec citation
Vieux 01/06/2006, 20h24   #6
John Oliver
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

On Thu, 01 Jun 2006 19:54:12 +1200, Bernard wrote:
> John
>
> You mean tail -f error_log?
> I am confused. There are no errors in the log file.


So, if you open one terminal and tail -f error_log, and then in another
terminal start httpd and get a failure, nothing is logged?

If you're working in one window, try to start httpd, then just tail
error_log Also, check your httpd.conf to be certain you're looking at
the same error_log that your httpd is using.

--
* John Oliver http://www.john-oliver.net/ *
* Reform California gun laws - http://www.reformcagunlaws.com/ *
* http://www.gunownersca.com - http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
  Réponse avec citation
Vieux 04/06/2006, 06h53   #7
Bernard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

Oliver

Thanks for your kind suggestions.

There is little progress.
Definitely all your conditions are met.

I am at a point where the change of a single configuration directive
makes the difference but no sense.

#DocumentRoot "/var/www/html"
DocumentRoot "/home/test/html"

where /home/test/html is fully accessible by the apache user.

So with DocumentRoot "/home/test/html"
httpd fails, and the error log file is not even created if I delete it
before starting httpd.


The creazy point is that when I start httpd with the same failing
configuration and

bash -x /etc/init.d/httpd start

then everything is ok and I get good entries in error_log.

Also

/etc/init.d/httpd configtest

is ok.

This is not the normal type of error. I have never seen anything as
crazy as this.

What annoys me is that the script is actually detecting an error but
it does not tell me what it is.

Someone please tell me how to myself.

Thanks

Bernard


John Oliver <joliver@john-oliver.net> wrote:

>On Thu, 01 Jun 2006 19:54:12 +1200, Bernard wrote:
>> John
>>
>> You mean tail -f error_log?
>> I am confused. There are no errors in the log file.

>
>So, if you open one terminal and tail -f error_log, and then in another
>terminal start httpd and get a failure, nothing is logged?
>
>If you're working in one window, try to start httpd, then just tail
>error_log Also, check your httpd.conf to be certain you're looking at
>the same error_log that your httpd is using.


  Réponse avec citation
Vieux 04/06/2006, 06h53   #8
Bernard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Desparate: httpd does not start on Fedora 4

Oliver

Thanks for your kind suggestions.

There is little progress.
Definitely all your conditions are met.

I am at a point where the change of a single configuration directive
makes the difference but no sense.

#DocumentRoot "/var/www/html"
DocumentRoot "/home/test/html"

where /home/test/html is fully accessible by the apache user.

So with DocumentRoot "/home/test/html"
httpd fails, and the error log file is not even created if I delete it
before starting httpd.


The creazy point is that when I start httpd with the same failing
configuration and

bash -x /etc/init.d/httpd start

then everything is ok and I get good entries in error_log.

Also

/etc/init.d/httpd configtest

is ok.

This is not the normal type of error. I have never seen anything as
crazy as this.

What annoys me is that the script is actually detecting an error but
it does not tell me what it is.

Someone please tell me how to myself.

Thanks

Bernard


John Oliver <joliver@john-oliver.net> wrote:

>On Thu, 01 Jun 2006 19:54:12 +1200, Bernard wrote:
>> John
>>
>> You mean tail -f error_log?
>> I am confused. There are no errors in the log file.

>
>So, if you open one terminal and tail -f error_log, and then in another
>terminal start httpd and get a failure, nothing is logged?
>
>If you're working in one window, try to start httpd, then just tail
>error_log Also, check your httpd.conf to be certain you're looking at
>the same error_log that your httpd is using.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h13.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14816 seconds with 16 queries