Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"make_sock: could not bind to address [::]:443" when restarting apache (installing trac and mod_wsgi)

I'm trying to install trac and mod_wsgi over SSL. I tried to manually install it, but that didn't work out so well so I started to follow this: trac-on-ubuntu

I skipped the svn part because I'd like to use git instead. After the first edit of httpd.conf:

WSGIScriptAlias /trac /var/trac/apache/trac.wsgi  <Directory /var/trac/apache>     WSGIApplicationGroup %{GLOBAL}     Order deny,allow     Allow from all </Directory> 

I restarted apache only to get this error:

* Restarting web server apache2                                                      (98)Address already in use: make_sock: could not bind to address [::]:443                                                                       [ OK ] 

Doing these showed nothing.

 netstat -anp | grep 443   fuser 443/tcp 

Doing this didn't yield anything except the grep command that I ran:

ps -aux | grep httpd 

Why is it saying that something else is using the port when there's nothing showing up?

EDIT: You guys are going to laugh at this. I had an extra Listen 443 in ports.conf that shouldn't have been there. Removing that solved this.

like image 749
sharkfin Avatar asked Feb 04 '12 19:02

sharkfin


2 Answers

You guys are going to laugh at this. I had an extra Listen 443 in ports.conf that shouldn't have been there. Removing that solved this.

like image 176
sharkfin Avatar answered Sep 18 '22 21:09

sharkfin


Thank you for you answers, on apache 2.4.x versions if have installed ssl_module using yum command, dont want to add the port :443 in httpd.conf (main) file,

To find out the port 443 in configure files,

# grep '443' /etc/httpd/conf.d/*  /etc/httpd/conf.d/ssl.conf:Listen 443 https /etc/httpd/conf.d/ssl.conf:<VirtualHost _default_:443> /etc/httpd/conf.d/ssl.conf:#ServerName www.example.com:443  # grep '443' /etc/httpd/conf/httpd.conf  Listen 443 

Just remove the line or command it (Listen 443) from httpd.conf file.

like image 39
Lakshmikandan Avatar answered Sep 20 '22 21:09

Lakshmikandan