LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 11-02-2008, 10:34 PM   #1
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 18

Rep: Reputation: 0
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
 
Old 11-03-2008, 02:09 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
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.
 
Old 11-03-2008, 03:14 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And what distro?
 
Old 11-03-2008, 06:01 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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?
 
Old 11-03-2008, 11:19 AM   #5
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 11-04-2008, 03:29 AM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration