Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I am trying to do Name Base Hosting. I had done all require setting . But when i try to restart the httpd service I am getting an error ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    2

    Apache Error !!


    Hi

    I am trying to do Name Base Hosting. I had done all require setting .
    But when i try to restart the httpd service I am getting an error

    Can someone plese help me out in this issue !!

    Thanks

    Bhagyesh

  2. #2
    Just Joined!
    Join Date
    Apr 2010
    Posts
    2
    [root@server1 ~]# service httpd start
    Starting httpd: (9Address already in use: make_sock: could not bind to address [::]:80
    (9Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    [FAILED]
    [root@server1 ~]#


    I did chk with port service as well

    [COLOR="green"][root@server1 ]# nmap -sT localhost

    Starting Nmap 4.11 ( http:------Nmap - Free Security Scanner For Network Exploration & Security Audits.] ) at 2010-04-20 16:10 IST
    Interesting ports on <localhost >(127.0.0.1):
    Not shown: 1663 closed ports
    PORT STATE SERVICE
    21/tcp open ftp
    22/tcp open ssh
    25/tcp open smtp
    80/tcp open http
    [/COLOR]

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,933
    You should use 'service httpd restart' to restart your apache server; if it's already running, then the port it uses is in use, and cannot start again. Alternatively you can stop the service with 'service httpd stop' followed by 'service httpd start'.
    Linux user #126863 - see http://linuxcounter.net/

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28

    Apache : Address already in use

    Your nmap shows a web server already on port 80. You need to find out what program has that port. If running 'service httpd stop' then running your nmap command again still shows something listening on port 80, you might have another program listening on port 80.

Posting Permissions

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