Page 1 of 1

Visas Frage ... [gelöst]

Posted: 2005-11-13 13:20
by matthias casper
Hallo,

habe folgenden Server :
AMD Sempron 2200,512 MB Ram,80 Giga,Suse 9.0.

Nach einem Apache update auf Apache 2.0 kann ich den Apache nicht mehr im Visas neu starten. Was ja auch nichts macht. :) Wenn ich im Visas neue Domains beantrage, dann werden die richtig konektiert, nur laufen diese nicht wirklich im Apache.
Also folgendes:

---- snip ----
h97411:~ # ps aux | grep http | grep httpd.conf
root 24223 0.0 2.2 27340 11244 ? S 13:02 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24249 0.0 2.3 27476 11528 ? S 13:02 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24250 0.0 2.3 27472 11508 ? S 13:02 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24270 0.0 2.3 27340 11476 ? S 13:03 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24338 0.0 2.3 27472 11508 ? S 13:09 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24808 0.0 2.3 27340 11476 ? S 13:49 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24809 0.0 2.3 27472 11524 ? S 13:49 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24810 0.0 2.3 27472 11528 ? S 13:49 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24811 0.0 2.3 27340 11484 ? S 13:49 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 24822 0.0 2.3 27472 11524 ? S 13:49 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 27528 0.0 2.2 27340 11376 ? S 17:31 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root 28098 0.0 0.1 1792 556 pts/0 S 18:17 0:00 grep httpd.conf
h97411:~ #
---- snap ----

Dann

---- snip ----
h97411:~ # kill 28098
-bash: kill: (28098) - No such process
h97411:~ #
---- snap ----

Damit müsste ich den Apache dann neu gestartet haben und die entsprechende Domain sollte laufen. Dies macht sie aber nur mangelhaft. Mal ist sie zu erreichen und mal nicht.
Kann mir da wer einen Tip geben?

Gruß,

Matthias

Re: Visas Frage ... [gelöst]

Posted: 2005-11-13 13:32
by theomega
Hy,
dein Kill-Befehl hat die falsch PID, du versuchst den grep-befehl zu töten der schon lange nichtmehr läuft.
Gruß
TO

aw

Posted: 2005-11-13 13:50
by matthias casper
Ja, das ist richtig. Habe das ganze noch mal der richtigen PID gemacht.
Ich poste mal kurz wie ich das mit der Domain machen wollte :

cd /etc/apache2/
988 ll
989 grep -r mk81.de *
990 vi httpd.conf
991 cd
992 clear
993 ps aux | grep http
994 clear
995 ps aux | grep http | grep httpd.conf
996 kill 9028
997 ps aux | grep http | grep httpd.conf
998 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

Ist da etwas falsch dran? Verstehe nicht, warum die Domain nur manchmal läuft.

Gruß,

Matthias

Re: Visas Frage ... [gelöst]

Posted: 2005-11-13 13:55
by Joe User

Code: Select all

/etc/init.d/apache2 stop
sleep 10 && pkill -u wwwrun
/etc/init.d/apache2 start

aw

Posted: 2005-11-13 14:00
by matthias casper
apache2 stop = command not found

Re: aw

Posted: 2005-11-13 14:06
by Roger Wilco
Matthias Casper wrote:apache2 stop = command not found
Dann eben "$DEIN_APACHE_INITSKRIPT stop"... :evil:

aw

Posted: 2005-11-13 14:28
by matthias casper
na klar, sorry.

aw

Posted: 2005-11-13 18:17
by matthias casper
Hallo,

die Seite läuft nun. Nun schätze ich aber, dass ich etwas gekilt habe was nicht sein sollte. Oder aber den falschen Apache gestartet habe.
Wenn ich auf die Visas Seite zugreifen will, dann erscheint im Firefox folgende Meldung:

Beim Versuch, h97411.serverkompetenz.net:22222 zu kontaktieren, wurde die Verbindung zurückgesetzt.

Sorry, stehe da auf dem Schlauch. Kann mir da jemand helfen?
Wäre super nett.

Matthias Casper

aw

Posted: 2005-11-13 18:21
by matthias casper
Arghh ... gerade fiel es mir wieder ein :

/etc/init.d/visas start

Sollte man wieder starten nach einem Apache reboot.
Sorry, werde heute früher in s Bett. Kann mich echt nicht mehr konzentrieren heute.
Danke für alle Hilfe von Euch.