Sponsor-Board.de
Apache2 Problem

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Plauderecke (/forumdisplay.php?fid=39)
+---- Forum: Soft- & Hardware (/forumdisplay.php?fid=80)
+---- Thema: Apache2 Problem (/showthread.php?tid=13702)


Apache2 Problem - Kiwie - 17.06.2011 17:14

/etc/init.d/apache2 restart

Zitat:
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address [::]:443
.

Das kommt raus wenn ich apache2 starten will bzw. es neustarte...
Wie bekomme ich diese beiden Ports frei??


RE: Apache2 Problem - Storage-Base.de - 17.06.2011 17:16

Dienst an IP Adresse binden, Prozesse Killen.


RE: Apache2 Problem - Kiwie - 17.06.2011 18:23

so prozesse sind gekillt aber will immer noch nicht


RE: Apache2 Problem - NevaKee - 17.06.2011 18:32

[Link: Registrierung erforderlich]


RE: Apache2 Problem - Kiwie - 17.06.2011 18:45

nope kein prozess drin..


RE: Apache2 Problem - NevaKee - 17.06.2011 18:47

Dann poste mal die Ausgabe von "netstat -tlpn".


RE: Apache2 Problem - Kiwie - 17.06.2011 19:04

Zitat:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:12525 0.0.0.0:* LISTEN 24955/policyd-weigh
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 28132/spamd.pid
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1028/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 26974/master
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 25164/postgrey.pid
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 21402/mysqld
tcp6 0 0 :::110 :::* LISTEN 24143/couriertcpd
tcp6 0 0 :::143 :::* LISTEN 25563/couriertcpd
tcp6 0 0 :::21 :::* LISTEN 25267/proftpd: (acc
tcp6 0 0 :::22 :::* LISTEN 1028/sshd
tcp6 0 0 :::993 :::* LISTEN 25615/couriertcpd
tcp6 0 0 :::995 :::* LISTEN 24198/couriertcpd




RE: Apache2 Problem - Storage-Base.de - 17.06.2011 19:06

Kommt der Fehler denn immer noch?

Mal Server restartet? In die Logs mal geschaut?


RE: Apache2 Problem - Kiwie - 17.06.2011 19:57

jap alles schon versucht


RE: Apache2 Problem - Storage-Base.de - 17.06.2011 20:17

Und was sagen die Logs?


RE: Apache2 Problem - _DEL5863 - 17.06.2011 20:32

-


RE: Apache2 Problem - Storage-Base.de - 17.06.2011 20:41

TS3-Boby schrieb:
Restarting web server: apache2(9CoolAddress already in use: make_sock: could not bind to address [::]:80
(9CoolAddress already in use: make_sock: could not bind to address [::]:443

das sagt uns das die ports schon belegt sind.. mach mal ps x in die console und kill mal alles was es sein könnte.. evtl täusche ich mich auch.

Das die Ports belegt sind haben wir bereits herausgefunden, das auch kein Prozess läuft welcher die Ports belegt haben wir ebenfalls dank "netstat -tlpn" bereits herausfinden können.

TS3-Boby schrieb:
Interessant währe evtl. auch Welches Linux, sprich Debian, Suse, CentOS oder was?

Ich denke mal an Debian Lenny, genau Wissen tu ich es aber nun auch nicht.

TS3-Boby schrieb:
Mal versucht ganz stumpf den server neuzustarten?

Wie er bereits Schrieb hat er dies auch bereits getan.


RE: Apache2 Problem - _DEL5863 - 17.06.2011 20:45

-


RE: Apache2 Problem - Kiwie - 17.06.2011 20:55

Ne Debian ist es schon aber squeeze und nmap sagt mir das... also sind die ports nicht belegt... nur ich schau mal ob ich apache dran gebunden bekomme an diese ports

nmap -sT 127.0.0.1

Starting Nmap 5.00 ( [Link: Registrierung erforderlich] ) at 2011-06-17 21:45 CEST
Interesting ports on localhost (127.0.0.1):
Not shown: 991 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
110/tcp open pop3
143/tcp open imap
783/tcp open spamassassin
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql


RE: Apache2 Problem - NevaKee - 17.06.2011 20:56

Hast du irgendwas an den Konfigurationsdateien von Apache geändert?

Wie sieht bei dir die "/etc/apache2/ports.conf" aus?

@TS3-Boby
Warum soll man so einen Kack wie Webmin installieren?
Damit wird der Server nur noch mehr zugemüllt für Sachen, die man auch so auf der Konsole lesen kann?


RE: Apache2 Problem - _DEL5863 - 17.06.2011 20:56

-


RE: Apache2 Problem - Kiwie - 17.06.2011 21:15

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>


@TS3-Boy
Ich sitze seit 10 Stunden davor und suche den fehler da ist mir das auch schon in den sinn gekommen... aber funzt auch nicht...


RE: Apache2 Problem - Storage-Base.de - 17.06.2011 21:27

Storage-Base.de schrieb:
Und was sagen die Logs?


//EDIT:
Das Problem ist das es 2 Config Dateien gibt, welche beide Listen beinhalten, damit Crasht das natürlich. Das auskommentieren in der ports.conf hat geholfen, nichtsdestotrotz funktioniert Confixx nicht wie es soll.