LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-30-2009, 05:39 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
Apache2 + ssl


Hi all out there.

In my home server (debian) i start working with ssl. I create the cert and the key. Also i move the httpd-ssl.conf file in /etc/apache2/conf.d directory. I have configure the

PHP Code:
SSLCertificateFile  and SSLCertificateKeyFile 
in httpd-ssl.conf file. Now when i m going to start my apache service it returns me this error:

Quote:
Starting web server (apache2)...Syntax error on line 56 of /etc/apache2/conf.d/httpd-ssl.conf:
Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
failed!
Any idea on how to fix it ?

Thanks a lot..
 
Old 06-30-2009, 07:22 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Debian uses quite a diffrent structure inside /etc/apache2. While in slackware it's all flat files and with a conf.d directory debian splits up the files in diffrent directories. And how I think in a very cool manner.
You have two main types of directories: sites and mods. These are split up into two other: mods-available mods-enable, sites-available sites-enabled.
Just do a ls /etc/apache and it should be all clear

So for your error message. It just says that the needed module for SSL is not loaded. cd into /etc/apache2/mods-enabled and create a symlink with ln -s ../mods-available/ssl.conf ./ && ln -s ../mods-available/ssl.load ./

Then you should be set

Cheers Zhjim

P.S. this holds true if you used the package coming with > Debian 4 etch

Last edited by zhjim; 06-30-2009 at 07:25 AM. Reason: make more sense
 
Old 06-30-2009, 08:11 AM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
So...i have something like this in my sites-available/default :

Quote:
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
# Non-SSL site
...
</VirtualHost>
<VirtualHost *:443>
# SSL site
....
</VirtualHost>
In ports.conf file :
Quote:
Listen 443
Listen 80
And when i try to start the apache gives me this:

Quote:
Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:443
(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
i check with netstat that there isn't any other connection in 443 port.

Have you god anything in mind..an whats going on with 443 port?
 
Old 06-30-2009, 11:46 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by netpumber
Have you god anything in mind..an whats going on with 443 port?
443 is the standard ssl enabled http port. a.k.a. https. Check out /etc/services for a list of standard protocols and their affiliated services.

Did you add the Listen 443 to ssl.conf on your own? If you use the standard config you don't need to. Do a

Code:
grep -R "Listen" -i /etc/apache2
to see if you maybe have to of the Listen 443 directives.

One thing that might be hindering apache to start is the last line of the error message.
Code:
Unable to open logs
Seems like the path to your log files does not exists or is not writeable...

How did you check with netstat?

Code:
netstat -tulpn | grep 443
-n is important it prints numbers insted of the names taken from /etc/services
 
  


Reply



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
Debian SSL + apache2 jef3189 Linux - Server 1 01-27-2009 09:31 PM
Apache2 and SSL problem shrimpwagon Linux - Software 0 11-10-2006 10:32 AM
Apache2 + ssl blunt Slackware 4 10-31-2006 07:23 AM
apache2 - ssl : connection via ssl interrupted ldp Linux - Software 0 10-02-2005 09:07 AM
Apache2 + SSL for the first time ridertech Linux - Newbie 0 02-14-2004 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:51 AM.

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