Apache2 und Xinetd

hi,

folgendes Problem: http://localhost gibt mir eine Website mit folgendem Text:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Hier meine xinetd Konfiguration:

Code:
mathias@wizard:~$ cat /etc/xinetd.conf
defaults
{
        instances               = 60
        log_type                = SYSLOG authpriv
        log_on_success          = HOST PID
        log_on_failure          = HOST
        cps                     = 25 30
}

includedir /etc/xinetd.d
mathias@wizard:~$

Code:
mathias@wizard:~$ cat /etc/xinetd.d/apache2
# vsftp daemon.
service www
{
        disable         =       no
        socket_type     =       stream
        wait            =       no
        user            =       root
        server          =       /usr/sbin/apache2
        per_source      =       5
        instances       =       200
        log_on_success  +=      PID HOST DURATION
        log_on_failure  +=      HOST
        nice            =       10
}

mathias@wizard:~$


Weiss jemand worans liegt?
 
Es liegt daran, dass Apache ein eigenständiger Daemon ist und nicht über xinetd gestartet werden kann. Dieser leitet nämlich den Output des Programms an einen Port weiter und somit siehst du dort die Startmeldungen des Apache. Nimm also diesen Müll aus der xinetd-Konfiguration wieder raus.

Edit: Hab gerade nochmal nachgeschaut. Sogar Apache kann via xinetd laufen, wenn der ServerType nicht auf Standalone gesetzt ist.
 
Okay das änder ich ja mit "ServerType inetd" aber in welchem File? /etc/apache2/apache2.conf isses nicht, da bekomm ich
Syntax error on line 1 of /etc/apache2/apache2.conf:
Invalid command 'ServerType', perhaps misspelled or defined by a module not included in the server configurati


EDIT:
Hab grad mal das ganze Xinetd Zeug wieder rausgenommen aber er startet trotzdem nicht:
Code:
mathias@wizard:~$ sudo /etc/init.d/apache2 start
 * Starting web server apache2                                                                                               apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                                                                                      [fail]
mathias@wizard:~$
 
Code:
Address already in use: make_sock: could not bind to address 0.0.0.0:80

Die Fehlermeldung sagt doch, dass der Port 80 offenbar schon durch einen Prozess belegt ist. Einfach mal mittels

Code:
netstat -lntpa | grep ":80"

nachschauen welcher Prozess den Port belegt.
 
Zurück
Oben