Re: Apache2 Konfigurationsproblem
Ciao
OK - habe den include gefunden, Listen 80 steht unter /etc/apache2/ports.conf
schon drin dieses wird in der apache.conf included.
Das war wohl das Problem.
Danke&
Gruss
Marco
Am Dienstag, 20. Juli 2004 11.01 schrieb Levent Sarikaya:
> Hi,
> mit apache2 kann ich dir zwar nicht weiterhelfen, aber
> mit einem lsof -i solltest du sehen welches programm welchen port in
> beschalg hat.
Output:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 1586 daemon 3u IPv4 2198 UDP *:sunrpc
portmap 1586 daemon 4u IPv4 2199 TCP *:sunrpc (LISTEN)
exim4 1796 Debian-exim 0u IPv4 2426 TCP
localhost.localdomain:smtp (LISTEN)
famd 1801 root 3u IPv4 2450 TCP
localhost.localdomain:705 (LISTEN)
inetd 1807 root 4u IPv4 2466 TCP *:discard (LISTEN)
inetd 1807 root 5u IPv4 2467 UDP *:discard
inetd 1807 root 6u IPv4 2468 TCP *:daytime (LISTEN)
inetd 1807 root 7u IPv4 2469 TCP *:time (LISTEN)
inetd 1807 root 8u IPv4 2470 UDP *:talk
inetd 1807 root 9u IPv4 2471 UDP *:ntalk
lisa 1810 root 4u IPv4 2478 TCP *:7741 (LISTEN)
lisa 1810 root 5u IPv4 2548 UDP *:7741
afpd 1826 root 1u IPv4 3985 TCP *:afpovertcp (LISTEN)
rpc.mount 1848 root 3u IPv4 3251 UDP *:passwd_server
rpc.mount 1848 root 4u IPv4 3254 TCP *:755 (LISTEN)
nmbd 1852 root 6u IPv4 3797 UDP *:netbios-ns
nmbd 1852 root 7u IPv4 3798 UDP *:netbios-dgm
nmbd 1852 root 8u IPv4 3800 UDP mond:netbios-ns
nmbd 1852 root 9u IPv4 3801 UDP mond:netbios-dgm
smbd 1854 root 18u IPv4 3822 TCP *:microsoft-ds
(LISTEN)
smbd 1854 root 19u IPv4 3823 TCP *:netbios-ssn (LISTEN)
sshd 1860 root 3u IPv6 3955 TCP *:ssh (LISTEN)
rpc.statd 1950 root 4u IPv4 4078 UDP *:857
rpc.statd 1950 root 5u IPv4 4044 UDP *:854
rpc.statd 1950 root 6u IPv4 4081 TCP *:860 (LISTEN)
miniserv. 2017 root 5u IPv4 4114 TCP *:10000 (LISTEN)
miniserv. 2017 root 6u IPv4 4115 UDP *:10000
sshd 2120 root 4u IPv6 4320 TCP
mond:ssh->192.168.0.26:33671 (ESTABLISHED)
Ich glaube der Port 80 ist durch Apache2 selber belegt. Da habe ich wohl noch
irgendwo ein bug in der apache.conf - oder?
Regards Marco
>
>
>
> solong............Levent
>
> On Tue, 2004-07-20 at 10:33, Marco Fleig wrote:
> > Ich versuche zig-fach verschiedene Konfigurationen für den Apache2 aus:
> >
> > Die Installation läuft auf einem Debian testing System (deb
> > http://debian.ethz.ch/debian/ testing main). Die alte Installation sah
> > zusammengeraft so aus und funktioniert problemlos:
> >
> > ----------------------
> > ServerAdmin root@sonne.local
> > ServerName sonne.local
> > DocumentRoot "/usr/local/httpd/htdocs/"
> >
> > Listen 80
> > Listen 8080
> >
> > ServerName sonne
> >
> > <VirtualHost 192.168.0.101:8080>
> > ServerAdmin root@sonne.local
> > DocumentRoot /home/entwicklung/intranet/
> > Port 8080
> > <Directory />
> > AllowOverride None
> > </Directory>
> > </VirtualHost>
> > -----------------------
> >
> >
> > Neu habe ich bei Apache2 kein DocumentRoot mehr und versuchte es darum so
> > (und in vielen Variationen):
> > Code:
> >
> > -----------------------
> > Listen 192.168.0.102:80
> > Listen 192.168.0.102:8080
> >
> > <VirtualHost 192.168.0.102:80>
> > ServerAdmin root@mond.local
> > DocumentRoot /home/produktion/intranet/
> > ServerName mond.prod
> > ErrorLog /var/log/apache2/mond_error.log
> > CustomLog /var/log/apache2/mond_custom.log common
> > </VirtualHost>
> >
> > <VirtualHost 192.168.0.102:8080>
> > ServerAdmin root@mond.local
> > DocumentRoot /home/entwicklung/intranet/
> > ServerName mond.test
> > ErrorLog /var/log/apache2/mondtest_error.log
> > CustomLog /var/log/apache2/mondtest_custom.log common
> > </VirtualHost>
> >
> > -----------------------------
> >
> > Ich habe auch schon versucht nur den 8080 zu definieren, da er den 80er
> > irgendwie schon kennt. Aber ich komme einfach nicht weiter. In der Doku
> > sind auch diverse Beispiele, wo beide (80 und 8080) definiert werden.
> > Dennoch erhalte ich imemr die Meldung:
> > Code:
> >
> > Starting web server: Apache2apache2: Could not determine the server's
> > fully qualified domain name, using 192.168.0.102 for ServerName
> > (98)Address already in use: make_sock: could not bind to address [::]:80
> > no listening sockets available, shutting down
> >
> > Das mit dem ServerName macht mir keine Sorgen - aber Address already in
> > use ... Das heisst doch Port 80 ist irgendwie schon belegt - oder?
> >
> > "ps x | grep apache" bringt nichts
> > "fuser -vn tcp 80" auch nicht
> >
> > Hat mir jemand einen Tipp?
Reply to: