Apache2 SSL setup error, Port not available to bind
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Apache2 SSL setup error, Port not available to bind
Hey Guys,
I tried to setup SSL on my apache server and all went well until I added the LISTEN 443 in my ports.conf. When Apache tries to startup I get a error talking about how it is unable to bind to 0.0.0.0:443 I did a netstat and there is nothing that I can see using the port 443. Any ideas?
Here is the exact error messange when starting apache.
Code:
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Could you post your httpd.conf file, and also that last line "Unable to open logs", sounds like the ssl log file does not have the right permissions, check and make sure the path is set to where apache has write permissions.
Ok I figured it out, I am a idiot.
I was adding a Listen 443 in my ports.conf
but I failed to read through that document there was already a
Code:
<IfModule mod_ssl.c>
Listen 443
</IfModule>
So it was already listening on 443. Sorry for wasting your time thanks for the hint to check my files for a Listen 443
For those that was wondering this was on Ubuntu Server.
Glad to hear that the problem was solved, this is the reason why I like my httpd.conf to be a single file, rather than spitting it into multiple files like a lot of distros do these days, I find it easier to manage this way, especially when troubleshooting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.