Toon posts:

Apache start niet meer!

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi,

Met de bedoeling Apache automatisch te laten starten bij het booten van mijn webserver (Red Hat 7.2) heb ik de volgende regel in /etc/rc.d/rc.local toegevoegd:

/usr/local/apache/binapachectl start

Toen ik de server opnieuw startte kon ik mijn webserver opeens niet meer bereiken! Ook niet op de server zelf via http://localhost/.

Dus weer handmatig /usr/local/apache/bin/apachectl start geprobeerd (als root) en toen kreeg ik de melding: 'httpd could not be started' |:( ook restart werkt niet meer. Opnieuw compilen, make, make install helpt ook niet :(

Ik heb de regel uit /etc/rc.d/rc.local verwijderd, de server opnieuw gestart, maar ook dat helpt niet, zelfde probleem.

Kent iemand dit probleem of heeft iemand een oplossing???

  • serkoon
  • Registratie: April 2000
  • Niet online

serkoon

mekker.

Kijk in je logs.

Verwijderd

Topicstarter
Vanaf hier staan er vage dingen in mijn error_log van Apache, ik begrijp hier weinig van :(

[Fri Sep 13 11:43:49 2002] [warn] child process 1363 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1364 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1365 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1366 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1367 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1476 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1507 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1508 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1509 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:51 2002] [warn] child process 1510 did not exit, sending another SIGHUP
[Fri Sep 13 11:43:53 2002] [warn] child process 1363 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1364 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1365 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1366 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1367 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1476 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1507 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1508 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1509 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:53 2002] [warn] child process 1510 still did not exit, sending a SIGTERM
[Fri Sep 13 11:43:57 2002] [error] child process 1363 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1364 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1365 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1366 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1367 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1476 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1507 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1508 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1509 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [error] child process 1510 still did not exit, sending a SIGKILL
[Fri Sep 13 11:43:58 2002] [notice] SIGHUP received. Attempting to restart
[Fri Sep 13 11:44:00 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:09:39 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:14:02 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:14:30 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:17:19 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:25:56 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:26:07 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:33:28 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:41:51 2002] [alert] mod_unique_id: unable to gethostbyname("medens")
[Fri Sep 13 12:45:26 2002] [alert] mod_unique_id: unable to gethostbyname("medens")

Verwijderd

Apache houd bij welke processen er allemaal voor hem draaiden. Hij probeerd deze processen een signal te sturen (SIGHUP), waarschijnlijk omdat je restart zei. HUP is het signal om dit te doen. Het lukt niet om dit te doen, dus dan besluit het script om apache te killen en dan te herstarten. Dat zijn de SIGKILL meldingen, dat lukt blijkbaar ook niet. Uiteindelijk krijgt het master process (/var/run/apache.pid) het signal om te herstarten. Dit schijnt gewoon te lukken. De laatste meldingen zijn van een apache module. Deze module lukt het niet om de hostname 'medens' op te zoeken, ik neem aan dat medens de naam van de server is?

Misschien staan er files gewoon fout, je moet even in het apachectl script kijken, er staat ergens een regel die hier op lijkt:

HTTPD=/usr/sbin/apache

De file die achter HTTPD= staat moet bestaan, controleer dit. Als deze niet bestaat locate dat de file en verander het script. Kijk ook even of je niet per ongeluk meerdere versies van het script heb.

/usr/local/apache/binapachectl start is fout, dat moet /usr/local/apache/bin/apachectl start zijn.

Verder weet ik even niets ;)