Find the answer to your Linux question:
Results 1 to 3 of 3
I am trying to migrate a domain to another machine that currently hosts a domain. I am trying to do this with virtual hosts in apache, but can not seem ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Location
    Baton Rouge, LA
    Posts
    37

    Problems with Apache2 Virtual Hosts


    I am trying to migrate a domain to another machine that currently hosts a domain. I am trying to do this with virtual hosts in apache, but can not seem to get it working. I believe my config file is correct, but when I restart apache, i get this error:
    Code:
    (99)Cannot assign requested address: make_sock: could not bind to address 192.168.16.46:80
    no listening sockets available, shutting down
    The IP address 192.168.16.46 is the local IP of the current machine running the domain I am attempting to migrate. Any ideas of what I should look in to at this point? By the way, one domain will only be https (port 443) and the other will only be http (port 80). Thanks in advance for any help.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    58
    1) You're trying to start apache with a non-root account.
    2) You're assigning the same IP address to multiple virtual (or non-virtual) hosts.
    3) There is a process already running that is attached to port 80

    Code:
    # netstat -an | grep :80
    It should tell you if there is something listening to port 80 already.

  4. $spacer_open
    $spacer_close

Posting Permissions

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