Gutsy ports.conf file breaks Feisty config

Bug #155309 reported by Victor Engmark
2
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After installing Gutsy, Apache 2 would no longer start:
$ sudo /etc/init.d/apache2 start
 * 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

After an `ls -lct /etc/apache2/`, it looks like ports.conf was changed or created during the upgrade. I already have a "Listen" directive in httpd.conf, so the double directive seem to be the reason for the error.

Obviously it'll be too difficult to make sure none of the changes by the upgrade break the setup, but how about either of these:
- Move the current config files away (after looking through the setup files recursively for "Include" directives).
- If Apache is running when the upgrade starts, warn the user about the possible breakage.
- Put a warning in the upgrade log (/var/log/dist-upgrade/main.log?).

Work-around: Remove the excess "Listen" directive from either file.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Feisty already has the ports.conf file installed with apache2. Did you remove this file before upgrading from feisty ?

Changed in apache2:
status: New → Incomplete
Revision history for this message
Victor Engmark (victor-engmark) wrote :

I left the setup as it was when upgrading, but I might have removed or changed ports.conf sometime while configuring apache2.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Marking the bug invalid: ports.conf is the way to configure Listen directives since Feisty.

Changed in apache2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.