Apache error: Address already in use: make_sock: could not bind to address [::]:443

懵懂的女人 提交于 2019-12-11 00:06:34

问题


Apache error while starting:

Address already in use: make_sock: could not bind to address [::]:443

*Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs*

Listen 443 is added in ssl.conf.
Listen 80 is added in httpd.conf.

HTTPD.conf file:

DocumentRoot "/var/apache2/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory "/var/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Also getting the following error in error_log file:

configuration error:  couldn't perform authentication. AuthType not set!:index.html**
index.html's location : /var/apache2/htdocs

Thanks in advance


回答1:


  1. Files defined inside conf.d would have Listen port as 443 multiple times in multiple files which can cause this issue.
  2. Seems port 443 is used by some other process, it can be checked by "netstat -anp|grep :443"



回答2:


Add following line after listening port

#You will have 
    Listen 443 https
#add NameVirtualHost entry after that,
NameVirtualHost *:443

and restart httpd server, hope this will work for you.




回答3:


I had to comment out

Listen 443 https

in /etc/.../conf.d/ssl.conf after an upgrade to httpd version 2.4.6-80.



来源:https://stackoverflow.com/questions/46643780/apache-error-address-already-in-use-make-sock-could-not-bind-to-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!