PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : 2 DAU Fragen :(



Tuvok
07.10.03, 02:35
Moin ihrs!

Ich hab leider wieder mal nen Problem und da mir hier beim letzten Mal geholfen werden konnte dachte ich ich frag mal wieder :)

Also:

1.

Immer wenn mein Server restartet wird funktioniert mein Apache nicht mehr richtig. Ich muss dann immer dhttpd killen und "apachectl start" ausführen damit alles so wie vorher läuft.
"apachectl restart" ohne dhttpd zu killen geht nciht.

Woran kann das liegen?

2.

Wie mach ich es, dass psyBNC beim Start des Servers automatisch geladen wird? Ein Freund von mir hat irgendwas von init.d gelabert aber ich peil das nicht :confused:

Wäre für Hilfe unendlich dankbar.

Berufspenner
07.10.03, 12:52
Hi

Zu 1.: Kommen irgendwelche Fehlermeldungen? Guck mal in der /var/log/messages und in /var/log/apache/error.log oder ähnlich,

Zu 2.: Welches Distribution verwendest du?

Cu
André

Tuvok
07.10.03, 13:15
Das Log sagt mir vom letzten betroffenen Zeitpunkt:




[Tue Oct 7 01:55:21 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 01:55:21 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Tue Oct 7 02:02:22 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 02:02:22 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Tue Oct 7 02:02:40 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 02:02:41 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Tue Oct 7 02:03:05 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 02:03:05 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Tue Oct 7 02:14:02 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 02:14:03 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Tue Oct 7 02:20:57 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Tue Oct 7 02:20:58 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic

//dhttpd gekillt und apachectl start gemacht
[Tue Oct 7 02:20:59 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.3.3 configured -- resuming normal operations
[Tue Oct 7 02:20:59 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Tue Oct 7 02:20:59 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)


Sagt mir ehrlich nicht viel, außer dass ich kein Verzeichnis /etc/apache/share/magic hab.

Distribution ist Debian GNU/Linux (woody/i686)

Berufspenner
07.10.03, 13:22
[Tue Oct 7 02:14:03 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80 Offensichtlich wird der Port 80 schon von einem anderen Socket besetzt. Wenn nach einem Reboot der Apache wieder nicht läuft, dann poste mal das Ergebnis von "ps aux | grep httpd" oder "ps aux | grep apache".

Cu
André

real-challo
07.10.03, 13:30
oder such in der Ausgabe von "netstat -aln", ob der Port 80 belegt ist

Tuvok
14.11.03, 23:54
ps aux | grep httpd
nobody 6760 0.0 0.0 1804 760 ? S 23:34 0:00 /usr/bin/dhttpd
root 8170 0.0 0.0 1332 424 pts/8 S 23:48 0:00 grep httpd

ps aux | grep apache
keine ausgabe

netstat -aln
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 213.158.118.65:9120 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:37 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:9 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:13 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:79 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:80 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:21 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:22 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:23 0.0.0.0:* LISTEN
tcp 0 0 213.158.118.65:57210 195.54.159.109:6667 ESTABLISHED
tcp 0 892 213.158.118.65:22 80.121.6.74:4191 ESTABLISHED
tcp 0 0 213.158.118.65:9120 80.121.6.74:4197 ESTABLISHED
udp 0 0 213.158.118.65:517 0.0.0.0:*
udp 0 0 213.158.118.65:518 0.0.0.0:*
udp 0 0 213.158.118.65:9 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 695414341 /dev/log
unix 2 [ ACC ] STREAM LISTENING 695416884 /var/run/mysqld/mysqld.sock

:confused:

robiotor
15.11.03, 08:26
zum 2ten

mach ein crontab eintrag für den psybnc dann startet der psybnc immer in den intervallen fals er down ist.

Stanislaus
15.11.03, 08:52
Moin, moin!

Ich weiß zwar nicht, was dhttpd ist (ein Webserver?) aber so wie es aussieht hängt eben dieser an Port 80 mit der Folge, daß der apache sich nicht da einklinken kann.

[Tue Oct 7 01:55:21 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80

Schmeiß den dhttpd einfach raus.

Bis neulich ...

Tuvok
15.11.03, 10:18
Wenn ich dhttpd raushau meckert Apache rum dass irgendeine Komponente fehlt.