Starting apache fails (could not bind to address 0.0.0.0:80)

后端 未结 12 1895
南旧
南旧 2020-12-12 11:11

Update: Already fixed, it seems that one of VirtualHosts configurations files was wrong in sites-enabled.

I have Ubuntu 11.10

When I run the command to start

12条回答
  •  悲哀的现实
    2020-12-12 12:04

    This will happen because of repeated installation of apache or port is using by another service

    sudo lsof -i | grep "httpd"
    

    You will find process id and listening port of service. Then check

    cd /proc/(process id of http)
    

    Then kill that process using command

    kill -9 pid
    

    now

    sudo netstat -nltp
    

    again kill the process

    syntax:-

    kill -9 pid
    

    and now start apache

    sudo ./apachectl start
    

提交回复
热议问题