Results 1 to 4 of 4

Thread: Getting apache2 virtual hosts to run on my local machine

  1. #1
    Join Date
    Jun 2008
    Beans
    15

    Getting apache2 virtual hosts to run on my local machine

    I am trying to setup a local webserver on my laptop.

    I'm getting this on startup of apache2:

    (9Address already in use: make_sock: could not bind to address 0.0.0.0:80


    It doesn't look to me like anything is using port 80:


    $ lsof -i :80
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    chrome 2058 andrew 66u IPv4 19499 0t0 TCP 192.168.1.105:50386->173.192.42.178-static.reverse.softlayer.com:www (ESTABLISHED)
    chrome 2058 andrew 101u IPv4 17700 0t0 TCP 192.168.1.105:47255->lga15s34-in-f2.1e100.net:www (CLOSE_WAIT)
    chrome 2058 andrew 104u IPv4 17702 0t0 TCP 192.168.1.105:39086->vb-in-f106.1e100.net:www (ESTABLISHED)

    $ sudo netstat -lnp | grep ':80 '

    Returns nothing....

    Any ideas of what to check? I'm running 11.10. Thanks!

    I should also say that the default site works - I am trying to setup virtual hosts.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting apache2 virtual hosts to run on my local machine

    What about /etc/init.d/apache2 status? That should give at least one PID.

    What kind of virtual hosts are you running? Name-based or port-based?

  3. #3
    Join Date
    Jun 2008
    Beans
    15

    Re: Getting apache2 virtual hosts to run on my local machine

    Nevermind, found it. I had parms defined in both httpd.conf and apache2.conf and they were conflicting. Removed everything from httpd.conf and it fixed my issue. Thanks!

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting apache2 virtual hosts to run on my local machine

    Glad it works.

    http.conf confuses just about everyone the first time they set up Apache2. I'm not sure why was kept around. It seems to be gone from 12.04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •