Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#440031: marked as done (apache2: fails to start with SSL enabled (ports.conf))

From: Debian Bug Tracking System <owner(at)bugs.debian.org>
Date: Fri Aug 31 2007 - 11:24:07 EDT


Your message dated Fri, 31 Aug 2007 17:18:48 +0200 with message-id <200708311718.48600.sf@sfritsch.de> and subject line Bug#440031: apache2: fails to start with SSL enabled (ports.conf) has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

attached mail follows:


Package: apache2.2-common
Severity: normal

Hello,

Do you need help?X

here's a snippet of ports.conf shipped with the package:

---
Listen 80


## Listen 443

--

if the second 'Listen' directive is uncommented, starting apache2

(/etc/init.d/apache2 [start|reload]) fails with:
(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 otherwise, everything run fine. A 'netstat -apn' doesn't show any process bind to port 443. A strace of 'apache2ctl start' reveals, for one of the child process, the following problem: open("/var/run/apache2.pid", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0 bind(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 listen(4, 511) = 0 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 setsockopt(6, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(6, SOL_TCP, TCP_NODELAY, [1], 4) = 0 bind(6, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 listen(6, 511) = 0 setsockopt(9, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 setsockopt(9, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(9, SOL_TCP, TCP_NODELAY, [1], 4) = 0 bind(9, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use) write(2, "(98)Address already in use: make"..., 77) = 77 close(9) = 0 write(2, "no listening sockets available, "..., 46) = 46 write(2, "Unable to open logs\n", 20) = 20 Now, the funny part: 1) remove 'Listen 443' 2) restart apache2 3) netstat -ap | grep apache tcp 0 0 *:www *:* LISTEN 22079/apache2 tcp 0 0 *:https *:* LISTEN 22079/apache2
Do you need more help?X
So ... it seems the 'Listen 443' is automatic with a2enmod ssl ? I guess the problem is a bad interaction between the /etc/apache2/ports.conf and some of the installation scripts. Best regards Pascal Dupuis -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.22.5 Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash

attached mail follows:


> Problem solved. Sorry for the noise. Closing the bug. -- To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Received on Fri Aug 31 11:31:39 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:57:19 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library