Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just installed this server with Ubuntu server 12.10 and then installed Apache2, however now when I run service apache2 reload or service apache2 restart it claims to have suceeded in updating but actually, it does not update, here is the problem:

root@sbh1:/etc/apache2# a2dissite 000-default
Site default already disabled
root@sbh1:/etc/apache2# a2dissite default-ssl
Site default-ssl disabled.
To activate the new configuration, you need to run:
  service apache2 reload
root@sbh1:/etc/apache2# service apache2 reload
 * Reloading web server config                                                                                                                                                                                                               [Fri Nov 09 17:00:19 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                                                                                                                                                                      [ OK ]
root@sbh1:/etc/apache2# service apache2 restart
 * Restarting web server apache2                                                                                                                                                                                                             [Fri Nov 09 17:00:23 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting .[Fri Nov 09 17:00:26 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                                                                                                                                                                      [ OK ]
root@sbh1:/etc/apache2# ll sites-enabled
total 8
drwxr-xr-x 2 root root 4096 Nov  9 17:00 ./
drwxr-xr-x 7 root root 4096 Nov  9 16:59 ../
root@sbh1:/etc/apache2# wget localhost
--2012-11-09 17:00:36--  http://localhost/
Resolving localhost (localhost)... ::1,
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: `index.html.1'

100%[===================================================================================================================================================================================================>] 177         --.-K/s   in 0s

2012-11-09 17:00:36 (46.2 MB/s) - `index.html.1' saved [177/177]


Why is the default site still broadcasting? If I enable other sites they do not start broadcasting either.

share|improve this question
What is the contents of httpd.conf and 000-default? – Chris Down Nov 9 '12 at 17:17
What are the outputs for apachectl -S and netstat -tlnp|grep -w 80? Is the shown PID actually a httpd-process? – Nils Nov 9 '12 at 21:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.