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

后端 未结 12 1883
南旧
南旧 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 11:52

    I had the same problem

    For me, apache was already running but it was running the wrong way.

    Killing processes didnt work because a daemon kept reinstantiating it.

    apachectl stop   
    

    resolved the issue.

    0 讨论(0)
  • 2020-12-12 11:57

    Go to device manager, select “show hidden devices” from menu/view, go to “Non-Plug and Play Driver”/HTTP, double click it to disable it (and disable or manual some services depended on it). Reboot and enjoy!

    0 讨论(0)
  • 2020-12-12 11:58

    Worked for me running this command:

    fuser -k -n tcp 80
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-12 12:07

    What I would do is simply check if the following is set in your /etc/apache2/sites-available/your-domain-name.com.conf

    SSLEngine on 
    SSLCertificateFile /your/path/to/your-domain.com.crt
    SSLCertificateKeyFile /your/path/to/your-domain.com.key
    SSLCACertificateFile /your/path/to/your-domain.com.ca-bundle
    

    and there aren't any mistyped directories or anything else that would not supposed to be in your .conf file. It did the trick for me as re-starting and killing the processes did not help at all. It did not start anyway.

    0 讨论(0)
  • 2020-12-12 12:07

    use either

    sudo killall httpd
    

    or

    sudo killall apache2
    

    check if some one using the 80 port

    sudo netstat -tulpn| grep :80
    

    The restart

    sudo service httpd start
    

    then restart the server.It took me a whole day to understand the issue

    0 讨论(0)
提交回复
热议问题