LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Thread Tools
Old 11-02-2008, 10:34 PM   #1
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 13
Thanked: 0
Apache2 SSL setup error, Port not available to bind


[Log in to get rid of this advertisement]
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
EpicOfChaos is offline     Reply With Quote
Old 11-03-2008, 02:09 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,101
Thanked: 4
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.
fotoguy is offline     Reply With Quote
Old 11-03-2008, 03:14 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,648
Thanked: 119
And what distro?
billymayday is offline     Reply With Quote
Old 11-03-2008, 06:01 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,015
Thanked: 12
maybe your apache did already have a LISTEN 443 in another config file like SSL.conf or so that is included in httpd.conf?

what does
/path/to/apachectl configtest

give out?
j-ray is offline     Reply With Quote
Old 11-03-2008, 11:19 AM   #5
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 13
Thanked: 0

Original Poster
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.
EpicOfChaos is offline     Reply With Quote
Old 11-04-2008, 03:29 AM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,101
Thanked: 4
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.
fotoguy is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL setup for one page using apache2 Carl Filby Linux - Server 4 10-07-2008 08:56 AM
Error: Bind to port 22 jin01 Linux - Networking 5 09-20-2007 09:01 PM
forwarding ssl port to a different ssl port number on a different machine coal-fire-ice Linux - Networking 6 03-15-2007 12:30 PM
Document for setup Apache2 with SSL/TLS satimis Linux - Server 2 11-24-2006 07:46 PM
Apache2 SSL works, but need to close port 80 now data1 Linux - Software 0 10-11-2004 03:41 PM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration