apache do not start

Discussion in 'Installation/Configuration' started by mik_schreiber, Dec 25, 2006.

  1. mik_schreiber

    mik_schreiber New Member

    Debian on a virt. server, installed ISPCONFIG and is running. The problem is that apache2 does not start and if i try to start 'apache2 -k start' i get an error message:

    mail:/etc# apache2 -k start
    [Mon Dec 25 20:28:49 2006] [warn] NameVirtualHost xx.38.xx.xx:80 has no VirtualHosts
    [Mon Dec 25 20:28:49 2006] [warn] NameVirtualHost xx.38.xx.xx:443 has no VirtualHosts
    [Mon Dec 25 20:28:49 2006] [warn] NameVirtualHost xx.38.xx.xx:80 has no VirtualHosts
    (98)Address already in use: make_sock: could not bind to address [::]:443
    no listening sockets available, shutting down
    Unable to open logs
    mail:/etc#

    in ISPCONFIG - services: webservice is disabled

    what is my configuration fault? thank you
     
    Last edited: Dec 25, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you have a second instance of apache installed, that is currently running. Or there is a hanging apache process that blocks the port.

    Please post the output of:

    netstat -tap
     
  3. mik_schreiber

    mik_schreiber New Member

    mail:/etc# netstat -tap
    Aktive Internetverbindungen (Server und stehende Verbindungen)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 1404/mysqld
    tcp 0 0 *:81 *:* LISTEN 30204/ispconfig_htt
    tcp 0 0 xyz.de:domain *:* LISTEN 30345/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 30345/named
    tcp 0 0 *:ftp *:* LISTEN 1352/inetd
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 30345/named
    tcp 0 0 *:smtp *:* LISTEN 30328/master
    tcp6 0 0 *:imaps *:* LISTEN 1322/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 1342/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 1330/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 1309/couriertcpd
    tcp6 0 0 *:ssh *:* LISTEN 1559/sshd
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 30345/named
    tcp6 0 0 *:smtp *:* LISTEN 30328/master
    tcp6 0 52 xyz:ssh p549729BF.dip0.t-i:4591 VERBUNDEN 21041/0
    mail:/etc#
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no other apache started on port 443. Please try to start apache with this command:

    /etc/init.d/apache2 start
     
  5. mik_schreiber

    mik_schreiber New Member

    did this already (param -k was not used) and got this error output
    and i tried to restart the virt server
     
    Last edited: Dec 25, 2006
  6. mik_schreiber

    mik_schreiber New Member

    it's running, i removed listen 443 from ports.conf

    but i have a second problem:

    root is allowed to longon with ssh but no user
    MSG:System bootup in progress - please wait.
    (in due of file: nologon )

    I tried to enable ssh for an user but even this user does not have access.
    How to enable user for ssh?

    Thanks for your help
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Which shell does the user have in the /etc/passwd file?
     
  8. mik_schreiber

    mik_schreiber New Member

    in passwd file: /bin/bash

    i googled and found that the reason for this message is a file /etc/nologin

    found it: delete nologon and disable in /etc/default logon delay
    thxs
     
    Last edited: Dec 26, 2006

Share This Page