Can you help me please. I need run Apache2 on my Debian 7 server. But it run only on tcpv6 port, not on tcpv4 port. I installed it with apt-get install. I read some tips for this problem, but it does not help me. And if I go to localhost or 127.0.0.1 or my server IPv4 address it does not display any website.  My /etc/apache2/ports.conf: # 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.gzNameVirtualHost *:80Listen 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>netstat -plntu:tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3558/sshd       tcp        0      0 0.0.0.0:3466            0.0.0.0:*               LISTEN      2820/mysqld     tcp6       0      0 :::80                   :::*                    LISTEN      2097/apache2    tcp6       0      0 :::22                   :::*                    LISTEN      3558/sshd       
Apache2 does not run on IPv4 tcp port
debian;apache httpd
The fact that netstat shows only tcp6 here is not the problem. If you don't specify an address to listen on, apache will listen on all supported address families using a single socket (for design reasons, sshd uses a unique socket per address & address family, hence showing up twice in your netstat output).Here's one of my systems, showing apache having only tcp6 sockets, and yet still working fine via both IPv4 and IPv6.woodpecker ~ # netstat -anp |grep apachetcp6       0      0 :::80    :::*       LISTEN      1637/apache2        tcp6       0      0 :::443   :::*       LISTEN      1637/apache2        woodpecker ~ # wget http://127.0.0.1/ -O /dev/null--2013-12-25 08:52:38--  http://127.0.0.1/Connecting to 127.0.0.1:80... connected.HTTP request sent, awaiting response... 200 OKLength: 45 [text/html]...# wget http://[::1]/ -O /dev/null--2013-12-25 08:53:00--  http://[::1]/Connecting to [::1]:80... connected.HTTP request sent, awaiting response... 200 OKLength: 45 [text/html]...If you run wget http://127.0.0.1/ -O - on the server what happens? Does it successfully connect? Does it return the raw HTML for your website as expected?